Key Terms
| Term | In one line |
|---|---|
| Plan → Constrain → Validate | The three-beat loop: agree the plan, encode the rules in the repo, verify the output mechanically |
.cursorrules / copilot-instructions.md |
Repo-level standing instructions — the constraint layer, checked into version control |
IMPLEMENTATION_PLAN.md |
The agreed plan the assistant works against, so it can’t quietly redesign mid-task |
AGENTS.md |
Declares the agent roles, boundaries and tools available in the repo |
skills/ + SKILL.md |
Reusable capabilities with YAML frontmatter (name, description) the assistant can invoke |
| Persona | A scoped role definition — reviewer, test-writer, migrator — rather than one general assistant |
| AI-updated PR template | Forces the assistant to state what changed, what it assumed, and what it did not verify |
Numbers That Matter
| Figure | Value | Where it bites |
|---|---|---|
| Constraint layer | 1 file, repo root | .cursorrules is the highest-leverage artifact in the whole practice |
| Review burden | Unchanged | AI-generated code needs more review attention, not less — plan capacity accordingly |
| Rollout | Buddy system, weekly sessions | Pair experienced engineers with beginners; rotate the presenter |
Decision Rules
- Constraints belong in the repository, not in people’s heads. A convention that lives in a wiki is a convention the assistant will violate on every task.
- Plan before generate. If the assistant is writing code before an
IMPLEMENTATION_PLAN.mdexists, you’re reviewing an unbounded diff. - Validate mechanically. Tests, types, linters and CI are the validation layer — not “the reviewer will spot it.” Assume the reviewer is tired.
- Use a persona when the task has a narrow, repeatable shape (review, migrate, write tests). Use a general assistant when exploring.
- Guardrails for AI-assisted coding: never paste secrets or customer data into a prompt; never accept generated code touching auth, crypto or payments without a human expert review; always attribute AI-assisted changes in the PR.
- Training a team: assess current level per person → pair beginners with experienced engineers → weekly knowledge-sharing with a rotating presenter → set explicit skill milestones. Blanket tool rollout without this produces confident nonsense at scale.
Say This Out Loud
“To move a team from ad-hoc prompting to a real AI-SDLC, I inject constraints directly into the repository. A
.cursorrulesfile at the project root carries our stack conventions, our testing requirements and our forbidden patterns, so every engineer’s assistant starts from the same standards. Conventions that live only in a wiki get ignored by both humans and models.”
“The loop is plan, constrain, validate. We agree an implementation plan and check it in, the repo-level rules constrain how the code gets written, and validation is mechanical — types, tests, CI. I don’t rely on a reviewer catching a subtle generated bug at five in the evening.”
“I treat AI-assisted code as needing more review, not less. The productivity gain is real, but it shows up as more code arriving faster, which moves the bottleneck to review. If you don’t plan for that, you’ve just built a faster way to accumulate defects.”