一键导入
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.
This variant is template-first. Start by using template files as the source of truth:
templates/model_field.j2templates/admin_field.j2templates/serializer_field.j2templates/factory_field.j2templates/vars.tmpl.jsonMap the user request into the vars shape, then apply the corresponding edits directly.
Reservation)loyalty_tier)CharField)max_length=20, default=\"bronze\")\"bronze\")Given:
model_name=Reservationfield_name=loyalty_tierfield_type=CharFieldfield_args=max_length=20, default="bronze"factory_default="bronze"Render to these exact line shapes:
loyalty_tier = models.CharField(max_length=20, default="bronze") "loyalty_tier", "loyalty_tier", loyalty_tier = "bronze"templates/vars.tmpl.json.