agent-health
Reads production/traces/agent-metrics.jsonl and displays a per-agent performance summary table for the current or a specified session. Highlights agents with…
Resolves mismatches between an approved spec and implementation reality by proposing controlled spec changes before code or plan changes continue.
$ npx -y skills add tranhieutt/software_development_department --skill spec-evolution --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/spec-evolutionContext preview
The summary Claude sees to decide when to auto-load this skill.
Resolves mismatches between an approved spec and implementation reality by proposing controlled spec changes before code or plan changes continue.
name: spec-evolution type: workflow description: "Resolves mismatches between an approved spec and implementation reality by proposing controlled spec changes before code or plan changes continue." argument-hint: "[spec-path-and-mismatch]" user-invocable: true allowed-tools: Read, Glob, Grep, Bash context: fork effort: 4 agent: technical-director when_to_use: "Use when code, tests, architecture, user feedback, or review findings contradict an approved spec; when a spec needs to evolve after implementation evidence; or when spec/code drift is suspected."
`spec-evolution` keeps specs alive as the source of truth. When implementation reality teaches that an approved spec is incomplete, wrong, obsolete, or conflicting, this workflow resolves the mismatch deliberately before more code is written.
This is not a shortcut around `spec-driven-development`. It is the controlled path for changing a spec after evidence shows the current spec no longer matches the project.
Do not silently change code to fit reality or silently change the spec to fit code. Resolve the mismatch explicitly, then continue.
If the mismatch affects behavior, architecture, data, security, release policy, or user-visible workflow, user approval is required before implementation continues.
Use this workflow when:
Do not use it for:
`test-driven-development` or `diagnose`.
Stop implementation, planning, review approval, or release progression until the mismatch is classified.
State:
Spec evolution gate: execution paused because <spec> and <evidence> disagree.
Read the minimum required context:
contradicts it
`/trace-history` to avoid repeating or reversing prior decisions without evidence
Do not infer drift from memory. Cite the concrete file, section, test, command, or review finding.
Use one primary classification:
| Type | Meaning | Default action | | --- | --- | --- | | Spec Gap | Required behavior was never specified | Amend spec before planning/code | | Spec Error | Spec requirement is wrong, unsafe, or impossible | Propose correction and rationale | | Code Drift | Code differs from correct spec | Keep spec, fix code with TDD | | Reality Change | External constraint changed after approval | Update spec and plan | | Scope Change | User wants a new behavior | Treat as new spec delta | | Architecture Drift | Implementation violates architecture or ADR | Escalate to ADR or technical-director |
If more than one type applies, list secondary types but choose the one that controls the next action.
Present options, not a hidden decision:
wrong.
outside current scope.
data model, security, deployment, or cross-team contracts.
For each option, include impact on:
Ask for explicit approval before changing any spec or continuing implementation when the evolution changes behavior, architecture, data, security, release policy, or acceptance criteria.
Approval must name the selected option. If approval is absent, stop.
After approval:
route to `review-spec`.
`test-driven-development` with a regression or compliance test.
## Spec Evolution: [Topic] **Spec Source:** [path/section] **Evidence Source:** [code/test/review/user request/runtime evidence] **Mismatch Type:** Spec Gap | Spec Error | Code Drift | Reality Change | Scope Change | Architecture Drift ### Mismatch [One precise paragraph explaining the disagreement.] ### Options 1. **Keep spec, change code:** [impact, verification, risk] 2. **Amend spec, re-plan/re-test:** [impact, verification, risk] 3. **Split follow-up:** [impact, verification, risk] 4. **Escalate to ADR:** [when applicable, or "Not needed"] ### Recommendation [Selected option and why.] ### Approval Needed [Exact approval sentence needed before edits/implementation continue.]
| Thought | Required correction | | --- | --- | | "I'll just update the code; the spec was probably stale." | Prove and classify the mismatch first. | | "I'll update the spec after the fix." | Spec changes before implementation continuation, not after. | | "
Repo: tranhieutt/software_development_department
Reads production/traces/agent-metrics.jsonl and displays a per-agent performance summary table for the current or a specified session. Highlights agents with…
Provides the vendored agent-style v0.3.5 prose rule pack as a portable Claude skill. Use when installing, syncing, applying, or auditing SDD Agent-Style…
Provides Angular best practices for components, modules, services, and reactive patterns. Use when working with Angular TypeScript files, component templates,…
Records unexpected API behaviors, undocumented caveats, version bugs, or non-obvious workarounds into .claude/memory/annotations.md. Use immediately when an…
Defines REST and GraphQL API contracts including endpoints, request/response schemas, auth flows, and versioning strategy. Use when designing a new API,…
Manages the ADR (Architecture Decision Record) registry. Use when recording tech-stack choices, design patterns, or infrastructure decisions with context,…