用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nomos-guild/cgov --skill context命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | context |
| updated | "2026-03-03T00:00:00.000Z" |
| description | Context window conservation rules. Invoke when approaching context limits or before large tasks. |
| argument-hint | (no arguments) |
| allowed-tools | Read, Edit, Glob, Grep |
Rules for maximizing work done per context window. Every token spent on exploration is a token not spent on implementation.
| Need | Use | NOT |
|---|---|---|
| Find a file by name | Glob | Explore agent, find, ls -R |
| Find a symbol in code | Grep (files_with_matches) | Explore agent, Read + scan |
| Read specific lines | Read (offset/limit) | cat, head, full-file Read |
| Simple edit | Edit | sed, awk, Write (full rewrite) |
| Repeated pattern edit | Edit with replace_all: true | Multiple individual Edits |
| Add key to 7 i18n files | 7 parallel Edits | Invoke i18n skill |
Don't use Explore/Task agent when:
Do use Explore agent when:
Don't invoke a skill when:
Do invoke a skill when:
BAD: Read(file, offset=1, limit=2000) // entire file, huge context cost
BAD: Read(file) // same — default reads everything
OK: Read(file, offset=350, limit=50) // 50 lines around target
GOOD: Read(file, offset=368, limit=5) // just the lines you need
After a Grep gives line 370, read lines 368-373 (offset=368, limit=6). Not 300-450.
replace_all: true — for patterns repeated across a file (e.g., renaming a variable). One Edit, not N.old_string just needs to be unique, not the whole function.Grep(pattern, output_mode="files_with_matches") — cheapest, just filenamesGrep(pattern, output_mode="content", -n=true) on the specific file — gives line numbersRead(file, offset=line-2, limit=10) — surgical readFor identical edits across multiple files:
Total: 1 Grep + 7 Reads + 7 Edits = 15 tool calls. Not a skill invocation + exploration.
Files over ~300 lines cost 1-2K tokens per full read. A read-edit-read cycle on a 1000+ line file eats 4-6K tokens. When a file repeatedly causes context pressure:
2026-03-03-monster-file-decomposition journey)Current monster files remaining: GovernanceTable.tsx (1263), drep/[drepId].tsx (1392)
| Anti-pattern | Cost | Fix |
|---|---|---|
| Explore agent for known files | ~50K tokens | Direct Grep + Read |
| Full-file Read to find one function | ~5K tokens | Grep for function name first |
| Reading file before every Edit | 2x reads | Read once, Edit, trust output |
| Loading large skill for small task | ~3K tokens | Just do the task directly |
| Re-reading after successful Edit | Wasted read | Edit tool already confirms |
| Sequential reads that could be parallel | Wasted turns | Batch into one message |