Getting started

Create a project, adopt an existing one, and keep its skills current.

@jfdevelops/cli sets up projects with the shared jfdevelops convention skills and the agent skills your dependencies publish. It runs on Node.js 22.12.0 or newer with npm, pnpm, yarn, or bun.

In this guide you will:

  • Create a new app or library.
  • Adopt an existing repository.
  • Check and refresh installed skills.

Each command shows the changes it plans and applies them; see Questions, flags, and defaults for what it asks. Cancelling a question does not roll back earlier installs; see Cancelling. Agents and scripts pass flags instead; see Run in automation.

Start a new project

npx @jfdevelops/cli create my-project

Pass . instead of a name to create the project in the current directory, named after it. A valid scoped name such as @acme/site is the package name and creates the project in ./site. Any other argument is the destination, and its last path segment is the package name (create apps/web creates the project in apps/web and names the package web). To create the project somewhere else, pass that path as the argument: create never asks for a destination. When that last segment is not a valid package name, create asks for the name instead, with the segment as the default. With no argument, it asks only for the name, defaulting to my-project.

It then asks, in this order:

  1. Whether the project is an app or a library.
  2. How it is structured: a single app or a monorepo, or a single package or a workspace, followed by the workspace questions.
  3. The template, package manager, formatter (Prettier or Biome), and coding agents.
  4. The optional remote URL for Git.

Each question has a flag that answers it, so a command such as the following asks nothing about the kind or the package manager:

npx @jfdevelops/cli create my-app --kind app --package-manager pnpm

create then:

  1. Writes the template, every shared convention skill from jfdevelops/skills on main, AGENTS.md, CLAUDE.md when Claude Code is selected, and jfdevelops.json.
  2. Installs dependencies, including the exact CLI version as a development dependency so later commands use the same CLI, and the latest @jfdevelops/skills release.
  3. Formats the files it wrote with the chosen formatter and ESLint and checks them, then runs build, or typecheck, test, and build in a workspace.
  4. Unless you passed --no-git, initializes Git on main with the commit chore(init): initialize project, and adds a given remote URL as origin without pushing. Git is skipped with a warning when Git has no author or committer identity (environment variables count as well as user.name and user.email) or the destination already contains a .git entry.

The destination may contain files: differing paths are offered as conflicts. A destination with jfdevelops.json is refused; use init instead. Before it writes anything, create shows the folder tree it will write. For an app you can also choose a monorepo, which creates a workspace with the app in apps/ and libraries in packages/. A library project can be a workspace of several packages too. In both cases you name the packages in one comma-separated answer; see the create command.

Adopt an existing project

npx @jfdevelops/cli init

init works through these steps:

  1. Detects the package manager (and asks only when it finds none and jfdevelops.json records none), the workspace packages, and whether each is an app or a library. It reuses a kind recorded in jfdevelops.json and asks only for a kind it cannot determine. To correct a kind, pass --targets <path>=<app|library>, for example npx @jfdevelops/cli init --targets packages/ui=library. See target kinds.
  2. Detects integrations such as Convex, Portless, docs, and individual TanStack and jfdevelops libraries. Interactive init asks which to adopt and preselects every detected integration. With --yes or without a terminal, it adopts all detected integrations on first setup and keeps the recorded integrations on later runs. --addons supplies your selection in either mode.
  3. Installs the shared convention skills, which are always included, and asks which skills from your installed dependencies to enable, with the enabled ones preselected. --skills answers this question.
  4. Asks which coding agents load the skills (Claude Code, Codex, Cursor, GitHub Copilot), preselecting those already recorded, then those whose files exist, then all. --agents answers this question.
  5. Shows the planned changes as a file tree, asks about each file you edited that a change would replace (unless you pass --conflicts), then applies the plan: it installs one copy of each skill in .agents/skills, adds a marked block to AGENTS.md (creating it if needed), adds a short pointer block to CLAUDE.md when Claude Code is selected and to existing GEMINI.md and .github/copilot-instructions.md, adds @jfdevelops/cli at this version and @jfdevelops/skills at its latest release as development dependencies when the project lacks them, and records the setup in jfdevelops.json.

init replaces a file you edited, or one the CLI does not manage, only when you choose to replace it in the conflict question or pass --conflicts overwrite. It updates and deletes unchanged managed files, and edits the marked blocks in files you own, without a per-file question. Run it again at any time; it reuses the recorded setup, and with nothing to change it reports that the project is already up to date. A rerun with --yes, or without a terminal, keeps the skills you enabled and the agents recorded; it does not enable skills that became available since. Use jfdevelops add skill <name> for those. To finish docs setup after init adopts the docs addon, see Addons.

What ends up in your project

PathPurposeOwner
.agents/skills/<name>/The only full copy of each skill, read natively by Codex, Cursor, and GitHub Copilot and linked from AGENTS.mdCLI
.claude/skills/<name>/SKILL.mdA stub per skill when Claude Code is selected: the same frontmatter, pointing to the copy in .agents/skillsCLI
AGENTS.mdYour instructions plus a marked block listing enabled skillsYou, except the marked block
CLAUDE.md, GEMINI.md, .github/copilot-instructions.mdA pointer block to AGENTS.md, added when the file exists (and to CLAUDE.md whenever Claude Code is selected)You, except the marked block
jfdevelops.jsonThe recorded setup; see configurationCLI

Commit all of these. Skill copies are files in your repository so every collaborator and agent sees the same instructions without any global setup.

Keep it current

  • jfdevelops skills reports whether enabled skills match your installed packages and the current jfdevelops/skills main. See skills and conflicts.
  • jfdevelops skills sync updates copies after a dependency upgrade or a new commit on main, and installs newly added shared skills.
  • jfdevelops skills update upgrades skill source packages to their latest releases, then syncs.
  • jfdevelops update uses the recorded package manager to upgrade the CLI and skill packages. Its init step keeps the recorded integrations, target kinds, agents, and enabled skills without asking. That step detects the package manager again and falls back to the recorded one.
  • jfdevelops add enables another skill, adopts an integration, or adds a workspace package. See Addons.

See the command reference for every command and option.

Next steps