← Back to Skills

prompt-compressor

v1.1.0 official 5d ago
USK v3 ✅ Verified
⬇ Download
Install Guide↓
🤖 Agent install commands (curl / MCP / Claude Desktop)
▸ curl one-liner
curl -L -o prompt-compressor.skill   "https://aiskillstore.io/v1/agent/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download?platform=ClaudeCode"
▸ MCP tool call (after registering Skill Store MCP)
{
  "tool": "download_skill",
  "arguments": {
    "skill_id": "cc7a93e5-12ee-4f05-a0af-df09d0517370",
    "platform": "ClaudeCode"
  }
}
▸ Claude Desktop / Cursor MCP config (one-time)
{
  "mcpServers": {
    "skill-store": {
      "url": "https://aiskillstore.io/mcp/"
    }
  }
}
📖 Full agent API guide: /llms.txt  ·  MCP server card

当用户说『提示词太长/token烧太快』『上下文塞不下了』『把这段压缩一下还别丢重点』『长文档怎么塞进窗口』,或要压低 agent 每轮上下文成本时使用。基于「信息密度」裁剪:保留关键词密集/位置靠前的句子,删冗余/客套/复述,给出可运行脚本(提示压缩器,按密度+位置打分删句)。与 context-engineering 互补:context 管『放什么』,compressor 管『怎么压短』。理论根基:LGD 三律之收敛(删除冗余,单一有效信息)。触发词:提示压缩、prompt压缩、上下文压缩、压缩token、长文本精简、context压缩、省token、摘要进窗口、prompt shorten。

# 提示压缩 # prompt compressor # 上下文压缩 # 省token # 长文本精简 # 收敛

Basic Info

Owner 👤 Steven Zhao Category — Registered 2026-10-16 Last Updated 2026-10-16 Latest Version 1.1.0 Packaged At 2026-10-16 Vetting Status official Downloads 0 Checksum (SHA256) 369fd481ed17bb8207d659cb557fb5b71636538dd63c193f3ef065c9d3df2536

⚡ AGENT INFO USK v3

Capabilities
prompt compression token
Permissions
✗ network
✗ filesystem
✗ subprocess
Interface
type: cli   entry_point: scripts/compress_prompt.py   runtime: python3   call_pattern: args
Agent API
# 스킬 스키마 조회 (에이전트가 호출 방법을 파악) GET /v1/agent/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/schema # 플랫폼별 자동 변환 다운로드 GET /v1/agent/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download?platform=OpenClaw GET /v1/agent/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download?platform=ClaudeCode GET /v1/agent/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download?platform=ClaudeCodeAgentSkill GET /v1/agent/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download?platform=Cursor GET /v1/agent/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download?platform=GeminiCLI GET /v1/agent/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download?platform=CodexCLI GET /v1/agent/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download?platform=CustomAgent

Installation

Compatible Platforms windows macos linux

1
Install the skill using openclaw_skill_manager.py.
python openclaw_skill_manager.py --install prompt-compressor
2
Verify installation
python openclaw_skill_manager.py --list-installed
3
Install a specific version (optional)
python openclaw_skill_manager.py --install prompt-compressor --version 1.1.0
1
Download the skill package.
curl -O https://aiskillstore.io/v1/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download
2
Place it in the Claude Code commands directory.
unzip prompt-compressor.skill -d ~/.claude/commands/prompt-compressor/
3
Use it as a slash command in Claude Code.
/prompt-compressor
1
Download the Agent Skills package.
curl -O https://aiskillstore.io/v1/agent/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download?platform=ClaudeCodeAgentSkill
2
Unzip it into the Claude Code skills directory.
unzip prompt-compressor-agent-skill-*.skill -d ~/.claude/skills/prompt-compressor/
3
Restart Claude Code — the skill is auto-loaded at session start. No slash command needed.
1
Download the Cursor-converted package.
curl -O https://aiskillstore.io/v1/agent/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download?platform=Cursor
2
Unzip and place it in a permanent location.
unzip prompt-compressor-cursor-*.skill -d ~/.cursor/skills/prompt-compressor/
3
Add the MCP server config to .cursor/mcp.json, then restart Cursor.
cat ~/.cursor/skills/prompt-compressor/cursor_mcp_config.json
1
Download the Gemini CLI-converted package.
curl -O https://aiskillstore.io/v1/agent/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download?platform=GeminiCLI
2
Unzip and place it in a permanent location.
unzip prompt-compressor-geminicli-*.skill -d ~/.gemini/skills/prompt-compressor/
3
Add the MCP server config to ~/.gemini/settings.json, then restart Gemini CLI.
cat ~/.gemini/skills/prompt-compressor/gemini_settings_snippet.json
1
Download the Codex CLI-converted package.
curl -O https://aiskillstore.io/v1/agent/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download?platform=CodexCLI
2
Unzip and place it in a permanent location.
unzip prompt-compressor-codexcli-*.skill -d ~/.codex/skills/prompt-compressor/
3
Add the MCP server config to ~/.codex/config.toml, then restart Codex CLI.
cat ~/.codex/skills/prompt-compressor/codex_config_snippet.toml
1
Download the skill package via REST API.
GET https://aiskillstore.io/v1/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/download
2
Place it in your agent platform's skills directory.
cp prompt-compressor.skill ./skills/
3
Fetch platform-specific details via the Install Guide API.
GET https://aiskillstore.io/v1/skills/cc7a93e5-12ee-4f05-a0af-df09d0517370/install-guide?platform=CustomAgent

Requirements

Security Vetting Report

Vetting Result CAUTION

Findings: ["USK v3 경고: input_schema.type이 'object'가 아닙니다", "USK v3 경고: output_schema.type이 'object'가 아닙니다", 'USK v3 경고: 이 스킬은 자동 변환 조건을 충족하지 않아 manual_install로 처리됩니다']

✅ No security risks found.

AI Review Stage

Reviewer gemini Risk Level 🟡 Medium Review Summary 스킬 메타데이터의 파일 시스템 접근 권한 선언과 실제 코드의 동작 간에 불일치가 발견되어 관리자 검토 및 수정이 필요합니다.

Issues Found

  • 스킬 메타데이터의 `permissions.filesystem`이 `false`로 선언되었으나, `scripts/compress_prompt.py` 코드는 `pathlib.Path(a.file).read_text()`를 사용하여 파일을 읽는 기능이 포함되어 있습니다. 이는 선언된 권한과 실제 동작 간의 명백한 불일치입니다.
  • 제공된 코드 파일(`scripts/compress_prompt.py`)의 끝 부분이 생략되어 있어 전체 코드에 대한 완전한 검토가 불가능합니다.
Reasoning

1. **선언된 permissions과 실제 코드 불일치:** 스킬 메타데이터의 `permissions` 필드에서 `filesystem: false`로 명시적으로 선언되었음에도 불구하고, `scripts/compress_prompt.py` 스크립트는 `--file` 인자를 통해 파일 경로를 받아 `pathlib.Path().read_text()` 함수를 사용하여 파일 내용을 읽는 기능이 포함되어 있습니다. 이는 선언된 권한과 실제 동작 간의 명백한 불일치이며, 보안 검수에서 중요한 문제입니다. 개발자가 `risk_rationale`에서 '读写文件/本地执行'(파일 읽기/쓰기 및 로컬 실행)을 언급하며 중위험(medium)으로 분류한 점은 파일 시스템 접근 가능성을 인지하고 있음을 시사하지만, `permissions` 필드와의 불일치는 반드시 수정되어야 합니다. 2. **악의적 목적의 코드 부재:** 현재까지 분석된 코드에서는 텍스트 압축이라는 스킬의 목적에 부합하는 기능만 구현되어 있으며, 악의적인 동작(데이터 탈취, 시스템 파괴, 난독화 등)은 발견되지 않았습니다. 3. **외부 통신 및 데이터 수집 부재:** 선언된 `permissions.network: false`와 일치하게 외부 네트워크 통신을 시도하는 코드는 발견되지 않았습니다. 사용자 데이터를 무단으로 수집하거나 전송하는 기능도 없습니다. 4. **코드 품질:** 제공된 코드의 품질은 스킬의 목적을 달성하기에 적합하며, 텍스트 처리 로직도 명확합니다. 5. **코드 생략:** 코드 파일의 일부가 생략되어 있어 최종적인 안전성 판단에 약간의 불확실성이 있지만, 현재까지 분석된 부분에서는 주요 보안 위협은 발견되지 않았습니다. **결론:** `permissions.filesystem` 선언과 실제 코드 동작 간의 불일치로 인해 `pending` 상태로 지정합니다. 개발자는 `permissions.filesystem`을 `true`로 수정하거나, `--file` 인자를 제거하고 `text` 인자만 사용하도록 코드를 변경하여 재제출해야 합니다. 이 문제가 해결되면 `medium` 위험 수준으로 `approved`될 수 있습니다.

Version History

Version USK v3 Vetting Status Packaged At Downloads Changelog
v1.1.0 ✓ official 2026-10-16 ⬇ 0 1.0.0: initial upload (USK v3)

Reviews & Ratings

No reviews yet. Be the first to leave one!

✍️ Write a Review