From skill-maintainer
Set up persistent maintenance config and state tracking in a skills repo. Creates .skill-maintainer/ directory with config, state, and best practices checklist. Use when user says "init maintenance", "set up maintenance", "initialize skill-maintainer", "configure maintenance", "add maintenance to this repo". Invoke with /skill-maintainer:init-maintenance.
How this skill is triggered — by the user, by Claude, or both
Slash command
/skill-maintainer:init-maintenanceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Set up persistent maintenance infrastructure in a skills repo. All steps are optional -- ask the user which ones to perform.
Set up persistent maintenance infrastructure in a skills repo. All steps are optional -- ask the user which ones to perform.
If $ARGUMENTS is non-empty, use it as the target directory path (resolve relative to cwd). Otherwise, use the current working directory.
Examples:
/skill-maintainer:init-maintenance -- initialize in cwd/skill-maintainer:init-maintenance ~/claude/mlx-skills -- initialize in mlx-skillsAll paths in the steps below are relative to the target directory.
mkdir -p .skill-maintainer/state
Write .skill-maintainer/config.json with defaults:
{
"upstream_urls": [
"https://code.claude.com/docs/en/skills",
"https://code.claude.com/docs/en/plugins",
"https://code.claude.com/docs/en/plugins-reference",
"https://code.claude.com/docs/en/discover-plugins",
"https://code.claude.com/docs/en/plugin-marketplaces",
"https://code.claude.com/docs/en/hooks-guide",
"https://code.claude.com/docs/en/hooks",
"https://code.claude.com/docs/en/sub-agents",
"https://code.claude.com/docs/en/memory"
],
"tracked_repos": [],
"llms_full_url": "https://code.claude.com/docs/llms-full.txt"
}
Ask the user if they have local git repos to track (e.g., coderef/ directories). Add paths to tracked_repos.
Copy references/best_practices.md (bundled with this plugin) to .skill-maintainer/best_practices.md. This checklist is the reference used by /skill-maintainer:maintain Phase 4.
Check if .gitignore exists. If it does, check if .skill-maintainer/state/ is already ignored. If not, append:
# skill-maintainer state (auto-generated, not tracked)
.skill-maintainer/state/
Ask the user if they want a pre-commit hook that validates SKILL.md files on commit. If yes, write .git/hooks/pre-commit:
#!/usr/bin/env bash
set -euo pipefail
staged=$(git diff --cached --name-only --diff-filter=ACM | grep 'SKILL\.md$' || true)
[ -z "$staged" ] && exit 0
for f in $staged; do
dir=$(dirname "$f")
echo "Validating $dir..."
uv run agentskills validate "$dir" || exit 1
done
Then: chmod +x .git/hooks/pre-commit
Only offer this if uv and agentskills (skills-ref) are available. Check with: uv run agentskills --version 2>/dev/null
Report what was created:
Suggest next steps:
/skill-maintainer:quality for an initial health checkconfig.json if needed/skill-maintainer:maintain for a full maintenance passnpx claudepluginhub fblissjr/fb-claude-skills --plugin skill-maintainerGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.