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…
Generates missing design or architecture documentation by working backwards from existing code or prototypes. Use when documentation is missing for existing code or when the user mentions documenting existing implementation or reverse engineering docs.
$ npx -y skills add tranhieutt/software_development_department --skill reverse-document --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/reverse-documentContext preview
The summary Claude sees to decide when to auto-load this skill.
Generates missing design or architecture documentation by working backwards from existing code or prototypes. Use when documentation is missing for existing code or when the user mentions documenting existing implementation or reverse engineering docs.
name: reverse-document type: workflow description: "Generates missing design or architecture documentation by working backwards from existing code or prototypes. Use when documentation is missing for existing code or when the user mentions documenting existing implementation or reverse engineering docs." argument-hint: "<type> <path> (e.g., 'design src/api/auth' or 'architecture src/core')" user-invocable: true allowed-tools: Read, Glob, Grep, Write, Edit, Bash effort: 3 when_to_use: "Use when documentation is missing for existing code, a feature was built without a design doc, or the user needs to formalize an existing implementation into design or architecture documentation."
This skill analyzes existing implementation (code, prototypes, systems) and generates appropriate design or architecture documentation. Use this when:
---
**Format**: `/reverse-document <type> <path>`
**Type options**:
**Path**: Directory or file to analyze
**Examples**:
/reverse-document design src/api/payment /reverse-document architecture src/core/entity-component /reverse-document concept prototypes/vehicle-combat
**Read and understand the code/prototype**:
**For design docs (PRD):**
**For architecture docs (ADR):**
**For concept docs (prototype analysis):**
**DO NOT** just describe the code. **ASK** about intent:
**Design questions**:
**Architecture questions**:
**Concept questions**:
Before drafting, show what you discovered:
I've analyzed src/api/auth/. Here's what I found: MECHANICS IMPLEMENTED: - 3-hit combo system with timing windows - Guard-break mechanic (heavy attack vs blocking enemy) - Stamina system (depletes on attack/dodge, regens when idle) - Stagger system (builds up, triggers vulnerable state) FORMULAS DISCOVERED: - Damage = Base * (1 + StrengthScaling * Level) - Stagger buildup = AttackStaggerValue / (Enemy.Poise * 0.5) - Stamina cost = BaseStaminaCost * (1 - EfficiencyBonus) UNCLEAR INTENT AREAS: 1. Stamina system — pacing or resource management? 2. Stagger — core pillar or supporting feature? 3. Damage scaling — power fantasy or needs tuning? Before I draft the design doc, could you clarify these points?
Wait for user to clarify intent before drafting.
Based on type, use appropriate template:
| Type | Template | Output Path | |------|----------|-------------| | `design` | `templates/design-doc-from-implementation.md` | `design/docs/[system-name].md` | | `architecture` | `templates/architecture-doc-from-code.md` | `docs/architecture/[decision-name].md` | | `concept` | `templates/concept-doc-from-prototype.md` | `prototypes/[name]/CONCEPT.md` or `design/concepts/[name].md` |
**Draft structure**:
**Collaborative protocol**:
I've drafted the combat system design doc based on your code and clarifications. [Show key sections: Overview, Mechanics, Formulas, Design Intent] ADDITIONS I MADE: - Documented stamina as "pacing mechanic" per your clarification - Added edge cases not in code (what if stamina hits 0 mid-combo?) - Flagged balance concern: exponential damage scaling at high levels SECTIONS MARKED AS INCOMPLETE: - "Enemy AI interaction with stagger" (not fully implemented yet) - "Weapon variety and scaling" (only sword implemented so far) May I write this to design/docs/combat-system.md?
Wait for approval. User may request changes before writing.
When approved, write the file with special markers:
--- status: reverse-documented date: 2026-02-13 verified-by: [User name] --- # Combat S
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,…