スキル一覧に戻る
sail-sail

create-module

by sail-sail

低代码架构

13🍴 5📅 2026年1月15日
GitHubで見るManusで実行

SKILL.md


name: create-module description: 创建新的业务模块。当需要添加新模块如 ec、crm 时使用

创建模块

文件结构

src/tables/{mod}/
├── {mod}.sql    # 表结构
└── {mod}.ts     # 表配置

步骤

  1. 创建 src/tables/{mod}/{mod}.sql
  2. 创建 src/tables/{mod}/{mod}.ts
  3. src/tables/tables.ts 注册:
import { defineConfig } from "../config";
import base from "./base/base";
import {mod} from "./{mod}/{mod}.ts";

export default defineConfig({
  ...base,
  ...{mod},
});

示例

模块名: ec(电商)

// src/tables/ec/ec.ts
import { defineConfig } from "../../config";

export default defineConfig({
  ec_order: { /* 订单表配置 */ },
  ec_order_detail: { /* 订单明细配置 */ },
});

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です