Skip to main content
HS
HiSETSuccess
LeetCode Prep

Agent Engineering

From autocomplete user to superstar developer — coding agents, context, skills, MCP, hooks, spec-driven and parallel workflows, and building your own agents.

Chapter 3 · 7 lessons

Superstar Practices

The habits that separate 10× from busy: spec-driven development, TDD with agents, parallel agents on worktrees, model routing and cost, debugging with evidence, and agents in CI.

Cursor · Claude Code · OpenAI Codex · GitHub Copilot

Show all 7 lessons

Lesson 1 of 7

Spec-Driven Development

The single biggest multiplier is not a tool — it is writing down what 'done' means before the agent starts. Agents are excellent at executing a clear spec and confidently wrong on a vague one. A spec turns a guessing game into a checklist the agent (and your reviewer) can verify.

Spec → plan → tasks → implement → verify
spec.md        WHAT and WHY: goal, users, constraints, acceptance criteria
   │           (you write or review this — 10 minutes)
   ▼
plan.md        HOW: files, data model, risks  (agent drafts, you approve)
   │
   ▼
tasks.md       small, ordered, independently testable steps
   │
   ▼
implement      one task per run / thread; tests first
   │
   ▼
verify         acceptance criteria → tests → diff review
Spec sectionExample
GoalUsers can export their study plan as a PDF from /study
Non-goalsNo email delivery; no custom themes
ConstraintsServer-side render; no new dependencies over 200 KB; reuse PlanCard
Acceptance criteriaExport button visible when plan has ≥ 1 task; PDF includes dates; works offline-cached
Test planUnit test for formatter; Playwright test clicks Export and checks download
  • GitHub Spec Kit and AWS Kiro popularized this flow (spec → plan → tasks); you can run it with plain Markdown in any tool
  • Plan mode in Cursor, Claude Code, and Copilot produces the plan step for you — review it like a design doc
  • Keep specs in the repo (docs/specs/) so cloud agents and teammates get the same input

Signal

'I spend ten minutes on acceptance criteria so the agent can spend an hour without me' is the sentence that separates agent drivers from chat users.