← Back to list

context-preservation
by TheGlitchKing
a plugin that tries to maximize the bash loop presented for claude, present by the ralphy plugin / Geoffrey Huntley
⭐ 0🍴 0📅 Jan 14, 2026
SKILL.md
name: context-preservation description: Activates during long sessions or before context compaction. Manages attention markers and ensures critical information survives memory compression.
Context Preservation System
Long session detected or compaction imminent. Preserve critical context.
Attention Marker System
Marking Critical Information
Wrap important information that MUST survive compaction:
<!-- ATTENTION -->
[Critical information here]
<!-- /ATTENTION -->
What to Mark
Always Mark:
- Key architectural decisions
- Blocking issues and their workarounds
- Environment-specific configurations
- User preferences discovered during session
- Critical file paths or endpoints
- Authentication/connection details (sanitized)
Never Mark:
- Verbose explanations
- Intermediate debugging output
- Temporary state
- Information easily re-discovered
Example Attention Blocks
<!-- ATTENTION -->
Decision: Using PostgreSQL over SQLite for production
Reason: Need concurrent connections for API
Config: DATABASE_URL in .env.production
<!-- /ATTENTION -->
<!-- ATTENTION -->
Blocker: Tests require REDIS_URL environment variable
Workaround: export REDIS_URL=redis://localhost:6379
File: .env.test needs this added
<!-- /ATTENTION -->
Pre-Compaction Checklist
Before context is compressed, ensure:
- All blocking issues are marked with ATTENTION
- Key decisions are documented
- Current task state is checkpointed
- Critical paths/files are noted
- Any user preferences are preserved
Checkpoint Format
Use /checkpoint command or the hook will auto-checkpoint:
## Current Task
[What we're working on]
## Completed
- [x] Step 1
- [x] Step 2
## Next Steps
- [ ] Step 3
- [ ] Step 4
## Critical Context
[ATTENTION blocks here]
Recovery After Compaction
When resuming after compaction:
- Check
.claude/memory/attention.mdfor preserved items - Check
.claude/memory/checkpoint.mdfor task state - Review CLAUDE.md for current focus
- Continue from checkpoint
Memory File Locations
| File | Purpose |
|---|---|
.claude/memory/attention.md | Preserved critical info |
.claude/memory/checkpoint.md | Task state |
.claude/memory/errors.md | Error patterns learned |
.claude/memory/patterns.md | Behavioral patterns |
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon