Stop copying SKILL.md folders between repos. Declare skills in one file, pin them in a lockfile, and install the same files for Claude Code, Codex, and Cursor.
npm install -g skillfold
Set up skillfold in this project (docs: https://skillfold.botsmith.dev/llms.txt): run `npx skillfold init && npx skillfold install`, read `.claude/skills/skillfold-cli/SKILL.md`, add the skills this project needs (the header of `skillfold.yaml` lists starters), then commit `skillfold.yaml` and `skillfold.lock`.
~/project $ cat skillfold.yaml targets: [claude, cursor] skills: commit-helper: ./skills/commit-helper code-review: npm:skillfold/code-review testing: npm:skillfold/testing ~/project $ skillfold install + commit-helper ./skills/commit-helper + code-review npm:skillfold/code-review -> 2.9.0 + testing npm:skillfold/testing -> 2.9.0 3 installed, 0 unchanged -> .claude/skills, .cursor/skills lockfile: skillfold.lock ~/project $ skillfold check ok: 3 skills in sync
Commit skillfold.yaml and skillfold.lock; the installed directories can be gitignored.
Teammates run skillfold install and get the same skills.
Remote skills are pinned to a commit SHA or exact version, plus a sha256 hash. install keeps existing pins; update moves them.
Hand-written skills can sit next to managed ones. Skillfold never overwrites or deletes a directory it did not install, unless you pass --force.
skillfold install --frozen installs exactly what the lockfile pins and fails on any drift or hash mismatch, like npm ci. If you commit the installed files instead, skillfold check verifies them offline.
Combine several skills into one generated SKILL.md, such as a reviewer built from your code-review and testing skills. Supporting files come along.
A trailing @ref pins a tag, branch, or SHA on GitHub, or a version on npm.
@installed follows the version of the npm package your project has installed.
Manifest reference
# skillfold.yaml skills: # local directory, relative to the manifest commit-helper: ./skills/commit-helper # GitHub: owner/repo/path frontend-design: github:anthropics/skills/skills/frontend-design@main # npm: package/skill code-review: npm:skillfold/code-review testing: npm:skillfold/testing@2.9.0 compose: reviewer: description: Review code changes together with their tests. use: [code-review, testing] # single .md instruction files, installed as each agent's rules rules: code-style: ./rules/code-style.md targets: [claude, codex, cursor] # default: [claude]
npm install -g skillfold
Private GitHub repos use your gh or git sign-in, or GITHUB_TOKEN.
Any GitHub repo with a SKILL.md directory is already a source. On npm, an
agentskills map makes each skill addable by name, and the
skillfold-skill keyword lists the package in skillfold search.