with one click
new-route
Scaffold a new API route following project patterns
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Scaffold a new API route following project patterns
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
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)