Strategic Compact

v1.0.1

Manual context compaction at logical workflow boundaries rather than arbitrary auto-compaction. Use after completing exploration phases, before switching maj...

0· 79·2 current·2 all-time
byDeonte Cooper@djc00p
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description (strategic compaction suggestions) aligns with the provided SKILL.md, references, and the suggest-compact.sh script. All requested/used resources (optional COMPACT_THRESHOLD, CLAUDE_SESSION_ID, writing a counter file) are proportional to the stated goal.
Instruction Scope
SKILL.md stays on-topic: it explains when/how to run the script, how to save files before compacting, and integration options (manual, heartbeat, pre-tool hook, cron). The instructions direct the agent/user to read/write local files and to run the included shell script; these actions are consistent with the purpose. Note: it suggests placing the script into hooks and cron jobs which will cause repeated local executions and writes to /tmp (expected for this use case).
Install Mechanism
There is no install spec and the skill is instruction-only with a small included script. No third-party downloads or package installs are performed—low install risk.
Credentials
No required environment variables are declared. The script optionally reads COMPACT_THRESHOLD and CLAUDE_SESSION_ID, which are reasonable for configuring thresholds and session tracking. Minor caveat: the script falls back to PPID and then the literal string 'default' for SESSION_ID; using 'default' means different sessions could share /tmp/claude-tool-count-default if the env isn't set, which may be surprising or confusing but not malicious.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It writes a small counter file under /tmp for its own bookkeeping, which is ephemeral and scoped to the local system/user.
Assessment
This skill appears coherent and low-risk for its stated purpose. Before installing or integrating it: 1) inspect the included scripts (already small and readable) and confirm you are comfortable with a small counter file being created under /tmp; 2) if you run it as a pre-tool hook or cron job, be aware it will write to /tmp frequently—ensure that behavior is acceptable and that you set COMPACT_THRESHOLD/CLAUDE_SESSION_ID appropriately; 3) consider setting a stable CLAUDE_SESSION_ID per session to avoid accidental counter sharing via the 'default' fallback; and 4) if you share a multi-user system, remember files in /tmp can be enumerated—use appropriate isolation or a different directory if necessary.

Like a lobster shell, security has layers — review code before you run it.

latestvk97ca92v3w8w326ccbmf61b02s84bfk8

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

📦 Clawdis
OSmacOS · Linux · Windows

Comments