AGENT SKILL

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.

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

01 前言 Front Matter

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.

02 资源文件 5

03 SKILL.md 正文

Add Field

Add a field to a Django model and propagate it to admin, serializer, and factory.

Command Policy

Use jig run for this skill. Do not use jig exec in this variant.

Usage

jig run ${CLAUDE_SKILL_DIR}/recipe.yaml --vars '{"model_name": "<Model>", "field_name": "<name>", "field_type": "<Type>", "field_args": "<args>", "factory_default": "<default>"}'

Variables

  • model_name: Model class name (e.g. Reservation)
  • field_name: New field name (e.g. loyalty_tier)
  • field_type: Django field type (e.g. CharField)
  • field_args: Field arguments (e.g. max_length=20, default=\"bronze\")
  • factory_default: Factory default value (e.g. \"bronze\")

Gotchas

  • Run exactly one jig run command first.
  • If unsure about required variables, run: jig vars ${CLAUDE_SKILL_DIR}/recipe.yaml
  • If jig exits non-zero, use stderr rendered output for one manual correction pass.

04 同仓库更多 Skills