一键导入
add-endpoint
Add a new REST API endpoint with view, URL route, schema, and test. Use when adding endpoints, routes, or API paths.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add a new REST API endpoint with view, URL route, schema, and test. Use when adding endpoints, routes, or API paths.
用 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-endpoint |
| description | Add a new REST API endpoint with view, URL route, schema, and test. Use when adding endpoints, routes, or API paths. |
Add a complete API endpoint: view function, URL route, response schema, and test.
jig run ${CLAUDE_SKILL_DIR}/recipe.yaml --vars '{"view_name": "<name>", "url_path": "<path>", "url_name": "<name>", "schema_name": "<Schema>", "model_name": "<Model>"}'
If invoked as /add-endpoint <view_name> <model_name>:
jig run ${CLAUDE_SKILL_DIR}/recipe.yaml --vars '{"view_name": "$1", "url_path": "<inferred>", "url_name": "<inferred>", "schema_name": "<inferred>", "model_name": "$2"}'
reservation_receipt)reservations/<int:pk>/receipt/)reservation-receipt)ReceiptSchema)Reservation)Extract these from the user's request. Infer url_path and url_name from view_name if not explicit.
jig vars ${CLAUDE_SKILL_DIR}/recipe.yaml to confirm required variables if unsure.