Agent skill
create-module
创建新的业务模块。当需要添加新模块如 ec、crm 时使用
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/create-module
SKILL.md
创建模块
文件结构
src/tables/{mod}/
├── {mod}.sql # 表结构
└── {mod}.ts # 表配置
步骤
- 创建
src/tables/{mod}/{mod}.sql - 创建
src/tables/{mod}/{mod}.ts - 在
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: { /* 订单明细配置 */ },
});
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?