[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77HYK9NJN68WEVE13ACH2DB":3,"skill-same:01M77HYK9NJN68WEVE13ACH2DB":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},"01M77HYK9NJN68WEVE13ACH2DB","context-compressor",null,"Context Compressor — Real-time conversation context compression engine. Activates when user says \"compress context\", \"压缩上下文\", \"上下文爆了\", \"context full\", \"上下文瘦身\", \"reduce context\", or when context exceeds 70% threshold. This skill compresses the CURRENT conversation history into a clean, short prompt. NOT a memory manager — pure context compression tool.\n\nCore capabilities:\n- Compress current chat history (180k → 30k instantly)\n- Auto-trigger at 70% context threshold\n- Structured JSON output with compression metrics\n- Preserve system prompt, keep recent N messages intact\n- Summarize older messages with configurable intensity\n- No database, no dependencies, pure Python","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\u002Fh\u002Fhawk-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: context-compressor\ndescription: |\n  Context Compressor — Real-time conversation context compression engine. Activates when user says \"compress context\", \"压缩上下文\", \"上下文爆了\", \"context full\", \"上下文瘦身\", \"reduce context\", or when context exceeds 70% threshold. This skill compresses the CURRENT conversation history into a clean, short prompt. NOT a memory manager — pure context compression tool.\n  \n  Core capabilities:\n  - Compress current chat history (180k → 30k instantly)\n  - Auto-trigger at 70% context threshold\n  - Structured JSON output with compression metrics\n  - Preserve system prompt, keep recent N messages intact\n  - Summarize older messages with configurable intensity\n  - No database, no dependencies, pure Python\n---\n\n# Context Compressor 🦅\n\n> **纯上下文压缩引擎** — 不是记忆库，是救命工具。\n> 当上下文爆炸前，压缩当前对话，继续轻松对话。\n\n---\n\n## 核心定位\n\n| 工具 | 做什么 | 何时用 |\n|------|--------|--------|\n| **Context Compressor** | 压缩当前对话上下文 | 现在、立刻、当上下文快满 |\n| memory-lancedb-pro | 跨会话持久记忆 | 对话之间存取知识 |\n| context-hawk | 长期记忆管理 | 日常沉淀 |\n\n**Context Compressor = 急救工具。memory-lancedb-pro\u002Fcontext-hawk = 日常工具。**\n\n---\n\n## 触发方式\n\n**自动触发**（推荐）：\n- 上下文超过 70% 时自动提示压缩\n- 每 10 轮对话自动检查水位\n\n**手动触发**：\n- \"压缩上下文\" \u002F \"compress context\"\n- \"上下文爆了\" \u002F \"context full\"\n- \"瘦身\" \u002F \"reduce context\"\n- `\u002Fcompress`\n\n---\n\n\n\n## Quick Start\n\n```bash\n# Install skill\nopenclaw skills install .\u002Fcontext-compressor.skill\n\n# Auto-link command to ~\u002Fbin (one-time)\nbash ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fcontext-compressor\u002Fscripts\u002Finstall.sh\nsource ~\u002F.bashrc\n\n# Compress current conversation\nhawk-compress --level normal --keep 5\n\n# Dry run (preview)\nhawk-compress --dry-run --level light --keep 3\n\n# Python API\npython3 -c \"from hawk_compress import ContextCompressor; \\\n  c = ContextCompressor(keep_recent=5); \\\n  r = c.compress(your_chat_history); \\\n  print(r['stats']['ratio'])\"\n```\n\n## 压缩原理\n\n### 输入（压缩前）\n\n```\n[完整对话历史 — 180k tokens — 爆炸边缘]\nSystem: 你是一个助手...\nUser: 第一个问题...\nAssistant: 第一个回答...\nUser: 第二个问题...\nAssistant: 第二个回答...\n... (越来越长)\n```\n\n### 输出（压缩后）\n\n```json\n{\n  \"compressed_prompt\": \"...[结构化压缩后的对话]...\",\n  \"original_tokens\": 180000,\n  \"compressed_tokens\": 32000,\n  \"ratio\": \"5.6x\",\n  \"kept_messages\": 5,\n  \"summarized_count\": 87,\n  \"compression_level\": \"normal\",\n  \"timestamp\": \"2026-03-29T00:39:00+08:00\"\n}\n```\n\n---\n\n## 压缩层级\n\n| 层级 | 触发 | 效果 | 适用 |\n|------|------|------|------|\n| `light` | 60-70% | 摘要 > 30天的消息 | 日常维护 |\n| `normal` | 70-85% | 摘要 + 保留最近10轮 | 推荐默认 |\n| `heavy` | 85-95% | 只保留最近5轮 + 核心摘要 | 紧急急救 |\n| `emergency` | > 95% | 只保留系统提示 + 最近3轮 | 立即执行 |\n\n---\n\n## 系统指令永久保留\n\n以下内容**永远不参与压缩**（完整保留）：\n\n- System Prompt \u002F SOUL.md \u002F AGENTS.md\n- 用户设定的角色定义\n- 核心规则和约束\n- 当前的任务描述\n\n---\n\n## 重要度过滤\n\n压缩时自动判断每条消息的重要度：\n\n| 重要度 | 消息类型 | 处理方式 |\n|--------|---------|---------|\n| 🔴 极高 | 决策\u002F规则\u002F任务 | 保留原文 |\n| 🟡 高 | 技术方案\u002F代码片段 | 保留摘要 |\n| 🟢 中 | 一般讨论 | 摘要或合并 |\n| ⚪ 低 | 闲聊\u002F确认\u002F废话 | **直接丢弃** |\n\n---\n\n## 压缩策略\n\n### 1. 消息摘要\n把每条老消息压缩为一句话：\n```\nUser: 讨论了Laravel的四层架构，讨论了Controller层的作用...\n  → [摘要] User就Laravel四层架构提出问题\n```\n\n### 2. 合并重复\n重复的说明\u002F确认\u002F指令合并为一条：\n```\nUser: 好的\nUser: 好的\nUser: 明白了\n  → [合并] User确认理解\n```\n\n### 3. 代码折叠\n长代码片段只保留文件路径和关键行号：\n```\n[代码: app\u002FLogic\u002FOrderLogic.php — 45行] → [代码折叠]\n```\n\n### 4. 时间戳裁剪\n同一时间段内的密集对话压缩为一条：\n```\n[上午10:00-10:30 共12轮对话] → [摘要]\n```\n\n---\n\n## 压缩后的上下文格式\n\n```\n## 对话摘要\n\n[最近5轮完整对话]\nUser: 最新问题...\nAssistant: 最新回答...\n\n[历史摘要]\n- 2026-03-28: 讨论了Skill架构，决定不拆分\n- 2026-03-28: 补充了DAO查询模式\n- 2026-03-28: 完成qujin-laravel-team Skill v2\n\n## 任务状态\n- 当前任务：压缩上下文\n- 进度：进行中\n\n## 核心规则（永久保留）\n[系统提示内容]\n\n## 用户偏好（永久保留）\n[关键偏好]\n```\n\n---\n\n## 参考文档\n\n| 文档 | 用途 |\n|------|------|\n| [references\u002Fcompression-logic.md](references\u002Fcompression-logic.md) | 压缩算法详解 |\n| [references\u002Fauto-trigger.md](references\u002Fauto-trigger.md) | 自动触发机制 |\n| [references\u002Fstructured-output.md](references\u002Fstructured-output.md) | JSON输出格式 |\n| [references\u002Fcli.md](references\u002Fcli.md) | CLI工具 |\n","# Context Compressor 🦅\n\n> **纯上下文压缩引擎** — 不是记忆库，是救命工具。\n> 当上下文爆炸前，压缩当前对话，继续轻松对话。\n\n---\n\n## 核心定位\n\n| 工具 | 做什么 | 何时用 |\n|------|--------|--------|\n| **Context Compressor** | 压缩当前对话上下文 | 现在、立刻、当上下文快满 |\n| memory-lancedb-pro | 跨会话持久记忆 | 对话之间存取知识 |\n| context-hawk | 长期记忆管理 | 日常沉淀 |\n\n**Context Compressor = 急救工具。memory-lancedb-pro\u002Fcontext-hawk = 日常工具。**\n\n---\n\n## 触发方式\n\n**自动触发**（推荐）：\n- 上下文超过 70% 时自动提示压缩\n- 每 10 轮对话自动检查水位\n\n**手动触发**：\n- \"压缩上下文\" \u002F \"compress context\"\n- \"上下文爆了\" \u002F \"context full\"\n- \"瘦身\" \u002F \"reduce context\"\n- `\u002Fcompress`\n\n---\n\n\n\n## Quick Start\n\n```bash\n# Install skill\nopenclaw skills install .\u002Fcontext-compressor.skill\n\n# Auto-link command to ~\u002Fbin (one-time)\nbash ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fcontext-compressor\u002Fscripts\u002Finstall.sh\nsource ~\u002F.bashrc\n\n# Compress current conversation\nhawk-compress --level normal --keep 5\n\n# Dry run (preview)\nhawk-compress --dry-run --level light --keep 3\n\n# Python API\npython3 -c \"from hawk_compress import ContextCompressor; \\\n  c = ContextCompressor(keep_recent=5); \\\n  r = c.compress(your_chat_history); \\\n  print(r['stats']['ratio'])\"\n```\n\n## 压缩原理\n\n### 输入（压缩前）\n\n```\n[完整对话历史 — 180k tokens — 爆炸边缘]\nSystem: 你是一个助手...\nUser: 第一个问题...\nAssistant: 第一个回答...\nUser: 第二个问题...\nAssistant: 第二个回答...\n... (越来越长)\n```\n\n### 输出（压缩后）\n\n```json\n{\n  \"compressed_prompt\": \"...[结构化压缩后的对话]...\",\n  \"original_tokens\": 180000,\n  \"compressed_tokens\": 32000,\n  \"ratio\": \"5.6x\",\n  \"kept_messages\": 5,\n  \"summarized_count\": 87,\n  \"compression_level\": \"normal\",\n  \"timestamp\": \"2026-03-29T00:39:00+08:00\"\n}\n```\n\n---\n\n## 压缩层级\n\n| 层级 | 触发 | 效果 | 适用 |\n|------|------|------|------|\n| `light` | 60-70% | 摘要 > 30天的消息 | 日常维护 |\n| `normal` | 70-85% | 摘要 + 保留最近10轮 | 推荐默认 |\n| `heavy` | 85-95% | 只保留最近5轮 + 核心摘要 | 紧急急救 |\n| `emergency` | > 95% | 只保留系统提示 + 最近3轮 | 立即执行 |\n\n---\n\n## 系统指令永久保留\n\n以下内容**永远不参与压缩**（完整保留）：\n\n- System Prompt \u002F SOUL.md \u002F AGENTS.md\n- 用户设定的角色定义\n- 核心规则和约束\n- 当前的任务描述\n\n---\n\n## 重要度过滤\n\n压缩时自动判断每条消息的重要度：\n\n| 重要度 | 消息类型 | 处理方式 |\n|--------|---------|---------|\n| 🔴 极高 | 决策\u002F规则\u002F任务 | 保留原文 |\n| 🟡 高 | 技术方案\u002F代码片段 | 保留摘要 |\n| 🟢 中 | 一般讨论 | 摘要或合并 |\n| ⚪ 低 | 闲聊\u002F确认\u002F废话 | **直接丢弃** |\n\n---\n\n## 压缩策略\n\n### 1. 消息摘要\n把每条老消息压缩为一句话：\n```\nUser: 讨论了Laravel的四层架构，讨论了Controller层的作用...\n  → [摘要] User就Laravel四层架构提出问题\n```\n\n### 2. 合并重复\n重复的说明\u002F确认\u002F指令合并为一条：\n```\nUser: 好的\nUser: 好的\nUser: 明白了\n  → [合并] User确认理解\n```\n\n### 3. 代码折叠\n长代码片段只保留文件路径和关键行号：\n```\n[代码: app\u002FLogic\u002FOrderLogic.php — 45行] → [代码折叠]\n```\n\n### 4. 时间戳裁剪\n同一时间段内的密集对话压缩为一条：\n```\n[上午10:00-10:30 共12轮对话] → [摘要]\n```\n\n---\n\n## 压缩后的上下文格式\n\n```\n## 对话摘要\n\n[最近5轮完整对话]\nUser: 最新问题...\nAssistant: 最新回答...\n\n[历史摘要]\n- 2026-03-28: 讨论了Skill架构，决定不拆分\n- 2026-03-28: 补充了DAO查询模式\n- 2026-03-28: 完成qujin-laravel-team Skill v2\n\n## 任务状态\n- 当前任务：压缩上下文\n- 进度：进行中\n\n## 核心规则（永久保留）\n[系统提示内容]\n\n## 用户偏好（永久保留）\n[关键偏好]\n```\n\n---\n\n## 参考文档\n\n| 文档 | 用途 |\n|------|------|\n| [references\u002Fcompression-logic.md](references\u002Fcompression-logic.md) | 压缩算法详解 |\n| [references\u002Fauto-trigger.md](references\u002Fauto-trigger.md) | 自动触发机制 |\n| [references\u002Fstructured-output.md](references\u002Fstructured-output.md) | JSON输出格式 |\n| [references\u002Fcli.md](references\u002Fcli.md) | CLI工具 |\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fh\u002Fhawk-context",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-compressor",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill context-compressor",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill context-compressor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fh\u002Fhawk-context\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",[],[]]