choru-k

cc-front-compaction

Prepare manual front-only compaction for Claude Code by compacting oldest N% with hard tail replay default. Use only when user explicitly asks for /cc-front-compaction.

choru-k 1 Updated 3mo ago

Resources

2
GitHub

Install

npx skillscat add choru-k/skills-for-ai/cc-front-compaction

Install via the SkillsCat registry.

SKILL.md

Prepare front compaction context pack for the current Claude session:

!$HOME/.share-ai/views/claude/cc-front-compaction/hooks/front-compaction/prepare-front-compaction.sh --session-id ${CLAUDE_SESSION_ID} --cwd "$CLAUDE_PROJECT_DIR" $ARGUMENTS

After preparation:

  1. Tell the user to run /compact immediately.
  2. Explain that hard tail replay is injected on SessionStart(compact).
  3. If the script prints Unsupported: or validation error text, do not suggest fallback; surface the failure clearly.