返回顶部
c

context-engineer

Context window optimizer — analyze, audit, and optimize your agent's context utilization. Know exactly where your tokens go before they're sent.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
622
下载量
0
收藏
概述
安装方式
版本历史

context-engineer

## When to use this skill Use this skill when the user wants to: - Understand where their context window tokens are going - Analyze workspace files (SKILL.md, SOUL.md, MEMORY.md, etc.) for bloat - Audit tool definitions for redundancy and overhead - Get a comprehensive context efficiency report - Compare before/after snapshots to measure optimization progress - Optimize system prompts for token efficiency ## Commands ```bash # Analyze workspace context files — token counts, efficiency scores, recommendations python3 skills/context-engineer/context.py analyze --workspace ~/.openclaw/workspace # Analyze with a custom budget and save a snapshot for later comparison python3 skills/context-engineer/context.py analyze --workspace ~/.openclaw/workspace --budget 128000 --snapshot before.json # Audit tool definitions for overhead and overlap python3 skills/context-engineer/context.py audit-tools --config ~/.openclaw/openclaw.json # Generate a comprehensive context engineering report python3 skills/context-engineer/context.py report --workspace ~/.openclaw/workspace --format terminal # Compare two snapshots to see projected token savings python3 skills/context-engineer/context.py compare --before before.json --after after.json ``` ## What It Analyzes - **System prompt efficiency** — Length, redundancy detection, compression potential - **Tool definition overhead** — Count tools, per-tool token cost, identify unused/overlapping - **Memory file bloat** — MEMORY.md size, stale entries, optimization suggestions - **Skill overhead** — Installed skills contributing to context, per-skill token cost - **Context budget** — What % of model context window is consumed by static content vs available for conversation ## Options - `--workspace PATH` — Path to workspace directory (default: `~/.openclaw/workspace`) - `--config PATH` — Path to OpenClaw config file (default: `~/.openclaw/openclaw.json`) - `--budget N` — Context window token budget (default: 200000) - `--snapshot FILE` — Save analysis snapshot to FILE for later comparison - `--format terminal` — Output format (currently: terminal) ## Notes - Token estimates are approximate (~4 characters per token). For precise counts, use a model-specific tokenizer. - No external dependencies required — runs with Python 3 stdlib only. - Built by Anvil AI — context engineering experts. https://anvil-ai.io

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 context-engineer-1776419983 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 context-engineer-1776419983 技能

通过命令行安装

skillhub install context-engineer-1776419983

下载 Zip 包

⬇ 下载 context-engineer v1.0.2

文件大小: 12.74 KB | 发布时间: 2026-4-17 19:43

v1.0.2 最新 2026-4-17 19:43
Rebrand to Anvil AI. Remove CacheForge marketing copy. Normalize install commands.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部