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…
Reads and filters production/traces/decision_ledger.jsonl to display a timeline of agent decisions. Supports filtering by agent, risk_tier, task_id, outcome, and date range.
$ npx -y skills add tranhieutt/software_development_department --skill trace-history --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/trace-historyContext preview
The summary Claude sees to decide when to auto-load this skill.
Reads and filters production/traces/decision_ledger.jsonl to display a timeline of agent decisions. Supports filtering by agent, risk_tier, task_id, outcome, and date range.
name: trace-history type: workflow description: "Reads and filters production/traces/decision_ledger.jsonl to display a timeline of agent decisions. Supports filtering by agent, risk_tier, task_id, outcome, and date range." argument-hint: "[--agent <name>] [--risk High|Medium|Low] [--task <task_id>] [--outcome pass|fail|blocked] [--since YYYY-MM-DD] [--last <N>]" user-invocable: true allowed-tools: Read, Bash effort: 1 when_to_use: "Use to audit why a decision was made, debug a failed task, review high-risk choices, or produce a timeline of agent activity for a session or sprint."
Read `production/traces/decision_ledger.jsonl` and display a filtered, human-readable timeline of agent decisions.
The rendering and filtering logic is implemented in `scripts/trace-history.sh`. This skill delegates to that script — do NOT re-implement parsing here.
Invoke exactly once, passing `$ARGUMENTS` through unchanged:
bash scripts/trace-history.sh $ARGUMENTS
The script handles: flag parsing, filtering, rendering (pretty or JSON), empty-ledger short-circuit, and invalid-argument rejection. Return the script's stdout verbatim to the user.
| Flag | Default | Meaning | | :--- | :--- | :--- | | `--agent <name>` | all | Filter by `agent_id` | | `--risk <High\|Medium\|Low>` | all | Filter by `risk_tier` | | `--task <id>` | all | Substring match on `task_id` | | `--outcome <pass\|fail\|blocked\|skipped>` | all | Filter by `outcome` | | `--since <YYYY-MM-DD>` | no limit | Only entries with `ts >= date` | | `--last <N>` | 20 | Keep last N after other filters | | `--format <pretty\|json>` | pretty | Output format |
**Pretty (default):** timeline with risk badges (🔴🟡🟢) and outcome emojis (✅❌⛔⏭️), grouped with separators and totals. Failed/blocked entries trigger a `/resume-from` hint automatically.
**JSON:** raw matching entries as a JSON array — use when piping to another tool.
The script emits `📭` messages for an empty ledger or zero-match filter. Return those messages as-is; do not fabricate data.
---
Agents append one JSON line per significant decision to `production/traces/decision_ledger.jsonl`.
**Append format:**
{"ts":"2026-04-16T10:30:00Z","session":"main","agent_id":"backend-developer","task_id":"042","request":"Choose JWT signing algorithm","reasoning":"RS256 supports multi-service verification without sharing secrets","choice":"RS256 over HS256","outcome":"pass","risk_tier":"Medium","duration_s":18}**When to write a ledger entry (per coordination-rules.md Rule 15):**
**Low-risk decisions** (trivial style choices, obvious fixes) may be omitted to keep the ledger focused on decisions worth auditing.
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,…