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…
Investigates bugs, failing tests, build failures, performance issues, and unexpected behavior with root-cause discipline before any fix is proposed or implemented.
$ npx -y skills add tranhieutt/software_development_department --skill systematic-debugging --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/systematic-debuggingContext preview
The summary Claude sees to decide when to auto-load this skill.
Investigates bugs, failing tests, build failures, performance issues, and unexpected behavior with root-cause discipline before any fix is proposed or implemented.
name: systematic-debugging type: workflow description: "Investigates bugs, failing tests, build failures, performance issues, and unexpected behavior with root-cause discipline before any fix is proposed or implemented." argument-hint: "[bug-description-error-output-or-failing-command]" user-invocable: true allowed-tools: Read, Glob, Grep, Bash context: fork effort: 3 agent: lead-programmer when_to_use: "Use for any technical issue before proposing fixes: bugs, failing tests, build failures, unexpected behavior, integration failures, performance regressions, flaky behavior, or repeated failed fixes."
`systematic-debugging` prevents guess-and-check fixes. It requires the agent to understand and verify the root cause before changing code.
Use it for any technical issue before proposing or implementing a fix. If the issue is complex, intermittent, unfamiliar, or has resisted multiple fixes, escalate to `diagnose`.
No fixes before root-cause investigation.
Seeing a symptom is not the same as knowing the cause. Do not edit production code until the root cause is stated, supported by evidence, and tied to a verification path.
Add one stronger rule:
No root-cause claim without a feedback loop you trust.
If the bug cannot be reproduced or bounded by a reliable pass/fail signal, investigation is still incomplete. Build the loop first.
Use for:
Escalate to `diagnose` when:
Record the exact observed failure:
Do not paraphrase away important details such as paths, line numbers, status codes, exception names, or assertion diffs.
Create the fastest reliable pass/fail signal for the exact symptom before deeper analysis. Prefer, in order:
1. Focused failing test at the closest real behavior seam 2. Narrow failing command or script 3. Route, fixture, or API reproduction 4. Replay harness for captured payload, log, or trace 5. Throwaway harness or browser script if no lighter seam exists
Improve the loop before moving on:
If you cannot build a credible loop, stop and ask for logs, steps, data, access, or permission for temporary instrumentation. Do not form a confident hypothesis from vibes.
Run the loop and confirm:
Inspect the narrow change surface:
Do not assume the most recent edit caused the bug. Use it as one candidate.
Find where the bad value, failed state, or unexpected behavior first appears.
For multi-component systems, inspect each boundary:
Examples of boundaries: browser -> API, API -> service, service -> database, queue -> worker, CI job -> build script, test harness -> app runtime.
When needed, add temporary diagnostics only if they are safe, scoped, and removed before completion. Do not leave debug logs in production paths.
Find a nearby working example in the same codebase or documented standard.
Compare:
List the meaningful differences. Small differences count until ruled out.
State one falsifiable hypothesis:
Hypothesis: <root cause> because <evidence>. It can be falsified by <test/check>.
Do not propose a fix until this sentence is specific. Vague examples such as "state is wrong" or "race condition" are not sufficient.
The hypothesis must be distinguishable by the loop from Step 2. If the same loop result would fit several explanations, sharpen the loop before continuing.
Use one variable at a time:
If refuted, update the evidence and form a new hypothesis. Do not stack fixes.
If three hypotheses or fix attempts fail, stop and escalate to `diagnose` or `architecture-decision-records` if the pattern itself appears wrong.
Once root cause is confirmed:
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,…