About db-table-best-practice
db-table-best-practice checks database, table, and column naming against stated conventions and can directly fix names that do not comply. It also describes camelCase naming in TypeScript with Drizzle mapping.
Key features
- 01Checks database name conventions
- 02Validates table and column names
- 03Directly fixes noncompliant names by default
- 04Provides compliant examples
- 05Describes Drizzle naming mapping
Use cases
- 01Validating database and table schema names
- 02Cleaning up noncompliant column names
- 03Aligning TypeScript and database naming
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ forge-town/ skills --skill db-table-best-practiceAfter installing, type/db-table-best-practicein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
best-practice-examples/accounts_table.tsindex.tsusers_table.tsreferences/checklist.mdDetails
From the project README数据库与数据表表名规范验证最佳实践
使用说明
- 阅读 检查清单 了解所有命名规范规则
- 参照 best-practice-examples/ 中的合规示例
- 验证目标文件中数据库名、表名、列字段命名是否符合规范
- 自动修正不规范的命名(默认行为:直接修改文件)
规范摘要: 数据库名全小写+下划线分隔;表名复数形式+snake_case;TS 层使用 camelCase 通过 Drizzle 自动映射
Comments
Markdown supported