/claude-swe-workflows:pre-compactfrom claude-swe-workflows
Performs pre-compaction housekeeping: updates persistent memory, checks git hygiene, identifies trash, and produces an SBAR go/no-go report before /compact.
Ships in claude-swe-workflows. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The user is about to run /compact. Compaction destroys conversation
context. Anything important from this session that is not persisted
somewhere durable — memory files, commits, tickets, code, the issue
tracker — is lost.
This skill is the last-chance pass to capture session state. Walk a fixed checklist as a floor, then use judgment for anything the checklist does not anticipate, and end with an SBAR-formatted go/no-go report.
Persist before you compact; ask rather than guess. What will matter next session goes into memory, a commit (with permission), or the SBAR. When unsure whether something is trash, abandoned, or important, ask the user.
Updating persistent memory is the core reason this skill exists. The
user invokes /pre-compact because they want memory written before
compaction. Do not skip this step or treat it as conditional.
Re-scan the session for facts worth saving across conversations. Follow the memory conventions in effect; update rather than duplicate.
Run git status and assess:
git commit.Do not commit or stage on the user's behalf without explicit per-invocation permission. Match the scope of any granted permission exactly. Standing rules from CLAUDE.md still apply.
Identify candidate trash:
/tmp/*,
*.bak, ad-hoc test scripts, debug dumps)scratch.*, debug.*,
tmp_*, nohup.out)For each candidate:
A false delete loses the user's work-in-progress. A false retain costs nothing. Bias accordingly.
Walk the session and look for anything else that would be hard to
reconstruct from git log + persistent memory + the issue tracker
after compaction. Examples (non-exhaustive — the point of this step
is to think past the checklist):
run_in_background tasks, dev
servers, watchers) that the user may have forgotten aboutFor each item: either persist it now (memory, ticket, comment) or flag it explicitly in the SBAR.
Per the user's session handoff format:
Keep each field tight — one to three lines. The user reads this returning to a stale tmux pane, and may also use it to brief the post-compaction version of the session.
The post-compaction agent reads the lossy summary, not the live conversation. A resume prompt drafted now, while full context is still in scope, is far higher-quality than what that agent could reconstruct from the summary. Always emit one of two outputs in this step — never silently skip it, since absence is ambiguous.
If there is pending work the next turn should pick up, emit a single fenced block the user can copy clean into the next prompt. The block must be:
path/to/file.py:42 to do Y, then run Z."If there is no pending work, emit exactly this line and nothing else in this step:
No resume prompt — work is sealed.
Wait for the user. Do not run /compact. Do not start new
implementation work — this skill exists to seal the session, not to
extend it.
What SKILL.md sets; muted values are Claude Code's defaults
opusThree short reads, in order
22 skills in this plugin
/bug-fixDiagnosis-first bug fixing with test-driven reproduction, root-cause analysis, and a targeted fix plus regression test. Use when the user wants to fix a bug with thorough investigation./bug-huntProactive bug hunting. Assesses where bugs likely hide, confirms each finding with a reproducing test, and iterates until nothing is found above a severity floor. Advisory by default; creates tickets or fixes via /implement only when authorized./implementImplements a ticket, a batch, or an open-ended goal end to end, choosing agents and reviews by judgment over a fixed floor (concept inventory, practical verification, green tests, correctness review). Autonomous after one planning interaction./refactorSimplification-first codebase redesign (Musk's five steps), with behavior pinned by a differential oracle against the incumbent implementation. Runs on an isolated branch; one operator checkpoint (the requirements menu), then autonomous./releaseCuts a project release. Discovers the release procedure, runs /review-release as preflight, proposes a version bump from CHANGELOG, and executes an operator-confirmed command plan step by step, halting on first failure./review-a11yAccessibility audit. Dispatches an accessibility auditor to identify WCAG conformance gaps, prioritize by user impact, and recommend fixes. Advisory only — no changes made.npx claudepluginhub chrisallenlane/claude-swe-workflows --plugin claude-swe-workflowsOther plugins' skills for the same job