strategic-compact
SolidMonitor context usage and suggest compaction at logical milestones
AI & Automation 17 stars
4 forks Updated today MIT
Install
Quality Score: 86/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Strategic Compact
Proactively manage context window to prevent degraded performance in long sessions.
## When to Use
- Context usage exceeds 60%
- After completing a major planning phase
- After finishing implementation, before review
- Before starting a fundamentally different task
- When responses start feeling slower or less precise
## Procedure
1. **Assess Context State**
- Estimate current context consumption
- Identify which content is load-bearing vs stale
2. **Identify Compaction Point**
Suggest compaction at natural milestones:
- After planning: decisions locked, plan documented
- After implementation: code committed, tests passing
- Before review: implementation complete, shifting to review mode
- After triage: results documented, moving to fixes
3. **Preserve Key State**
Before suggesting `/clear`, ensure these are persisted:
- Active task and status in `tasks/todo.md`
- Key decisions in handoff doc or `tasks/lessons.md`
- Any uncommitted work is committed or stashed
- File paths of actively-edited files
4. **Suggest Compaction**
Output:
```
Context check: ~{percent}% used
Milestone: {what was just completed}
Recommendation: {compact now / safe to continue / approaching limit}
Before /clear:
- [ ] Handoff doc written
- [ ] Work committed
- [ ] Todo updated
```
5. **Post-Compaction Recovery**
After `/clear`, use `session-init` skill to resto...
Details
- Author
- mshadmanrahman
- Repository
- mshadmanrahman/pm-pilot
- Created
- 5 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Featured
strategic-compact
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
241,538 Updated today
affaan-m AI & Automation Listed
strategic-compact
Use when a long session is approaching context pressure, crossing a major task or phase boundary, or recovering from a failed approach where old reasoning should be summarized before continuing.
1 Updated 1 months ago
danielleit241 AI & Automation Listed
strategic-compact
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.
3 Updated 2 days ago
uzysjung