一键导入
add-field
Add a new field to a Django model and propagate to admin, serializer, and factory. Use when adding model fields or database columns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add a new field to a Django model and propagate to admin, serializer, and factory. Use when adding model fields or database columns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
When the user wants to codify a repeatable code generation pattern into a jig recipe — design variables, choose operations (create/inject/patch/replace), write Jinja templates, and validate the result. Use when someone says "I keep writing this same boilerplate", "make a recipe for X", or wants to turn a manual edit into an automated pattern.
When the user needs to chain multiple jig recipes into a multi-step workflow with conditional execution and shared variables. Use when a pattern spans multiple files that need coordinated creation and modification, like scaffolding an entire endpoint or a full feature slice.
Scaffold queryset/manager/selector layers and wire view reads through selector entrypoints with jig.
Generate two-step rollout-safe Django migrations plus model-field patching using jig.
Insert consistent method/step structured logging lines into target functions using jig.
Write deterministic service tests with stable fixtures and boundary mocks without using jig.
| name | add-field |
| description | Add a new field to a Django model and propagate to admin, serializer, and factory. Use when adding model fields or database columns. |
Add a field to a Django model and propagate it to admin, serializer, and factory.
Prefer bash-style argument mapping when arguments are available.
Accepted forms:
<model_name> <field_name> <field_type> [field_args] [factory_default]model_name, field_name, field_type, field_args, factory_defaultMap values into shell variables, then run jig run once:
MODEL_NAME="$1"
FIELD_NAME="$2"
FIELD_TYPE="$3"
FIELD_ARGS="${4:-max_length=20, default=\"bronze\"}"
FACTORY_DEFAULT="${5:-\"bronze\"}"
jig run ${CLAUDE_SKILL_DIR}/recipe.yaml --json-args "{\"model_name\":\"${MODEL_NAME}\",\"field_name\":\"${FIELD_NAME}\",\"field_type\":\"${FIELD_TYPE}\",\"field_args\":\"${FIELD_ARGS}\",\"factory_default\":\"${FACTORY_DEFAULT}\"}"
If values come directly from the prompt, assign them first using the same variable names and run the same command.
Reservation)loyalty_tier)CharField)max_length=20, default=\"bronze\")\"bronze\")jig run command first.jig vars ${CLAUDE_SKILL_DIR}/recipe.yaml