一键导入
new-route
Scaffold a new API route following project patterns
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new API route following project patterns
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when bringing the harness method to a NEW or non-sentropic repo — maps the repo's conventions into a harness profile so the same scope/branch/verify kernel applies anywhere.
Use before any creative/design work (a feature, a package, an evolution) — explores intent and design via the spec-ladder with multi-peer adversarial review BEFORE implementation.
Use on any bug, test failure, or unexpected behaviour BEFORE proposing a fix — runs the generic evidence-first root-cause loop.
Use when you have a spec/decisions and need an executable plan — writes a lot-based BRANCH.md from the template and completes with track for realization state.
Use when completing a feature, a design step, or before merging — runs a ≥2-peer consensus review and reconciles the findings, instead of a single rubber-stamp pass.
Use when adding or evolving tests for a feature/bugfix — applies the sentropic test-pyramid, scoped-test loop, environment isolation, and AI-flaky policy.
| name | new-route |
| description | Scaffold a new API route following project patterns |
| paths | api/src/routes/** |
| allowed-tools | Read Write Bash Edit Glob Grep |
Reference pattern: api/src/routes/api/admin.ts
requireAuth() + requireWorkspaceAccessRole() or requireWorkspaceEditorRole()api/src/routes/api/index.tsworkspace_id filterapi/tests/api/<name>.test.ts
beforeEach: createAuthenticatedUser('role')afterEach: cleanupAuthData()authenticatedRequest(app, method, path, token, body)