Skip to content
Back to skills

Create Module

ASecurity

创建新的业务模块。当需要添加新模块如 ec、crm 时使用

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
developmenttypescriptsql

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill create-module --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Create Module?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Create Module
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-create-module/badge)](https://www.skillsdirectory.com/skills/majiayu000-create-module)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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` 注册:

```typescript
import { defineConfig } from "../config";
import base from "./base/base";
import {mod} from "./{mod}/{mod}.ts";

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

## 示例

模块名: `ec`(电商)

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

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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.