# skills (/docs/cli/skills) > For the complete Prisma documentation index, see [llms.txt](https://www.prisma.io/docs/llms.txt). A markdown version of any docs page is available by appending `.md` to its URL. Keep the Prisma agent skills in a project current. Location: CLI > skills Use `skills` commands to keep a project's [Prisma agent skills](https://www.prisma.io/docs/ai/tools/skills) current. An agent skill is a directory with a `SKILL.md`: instructions that teach an AI coding agent (Claude Code, Cursor, Devin) how to use a library. Skills ship inside the Prisma npm packages your project installs, so they always describe the version in use. `skills sync` copies them into the directories the agent harnesses read. ## Usage [#usage] #### npm ```bash npx prisma skills sync ``` #### pnpm ```bash pnpm prisma skills sync ``` #### yarn ```bash yarn prisma skills sync ``` #### bun ```bash bunx prisma skills sync ``` Run [`init`](https://www.prisma.io/docs/cli/init) once to add a `postinstall` hook that reruns the sync on every install and upgrade. In a package-manager workspace, run `init` at the workspace root; see [In a workspace](#in-a-workspace). ## Commands [#commands] | Command | Description | | ------------- | --------------------------------------------------------------------- | | `skills sync` | Copy the agent skills from installed Prisma packages into the project | | `skills list` | Show which Prisma agent skills are installed in the project | `skills sync` takes: | Option | What it does | | ----------- | -------------------------------------------------------------------------------------------------- | | `--disable` | Stop other commands reporting out-of-date skills in this project (stored in `.prisma/skills.json`) | | `--enable` | Undo `--disable` for this project | ## Where skills come from [#where-skills-come-from] Sync resolves a fixed allowlist of Prisma packages by name, from the project root and each workspace member: - `@prisma/orm-postgres` - `@prisma/orm-sqlite` - `@prisma/orm-mongo` - `@prisma/composer` - `prisma` itself, which ships the `prisma-platform-core-concepts` skill Only these packages are sources: sync does not look through the rest of `node_modules` for skills. A skill is instructions an agent will follow, so installing one from an arbitrary dependency would hand that dependency's author influence over your agent. If two workspace members pin different versions of one package, the highest version wins and sync warns. A listed package counts whenever your project can import it, even when it came in as a dependency of another package. With npm, installing `prisma` also makes `@prisma/composer` importable, so a Prisma ORM project gets the `prisma-composer-core-concepts` skill too. ## Where skills go [#where-skills-go] Sync writes one copy per configured agent harness: | Agent | Directory | | -------- | ---------------- | | `claude` | `.claude/skills` | | `cursor` | `.cursor/skills` | | `agents` | `.agents/skills` | | `devin` | `.devin/skills` | Without configuration, sync writes every directory, so a harness you adopt later finds the skills already there. Narrow the set with `skills: { agents: [...] }` in `prisma.config.ts`; see [Configuration](https://www.prisma.io/docs/cli/configuration#agent-skills). The copies are ordinary files that git tracks: commit them so agents have the skills on a fresh clone. Each copy carries the source package's version in its `SKILL.md` frontmatter. Sync compares that stamp against the installed package and re-copies on mismatch, and removes copies whose source package is no longer installed or whose agent is no longer named in `skills.agents`; `agents: []` removes them all. A directory sync does not own, such as a hand-written skill whose name collides, is left intact and reported as refused. Sync does nothing, and exits 0, when everything is already current. ## In a workspace [#in-a-workspace] A package-manager workspace (a `pnpm-workspace.yaml`, or a `package.json` with a `workspaces` field) keeps one set of skill copies, at the workspace root. Inside a workspace member, the skills commands work on the root, not on the member: - `skills sync` and `skills list` read and write the copies under the workspace root. A sync collects skills from the installed packages of every workspace member. - The staleness check reads the root's copies. - `skills sync --disable` and `--enable` record the setting in the root's `.prisma/skills.json`. - The `skills` settings come from the root's `prisma.config.ts` and any config above it. A `skills` section in a member's own `prisma.config.ts` has no effect: `skills sync`, `skills list`, and `init --skills` warn about it with [`SKILLS.MEMBER_CONFIG_IGNORED`](https://www.prisma.io/docs/cli/error-reference#SKILLS.MEMBER_CONFIG_IGNORED) and name the root config to move it to. The section must still be valid, or those commands fail. To find the root, the CLI walks up from the current directory to the first directory with a `pnpm-workspace.yaml` or a `package.json` with `workspaces`. It uses that directory when the workspace lists the current directory, or a directory that contains it, as a member. If it does not, the CLI uses the current directory. The walk never leaves the Git repository, and outside a Git repository the CLI always uses the current directory. Run [`init`](https://www.prisma.io/docs/cli/init) once at the workspace root. It adds the `postinstall` hook to the root's `package.json` and `prisma` to the root's `devDependencies`. The root needs its own `prisma` dependency, because pnpm runs the root's `postinstall` with only the root's own installed binaries on the path. Give it the same exact version as the members' (no `^` or `~`): `init` pins the version of the `prisma` that ran it, so run it as `npx prisma@ init` with the members' version, or change the pin afterwards. Run inside a member, `skills sync` and `skills list` warn with [`SKILLS.MEMBER_LEFTOVER`](https://www.prisma.io/docs/cli/error-reference#SKILLS.MEMBER_LEFTOVER) about skills files in the member that the root setup replaces. Releases before `8.0.0-rc.38` kept them there. The warning names each one, and the commands remove none of them: - Skill copies in the member's agent directories, which nothing updates any more. Delete them. - A `.prisma/skills.json` in the member, which is no longer read. Delete it, and run `skills sync --disable` at the root if you want the setting. - A `postinstall` script in the member's `package.json` that runs `prisma skills sync`. Remove that command from the script; the root's hook replaces it. ## The staleness check [#the-staleness-check] After a package upgrade that nobody follows with a sync, every `prisma` command appends one line to stderr (or, under `--format markdown`, a short section to stdout, shown below): ```text Prisma agent skills are out of date (installed @prisma/orm-postgres 8.1.0, synced 8.0.0). Run: prisma skills sync ``` The notice never changes the exit code. It is not conditioned on a TTY: agents run without one, and they are who it is for. Under `--format markdown` the notice moves to stdout, after the command's output, so an agent still reads one stream: ```text ### Notice Prisma agent skills are out of date (installed @prisma/orm-postgres 8.1.0, synced 8.0.0). - Sync agent skills: `prisma skills sync` ``` Every other format keeps it on stderr and writes nothing to stdout. It is suppressed by any of: 1. `prisma skills sync --disable` (persistent, per project). 2. `skills: { check: false }` in `prisma.config.ts`. 3. The [`PRISMA_SKILLS_CHECK=0`](https://www.prisma.io/docs/cli/environment-variables) environment variable. 4. A `CI` or `GITHUB_ACTIONS` environment variable. 5. The `--quiet`, `--json`, `--format json`, or `--version` flags on the current invocation. 6. Running a `skills` or `init` command itself. ## Related pages - [auth](https://www.prisma.io/docs/cli/auth): Sign in to your Prisma account from the CLI, sign out, and manage workspace sessions. - [branch](https://www.prisma.io/docs/cli/branch): List platform branches for a project. - [bucket](https://www.prisma.io/docs/cli/bucket): Create and manage object-store buckets. - [Configuration](https://www.prisma.io/docs/cli/configuration): Configure Prisma ORM CLI commands with prisma.config.ts and global flags. - [contract emit](https://www.prisma.io/docs/cli/contract-emit): Emit Prisma ORM contract artifacts.