用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/lukemcqueen/hermes-cortex --skill rename-sweep命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
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.
正在显示 SKILL.md
| name | rename-sweep |
| description | Fleet-wide term/artifact renames and decommission sweeps. |
| version | 1.0.0 |
| category | devops |
| platforms | ["linux","macos"] |
| metadata | {"hermes":{"tags":["rename","sweep","decommission","migration","bulk-edit"],"related_skills":["change-checklist","survey-before-action","enforcement-change-safety","cortex-bus"]}} |
Systematic method for removing or renaming a term, product name, or artifact across an entire repo (decommission, rebrand, terminology migration — e.g. the 2026-08-21 legacy-system→mycortex purge: 168 files, 0 residual tokens). The hard part is NOT the replacement — it is the compound tokens the catch-all misses, the mangled tokens the guards create, and the deleted-file cross-references that silently break tests and indexes.
begin_change) — write tools block without it.ops/ paths).git grep -i <term>, files named *<term>*,
deployed copies (~/.hermes-cortex/scripts/), cron jobs (jobs.json),
live configs. 200+ matches across 100+ files is normal for a real sweep.| Bucket | Meaning | Action |
|---|---|---|
| Functional | Keys, var names, service names, CLI commands, DB/role names, paths in code | Replace with the new term (exact tokens) |
| Dead artifact | Files/dirs/skills whose whole purpose was the old term | git rm |
| Historical | Dated docs, transcripts, review reports, design comparisons | Rephrase to a neutral descriptor ("the legacy brain"), never the new term |
Delete the dead artifacts FIRST (git rm), then sweep references to them.
Blind term → newterm breaks everything. Use this order per file:
legacy-system_sources_ok), var names (V_LEGACY_SYSTEM), file/service names
(import-legacy-system.py, com.legacy-system.autopilot), env vars
(LEGACY_SYSTEM_PG_PASSWORD), issue keys. A word-boundary catch-all
(\blegacy-system\b) MISSES underscore compounds (legacy-system_search,
legacy-system_legacy_*, FIXED_LEGACY_SYSTEM) — list them explicitly.Guards with spaces mangle compound tokens. Grep for these and fix:
install-legacy sync.sh, ~/.legacy brain,
com.legacy brain.sync-watch, garrytan/legacy brain (broken URL),
main.legacy brain — re-slug to legacy-brain."Legacy Sync" guard
also matched legacy-system sync --source X → "Mycortex Sync --source X".
Scan for title-case command garbles; the CLI command is lowercase.~/.legacy-system →
~/.mycortex (wrong product!) — paths must map to the neutral slug.\bterm\b misses term_compound — the residual grep catches these;
fix each with an exact-token replacement.Finish with git grep -i <term> == 0 AND a token-mangle grep
(legacy brain/, install-legacy , ~/.legacy ) == 0.
Deleting files breaks things that assert their existence:
test_golden_expected_paths_exist_in_repo FAILs on stale expected_top3 —
delete the stale query entry, keep count invariants like "25-30 queries").rm stale deployed artifacts the
doctor flags ("Remove: …" in REQUIRED ACTIONS).bash -n every changed .sh; py_compile every changed .py; validate
JSON/YAML (deleted files show as FAIL — ignore them, they're gone).cortex-update.sh redeploys — verify against
the repo, not the live service, then re-test after deploy.git grep -i <term> == 0, doctor clean, deploy via cortex-update,
then push.--index silently unstages everything — the
staged index is lost; re-stage with git add -A before re-committing.git checkout --ours/--theirs <file> during rebase restores the WHOLE
file from that side — auto-merged hunks in that file are reverted (a
--ours on install.sh reverted an entire 16-file sweep's changes to it).
Prefer per-hunk resolution or re-apply and re-verify with grep after.git pull --rebase,
resolve (the sweep is usually a superset — origin's hunks are fine where
cosmetic, re-apply yours where they conflict on substance), deploy,
doctor, re-push. Check git log origin/main -3 before pushing a big
change.git show HEAD:<file> | grep -c '^```') before fixing; a dangling
opener at EOF gets removed, not closed.git grep -i <term> returns 0 (tracked tree).See references/legacy-system-to-mycortex-2026-08-21.md for a worked example:
token list, guard table, every mangle class with its fix, and the
concurrent-push rebase sequence.