parse-table
It processes raw table definitions to extract modules, models, fields, and foreign keys while applying CRUD naming conventions.
Install
mkdir -p .claude/skills/parse-table && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1253" && unzip -o skill.zip -d .claude/skills/parse-table && rm skill.zipInstalls to .claude/skills/parse-table
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Parse table definition to extract module name, model name, table name, and field definitions. First step of CRUD generation.Key capabilities
- →Extract database schema from text
- →Map field definitions to CRUD boilerplate
- →Infer module and model naming conventions
- →Handle foreign key relationships
How it works
It uses a regex-based parser to normalize unstructured schema input into a canonical model/module object, mapping types to standard programming primitives.
Inputs & outputs
When to use parse-table
- →Generating CRUD boilerplate from text schema
- →Standardizing database model naming
- →Mapping table fields to code types
About this skill
Step 1: Parse Table Definition
从用户输入的表定义中提取关键信息。
Input Format
Table: products
Fields:
- id (primary key)
- name (string, 100, required)
- category_id (foreign key -> categories)
- description (text, nullable)
- price (decimal 10,2, required)
- stock (integer, default 0)
- status (tinyint, default 1)
输入容错与默认推断
- 允许使用以下别名:
Table/表名/表,Module/模块,Model/模型,Fields/字段。 - 允许省略
Fields:标题,仅用-列表表示字段。 - 若只提供
table,则按命名规则推断{Module}与{Model}。 - 若用户显式提供
Module/Model,优先使用用户输入(覆盖推断)。 - 缺少
table时必须先向用户确认,不进行推断生成。
字段解析补充
required表示nullable = false,nullable表示可空;两者都未出现时默认不可空。- 支持别名:
int/integer、bool/boolean、pk/primary key、fk/foreign key。 foreign key -> xxx解析为foreignKey类型,默认index()。
冲突处理优先级
- 用户显式指定(Module/Model/table/字段规则)
- 规则推断(命名规则与默认字段规则)
- 兜底:要求用户澄清后再继续
Output Variables
| Variable | Rule | Example |
|---|---|---|
{table} | snake_case plural | products |
{Model} | PascalCase singular | Product |
{Module} | PascalCase | Product |
{module} | snake_case | product |
{resources} | kebab-case plural | products |
{resource} | kebab-case singular | product |
Field Type Parsing
| Input | Type | Length | Required | Default | FK Target |
|---|---|---|---|---|---|
string, 100 | string | 100 | no | null | - |
string, 100, required | string | 100 | yes | null | - |
integer, default 0 | integer | - | no | 0 | - |
foreign key -> categories | foreignKey | - | no | 0 | categories |
decimal 10,2 | decimal | 10,2 | no | null | - |
tinyint, default 1 | tinyint | - | no | 1 | - |
text, nullable | text | - | no | null | - |
Naming Conventions
- Module: 通常与 Model 同名,除非用户明确指定
- Table: 复数形式 (products, order_items)
- Model: 单数形式 (Product, OrderItem)
- Route: kebab-case (products, order-items)
When not to use it
- →Full database migration management
- →Production database execution
Limitations
- →Sensitive to non-standard schema input format
- →Limited to predefined SQL data types
How it compares
It standardizes input text into a machine-readable format specifically for CRUD scaffolding before code generation begins.
Compared to similar skills
parse-table side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| parse-table (this skill) | 3 | 6mo | No flags | Beginner |
| drizzle | 238 | 2mo | No flags | Intermediate |
| database-development | 1 | 2mo | Review | Intermediate |
| add-module | 1 | 1mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by JaguarJack
View all by JaguarJack →You might also like
drizzle
lobehub
Drizzle ORM schema and database guide. Use when working with database schemas (src/database/schemas/*), defining tables, creating migrations, or database model code. Triggers on Drizzle schema definition, database migrations, or ORM usage questions.
database-development
vm0-ai
Database migrations and Drizzle ORM guidelines for the vm0 project
add-module
fullstackhero
Create a new module (bounded context) with proper project structure, permissions, DbContext, and registration. Use when adding a new business domain that needs its own entities and endpoints.
create-module
mx-space
Create a new NestJS module with controller, service, model, and schema files. Use when adding new feature modules, API endpoints, or business domains.
check-vault-onchain
tradingstrategy-ai
Check our feature flagging against an onchain vault
dbx-regenerate
storj
Regenerate DBX code after making changes to .dbx schema files. Runs code generation, shows diff summary, validates compilation, and reports any errors.