ワンクリックで
skills-cleanup
How to clean up duplicate/untracked skills in the skills repo
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
How to clean up duplicate/untracked skills in the skills repo
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Audit and score a repo's agent context file (AGENTS.md, CLAUDE.md, .hermes.md, .cursorrules) for how Hermes actually loads it: the 20KB truncation cap, one-file-wins priority, injection-scanner blocks, SOUL-vs-AGENTS placement, plus a Karpathy 12-rule completeness rubric and per-line instruction lints. Use when the user says audit my AGENTS.md, review this CLAUDE.md, check my context file, is my AGENTS.md too big, why isn't my AGENTS.md being followed, grade my repo instructions, or points at an AGENTS.md/CLAUDE.md and asks if it's good. For auditing a SKILL.md instead, use skill-audit.
Audit and score a SOUL.md (Hermes agent identity file) or any agent persona / system-prompt / operator-instruction doc, against how Hermes loads it plus attention research. Use when the user shares a SOUL.md, persona file, agent constitution, or system-prompt and asks to review/grade/audit it, 'is this good', or 'compare to best practice'. Not for skills (use skill-audit).
Eval-driven skill optimizer: runs a skill repeatedly, scores outputs against binary evals, mutates the prompt via structured edits, and keeps only changes that improve a held-out validation score (cross-model optimizer/target, three-way splits, golden cases, checkpoint resume). Use when: optimize/improve this skill, make this skill better, run autoresearch on, self-improve skill, benchmark/eval my skill, run evals on.
| name | skills-cleanup |
| description | How to clean up duplicate/untracked skills in the skills repo |
| tags | ["skills","maintenance","cleanup"] |
~/.hermes/skills/ (git: $SKILLS_REPO)creation_nudge_interval: 0 in config.yaml)~/.hermes/skills/ and skills.external_dirs (currently empty) — nothing else~/.hermes/skills-archive/~/.hermes/skills/<category>/<name>/git status) against remote (git ls-tree -r --name-only origin/main)~/.hermes/skills-archive/ (recoverable)Do not do cleanup or PR work directly in the runtime checkout (~/.hermes/skills). Preserve first, then move the review work into a project worktree:
cd ~/projects/skills
git fetch origin main
BRANCH="wip/preserve-skills-$(date +%Y%m%d)"
git worktree add ~/projects/_worktrees/$BRANCH -b "$BRANCH" origin/main
Copy or patch only the intentional skill changes into the worktree. Exclude generated/runtime state (.usage.json, .usage.json.lock, .curator_state, .curator_backups/, temporary reports, moved-file markers). Before committing, inspect git diff --name-status and stage explicit files rather than blanket-adding the runtime checkout.
For longer cleanup/review checklists, see references/runtime-skills-preservation.md and references/runtime-snapshot-pr-review.md.
Before pushing, scan for violations (this repo is PUBLIC):
grep -rnE '(personal-email@example\.com|PRIVATE_DOMAIN|ACCOUNT_ID|srv-[a-z0-9]{10,}|evg-[a-z0-9]{10,}|AuthKey_[A-Z0-9]+|\+1[0-9]{10}|password in)' --include="*.md" --include="*.py" --include="*.sh" .
Critical rules:
references/ file and inline into SKILL.md if result exceeds 500 lines. Restore the reference file.$VAR_NAME for all account-specific values (repo paths, tokens, account IDs, infra IDs).github/, autonomous-ai-agents/, software-development/, mlops/, media/, mcp/, leisure/, red-teaming/, note-taking/, email/, smart-home/, gaming/, analytics/, diagramming/, domain/, feeds/, gifs/, inference-sh/, dogfood/
Skills templated from a client project often have dead examples baked in (wrong audience, irrelevant copy, client-specific search queries). These mislead creative generation. Load references/inherited-client-examples.md for detection, cleanup rules, and a worked example.
When the user says the repo has "too many top-level folders" or categories feel off, load references/category-reorganization.md for the full audit and move playbook. Covers bloat detection, merging overlapping categories, moving project-specific skills to internal/, and keeping README.md and CLAUDE.md in sync.
When adding, removing, or renaming skills, update the README.md category table with accurate skill counts.