Agents
AuthRight’s day-to-day loop is Cursor, Codex, or Claude Code plus delivered skills/commands. The @authright/cli binary installs those files and provides offline twins (no hosted LLM on bare terminal business verbs). Install agent files with:
Omit --tools to pick the current agent. Pass --tools cursor (or claude / codex) when you already know. Use --tools none to skip agent delivery. See How commands work.
What init writes (same step)
| Tool | Skills | Command files |
|---|---|---|
| Cursor | .cursor/skills/authright-*/ | .cursor/commands/auth-*.md (registers /auth-scan, …) |
| Claude Code | .claude/skills/authright-*/ | .claude/commands/auth/<id>.md (registers /auth:scan, …) |
| Codex | .agents/skills/authright-*/ only | none (even with --delivery commands) |
Workflows installed: scan, explore, change, request-match, to-openspec, to-plan, review, doc, doctor. /auth:explore and /auth:change are two commands — pick one.
Product commands (design)
| Command | Intent |
|---|---|
/auth:scan | What is identity here today? |
/auth:explore | HITL command — design options / trade-offs interactively. Pick this or /auth:change |
/auth:change | Auto-plan command — full plan, batch overrides, confirm then lock |
/auth:request-match | Where does the locked plan differ from the original request? |
/auth:review | Does implementation match decisions? |
/auth:doctor | What’s risky in the app source today? Report → .authright/diagnosis/report.md |
Engineering handoff (not Decide intents)—pick one: /auth:to-openspec → OpenSpec; /auth:to-plan → Agent Plan-mode (Implementation).
Closed loop (type host forms in chat)
/auth:scan → pick /auth:explore or /auth:change (prefer change)
→ multi-turn confirm / lock in chat
→ /auth:request-match → /auth:to-openspec | /auth:to-plan → /auth:review
/auth:doctor # optional anytimeSkills may shell offline record flags (--analyze, --plan, --set, --confirm-plan, --ready) under the hood. Bare terminal twins do not call an LLM. doctor can run anytime for a source risk report; it is not a required step between scan and the fork.
Host spelling
Product names stay colon-shaped (/auth:scan). Type the form your host registered:
| Host | Where files land | How you invoke |
|---|---|---|
| Cursor | .cursor/commands/auth-*.md + .cursor/skills/authright-*/ | /auth-scan, /auth-explore, /auth-change, … |
| Claude Code | .claude/commands/auth/<id>.md + .claude/skills/authright-*/ | /auth:scan, /auth:explore, /auth:change, … |
| Codex | .agents/skills/authright-*/ | $authright-scan, $authright-explore, … |
| Terminal (offline) | — | authright scan, … — no hosted LLM; for scripts/skills only |
init also writes .authright/AGENTS.md. Skills tell the agent to read it first. AuthRight does not install /auth:agents and does not edit repository-root AGENTS.md.
Agent-facing CLI flags
Skills shell the same public verbs with program-global flags:
authright --invoke cursor scan --json
authright --invoke claude change --json -- <intent>--invoke records the host in run logs; --json returns one snake_case object for agents. Humans can omit both. See CLI.
Advanced Internal CLI (omitted from the public site reference) lives in the product git repo under docs/internal/ — not a page on this docs site.
Rules for skills
- Read
.authright/AGENTS.mdfirst (written byinit/update) - Read
.authright/context.yamland still-valid accepted decisions before deciding.constitution.yamlis not project law - Prefer the host chat closed loop (LLM path); shell public verbs only as offline helpers
- Do not invent
accepteddecisions without writingdecisions.yaml - Do not edit application source during these AuthRight workflows
Full list: Commands.