fork-and-publish-skill
Skill24 starsChanged 5 months agoMITView on GitHub
Customizes an installed agent skill and ships it back upstream or as a versioned fork using qvr's edit/publish authoring loop. Use when a user wants to modify, customize, fork, release, or publish a qvr skill — e.g. "edit this skill", "publish my changes", "fork a skill to my own repo", "cut a v1.0.0 release of a skill", or "iterate on a skill and tag new versions". Covers qvr edit, diff, status, and publish (--fork --migrate --tag, --auto-commit, root vs nested layout), including the consume-mode round trip.
In this repository6 other files it gives its agents.
- create-skill-evalSkill
- onboard-skillsSkill
- optimize-skill-loopSkill
- reproduce-skill-envSkill
- trace-skill-activitySkill
- verify-skill-supply-chainSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 80
Use --fork <git-url> to retarget the push, and --migrate to rewrite the lock entry so future publishes track the fork:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Fork and publish a skill with qvr
qvr lets you take an installed skill, eject it into your project to edit directly, then publish the result — either back to its origin or to a brand new fork you own — cutting tagged releases as you go. After each publish the lock entry flips back to consume mode, so you can iterate: edit → publish v0.2.0 → edit → publish v0.3.0. This skill drives that loop.
When to use this
- The user wants to tweak a skill's content and keep the change.
- They want to publish a skill back upstream, or fork it to a repo they control.
- They want to cut tagged releases and iterate version by version.
For installing/discovering skills use onboard-skills; for verifying provenance
of what you publish use verify-skill-supply-chain.
Prerequisites
- The skill must be installed in a project (not only
--global). Editing a global skill in place would mutate a copy every project shares, so it's not supported. To change a global skill:qvr add <skill>into a project, edit and publish there, then re-add the published version with--global. - A clean-ish working state helps;
publishrefuses a dirty eject dir unless you pass--auto-commit.
Workflow
1. Eject the skill for editing
qvr edit promotes the symlinked skill into a real directory under the canonical
agent target (the alphabetical-first installed target — e.g. .claude/skills/<name>/
or .cursor/rules/<name>/, depending on what you installed into); any other
installed target dirs become relative symlinks to it. The lock entry gains
mode = 'edit'.
qvr edit my-skill
qvr edit my-skill --author "Jane Dev" --email jane@example.com # initial-commit identityIt's idempotent — running it again after the first eject is a no-op.
2. Make and review changes
Edit the files in the ejected skill directory (the canonical agent target), then review:
qvr diff my-skill # git diff in the skill worktree
qvr diff my-skill --stat
qvr status my-skill # dirty state + git ahead/behind3a. Publish back to the original upstream
qvr publish my-skill -m "Fix edge case" --tag v1.0.1
qvr publish my-skill --dry-run -m "..." # validate and stage without pushing
qvr publish my-skill --auto-commit -m "..." # stage+commit a dirty eject dir first3b. Fork to a new repo you own
Use --fork <git-url> to retarget the push, and --migrate to rewrite the lock
entry so future publishes track the fork:
qvr publish my-skill --fork https://github.com/me/my-skill.git --migrate --tag v0.1.0--fork --migrate auto-registers the fork as a config registry named
<org>/<repo> (e.g. me/my-skill). To re-add the skill from it later, use that
full name:
qvr add my-skill --registry me/my-skill--layout controls the published repo shape: root (single-skill repo, the
default for --fork) or nested (multi-skill registry under skills/<name>/,
the default otherwise).
4. Iterate releases
Each publish flips the entry back to consume mode, so the loop repeats cleanly:
qvr edit my-skill
# ...changes...
qvr publish my-skill --tag v0.2.0
qvr edit my-skill
# ...changes...
qvr publish my-skill --tag v0.3.0Consumers pick up a release with the version manager:
qvr outdated # which installs have newer upstream commits
qvr switch my-skill v0.3.0 # explicit pin
qvr switch my-skill --latest # jump to the latest semver tag
qvr pull my-skill # fast-forward the current ref (alias of switch --tip)5. Add a new skill to a registry (greenfield path mode)
To publish a brand-new local skill directory into a multi-skill registry repo:
qvr publish ./my-new-skill --registry me/agent-skills -m "Add my-new-skill"Gotchas
- Dirty eject dirs are refused.
publishwon't push uncommitted changes unless you pass--auto-commit(which stages + commits first). --migrateonly matters with--fork. Without it, the fork push is one-off and the lock entry still tracks the original upstream.- Registry name after a fork is the full
<org>/<repo>, not a short alias —qvr add … --registry,registry list, andregistry updateall need it. - Clean up edit ejects before teardown. A
syncwith a drifted/ejected entry fails asking for--allow-drift; publish or revert the eject first (or re-consume the skill) before acache clean+sync. - Lockfile/HEAD mismatch is refused for integrity; only override with
--allow-lockfile-healif you understand why HEAD diverged.
Troubleshooting
- "refusing dirty working directory" — commit the eject, or pass
--auto-commit. - Second release fails to resolve the commit — make sure each iteration goes
through
qvr editagain; the entry must be back in edit mode to publish. qvr add --registry <alias>can't find the fork — use the full<org>/<repo>name that--fork --migrateregistered, visible inqvr registry list.- Want to undo an eject without publishing — re-consume the skill (re-
add/switchto a ref); confirm withqvr statusandqvr sync.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

