Understand where skills come from, keep them in sync, and resolve local edits.
Skills bring shared conventions and dependency-specific instructions into your repository. Use status, sync, and update commands to keep those instructions aligned with installed packages and upstream conventions while reviewing local edits.
In this guide you will:
Package skills. A package publishes skills by listing them in the jfdevelops.skills field of its package.json (see authoring skills). The CLI reads package metadata and each SKILL.md from the installed version it selects. If init cannot choose between replacement versions, it preserves the existing copy and warns. It never runs anything from those packages to discover skills.
Shared convention skills. These come from https://github.com/jfdevelops/skills on main. Each command that needs them clones that branch with Git into a temporary directory, discovers every skill registered in its package metadata, installs all of them, and deletes the clone. The CLI does not hardcode the skill list. The commit it cloned is recorded as each skill's source version, and the skills are marked required in jfdevelops.json. When a dependency provides a skill with the same name as a shared one, the shared skill wins. create and init also add @jfdevelops/skills as a development dependency, so the manifest declares that the project uses the shared skills, and skills update upgrades it. The skill files themselves always come from the main clone, so a skill pushed to main reaches the project before it is published to npm.
Skills are discovered from the dependencies of the project root and of each workspace package. Each skill is installed once, at the project root, and listings show which packages declare it. Skills from an integration package (Convex, Portless, docs, TanStack, or jfdevelops libraries) are offered only after that integration is adopted with init or add addon; see Addons.
Each skill has one full copy in .agents/skills/<name>/, which AGENTS.md links to. Codex, Cursor, and GitHub Copilot read that directory natively. Claude Code reads only .claude/skills, so when it is selected each skill also gets a stub .claude/skills/<name>/SKILL.md with the same frontmatter, which tells Claude Code to read the copy in .agents/skills. The stub only changes when the skill's frontmatter does. A skill that uses Claude Code's own preprocessing ($ARGUMENTS, positional or named arguments, ${CLAUDE_*} variables, or !`command` injection) gets a full copy in .claude/skills instead, because Claude Code only expands those in the SKILL.md it discovers.
create and init set the agents up, asking in a terminal or taking --agents, and record the choice in jfdevelops.json. Deselecting an agent with init removes its stubs. Projects set up before agents were selectable had full copies in .claude/skills, .cursor/skills, and .github/skills; the next skills sync replaces the Claude Code copies with stubs and removes the others, asking about any you edited, or following --conflicts.
jfdevelops skillsThe command needs jfdevelops.json (see command requirements). It prints any catalog problems as warnings, then a table with each enabled skill's name, state, source package and version, and details such as X → Y, the number of locally edited files, or the number of missing or outdated files. Below the table, an "Also available" line lists skills from installed packages that you could still enable with jfdevelops add skill <name>. Shared convention skills are never listed there; skills sync installs them.
| State | Meaning | What sync does |
|---|---|---|
current | Copies match the installed version, or the shared skill's recorded commit matches main | Nothing |
outdated | The installed package version changed, main has a newer commit than the shared skill's recorded one, or copies are missing or out of date | Updates the copies |
modified | At least one copy was edited after the CLI wrote it | Asks whether to keep or replace each edited copy |
missing-source | The CLI cannot find the skill from its recorded source. The package may be absent, may have stopped providing the skill, or a shared skill may have disappeared from main. | In a terminal, sync preselects it for removal. With --yes or without a terminal, sync warns and keeps it. --remove-missing selects it for removal in either mode. |
ambiguous | Several versions are installed in the workspace | Asks which version to use |
Status checks only enabled skills, so a shared skill newly added on main is not reported until a full sync installs it. For the same reason, skills --check does not detect a shared skill when both its jfdevelops.json entry and its file records are gone, although it does detect missing files of a recorded skill.
If a shared skill is no longer on main and you keep it during a sync, status and the AGENTS.md list show it as @jfdevelops/skills is not installed. That message appears even when @jfdevelops/skills is installed, and it does not mean you should reinstall the package, because shared skill files never come from it. To select individual missing-source skills for removal, run jfdevelops skills sync in a terminal without --yes. To select them all, run jfdevelops skills sync --remove-missing. A skill you keep remains enabled and continues to appear as missing-source.
Note: Add --check in CI to fail when the project needs a sync. It needs jfdevelops.json, Git, and network access, and it exits with 1 when jfdevelops/skills cannot be fetched. A shared skill counts as outdated whenever main has a new commit since the commit last recorded by init, update, skills update, or skills sync, even when the files are identical. So skills --check fails after every new upstream commit until you run jfdevelops skills sync.
jfdevelops skills syncskills sync needs a configured project; run npx @jfdevelops/cli init first when there is no jfdevelops.json.
Sync does the following:
main commit, and installs shared skills newly added there. A shared skill that is missing from the project comes back with a sync, in one of two cases:
jfdevelops.json, the skill is still enabled. Any sync, including skills update <name>, recreates the files, and skills --check reports it.skills sync installs it again only when its managedFiles records are gone too. Otherwise validation fails with "Owner skill is not enabled", and every command that reads jfdevelops.json refuses to run until you fix the file. Once the records are gone too, skills update <name> rejects the name as an unknown enabled skill, and add skill never offers it, so run a full skills sync.AGENTS.md skill list and records the new versions in jfdevelops.json.--yes or without a terminal, sync keeps all of them and warns with their names. Pass --remove-missing to select them all for removal in either mode. If you keep an edited copy, the skill stays enabled.--conflicts overwrite applies the planned replacement or deletion to every overwritable file conflict.jfdevelops.json; run init to change them.It prints "Skills are already in sync." when nothing changes.
jfdevelops skills update
jfdevelops skills update build-forms --directory ./shopskills update upgrades each enabled skill's source package to latest with your package manager, including a declared @jfdevelops/skills when shared skills are among the selected skills, then syncs the copies. A package pinned to a plain x.y.z version is saved as the new exact version; other specifiers get your package manager's default range. Shared skill files still come from main. Names that no enabled skill uses are rejected before anything is installed.
jfdevelops skills lists each enabled skill with its source package and version before you start.workspace:, file:, link:, and portal: sources are synced without a registry update.jfdevelops skills sync.@jfdevelops/skills package; the sync refreshes them from main.skills update syncs all enabled skills and installs newly added shared skills. With names, it syncs only those skills. The same selection limits --remove-missing to missing-source skills included in this update. With --yes or without a terminal, the command warns and keeps those skills unless you pass the flag.jfdevelops.json records the SHA-256 of every file the CLI wrote. Every command that writes files compares each file on disk with that record before changing it:
--conflicts.Each command that writes files shows a tree of every planned path with an action, and then applies it:
| Action | Meaning |
|---|---|
create | A new file |
update | An unchanged managed file is replaced |
edit | A targeted edit of a file you own, such as the AGENTS.md block or package.json scripts |
adopt | An existing identical file is now recorded as managed |
delete | An unchanged managed file is no longer needed |
forget | The record of a file that is already gone is dropped |
conflict | The file needs your decision |
write | The configuration, jfdevelops.json, will be rewritten |
| Conflict | Why it happens | Choices |
|---|---|---|
| Edited after the CLI last wrote it | You or a tool changed a managed copy | Keep the file, or replace it with the planned content |
| Exists and is not managed by the CLI | A file the CLI wants to create is already there | Keep the file, or replace it |
| No longer needed but edited | A removed skill's copy was edited | Keep the file, or delete it |
| Managed for something outside this setup | Another skill or addon owns the path | Kept; resolve the ownership first |
| A directory or link, not a file | Something other than a file is at the path | Kept; the CLI never writes through links |
Conflicts come up in every command that writes files, not only skill commands. Each overwritable conflict, the first three rows, is a question after the CLI shows a diff, and its default is to keep your file; --conflicts keep or --conflicts overwrite answers all of them at once (see Questions, flags, and defaults). The last two rows are always kept. Paths that resolve outside the project are rejected.
Kept conflicts stay recorded under their previous state, so the next skills run reports them again until they are resolved. Run the command again to retry files that failed.
The CLI only edits text between <!-- jfdevelops:start --> and <!-- jfdevelops:end -->. Everything else in AGENTS.md, CLAUDE.md, GEMINI.md, and .github/copilot-instructions.md is yours and preserved, including line endings. When the CLI creates AGENTS.md it starts with # Project agent instructions, and for CLAUDE.md with # Project instructions. A file with only one of the two markers stops the command until it is fixed. Generated projects keep Prettier and Biome away from skill copies, jfdevelops.json, and lockfiles, which the CLI and package managers rewrite.
Run jfdevelops skills outdated [directory] to compare the project's installed .agents/skills copies with the registered skills in https://github.com/jfdevelops/skills on main. This command works without jfdevelops.json or installed npm dependencies. It compares skills by name and checks every bundled file, including references, missing resources, and extra local resources. Skills absent from the upstream catalog are reported as not compared.
The command clones a temporary snapshot, reports its commit, and removes the snapshot afterward. It makes no changes to project files. An outdated result means content differs; differences may include local edits or unreleased changes on main, so it does not mean a package upgrade is pending. Run jfdevelops skills sync to bring the shared skill copies to the current main.
Use jfdevelops skills outdated --check in CI: it exits with code 1 for differences or a failed comparison and code 0 otherwise. Without --check, differences are informational; failures still exit with code 1. With no installed skills, it reports that fact without accessing the network.