CtrlK
BlogDocsLog inGet started
Tessl Logo

strategic-compact

Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.

65

Quality

56%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./docs/zh-TW/skills/strategic-compact/SKILL.md
SKILL.md
Quality
Evals
Security

Evaluation results

87%

39%

Configure Context Compaction Reminders

Hook setup & configuration

Criteria
Without context
With context

PreToolUse event

0%

100%

Edit in matcher

100%

100%

Write in matcher

100%

100%

Correct command path

0%

46%

Hook type is command

100%

100%

Custom threshold set

0%

100%

Correct JSON nesting

66%

100%

Settings file location

53%

66%

98%

9%

Developer Guide: Managing Context in Long Claude Code Sessions

Strategic compaction timing

Criteria
Without context
With context

Post-exploration compaction

53%

100%

Post-milestone compaction

93%

100%

Pre-context-switch compaction

80%

100%

Mid-implementation prohibition

100%

100%

Post-planning compaction

90%

80%

Post-debugging compaction

100%

100%

Hook suggests, agent decides

100%

100%

Coverage breadth

100%

100%

100%

12%

Implement a Context Compaction Reminder Script

Script threshold & reminder logic

Criteria
Without context
With context

Persistent counter

100%

100%

Counter increments

100%

100%

Default threshold 50

100%

100%

COMPACT_THRESHOLD respected

100%

100%

Threshold suggestion output

100%

100%

Periodic reminders every 25

40%

100%

Mentions /compact

100%

100%

Repository
haniakrim21/everything-claude-code
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.