implement-spec

Implement the result of /to-spec and /to-tickets in code.

npx skills add https://github.com/mattpocock/skills --skill implement-spec

You have been provided a spec. This spec should have tickets associated with it, describing how to implement the spec.

The issue tracker should have been provided to you. If not, tell the user to run /setup-matt-pocock-skills.

The goal is the entire spec implemented on a single integration branch, with every ticket resolved the way the issue tracker closes work.

The tickets are not a list of steps. They are a task graph with blocking relationships between them. This means there is always a frontier of tickets which are ready to be grabbed.

Start every subagent with a fresh context window.

Communication to and from subagents should be sparse. Communicate primarily through context pointers: to the spec, tickets, research notes, and previous commits. Don't duplicate information already available via pointers.

Implementer subagents should be run in the background where possible for maximum concurrency.

Steps

  1. Read the spec and tickets to understand the task graph.

  2. (optional) Use an exploration subagent to conduct any exploration required by the tickets - relevant codebase files or external documentation. Ensure the exploration subagent can save files - it should save its markdown notes in a directory outside the repo, accessible by all future subagents. This lets implementer subagents focus on implementation rather than exploration.

  3. Create the integration branch. If the issue tracker closes work through PRs, or the user asks for one, open a draft PR after the first merge in step 5 (a branch with no commits ahead of main can't open one), marked as closing the spec and tickets.

  4. Use a fresh implementer subagent for each ticket, each in its own worktree on its own branch. Each implementer subagent:

    • confirms its worktree is based on the integration branch before starting, and resets onto it if not;
    • calls the Skill tool with tdd to build the ticket;
    • merges the integration branch tip into its own branch before reporting done
  5. Once an implementer subagent completes, merge its work to the integration branch with a merger subagent.

  6. If this changes the frontier of available tickets, kick off more implementer subagents to work on the new tickets. This allows for maximum concurrency.

  7. Once all tickets are complete, call the Skill tool with code-review on the integration branch. Fix all issues raised by the code review in a single fresh implementer subagent.

  8. If a draft PR exists, mark it ready for review. Otherwise, resolve each ticket the way the issue tracker closes work, and report the integration branch.

  9. Clean up all implementer subagent worktrees.

Plus de skills de mattpocock

ask-matt
mattpocock
Demandez quelle compétence ou quel flux correspond à votre situation. Un routeur sur les compétences invoquées par l'utilisateur dans ce dépôt.
communicationresearchproductivity
chief-of-staff
mattpocock
Pursue a long-running goal in a single session by co-ordinating subagents.
productivityproject-managementcommunication
claude-handoff
mattpocock
Transférer la conversation en cours à un nouvel agent en arrière-plan qui reprend le travail immédiatement.
codebase-design
mattpocock
Vocabulaire partagé pour concevoir des modules profonds. À utiliser lorsque l'utilisateur souhaite concevoir ou améliorer l'interface d'un module, trouver des opportunités d'approfondissement, décider où placer une jointure, rendre le code plus testable ou navigable par IA, ou lorsqu'une autre compétence a besoin du vocabulaire des modules profonds.
designdevelopmentcode-review
code-review
mattpocock
Examinez les modifications depuis un point fixe (commit, branche, tag ou merge-base) selon deux axes — Standards (le code respecte-t-il les normes de codage documentées de ce dépôt ?) et Spécifications (le code correspond-il à ce que demandait le problème/PRD d'origine ?). Exécute les deux examens dans des sous-agents parallèles et les rapporte côte à côte. À utiliser lorsque l'utilisateur souhaite examiner une branche, une PR, des modifications en cours, ou demande de « vérifier depuis X ».
testingdevelopmentcode-review
design-an-interface
mattpocock
Générer plusieurs conceptions d'interface radicalement différentes pour un module en utilisant des sous-agents parallèles. À utiliser lorsque l'utilisateur souhaite concevoir une API, explorer des options d'interface, comparer des formes de modules, ou mentionne "concevoir deux fois".
developmentdesignapi
diagnosing-bugs
mattpocock
Boucle de diagnostic pour les bugs complexes et les régressions de performance. À utiliser lorsque l'utilisateur dit « diagnostique »/« débogue ceci », ou signale quelque chose de cassé/qui génère une erreur/qui échoue/lent.
testingdevelopmentcode-review
domain-modeling
mattpocock
Construire et affiner le modèle de domaine d'un projet. Utiliser lorsque l'utilisateur souhaite définir la terminologie du domaine ou un langage omniprésent, enregistrer une décision architecturale, ou lorsqu'une autre compétence doit maintenir le modèle de domaine.
designdevelopmentdocument