Develop a Feature
Use for implementation work in this repo.
Read
AGENTS.md- the owning layer doc
docs/specs/type-placement.mdonly when type ownership may change$preflight-feature-review
Algorithm
- If you are creating a branch from
main, update localmainfirst, then create the feature branch from that updatedmain. - Run
$preflight-feature-reviewwith the request, intended outcome, known scope, and visible constraints. Let that skill own its review agents. Do not edit before its brief returns. - Treat product behavior as CLI-first. Before adding or changing UI behavior, find the matching CLI command and its existing SDK/API contract. The UI must reuse that existing method, or reuse and extend that same shared method/contract when the feature genuinely needs more data. Do not add a new UI-only API route, browser-only SDK method, or parallel contract for behavior that duplicates a CLI feature.
- Resolve blockers from the brief first. Then implement only in the returned owner, boundary, and canonical path.
- When the feature adds or changes permissions, make the default-grant and rollout decision explicit in the same change instead of leaving it implicit.
- Change the smallest owning surface. Do not add fallback branches, compatibility glue, silent env defaults, public/internal URL mixing, export drift, or test-only seams.
- Update tests in the same diff. Prefer behavior, boundary, integration, or e2e coverage. Delete or rewrite plumbing-mirror tests instead of shaping production code around them.
- After implementation, run owning-package
pnpm lint,pnpm typecheck, andpnpm testwhen applicable, plus only the diff-triggered special checks. Do not manually run repo-widepnpm check,pnpm check:unused,pnpm check:unused:runtime, orpnpm check:ciunless the task explicitly requires them. - Close out with the entry file to read first, checks run, remaining unrun validation, and the user-visible verification flow.