AGENT SKILL

add-model

Create a new Django model in a module. Use when adding models, database tables, or data classes.

License 许可
MIT
所属仓库
Tetra-Research/jig
最近更新
2026-04-10
Stars
★ 6
Forks
0

01 前言 Front Matter

name
add-model
description
Create a new Django model in a module. Use when adding models, database tables, or data classes.

02 资源文件 2

03 SKILL.md 正文

Add Model

Create a new Django model class in a module's models.py.

Usage

jig run ${CLAUDE_SKILL_DIR}/recipe.yaml --vars '{"module": "<module>", "model_name": "<ModelName>", "fields": "<field_lines>"}'

Variables

  • module: Module path (e.g. auth)
  • model_name: Model class name (e.g. Permission)
  • fields: Model fields as Python code lines (e.g. name = models.CharField(max_length=100))

Gotchas

  • If jig exits non-zero, it prints the rendered template to stderr. Use that output to apply changes manually.
  • The fields variable is raw Python — include proper indentation and field definitions.

04 同仓库更多 Skills