Agent skills for Prisma Composer — one
SKILL.md that teaches an LLM agent how to write, test, and deploy a Prisma
App without re-deriving the API from documentation each time.
One skill, prisma-composer-core-concepts, covering the whole story: the mental model
(Modules, compute(), service.load()), RPC contracts, databases, reusable
modules (cron/storage/streams), config params, secrets, testing
(mockService/bootstrapService), deploying (prisma deploy,
environments, removing an app or an environment), and the production pitfalls. Composer's surface is small
enough for one skill; there is no router or per-topic cluster.
The skill ships inside the @prisma/composer tarball, so installing the
package is what brings it in. prisma skills sync (from the prisma CLI)
copies it out of node_modules into the skill directories the agent runtimes
read — .claude/skills/, .cursor/skills/, .agents/skills/,
.windsurf/skills/:
pnpm add @prisma/composer
pnpm add -D prisma
pnpm prisma skills syncAdd it to your project's postinstall so an upgrade brings the matching skill
with it:
In a monorepo (a pnpm, npm or Yarn workspace), put the hook in the package.json at the workspace root (the directory with pnpm-workspace.yaml, or the package.json that lists workspaces), not in a workspace package's: hooks in several packages run at the same time and can leave the skill copy at the root missing a file. The root's sync installs the skills of every workspace package. List prisma there as a dev dependency, at the version your packages use, so the root's hook can find the command. If prisma warns with SKILLS.MEMBER_LEFTOVER, a workspace package still has something an earlier prisma put there: move the hook to the root, and delete the other files the warning names, such as old skill copies.
The version you read is then always the version you installed: the skill's
frontmatter carries metadata.library: "@prisma/composer" and a
metadata.library_version stamped by the release that built the tarball
(scripts/set-version.ts;
scripts/check-skill-packaging.mjs
proves it against the packed artifact).
The GitHub source stays available for anyone who wants the skill without
@prisma/composer in their project:
npx skills add prisma/composerThe skills CLI installs it at the
project level for the agent runtimes it detects (-a <agent> to pick one).
Nothing keeps this copy in step with your packages, so pick the git ref
matching your @prisma/composer version by hand and re-do it on every
upgrade.
The skill is the agent-condensed mirror of the human guides in
docs/guides/ — the guides are canonical for humans; a
surface change lands in both. For anyone editing the skill:
- Verify every claim while drafting, not in a final pass. Every import
must resolve against a
packages/9-public/*export map, and every CLI flag/command againstpackages/0-framework/3-tooling/cli/. If ripgrep finds nothing, the surface doesn't ship — name it under What Composer doesn't do yet instead of extrapolating. - The skill must be self-contained. It gets installed into other repos, so
no link may resolve outside
skills/prisma-composer-core-concepts/. Repo docs may be named in prose ("docs/design/10-domains/testing.mdin the prisma/composer repo"), never linked relatively. - Teach concepts, not procedures. Name the moving parts and the command that reveals each piece of state; reserve numbered steps for one-safe-path operations.
- Leave the
metadatastamp alone.metadata.librarynames the npm package the skill ships inside, andmetadata.library_versionis rewritten byscripts/set-version.tson every release — hand-editing the version, or dropping either key, breaks the release script andscripts/check-skill-packaging.mjs. They live undermetadatabecause the Agent Skills spec defines the top-level keys and reserves that map (string → string) for publisher extensions. A new skill needs both keys, with any placeholder version. - Folder name and frontmatter
namemust match — the runtimes key on the frontmatter, humans on the folder.
Maintainer-facing skills (release process, commit conventions) live in
../skills-contrib/, not here.