Skip to content

Agent skill

The npm package ships a catapultjs agent skill: instruction files that teach an AI coding agent how to work with Catapult correctly. It follows the SKILL.md format used by Claude Code and other compatible agents.

Once installed in your project, the agent loads the skill automatically when the task matches: ask it to "configure deployment for this project", "write a recipe for Meilisearch" or "script a deploy with a Slack notification" and it applies Catapult's conventions instead of guessing.

Installation

The easiest way is the skills CLI, which installs from the GitHub repository for Claude Code, Cursor, Codex and many other agents:

bash
npx skills add catapultjs/deploy

Alternatively, the skill ships in the npm package: copy it from node_modules into your project's skill directory:

bash
mkdir -p .claude/skills
cp -r node_modules/@catapultjs/deploy/skills/catapultjs .claude/skills/

You can also place it in ~/.claude/skills/ to make it available across all your projects.

How it is organised

The skill uses progressive disclosure: a small SKILL.md carries the universal rules (notably that one recipe must provide deploy:update_code) and routes the agent to a reference file matching the task. References are only read when needed, keeping the agent's context small.

ReferenceCovers
references/config.mdCreating and evolving deploy.ts: all config and host options, recipe selection by stack, healthchecks, lifecycle hooks, store options, pipeline tuning and setPipeline()
references/recipe.mdWriting recipes: conventions, task DSL, TaskContext, pipeline insertion, onSetup/onStatus hooks, TaskRegistry augmentation, pre-publication checklist
references/recipes.mdUsing official recipes (git, rsync, astro, vitepress, adonisjs, nuxt, directus, pm2, redis): tasks added, store keys, monorepo patterns
references/api.mdScripting with the programmatic API: the Catapult class, methods with return shapes and CLI equivalents, events, output capture, silent mode
references/github-actions.mdSetting up a GitHub Actions workflow with catapultjs/deploy-action: inputs, SSH secrets, env vars
references/cli.mdThe cata CLI: all commands, flags, global options and config loading

See Getting Started, Creating a Recipe, Programmatic usage and CI/CD for the underlying guides.

Keeping the skill up to date

With the skills CLI:

bash
npx skills update catapultjs

If you copied it from node_modules, the skill is versioned with the package: after upgrading @catapultjs/deploy, copy it again so it matches the installed version:

bash
cp -r node_modules/@catapultjs/deploy/skills/catapultjs .claude/skills/