OriginAIProduct specs for Claude Code, Cursor, and Codex

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.

FieldValue
Skill nameorigin-product-spec-management
Install path.agents/skills/origin-product-spec-management/
Canonical sourcepackages/skills/src/setup.tsSKILL_MD
Generated discoveryfrontend/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 originai CLI (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 login for auth rather than embedding tokens in the skill.

Install the skill

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 --list

The 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.json

For 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 --skill

Option 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

  1. Install the skill — via npx skills add 21stware/originai-context, originai link --skill, or the Claude plugin.
  2. Authorize the CLInpx originai login writes ~/.origin/settings.json.
  3. Bind the projectnpx originai link --project <id> writes .origin.json.
  4. Let the agent work — through MCP tools when connected, or the originai CLI 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.json carries the release_hash. After implementing a published release, originai sync advances 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 instructionspackages/skills/src/setup.ts first, then this page.
The well-known skill bodyRegenerate it via the frontend build — never hand-edit it.

On this page