Add metadata.internal: true to all authored skills + improve skills documentation routing#9410
Conversation
|
🚀 Starting implementation Worktree: |
metadata.internal: true to all authored skills + improve skills documentation routing
… documentation routing This commit marks all 20 erk-authored skills in `.claude/skills/` with `metadata.internal: true` to hide them from public discovery on skills.sh and the `npx skills` CLI. It also improves documentation discoverability by adding a "Skills, SKILL.md, capabilities" row to the AGENTS.md routing table, linking to the skills management guide, and enhancing the docs/learned/index.md categories section with skill-focused guidance. ## Key Changes - Add `metadata.internal: true` to all 20 authored skills in `.claude/skills/` (ci-iteration, cli-skill-creator, cmux, command-creator, dignified-code-simplifier, erk-diff-analysis, erk-exec, erk-gt, erk-planning, erk-skill-onboarding, gh, learned-docs, npx-skills, objective, pr-feedback-classifier, pr-operations, refac-cli-push-down, refac-module-to-subpackage, rename-swarm, session-inspector) - Add skills/capabilities row to AGENTS.md documentation-first discovery routing table - Add "Modifying skills?" callout in AGENTS.md pointing to NPX Skill Management guide - Document `metadata.internal` field in `docs/learned/capabilities/npx-skill-management.md` with explanation and examples - Update `docs/learned/index.md` capabilities category with description and read-when guidance <details> <summary>Files Changed</summary> ### Modified (23 files) - `.claude/skills/ci-iteration/SKILL.md` — Added metadata.internal field - `.claude/skills/cli-skill-creator/SKILL.md` — Added metadata.internal field - `.claude/skills/cmux/SKILL.md` — Added metadata.internal field - `.claude/skills/command-creator/SKILL.md` — Added metadata.internal field - `.claude/skills/dignified-code-simplifier/SKILL.md` — Added metadata.internal field - `.claude/skills/erk-diff-analysis/SKILL.md` — Added metadata.internal field - `.claude/skills/erk-exec/SKILL.md` — Added metadata.internal field - `.claude/skills/erk-gt/SKILL.md` — Added metadata.internal field - `.claude/skills/erk-planning/SKILL.md` — Added metadata.internal field - `.claude/skills/erk-skill-onboarding/SKILL.md` — Added metadata.internal field - `.claude/skills/gh/SKILL.md` — Added metadata.internal field - `.claude/skills/learned-docs/SKILL.md` — Added metadata.internal field - `.claude/skills/npx-skills/SKILL.md` — Added metadata.internal field - `.claude/skills/objective/SKILL.md` — Added metadata.internal field - `.claude/skills/pr-feedback-classifier/SKILL.md` — Added metadata.internal field - `.claude/skills/pr-operations/SKILL.md` — Added metadata.internal field - `.claude/skills/refac-cli-push-down/SKILL.md` — Added metadata.internal field - `.claude/skills/refac-module-to-subpackage/SKILL.md` — Added metadata.internal field - `.claude/skills/rename-swarm/SKILL.md` — Added metadata.internal field - `.claude/skills/session-inspector/SKILL.md` — Added metadata.internal field - `AGENTS.md` — Added skills routing row and modifying skills callout - `docs/learned/capabilities/npx-skill-management.md` — Added metadata.internal section - `docs/learned/index.md` — Enhanced capabilities category description </details>
This stack of pull requests is managed by Graphite. Learn more about stacking. |
✅ Audit PR DocsLast updated: 2026-03-30 10:24:58 PT Found 0 violations across 1 file. No inline comments needed. DetailsPatterns Checked✅ Verbatim code blocks — None found Doc Audit:
|
- Generalize "Modifying skills?" to "Adding or modifying skills?" in AGENTS.md - Remove hardcoded skill count from npx-skill-management.md to avoid drift
Addressed: Removed the hardcoded count — now says "all erk-authored skills in Addressed via |
b078fa1 to
34fb87f
Compare

This commit marks all 20 erk-authored skills in
.claude/skills/withmetadata.internal: trueto hide them from public discovery on skills.sh and thenpx skillsCLI. It also improves documentation discoverability by adding a "Skills, SKILL.md, capabilities" row to the AGENTS.md routing table, adding a callout for skill modifications, and enhancing the docs/learned/index.md categories section with skill-focused guidance.Key Changes
metadata.internal: trueto all 20 authored skills in.claude/skills/(ci-iteration, cli-skill-creator, cmux, command-creator, dignified-code-simplifier, erk-diff-analysis, erk-exec, erk-gt, erk-planning, erk-skill-onboarding, gh, learned-docs, npx-skills, objective, pr-feedback-classifier, pr-operations, refac-cli-push-down, refac-module-to-subpackage, rename-swarm, session-inspector)metadata.internalfield indocs/learned/capabilities/npx-skill-management.mdwith explanation and examplesdocs/learned/index.mdcapabilities category with description and read-when guidanceFiles Changed
Modified (23 files)
.claude/skills/ci-iteration/SKILL.md— Added metadata.internal field.claude/skills/cli-skill-creator/SKILL.md— Added metadata.internal field.claude/skills/cmux/SKILL.md— Added metadata.internal field.claude/skills/command-creator/SKILL.md— Added metadata.internal field.claude/skills/dignified-code-simplifier/SKILL.md— Added metadata.internal field.claude/skills/erk-diff-analysis/SKILL.md— Added metadata.internal field.claude/skills/erk-exec/SKILL.md— Added metadata.internal field.claude/skills/erk-gt/SKILL.md— Added metadata.internal field.claude/skills/erk-planning/SKILL.md— Added metadata.internal field.claude/skills/erk-skill-onboarding/SKILL.md— Added metadata.internal field.claude/skills/gh/SKILL.md— Added metadata.internal field.claude/skills/learned-docs/SKILL.md— Added metadata.internal field.claude/skills/npx-skills/SKILL.md— Added metadata.internal field.claude/skills/objective/SKILL.md— Added metadata.internal field.claude/skills/pr-feedback-classifier/SKILL.md— Added metadata.internal field.claude/skills/pr-operations/SKILL.md— Added metadata.internal field.claude/skills/refac-cli-push-down/SKILL.md— Added metadata.internal field.claude/skills/refac-module-to-subpackage/SKILL.md— Added metadata.internal field.claude/skills/rename-swarm/SKILL.md— Added metadata.internal field.claude/skills/session-inspector/SKILL.md— Added metadata.internal fieldAGENTS.md— Added skills routing row and modifying skills calloutdocs/learned/capabilities/npx-skill-management.md— Added metadata.internal sectiondocs/learned/index.md— Enhanced capabilities category descriptionoriginal-plan
Plan: Add
metadata.internal: true+ improve skills documentation routingContext
Skills in this repo appeared on the skills.sh public leaderboard. While investigating, we found that
docs/learned/capabilities/npx-skill-management.mdalready documents the distinction between authored and npx-installed skills — but it wasn't discovered because nothing in AGENTS.md routes to it. The existing doc is good; the problem is discoverability.Part 1: Add
metadata.internal: trueto authored skillsAdd
metadata.internal: trueto all 20 SKILL.md files in.claude/skills/. The 5 symlinked skills in.agents/skills/are installed from external repos and should NOT be modified here.Files (20 total) — all
.claude/skills/:ci-iteration, cli-skill-creator, cmux, command-creator, dignified-code-simplifier, erk-diff-analysis, erk-exec, erk-gt, erk-planning, erk-skill-onboarding, gh, learned-docs, npx-skills, objective, pr-feedback-classifier, pr-operations, refac-cli-push-down, refac-module-to-subpackage, rename-swarm, session-inspector
Part 2: Fix documentation routing in AGENTS.md
2a. Add skills/capabilities row to the routing table (~line 170)
Add to the "Topic Area | Check First" table:
File:
AGENTS.mdline ~178 (after the TUI row)2b. Add routing to "Skill Loading Behavior" section (~line 148)
Expand the section to point to the detailed doc when modifying or adding skills:
File:
AGENTS.mdline ~155 (after the npx skills one-liner)2c. Add description to capabilities category in docs/learned/index.md
Change the bare
- [capabilities/](capabilities/)line to include a description and read-when guidance, matching the style of other categories likecli/andhooks/.File:
docs/learned/index.mdline 12Part 3: Add
metadata.internalsection to npx-skill-management.mdAdd a section to the existing doc covering:
metadata.internal: truedoes (hides fromnpx skillsCLI discovery and skills.sh)File:
docs/learned/capabilities/npx-skill-management.md(new section after the comparison table)Verification
grep -r "internal: true" .claude/skills/→ 20 matchesgrep -r "internal: true" .agents/skills/→ 0 matchesdocs/learned/index.mdcapabilities category has descriptionplan-header
To replicate this PR locally, run: