Goal Decomposition
Description
Best practices for decomposing complex goals into executable checkpoints.
Triggers
- goal
- plan
- long-term
- multi-step
- project
- achieve
- milestone
Instructions
Decomposition Principles
- Concrete over abstract — Each checkpoint should produce a tangible artifact
or verifiable outcome, not "think about X"
- 3-10 checkpoints — Too few = checkpoints too complex. Too many = overhead.
- Research before action — First checkpoint should always gather information
- Verify before proceeding — Include verification steps as success_criteria,
not as separate checkpoints
- Front-load unknowns — Put uncertain/risky checkpoints early so failure is cheap
Success Criteria Rules
- Must be objectively verifiable — "file exists at path X", "3 positions found",
"test passes"
- No subjective criteria — avoid "good quality", "well-written"
- Include quantities when possible — "at least 3", "under 500 words"
When to Revise
- New information invalidates assumptions (company isn't hiring)
- A checkpoint reveals the plan is missing steps
- User provides feedback that changes direction
- 2+ checkpoint failures suggest wrong approach
Anti-patterns
- Don't create a goal for tasks completable in <5 tool calls
- Don't make checkpoints that depend on external timing ("wait for response")
— instead pause the goal and set a scheduled reminder to resume
- Don't put all complexity in one checkpoint — if a checkpoint needs 50+ tool
calls, it should be split
Examples
Good Decomposition: Job Application
Goal: "Get a job at company X"
- Research X (culture, stack, recent news) — criteria: summary written
- Find open positions — criteria: 3+ positions listed with URLs
- Tailor resume — criteria: resume file updated, relevant skills highlighted
- Draft cover letter — criteria: cover letter file created, <400 words
- Submit application — criteria: confirmation page screenshot saved
Good Decomposition: Portfolio Website
Goal: "Build me a portfolio website"
- Research design trends and gather requirements — criteria: design brief written
- Set up project (Next.js + deployment target) — criteria: project scaffolded, dev server runs
- Build core pages (home, about, projects) — criteria: 3 pages render with placeholder content
- Add real content and styling — criteria: all sections populated, responsive on mobile
- Deploy to production — criteria: live URL accessible, no console errors
Good Decomposition: Security Audit
Goal: "Audit this codebase for security vulnerabilities"
- Scan dependencies for known CVEs — criteria: dependency report generated
- Review authentication and session handling — criteria: auth flow documented, issues listed
- Check for injection vulnerabilities (SQL, XSS, command) — criteria: each input path tested
- Write audit report with severity ratings — criteria: report file created, findings prioritized
Bad Decomposition
Goal: "Get a job at company X"
- Do research (too vague, no criteria)
- Apply (too broad, should be multiple steps)
- Wait for response (depends on external timing)
Verify
- The deliverable for this phase exists as a concrete artifact (doc, ticket, board, repo) and its location is shared, not described
- Each commitment has an owner name, a due date, and a definition-of-done that someone other than the author could check
- Risks are listed with likelihood/impact and a named mitigation, not as a generic 'risks: TBD' bullet
- Dependencies on other teams/vendors/agents are explicit; an ack from each dependency is recorded or marked 'pending'
- Success criteria for the next phase are numeric or otherwise objectively testable
- A rollback / kill-switch / 'we will stop if X' criterion is written down before work starts
Notes
- Always check if a goals/SKILL.md is relevant before creating a goal
- The goal system handles persistence, context, and auto-continuation automatically
- Use goal_status to check progress at any time
1---2name: goals3description: Goal Decomposition4---5# Goal Decomposition67## Description8Best practices for decomposing complex goals into executable checkpoints.910## Triggers11- goal12- plan13- long-term14- multi-step15- project16- achieve17- milestone1819## Instructions2021### Decomposition Principles221. **Concrete over abstract** — Each checkpoint should produce a tangible artifact23 or verifiable outcome, not "think about X"242. **3-10 checkpoints** — Too few = checkpoints too complex. Too many = overhead.253. **Research before action** — First checkpoint should always gather information264. **Verify before proceeding** — Include verification steps as success_criteria,27 not as separate checkpoints285. **Front-load unknowns** — Put uncertain/risky checkpoints early so failure is cheap2930### Success Criteria Rules31- Must be **objectively verifiable** — "file exists at path X", "3 positions found",32 "test passes"33- No subjective criteria — avoid "good quality", "well-written"34- Include quantities when possible — "at least 3", "under 500 words"3536### When to Revise37- New information invalidates assumptions (company isn't hiring)38- A checkpoint reveals the plan is missing steps39- User provides feedback that changes direction40- 2+ checkpoint failures suggest wrong approach4142### Anti-patterns43- Don't create a goal for tasks completable in <5 tool calls44- Don't make checkpoints that depend on external timing ("wait for response")45 — instead pause the goal and set a scheduled reminder to resume46- Don't put all complexity in one checkpoint — if a checkpoint needs 50+ tool47 calls, it should be split4849## Examples5051### Good Decomposition: Job Application52Goal: "Get a job at company X"531. Research X (culture, stack, recent news) — criteria: summary written542. Find open positions — criteria: 3+ positions listed with URLs553. Tailor resume — criteria: resume file updated, relevant skills highlighted564. Draft cover letter — criteria: cover letter file created, <400 words575. Submit application — criteria: confirmation page screenshot saved5859### Good Decomposition: Portfolio Website60Goal: "Build me a portfolio website"611. Research design trends and gather requirements — criteria: design brief written622. Set up project (Next.js + deployment target) — criteria: project scaffolded, dev server runs633. Build core pages (home, about, projects) — criteria: 3 pages render with placeholder content644. Add real content and styling — criteria: all sections populated, responsive on mobile655. Deploy to production — criteria: live URL accessible, no console errors6667### Good Decomposition: Security Audit68Goal: "Audit this codebase for security vulnerabilities"691. Scan dependencies for known CVEs — criteria: dependency report generated702. Review authentication and session handling — criteria: auth flow documented, issues listed713. Check for injection vulnerabilities (SQL, XSS, command) — criteria: each input path tested724. Write audit report with severity ratings — criteria: report file created, findings prioritized7374### Bad Decomposition75Goal: "Get a job at company X"761. Do research (too vague, no criteria)772. Apply (too broad, should be multiple steps)783. Wait for response (depends on external timing)7980## Verify8182- The deliverable for this phase exists as a concrete artifact (doc, ticket, board, repo) and its location is shared, not described83- Each commitment has an owner name, a due date, and a definition-of-done that someone other than the author could check84- Risks are listed with likelihood/impact and a named mitigation, not as a generic 'risks: TBD' bullet85- Dependencies on other teams/vendors/agents are explicit; an ack from each dependency is recorded or marked 'pending'86- Success criteria for the next phase are numeric or otherwise objectively testable87- A rollback / kill-switch / 'we will stop if X' criterion is written down before work starts8889## Notes90- Always check if a goals/SKILL.md is relevant before creating a goal91- The goal system handles persistence, context, and auto-continuation automatically92- Use goal_status to check progress at any time