[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M778E8WEA5RXM358V7ZWSEKN":3,"skill-same:01M778E8WEA5RXM358V7ZWSEKN":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M778E8WEA5RXM358V7ZWSEKN","context-compactor",null,"Automatic context compression for OpenClaw sessions. Summarizes long conversations into structured digests (decisions, facts, pending items, technical details), saves compressed summaries to disk, and injects them into new sessions. Reduces token waste from redundant context repetition. Use when conversation exceeds ~50 turns, when context feels bloated, when starting a new session and prior context is needed, or when the user says \"compact\", \"summarize this conversation\", \"start fresh but remember\".","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fc\u002Fcontext-compactor-zero-dep\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: context-compactor\ndescription: >\n  Automatic context compression for OpenClaw sessions. Summarizes long conversations\n  into structured digests (decisions, facts, pending items, technical details), saves\n  compressed summaries to disk, and injects them into new sessions. Reduces token waste\n  from redundant context repetition. Use when conversation exceeds ~50 turns, when\n  context feels bloated, when starting a new session and prior context is needed, or\n  when the user says \"compact\", \"summarize this conversation\", \"start fresh but remember\".\n---\n\n# Context Compactor\n\nCompresses long conversations into structured summaries. Saves token by replacing\nraw conversation history with dense, searchable digests.\n\n## Requirements\n\n- **Runtime**: Python 3.10+ (standard library only)\n- **OS**: Linux, macOS\n- **Environment variables**:\n  - `OPENCLAW_WORKSPACE` — Workspace root (default: `~\u002F.openclaw\u002Fworkspace`)\n- **Environment**: `OPENCLAW_WORKSPACE` (default: `~\u002F.openclaw\u002Fworkspace`)\n\n## Security\n\n### Write Restrictions (Hard Rules)\nThe agent may ONLY write to these locations:\n- `memory\u002Fcompacts\u002F` — compact files only\n- `SESSION-STATE.md` — via smart-memory skill (not this skill)\n\nThe agent MUST NOT write to:\n- Any directory outside the workspace\n- System directories (\u002Fetc, \u002Fusr, \u002Fvar, \u002Ftmp except session cache)\n- User home directory root (~\u002F.ssh, ~\u002F.config, ~\u002F.aws, etc.)\n- Any `.*` dotfile or dotdir in workspace root\n- Any file not matching `memory\u002Fcompacts\u002F*.md`\n\n### Read Restrictions\nThe agent may ONLY read from:\n- The current conversation context (already available)\n- `memory\u002Fcompacts\u002F` — for listing\u002Freading past compacts\n\nThe agent MUST NOT read from:\n- `\u002Fetc\u002Fpasswd`, `\u002Fetc\u002Fshadow`, or any system credential file\n- `~\u002F.ssh\u002F`, `~\u002F.aws\u002F`, `~\u002F.config\u002Fopenclaw\u002F` or similar\n- Any file outside the workspace unless explicitly asked by the user\n\n### Redaction Enforcement\nBefore writing ANY compact, the agent MUST run this checklist:\n1. ✅ No file paths (replace with `\u003CREDACTED_PATH>`)\n2. ✅ No URLs (replace with `\u003CREDACTED_URL>`)\n3. ✅ No internal IPs (replace with `\u003CINTERNAL_URL>`)\n4. ✅ No passwords, tokens, API keys (delete entirely)\n5. ✅ No personal info beyond work context\n\nIf any item fails → do not write the compact until fixed.\n\n### Privacy Boundaries\n\n### What Compacts May Contain\n- Decisions, facts, pending actions, blockers\n- Project names and feature descriptions\n\n### What Compacts Must NOT Contain\n- File system paths (use `\u003CREDACTED_PATH>` placeholder)\n- Internal URLs, endpoints, or infrastructure details\n- API keys, tokens, passwords, secrets (script-level regex filter)\n- Private keys or certificates\n- User personal information beyond work context\n\n### Agent Rules\n- Before saving a compact, strip or redact all paths, internal URLs, and credentials\n- Use placeholders: `\u003CPROJECT_ROOT>`, `\u003CINTERNAL_URL>`, `\u003CDB_CONFIG>`\n- If unsure whether something is sensitive, redact it\n- Compacts are for \"what was decided\" not \"where things live\"\n\n### Data Isolation\n- **Keyword extraction**: Fully local — no network calls, no external transmission\n- **LLM extraction** (opt-in): Sends conversation text to the agent's configured LLM provider. This is inherent to using any LLM-based compaction and is **not** controlled by this skill. The skill only provides the prompt template; the agent\u002Fplatform handles the actual API call.\n- Maximum 30 compacts retained, oldest auto-deleted\n- Compacts are stored locally and read locally — the skill itself never makes network calls\n\n## How It Works\n\n```\nLong conversation (10,000+ tokens)\n    ↓\ncompact_session.py --extract\n    ↓\nStructured digest (~500 tokens)\n    ↓\nSaved to memory\u002Fcompacts\u002FYYYY-MM-DD-HHMM.md\n    ↓\nNew session reads latest compact on startup\n```\n\n**Compression ratio: ~20:1** — a 10,000 token conversation becomes ~500 token digest.\n\n## Quick Reference\n\n| Action | Script |\n|--------|--------|\n| Write compact (agent-authored) | `python3 scripts\u002Fcompact_session.py --write \u003C compact.md` |\n| List compacts | `python3 scripts\u002Fcompact_session.py --list` |\n| Read latest compact | `python3 scripts\u002Fcompact_session.py --latest` |\n| Show compact stats | `python3 scripts\u002Fcompact_session.py --stats` |\n\n**How compaction works**: The agent drafts the compact content, then pipes it through `--write` which enforces security checks (no paths, URLs, IPs, secrets) before saving. This ensures programmatic enforcement — the agent never writes directly to disk.\n\n## Compact Format\n\n```markdown\n# Session Compact — 2026-03-31 17:00 UTC\n**Turns**: 45 | **Est. tokens saved**: ~9,500\n\n## Decisions Made\n- [2026-03-31] Chose SQLite over Redis for golden3 prompts\n- [2026-03-31] Decided to use zero-dependency approach for smart-memory\n\n## Facts Established\n- [PROJ] golden3 site at golden3.killclaw.xyz, repo github.com\u002Fzgjq\u002Fgolden3\n- [TECH] Prompts stored in data\u002Fgolden3.db, table `prompts`, category `scoring`\n- [PREF] User prefers direct, no-nonsense communication style\n\n## Pending Actions\n- [ ] Publish smart-memory to ClawHub\n- [ ] Fix scoring display from 100-point to 10-point scale\n\n## Technical Context\n- Server: ubuntu-4gb-hel1-1, Node v24.14.0\n- Golden3 uses node:sqlite (DatabaseSync)\n\n## Blockers \u002F Open Questions\n- Need ClawHub login token to publish\n\n## Session Summary\nBuilt smart-memory skill from Claude Code architecture study. Published to ClawHub\nas smart-memory-zero-dep. Memory system now active with WAL protocol, type\nclassification, temporal decay, and snapshot\u002Frestore.\n```\n\n## Agent Behavior\n\n### When to Compact\n- Conversation exceeds ~50 turns\n- Context window approaching limits (see AGENTS.md token discipline rules)\n- User says \"compact\", \"summarize\", \"fresh start\", \"压缩\"\n\n### How to Compact\nThe agent drafts the compact content, then saves it via:\n```\necho \"compact content\" | python3 scripts\u002Fcompact_session.py --write\n```\nThe `--write` flag enforces all security checks programmatically: redaction of paths\u002FURLs\u002FIPs\u002Fsecrets, path containment within workspace, and file naming. The agent NEVER writes directly to disk.\n\n### When to Inject Compact\n- New session startup — check for recent compact\n- User asks \"what were we working on\"\n- Context search returns nothing but a compact exists\n\n### Extraction Rules\nFrom the conversation, extract:\n1. **Decisions** — anything with \"chose X over Y\", \"decided to\", \"going with\"\n2. **Facts** — URLs, file paths, configs, technical details, user preferences\n3. **Pending** — uncompleted tasks, \"later\", \"TODO\", \"next step\"\n4. **Blockers** — \"need X first\", \"blocked by\", \"waiting for\"\n5. **Summary** — 2-3 sentence overview of what happened\n\nSkip:\n- Greetings, small talk, \"ok\", \"嗯\"\n- Repeated information already in MEMORY.md\n- Debugging noise (unless it led to a LESSON)\n- Sensitive data (tokens, passwords)\n\n## Integration with smart-memory\n\nThis skill works with `smart-memory`:\n- Compacts reference `[TYPE]` tags from smart-memory's classification system\n- Pending items from compacts can feed into `wal pending`\n- Facts from compacts can be promoted to MEMORY.md\n- Compacts live in `memory\u002Fcompacts\u002F` — decayed by smart-memory's archival system\n\n## File Structure\n\n```\n~\u002F.openclaw\u002Fworkspace\u002F\n├── memory\u002F\n│   └── compacts\u002F\n│       ├── 2026-03-31-1700.md   # Session compact\n│       ├── 2026-03-30-1430.md\n│       └── ...\n```\n","# Context Compactor\n\nCompresses long conversations into structured summaries. Saves token by replacing\nraw conversation history with dense, searchable digests.\n\n## Requirements\n\n- **Runtime**: Python 3.10+ (standard library only)\n- **OS**: Linux, macOS\n- **Environment variables**:\n  - `OPENCLAW_WORKSPACE` — Workspace root (default: `~\u002F.openclaw\u002Fworkspace`)\n- **Environment**: `OPENCLAW_WORKSPACE` (default: `~\u002F.openclaw\u002Fworkspace`)\n\n## Security\n\n### Write Restrictions (Hard Rules)\nThe agent may ONLY write to these locations:\n- `memory\u002Fcompacts\u002F` — compact files only\n- `SESSION-STATE.md` — via smart-memory skill (not this skill)\n\nThe agent MUST NOT write to:\n- Any directory outside the workspace\n- System directories (\u002Fetc, \u002Fusr, \u002Fvar, \u002Ftmp except session cache)\n- User home directory root (~\u002F.ssh, ~\u002F.config, ~\u002F.aws, etc.)\n- Any `.*` dotfile or dotdir in workspace root\n- Any file not matching `memory\u002Fcompacts\u002F*.md`\n\n### Read Restrictions\nThe agent may ONLY read from:\n- The current conversation context (already available)\n- `memory\u002Fcompacts\u002F` — for listing\u002Freading past compacts\n\nThe agent MUST NOT read from:\n- `\u002Fetc\u002Fpasswd`, `\u002Fetc\u002Fshadow`, or any system credential file\n- `~\u002F.ssh\u002F`, `~\u002F.aws\u002F`, `~\u002F.config\u002Fopenclaw\u002F` or similar\n- Any file outside the workspace unless explicitly asked by the user\n\n### Redaction Enforcement\nBefore writing ANY compact, the agent MUST run this checklist:\n1. ✅ No file paths (replace with `\u003CREDACTED_PATH>`)\n2. ✅ No URLs (replace with `\u003CREDACTED_URL>`)\n3. ✅ No internal IPs (replace with `\u003CINTERNAL_URL>`)\n4. ✅ No passwords, tokens, API keys (delete entirely)\n5. ✅ No personal info beyond work context\n\nIf any item fails → do not write the compact until fixed.\n\n### Privacy Boundaries\n\n### What Compacts May Contain\n- Decisions, facts, pending actions, blockers\n- Project names and feature descriptions\n\n### What Compacts Must NOT Contain\n- File system paths (use `\u003CREDACTED_PATH>` placeholder)\n- Internal URLs, endpoints, or infrastructure details\n- API keys, tokens, passwords, secrets (script-level regex filter)\n- Private keys or certificates\n- User personal information beyond work context\n\n### Agent Rules\n- Before saving a compact, strip or redact all paths, internal URLs, and credentials\n- Use placeholders: `\u003CPROJECT_ROOT>`, `\u003CINTERNAL_URL>`, `\u003CDB_CONFIG>`\n- If unsure whether something is sensitive, redact it\n- Compacts are for \"what was decided\" not \"where things live\"\n\n### Data Isolation\n- **Keyword extraction**: Fully local — no network calls, no external transmission\n- **LLM extraction** (opt-in): Sends conversation text to the agent's configured LLM provider. This is inherent to using any LLM-based compaction and is **not** controlled by this skill. The skill only provides the prompt template; the agent\u002Fplatform handles the actual API call.\n- Maximum 30 compacts retained, oldest auto-deleted\n- Compacts are stored locally and read locally — the skill itself never makes network calls\n\n## How It Works\n\n```\nLong conversation (10,000+ tokens)\n    ↓\ncompact_session.py --extract\n    ↓\nStructured digest (~500 tokens)\n    ↓\nSaved to memory\u002Fcompacts\u002FYYYY-MM-DD-HHMM.md\n    ↓\nNew session reads latest compact on startup\n```\n\n**Compression ratio: ~20:1** — a 10,000 token conversation becomes ~500 token digest.\n\n## Quick Reference\n\n| Action | Script |\n|--------|--------|\n| Write compact (agent-authored) | `python3 scripts\u002Fcompact_session.py --write \u003C compact.md` |\n| List compacts | `python3 scripts\u002Fcompact_session.py --list` |\n| Read latest compact | `python3 scripts\u002Fcompact_session.py --latest` |\n| Show compact stats | `python3 scripts\u002Fcompact_session.py --stats` |\n\n**How compaction works**: The agent drafts the compact content, then pipes it through `--write` which enforces security checks (no paths, URLs, IPs, secrets) before saving. This ensures programmatic enforcement — the agent never writes directly to disk.\n\n## Compact Format\n\n```markdown\n# Session Compact — 2026-03-31 17:00 UTC\n**Turns**: 45 | **Est. tokens saved**: ~9,500\n\n## Decisions Made\n- [2026-03-31] Chose SQLite over Redis for golden3 prompts\n- [2026-03-31] Decided to use zero-dependency approach for smart-memory\n\n## Facts Established\n- [PROJ] golden3 site at golden3.killclaw.xyz, repo github.com\u002Fzgjq\u002Fgolden3\n- [TECH] Prompts stored in data\u002Fgolden3.db, table `prompts`, category `scoring`\n- [PREF] User prefers direct, no-nonsense communication style\n\n## Pending Actions\n- [ ] Publish smart-memory to ClawHub\n- [ ] Fix scoring display from 100-point to 10-point scale\n\n## Technical Context\n- Server: ubuntu-4gb-hel1-1, Node v24.14.0\n- Golden3 uses node:sqlite (DatabaseSync)\n\n## Blockers \u002F Open Questions\n- Need ClawHub login token to publish\n\n## Session Summary\nBuilt smart-memory skill from Claude Code architecture study. Published to ClawHub\nas smart-memory-zero-dep. Memory system now active with WAL protocol, type\nclassification, temporal decay, and snapshot\u002Frestore.\n```\n\n## Agent Behavior\n\n### When to Compact\n- Conversation exceeds ~50 turns\n- Context window approaching limits (see AGENTS.md token discipline rules)\n- User says \"compact\", \"summarize\", \"fresh start\", \"压缩\"\n\n### How to Compact\nThe agent drafts the compact content, then saves it via:\n```\necho \"compact content\" | python3 scripts\u002Fcompact_session.py --write\n```\nThe `--write` flag enforces all security checks programmatically: redaction of paths\u002FURLs\u002FIPs\u002Fsecrets, path containment within workspace, and file naming. The agent NEVER writes directly to disk.\n\n### When to Inject Compact\n- New session startup — check for recent compact\n- User asks \"what were we working on\"\n- Context search returns nothing but a compact exists\n\n### Extraction Rules\nFrom the conversation, extract:\n1. **Decisions** — anything with \"chose X over Y\", \"decided to\", \"going with\"\n2. **Facts** — URLs, file paths, configs, technical details, user preferences\n3. **Pending** — uncompleted tasks, \"later\", \"TODO\", \"next step\"\n4. **Blockers** — \"need X first\", \"blocked by\", \"waiting for\"\n5. **Summary** — 2-3 sentence overview of what happened\n\nSkip:\n- Greetings, small talk, \"ok\", \"嗯\"\n- Repeated information already in MEMORY.md\n- Debugging noise (unless it led to a LESSON)\n- Sensitive data (tokens, passwords)\n\n## Integration with smart-memory\n\nThis skill works with `smart-memory`:\n- Compacts reference `[TYPE]` tags from smart-memory's classification system\n- Pending items from compacts can feed into `wal pending`\n- Facts from compacts can be promoted to MEMORY.md\n- Compacts live in `memory\u002Fcompacts\u002F` — decayed by smart-memory's archival system\n\n## File Structure\n\n```\n~\u002F.openclaw\u002Fworkspace\u002F\n├── memory\u002F\n│   └── compacts\u002F\n│       ├── 2026-03-31-1700.md   # Session compact\n│       ├── 2026-03-30-1430.md\n│       └── ...\n```\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fc\u002Fcontext-compactor-zero-dep",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill context-compactor",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill context-compactor",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill context-compactor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fc\u002Fcontext-compactor-zero-dep\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]