agent-health
Reads production/traces/agent-metrics.jsonl and displays a per-agent performance summary table for the current or a specified…
Saves current working context to production/session-state/active.md AND writes an atomic per-task checkpoint to .tasks/checkpoints/[task_id].md. Run before any major context reset, when context usage exceeds 60%, or when ending a work session.
Claude Code
$ npx -y skills add tranhieutt/software_development_department --skill save-state --agent claude-code
Codex
$ npx skills add tranhieutt/software_development_department --skill save-state -a codex -y
Cursor
$ npx skills add tranhieutt/software_development_department --skill save-state -a cursor -y
Gemini CLI
$ npx skills add tranhieutt/software_development_department --skill save-state -a gemini-cli -y
GitHub Copilot
$ npx skills add tranhieutt/software_development_department --skill save-state -a github-copilot -y
OpenCode
$ npx skills add tranhieutt/software_development_department --skill save-state -a opencode -y
Windsurf
$ npx skills add tranhieutt/software_development_department --skill save-state -a windsurf -y
name: save-state type: workflow description: "Saves current working context to production/session-state/active.md AND writes an atomic per-task checkpoint to .tasks/checkpoints/[task_id].md. Run before any major context reset, when context usage exceeds 60%, or when ending a work session." argument-hint: "[task_id] [optional note]" user-invocable: true allowed-tools: Read, Write, Glob, Bash context: main effort: 3 agent: technical-director when_to_use: "Use before any major context reset, when context usage exceeds 60%, or when ending a session. If a task_id is provided, also writes an atomic checkpoint to .tasks/checkpoints/ for fine-grained recovery via /resume-from."
Dump the current working context into `production/session-state/active.md` as a session checkpoint, AND write an atomic per-task checkpoint to `.tasks/checkpoints/[task_id].md` when a task ID is provided.
Session checkpoint is automatically read by `session-start.sh` at the next session start and surfaced by `pre-compact.sh` before context compaction. Per-task checkpoints are used by `/resume-from [task_id]` to restore granular cognitive state at the exact point of failure.
Parse `$ARGUMENTS` to extract:
Before writing anything, collect the following from the current conversation and working state:
If a `note` was parsed from `$ARGUMENTS`, append it to the "Notes" section.
Are there any lessons learned, coding patterns established, constraints added, or technical decisions made in this session that apply globally to the project? If so, before writing active.md, extract them to the `.claude/memory/` directory:
Overwrite the file with this structure:
# Session State > Saved: [ISO timestamp] > Branch: [current git branch] ## Current Task [One sentence describing what is being worked on] <!-- STATUS --> Epic: [epic name or leave blank] Feature: [feature name or leave blank] Task: [specific task or leave blank] <!-- /STATUS --> ## Progress (This Session) [Bulleted list of what was completed] ## Key Decisions Made [Bulleted list — include the decision AND the rationale. These survive context loss.] ## Files Being Actively Worked On [List of files currently modified or in progress] ## Open Questions / Blockers [List of unresolved items. Mark with [BLOCKED] if waiting on someone.] ## Next Step [The single most important next action to take when resuming] ## Notes [$ARGUMENTS if provided, otherwise omit this section]
If a `task_id` was parsed in Step 1, write `.tasks/checkpoints/[task_id].md`:
--- task_id: [task_id] agent_id: [agent currently executing] saved_at: [ISO timestamp] status: in_progress retry_count: 0 backoff_next_s: 2 --- # Checkpoint: [task_id] ## Output Snapshot [Concise snapshot of the last significant output — last file written, last test result, last command output, or last API response shape. Max 10 lines.] ## Completed Steps [Bulleted list of sub-steps already done within this task] ## Next Step [The exact next action to resume from — be specific enough that a cold-start agent can continue] ## Open Questions [Unresolved items blocking progress, if any] ## Files Modified [List of files touched so far in this task]
Print:
✅ Session state saved → production/session-state/active.md [If task checkpoint written]: ✅ Atomic checkpoint saved → .tasks/checkpoints/[task_id].md [If memory was extracted]: ✅ Durable memories updated → .claude/memory/MEMORY.md To resume this task: /resume-from [task_id] To resume session: read production/session-state/active.md first
---
> The `session-start.sh` hook automatically detects and previews `active.md` at the start of each new session. > The `pre-compact.sh` hook reads it before compaction to inject it into the summary. > Use `/resume-from [task_id]` to recover a specific task without re-reading the full session.
Reads production/traces/agent-metrics.jsonl and displays a per-agent performance summary table for the current or a specified…
Provides the vendored agent-style v0.3.5 prose rule pack as a portable Claude skill. Use when installing, syncing, applying, or…
Provides Angular best practices for components, modules, services, and reactive patterns. Use when working with Angular…
Records unexpected API behaviors, undocumented caveats, version bugs, or non-obvious workarounds into…
Defines REST and GraphQL API contracts including endpoints, request/response schemas, auth flows, and versioning strategy. Use…
Manages the ADR (Architecture Decision Record) registry. Use when recording tech-stack choices, design patterns, or…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.