← Back to Skills Marketplace
djc00p

Strategic Compact

by Deonte Cooper · GitHub ↗ · v1.0.1 · MIT-0
darwinlinuxwin32 ✓ Security Clean
136
Downloads
0
Stars
3
Active Installs
2
Versions
Install in OpenClaw
/install strategic-compact
Description
Manual context compaction at logical workflow boundaries rather than arbitrary auto-compaction. Use after completing exploration phases, before switching maj...
Usage Guidance
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.
Capability Analysis
Type: OpenClaw Skill Name: strategic-compact Version: 1.0.1 The 'strategic-compact' skill is designed to help manage AI context limits by suggesting manual compaction at logical workflow boundaries. The included bash script (scripts/suggest-compact.sh) simply tracks tool call counts using a temporary file in /tmp and outputs suggestions to stderr, with no evidence of data exfiltration, malicious execution, or unauthorized access.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install strategic-compact
  3. After installation, invoke the skill by name or use /strategic-compact
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Fix: replace bare code blocks with ```text for consistent rendering
v1.0.0
Initial release. Manual context compaction with suggest-compact.sh script. Adapted from everything-claude-code by @affaan-m (MIT)
Metadata
Slug strategic-compact
Version 1.0.1
License MIT-0
All-time Installs 3
Active Installs 3
Total Versions 2
Frequently Asked Questions

What is Strategic Compact?

Manual context compaction at logical workflow boundaries rather than arbitrary auto-compaction. Use after completing exploration phases, before switching maj... It is an AI Agent Skill for Claude Code / OpenClaw, with 136 downloads so far.

How do I install Strategic Compact?

Run "/install strategic-compact" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Strategic Compact free?

Yes, Strategic Compact is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Strategic Compact support?

Strategic Compact is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux, win32).

Who created Strategic Compact?

It is built and maintained by Deonte Cooper (@djc00p); the current version is v1.0.1.

💬 Comments