Skip to content

Latest commit

 

History

History
102 lines (79 loc) · 8.26 KB

agent-skills.md

File metadata and controls

102 lines (79 loc) · 8.26 KB
type ProcessSpec
summary Maps bundled agent skills to the phases of the spec-driven delivery loop.
id SPEC-0007
spec-status active
last-updated 2026-05-19
aliases
SPEC-0007

Agent skills

Summary

This spec tells agents which bundled skills to invoke at each phase of the delivery loop. The skills ship with the spec-driven starter and live canonically under .agents/skills/. Harnesses (Claude Code, Codex, Cursor, etc.) discover skills from there directly or via their own mirrors; when invoking a skill or spawning a sub-agent that uses one, name the skill by name and let the harness resolve the location.

Goals

  • give agents a single discovery surface for the workflow
  • keep skill invocation aligned with development-loop.md
  • make it obvious when a skill applies and when to stop
  • make neighboring-skill boundaries explicit enough to reduce routing mistakes

Non-Goals

  • documenting CLI flags for rzm agent (that lives in the managed Rhizome guidance block inside AGENTS.md / CLAUDE.md)
  • replacing the SKILL.md bodies; this file routes, it does not re-explain

Requirements

Must

  • Load and consult this spec before starting new work in a spec-driven delivery repo.
  • Use the phase → skill mapping below unless the user explicitly asks for something else.
  • Stop at phase boundaries the skill's Output section marks as hard stops (especially after effort-new).
  • When a phase skill declares a required saved-query recipe or required discovery pattern, run it before making the phase decision it protects.
  • specify MUST search related contracts before creating a new spec; update or reference an existing spec when the requested behavior belongs there.
  • Effort-bearing phase skills MUST load the current effort's frozen spec set and frozen story scope before planning, implementation, audit, backport, or compound closure decisions.
  • Skills that create typed note ids MUST use rzm agent next-id when the live surface advertises it, and mirror the allocated id into aliases: according to the type's identifier contract.
  • Skills that edit specs referenced by planned or active efforts MUST account for frozen-scope-drift; run rzm agent validate --check frozen-scope-drift where the phase contract calls for drift evidence.
  • Code-evidence discovery MAY require semantic-query and file-context patterns in addition to saved GraphQL query recipes until a multi-tool recipe format exists.
  • Effort closure MUST run the alignment-audit, backport, and compound skills in that order, and each MUST be invoked as a separate sub-agent loading the named skill in its own context. The implement-phase agent spawns the alignment-audit sub-agent with the effort note path; the audit sub-agent hands off to backport; backport hands off to compound. None of the closure skills run inline inside implement, and implement never flips an effort's status to complete.

Phase → skill mapping

Phase Skill Purpose
Spec specify Write or update a spec grounded in codebase context
Effort effort-new Create the effort note and freeze the spec set
Plan plan Produce a decision-complete implementation plan in the effort
Execute implement Execute the plan and keep docs in sync
Audit alignment-audit Run typed alignment audits and produce a report
Backport backport Push durable learnings that changed authoritative truth back into specs, reference docs, code docs, or skills
Compound compound Turn repeated friction, missing evidence, and agent blockers into durable future-capacity work

Companion skills (not phase-gated)

  • development-loop — route broad "start/resume/take this through the loop" requests to the right phase skill without duplicating phase instructions.
  • rhizome-onboard — orient quickly before planning, implementation, or note edits when the request is high-level or the subsystem is unfamiliar.
  • debugging — investigate bugs with a root-cause-first loop and consult debugging-workflow.md before proposing fixes.
  • rhizome-review-feedback — verify review comments against code and durable artifacts before changing implementation.
  • code-docs — tighten in-code documentation hygiene when the focus is doc quality rather than shipping behavior.
  • foundation-review — run a guided review after a foundation-heavy phase before later phases build on top of it.
  • ingest-transcript — turn transcripts or structured meeting notes into ontology-backed specs, reference docs, domain notes, and effort-context updates with provenance.
  • quality-gates-check — run the repo's local quality gates and report pass/fail/deferred checks explicitly.
  • rhizome-note-authoring — use when work becomes primarily note-shape authoring in ontology-backed families.
  • rhizome-ontology — use when the ontology itself or the note-family contract needs to change.
  • rhizome-skill-creator — use when the deliverable is a repo-local skill or a revision to skill routing/instructions.

Starter extensions

When another active starter extends spec-driven, final installed skills may include additional native instructions rendered from starter overlays. The final SKILL.md files are the authority; agents should not look for overlay markers at runtime.

For complex-domain, use these added skills when the work depends on source-backed requirements, feature areas, domain concepts, processes, workflows, business rules, or traceability views:

  • complex-domain — route domain and requirements workflows.
  • requirements-ingest — turn source material into candidate requirements with provenance.
  • requirements-curation — review, accept, reject, merge, supersede, or re-review requirements.
  • domain-modeling — maintain feature areas, bounded contexts, domain types, business rules, and questions.
  • workflow-mapping — model processes, user workflows, variants, and rule points.
  • spec-from-domain — draft or revise specs from deterministic domain and requirement packs.
  • traceability-review — audit requirement/spec/story/source coverage and stale knowledge.
  • domain-backport — reconcile delivery outcomes back into requirements, sources, and domain notes.

Complex-domain overlays augment specify, effort-new, plan, implement, alignment-audit, backport, compound, debugging, and ingest-transcript so those phases load saved domain recipes before making protected decisions.

Boundary cues

  • specify vs plan: use specify while desired behavior or scope is still moving; use plan once requirements are stable and the task is technical execution design.
  • plan vs implement: use plan to decide approach, task graph, and checks; use implement only after the plan is decision-complete and approved.
  • debugging vs implement: use debugging while the failure mode or root cause is still under investigation; use implement once the fix shape is clear.
  • implement vs backport: use implement to change behavior; use backport after execution when durable specs, reference docs, code docs, or skills must catch up to reality.
  • backport vs compound: use backport for known spec/docs reconciliation; use compound when the main output is future-capacity work such as validation paths, evidence rules, skills, scripts, access paths, or follow-up efforts.
  • alignment-audit vs quality-gates-check: use alignment-audit for spec/doc/link/drift validation; use quality-gates-check for local build, lint, typecheck, and test gates.
  • rhizome-review-feedback vs implement: use rhizome-review-feedback to evaluate what a review comment really requires; use implement only after the requested change has been verified against repo reality.
  • code-docs vs rhizome-note-authoring: use code-docs when the main artifact lives beside code; use rhizome-note-authoring when the deliverable is a long-lived standalone note.
  • rhizome-onboard is a prep skill: use it to gather context, then hand off to the skill that owns the actual deliverable.
  • development-loop is a coordinator skill: use it only until the current phase is known, then hand off to the owning phase or companion skill.

Open Questions

  • whether an optional reporting bundle (diff-specs, stand-up, remaining-items) should ship once the core loop stabilizes