Agent skills
Install the OriginAI agent skill for Claude Code, Cursor, Codex, and other skill hosts.
The OriginAI skill teaches a coding agent how to use the CLI, treat releases as the source of truth, and author and validate RPML. Installing it is what turns a generic agent into one that understands your OriginAI workflow.
| Field | Value |
|---|---|
| Skill name | origin-product-spec-management |
| Install path | .agents/skills/origin-product-spec-management/ |
| Canonical source | packages/skills/src/setup.ts → SKILL_MD |
| Generated discovery | frontend/public/.well-known/agent-skills/ (do not hand-edit) |
What the skill does
- Connects Claude Code, Cursor, Codex, Pi, Hermes, and skills.sh agents to your OriginAI product specs.
- Tells the agent to use MCP tools first when connected, and to fall back to the
originaiCLI (which has the same semantics) otherwise. - Documents the release-default read model and the post-release change-request write loop.
- Bundles RPML references under
rpml/— the method, an element index, examples, and prompts. - Relies on
npx originai loginfor auth rather than embedding tokens in the skill.
Install the skill
Option A — skills.sh (the recommended discovery path)
The public skill lives in 21stware/originai-context under skills/origin-product-spec-management/.
npx skills add 21stware/originai-context
# or pin a specific skill:
npx skills add 21stware/originai-context --skill origin-product-spec-management
# or list what's available first:
npx skills add 21stware/originai-context --listThe skill contains no secrets and no project ID, so you still need to bind auth and a project:
npx originai login
npx originai link --project <project-id>You can also install from the site's well-known endpoint (the same skill body over HTTP):
npx skills add https://getoriginai.com
# https://getoriginai.com/.well-known/agent-skills/index.jsonFor more, see skills.sh and the skills CLI.
Option B — the OriginAI CLI (writes the skill into your repo)
npx originai login
npx originai link --project <project-id> --skill
# or install the skill only, if .origin.json already exists:
npx originai link --skillOption C — the Claude Code plugin
Install the Origin marketplace plugin from the same public repo; it bundles the skill and a local MCP server. See MCP & agent install.
After installing, ask the agent to read SKILL.md and either implement or index your specs.
Setup, end to end
- Install the skill — via
npx skills add 21stware/originai-context,originai link --skill, or the Claude plugin. - Authorize the CLI —
npx originai loginwrites~/.origin/settings.json. - Bind the project —
npx originai link --project <id>writes.origin.json. - Let the agent work — through MCP tools when connected, or the
originaiCLI otherwise.
How sync works
- Read commands use the latest published release, so agents implement formally released specs rather than in-progress workspace edits.
- Write commands modify the live workspace before the first release. After that, they stage a change request (
suggested: true) for you to apply, then publish. Agents never apply their own requests. .origin.jsoncarries therelease_hash. After implementing a published release,originai syncadvances the pointer.
For the full command table, see the OriginAI CLI.
HTTP discovery (optional)
The CLI is preferred, but an agent can also fetch the skill over HTTP without installing anything:
These files are generated from SKILL_MD at frontend build time (frontend/scripts/generate-well-known-skill.ts). Only ever edit SKILL_MD.
Keeping the skill accurate
| When this changes… | Update… |
|---|---|
| CLI behavior or skill instructions | packages/skills/src/setup.ts first, then this page. |
| The well-known skill body | Regenerate it via the frontend build — never hand-edit it. |