reopt Skills
A reusable skills repository for reopt engineering workflows — installable into any agent runtime that supports the skills CLI (Claude Code, Cursor, Codex, Cline, Gemini CLI, and 15+ more).
한국어 문서는 README_KO.md 를 보세요.
Every package targeted by these skills is available from the public npm registry. No GitHub Packages token or scoped
.npmrcentry is required.Upgrading from v1.x? See MIGRATION-v2.md for the slim-skill rewrite.
Quickstart
Install every skill into your agent runtime:
npx skills add reopt-ai/reopt-skills
Or install a single skill:
npx skills add reopt-ai/reopt-skills/reopt-eav
Skill pages on the directory: skills.sh/reopt-ai/reopt-skills.
How these skills work (v2)
Each skill has two jobs:
- Pin an agent-rules marker block into the consumer project's
AGENTS.md(orCLAUDE.md). The block is bracketed with<!-- BEGIN:reopt/<pkg>-agent-rules -->…<!-- END:reopt/<pkg>-agent-rules -->markers, so a re-install or version bump replaces only the block content and leaves everything else untouched. The Next.js community uses the same pattern. - Route the agent to module docs. Each
@reopt-ai/*package ships its own docs —dist/docs/(opt-ui / opt-datagrid / opt-editor), top-leveldocs/(brandapp-sdk), orREADME.md/shell-llms.txt(cli, opt-chat, opt-shell). SKILL.md does not duplicate API surface — it tells the agent which doc to read for which task and pins package-level invariants the docs can't enforce (legacy registry cleanup, env-namespace rules, peer deps, destructive guardrails).
Until a target package publishes its own dist/agent-rules.md, each skill ships a fallback agent-rules.md alongside SKILL.md.
Skills
CLI workflows
Guidance for the reopt CLI itself. The CLI is public on npm.
| Skill | What it covers |
|---|---|
reopt-cli |
Baseline rules every other reopt skill loads first — auth (login / status / logout), global flags, MCP server, config get/set, exit codes, secret handling. Pins the shared reopt/cli-agent-rules block. |
reopt-brandapp |
brandapp list / link / unlink / doctor / term list, project scaffolding via init, the offline dev + seed flow, and sandbox env list/create/use/destroy. |
reopt-eav |
EAV schema lifecycle: status / sync / pull / plan (live flow), migrate create/run/status/validate (file-based, experimental), plus the --delete-orphans guardrail. |
Brandapp SDK integration
For consumer projects that use @reopt-ai/brandapp-sdk. Runs inside the consumer app, not against the CLI.
| Skill | What it covers |
|---|---|
brandapp-sdk-install |
Pins reopt/brandapp-sdk-agent-rules, removes legacy GitHub Packages overrides, sets up the env 3-tier namespace (BRANDAPP_* / REOPT_* / BRANDAPP_SDK_*) + peer deps, and routes the agent to module docs for lib/sdk.ts, lib/auth.ts, EAV schema, webhooks, marketing-site helpers, and errors. |
brandapp-sdk-review |
Audit existing SDK usage. Lists anti-patterns across 10 categories (init / Auth / Error / Config / Schema / Perf / React / Webhook / Debug / CMS) with grep keys; routes the agent to the module's docs/ for canonical fixes. |
Package install / upgrade
For consumer projects that use the @reopt-ai/opt-* component packages.
| Skill | What it covers |
|---|---|
opt-ui-install |
Tailwind v4 + OptThemeProvider + opt-cli doctor audit + Surface CLI (opt-cli surface add). |
opt-editor-install |
Editor component + recipes + opt-cli doctor audit + optional AI streaming (--with-ai). |
opt-chat-install |
AI SDK endpoint + Conversation scaffold; Vercel AI SDK compatible. |
opt-datagrid-install |
Install / upgrade / migrate from glide-data-grid, ag-grid, react-data-grid, MUI DataGrid. |
opt-shell-install |
Product-frame layer (formerly opt-harness): workspace recipes (Dashboard / List / Detail / Editor / Landing), density/contentWidth/navigation/motion policy, data-engine adapters, state boundaries. Required peer: opt-palette; optional adapter peers: opt-datagrid, opt-editor, opt-calendar. |
Choosing a skill
Two axes decide which skill applies:
- What you operate on — the
reoptCLI, or@reopt-ai/*package code in a consumer app. - What stage you're at — installing for the first time, or auditing existing usage.
| You want to… | Use |
|---|---|
| Authenticate the CLI, set global flags, manage secrets | reopt-cli |
| Link a directory to a brandapp, run the offline dev server, manage sandbox envs | reopt-brandapp |
| Diff / sync / pull / migrate the EAV schema | reopt-eav |
Add @reopt-ai/brandapp-sdk to a Next.js app for the first time |
brandapp-sdk-install |
| Audit an existing app's SDK usage for anti-patterns | brandapp-sdk-review |
Adopt or upgrade an opt-* component package (incl. the opt-shell product frame) |
the matching opt-*-install skill |
Typical adoption order
For a new Brandapp + Next.js consumer:
reopt-cli— log in (reopt login).reopt-brandapp—linkthe project; optionallyinitfor the dev-server bootstrap.reopt-eav— authoreav.schema.ts, theneav syncto publish.brandapp-sdk-install— pin agent-rules, clear any legacy registry override, and wire SDK + Better Auth route handlers via module docs.- (over time)
brandapp-sdk-review— periodic audit as the SDK evolves.
reopt-brandapp init and brandapp-sdk-install are complementary, not duplicates: init writes the dev-mode files (.env.development, reopt.seed.ts, lib/dev-server.ts, instrumentation.ts, package.json dev:local script, .gitignore .reopt/); brandapp-sdk-install writes the SDK app code by routing through module docs (.env.local, lib/sdk.ts, lib/auth*.ts, auth route handler, optional webhook) and removes a legacy project-level registry override when present. Run both for a full local-dev-capable greenfield setup.
Structure
Each skill lives in its own directory under skills/<skill-name>/:
SKILL.md— agent-facing instructions (required, with YAML frontmatter, ≤ 150 lines).agent-rules.md— fallback marker-block source for the transition period.README.md— contributor-facing summary (optional).metadata.json— lightweight catalog metadata (optional).
Subdirectories (command/, references/, scripts/) were retired in v2. Long-form content lives in the target package's docs (dist/docs/, top-level docs/, or README.md / shell-llms.txt, depending on the package).
Development
pnpm validate # Validate skill structure, frontmatter, line budget, marker convention
pnpm sync:cli is for reopt internal maintainers only — see AGENTS.md.
No comments yet
Be the first to share your take.