用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill doc-size-budget命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Cross-server agent health monitoring using binary status vectors — deploy health endpoints on each agent, poll from orchestrator, alert on state transitions.
Wire a self-hosted Langfuse instance to Hermes Agent — generate API keys, configure env vars, enable the bundled plugin, install SDK, and verify traces flow.
Use before enforcement code changes or shared-repo commits.
| name | doc-size-budget |
| description | Slim docs to byte targets (SOUL 10K, AGENTS gates) safely. |
| version | 1.0.0 |
| author | Hermes Cortex |
| license | MIT |
| platforms | ["linux","macos"] |
| metadata | {"hermes":{"tags":["docs","compression","size-budget","soul","agents","governance"],"related_skills":["doc-freshness","soul-refinement","documentation-auditing"]}} |
Instruction docs (SOUL.md, AGENTS.md) carry byte budgets enforced by the doctor (SOUL: WARN >15K, FAIL >20K) or by explicit user targets ("get SOUL to 10k"). Shrinking them is not free-form editing: enforcement layers count specific markers, titles, and headings, and the merge tool that propagates template → deployed copies is add-only — a wrong trim permanently WARNs/FAILs every deployed copy fleet-wide.
| Layer | What it counts | Wrong trim's consequence |
|---|---|---|
Doctor _extract_soul_markers | - ** list bullets ONLY (Core Traits) | Consolidating trait bullets = permanent reverse-drift WARN on every deployed copy (soul-merge never removes them) |
Doctor check_soul_sync | ### N. Title principle headings (title-key matched) | Removing a canonical title = FAIL "missing canonical principles" |
soul-merge _find_missing_subpoints | **marker** prefix anywhere in a principle body | Renaming/merging markers = OLD marker stays + NEW one added on deployed = duplication, not consolidation |
| agents-doc-audit | heading regexes (^## Identity, ^## Core Mission, …) | Removing a heading = commit-gate FAIL |
Safe to compress freely (proven 2026-08-19: SOUL template 14,737 → 10,032 B):
### Book — is the daily-bible
cron's next-book anchor); archive the rest to ~/brain/<agent>/bible/.Luke 2026-08-19: "You are literally WASTING MONEY!" — an agent looped rewriting the same file from memory while claiming to compress; byte count never changed.
str.replace), then wc -c. Never rewrite the whole file from memory
each iteration — the model silently re-pastes identical bytes.applied: n / total) before declaring progress. Print a per-section size
breakdown to find the real fat instead of guessing.read_file the original; measure wc -c; enumerate the
mandatory anchors (headings) and marker lines that must survive.re.findall(r'^### \d+\.', text, re.M)), trait bullets
(r'^- \*\*([^*]+)\*\*'), sub-point markers (r'^\*\*([^*]+)\*\*'), and
every mandatory section heading. Save the counts.str.replace, counting hits and misses. Re-measure.soul-merge.py --check for idempotency.soul-merge.py (updates
deployed), run the doctor (check_soul_sync PASS, size ≤ WARN), run
agents-doc-audit.py --repo . --json (missing sections == []).cortex-update.sh BEFORE git push (doc changes: the enforcement chain is
commit → deploy → push).- ** bullet names; shorten only their prose.wc -c docs/templates/SOUL.md ≤ target; deployed ≤ 15,360 (WARN) / 20,480 (FAIL)✅ SOUL.md template sync, ✅ SOUL.md canonical 12, ✅ SOUL.md reverse drift, no FAILssoul-merge.py --check → exit 0 ("up to date")agents-doc-audit.py --repo . --json → missing_sections: []git log --oneline -1 origin/main shows the pushed commit