NodeJSmith

Mine Pre Compact — Development skill for Claude Code

Development community

Generate a /compact prompt that preserves what matters for the next phase.

How to install Mine Pre Compact

Installs to ~/.claude/skills/nodejsmith-claudefiles-mine-pre-compact/SKILL.md

Terminal
mkdir -p ~/.claude/skills/nodejsmith-claudefiles-mine-pre-compact && curl -fsSL https://raw.githubusercontent.com/NodeJSmith/Claudefiles/HEAD/commands/mine-pre-compact.md -o ~/.claude/skills/nodejsmith-claudefiles-mine-pre-compact/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Mine Pre Compact does


description: Generate a /compact prompt that preserves what matters for the next phase.

Pre-Compact

Generate a strategic `/compact` prompt before transitioning to the next phase of work. Keeps critical context, drops noise.

Arguments

$ARGUMENTS — optional description of what the next phase is (e.g., "refactor", "testing", "PR creation"). If not provided, infer from conversation context.

Step 1: Assess Current Session

Review the conversation so far and identify:

  1. **What w

Alternatives in Development

Full documentation available on GitHub

View Source Repository