Run agent skills
Build, validate, and exercise the agent-skills registry. Use when asked to run agent-skills, install its deps, lint or test it, run its bats suites, exercise a Claude Code hook, regenerate the index files, or symlink the skills out to ~/.claude / ~/.agents / ~/.cursor / ~/.opencode.From its SKILL.md
npx -y skills add usrrname/agent-skills --skill run-agent-skillsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.1 KB, ~1.6k tokens by cl100k_base, as published. Nobody here has run it
This repo is a Bun workspace of Markdown-defined skills/agents/rules plus a handful of Bash hooks and one TypeScript helper. There is no app to "launch" — driving it means running the validation pipeline (bun run validate) and exercising the Claude Code hooks by piping JSON to their stdin. All paths below are relative to the repo root.
Prerequisites
brew install bats-core shellcheck jq
curl -fsSL https://bun.sh/install | bash # or: brew install oven-sh/bun/bun
Versions confirmed working: bun 1.3.13, bats 1.13.0, shellcheck 0.11.0, jq 1.7.1.
Setup
bun install
Installs markdownlint-cli and yaml into root node_modules/. The workspace members (skills/, agents/, rules/) have empty deps — bun install finishes in ~50ms when already populated.
Run (agent path)
The full validation pipeline — lint markdown, lint shell, run bats, check indexes, check README links:
bun run validate
Each step is also addressable individually (and is what you want when iterating):
| command | what it does | exit code |
|---|---|---|
bun run lint | markdownlint on all **/*.md | 1 on findings |
bun run lint:fix | markdownlint --fix on all **/*.md | 1 on un-fixable findings |
bun run lint:sh | shellcheck on .claude/hooks/*.sh hooks/*.sh scripts/*.sh skills/symlink-skills/link.sh | 1 on findings |
bun run test | bats over .claude/hooks/tests/ hooks/tests/ scripts/tests/ skills/symlink-skills/tests/ | non-zero on test failure |
bun run index:gen | regenerate index.md in each category folder from frontmatter | 0 |
bun run index:check | verify index.md presence for skills/ agents/ rules/ commands/ hooks/ anywhere in the tree | non-zero on missing index |
bun run readme:check | verify root README.md links every SKILL.md and lists every agent | non-zero on drift |
Current test count: 72 bats tests across the four directories.
Direct invocation — exercising a hook
The hooks read Claude Code's PostToolUse payload from stdin. Drive them with jq-compatible JSON:
# validate-skill-frontmatter: succeeds (exit 0, no output) on a valid SKILL.md
echo '{"tool_input":{"file_path":"'$PWD'/skills/gcm/SKILL.md"}}' \
| .claude/hooks/validate-skill-frontmatter.sh
# validate-skill-frontmatter: fails (exit 2, blocking) when name/description missing
TMP=$(mktemp -d); printf '%s\n' '---' 'description: x' '---' > "$TMP/SKILL.md"
echo "{\"tool_input\":{\"file_path\":\"$TMP/SKILL.md\"}}" \
| .claude/hooks/validate-skill-frontmatter.sh; rm -rf "$TMP"
# session-log-reminder: prints reminder on git-commit, silent on anything else
echo '{"tool_input":{"command":"git commit -m test"}}' | hooks/session-log-reminder.sh
echo '{"tool_input":{"command":"ls -la"}}' | hooks/session-log-reminder.sh
check-index-md.sh and check-readme-sync.sh are also stdin hooks, but the bun scripts wrap them with the right env: prefer bun run index:check and bun run readme:check over invoking them directly.
Install — symlink skills out to loaders
./skills/symlink-skills/link.sh --help # see all options
./skills/symlink-skills/link.sh --dry-run # preview into all default targets
./skills/symlink-skills/link.sh --target /tmp/x --dry-run # preview into one explicit target
./skills/symlink-skills/link.sh # write into the 4 defaults
./skills/symlink-skills/link.sh --unlink # remove only the symlinks this script made
Per-project install of a single skill or agent:
scripts/add.sh --help
scripts/add.sh --link tmux-processes # from a local clone
scripts/add.sh --link --type agent adr-author
Gotchas
~/.claude/skills/may be read-only on a nix-darwin host. If$HOME/.claude/skillsis a symlink into/nix/store/…home-manager-files/.claude/skills(ownedroot:nixbld, modedr-xr-xr-x),link.shcannot write into it. It will print! <name> (ln failed — target dir not writable?)per skill and exit non-zero (errored=N). Workaround: either remove~/.claude/skillsfrom your home-manager config, or pass--targetto a writable directory and skip the read-only default.bun run lintcurrently fails (MD040) onskills/web-perf/SKILL.md(7 unfenced code blocks).bun run validatetherefore stops at the lint step on a fresh clone.bun run lint:fixdoes not fix MD040 — you need to add a language to each```fence by hand.bun run index:genis not idempotent across all files..opencode/agents/index.mdrewrites on every run (the other five indexes are stable). Re-run after edits.- Indexes are required.
bun run index:checkenforcesindex.mdin every folder namedskills/ agents/ rules/ commands/ hooks/anywhere in the tree (the repo root is exempt —README.mdcovers it). Drop a new folder there → must include anindex.md.
Troubleshooting
error: script "lint" exited with code 1listing MD040 in web-perf: pre-existing repo state, not your change. Either fixskills/web-perf/SKILL.md(add languages to its code fences) or skip past withbun run lint:sh && bun run test && bun run index:check && bun run readme:check.link.shsayslinked: …but~/.claude/skills/<name>doesn't exist: read the script's stderr —ln: …: Permission deniedmeans the target is read-only (see nix-darwin gotcha above). The exit code is unreliable here.bun installwarns about a missinghooksworkspace:hooks/is a publishable directory but not a workspace. If you see this, the rootpackage.jsonworkspacesarray was edited — it should be exactly["skills", "agents", "rules"].bats: command not found:brew install bats-core(notbats, which is a different package).
Conforms to the Agent Skills specification: https://agentskills.io/specification
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.