pre-compact-backup
95 / 100 · Low risk
Fine to try. Some of what it can do is expected: a coding skill usually runs build and test commands.
Back up conversation transcript before context compaction. Use when: PreCompact hook fires, user asks to save session state, or before long tasks where context loss would be costly. Creates timestamped backup in logs/transcript_backups/. Inspired by: disler/claude-code-hooks-mastery pre_compact pattern.
What this skill can do
Runs commands on your computer
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'pre-compact-backup' ] || [ -L ~/.agents/skills/'pre-compact-backup' ]; then echo 'A skill folder named pre-compact-backup already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/yanacuti1121/Yana-AI' "$d" && git -C "$d" checkout --quiet '54d4aa9fa3241319f4d37212bd23826658bf6bed' -- '.claude/skills/pre-compact-backup' && mkdir -p ~/.agents/skills && cp -R "$d"/'.claude/skills/pre-compact-backup' ~/.agents/skills/'pre-compact-backup' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'pre-compact-backup' ~/.claude/skills/'pre-compact-backup' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/yanacuti1121/Yana-AI/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-13 | 54d4aa9 | 95 |
| 2026-11-08 | 4a78f20 | 95 |
Also found in
- yanacuti1121/Yana-AI/core/skills/pre-compact-backup