← back to home

Getting Started

nexus-dev-toolkit gives your team a repeatable AI-assisted workflow in two distinct phases: Day 0 — a one-time production-grade project boilerplate, run once by one person — and Day 1 — the daily EPAV loop every developer runs for every feature, for the life of the project.

Day 0 is a one-person job. One owner — usually the tech lead — runs /scaffold once, before anyone starts feature work. Individual developers should never run /scaffold during Day 1: doing so re-scaffolds the project. Once Day 0 is done, every developer works exclusively in Day 1, forever.

Overview

Once your project is set up, this is what you'll run every day:

/evaluate <task>  →  /plan  →  /apply  →  /validate  →  /code-review

One task from your dev tasks CSV, four EPAV steps plus a code review, repeat forever. Full Day 1 walkthrough ↓

/code-review isn't one of the four EPAV phases — it's a separate reviewer skill — but it's the recommended last step before calling a task done. 4 more reviewer skills (database, deployment, performance, monitoring) are also available any time — see built-in skills.

Autonomous loop (proposal, not shipped yet) — a design for apply ↔ validate to retry itself without a human cranking every turn. See the loop guide.
First time in this project? You need install and a one-time Day 0 scaffold before Day 1 applies — both covered next, in order: Setup → Day 0 → Day 1.

What's new

v3.2.1 (2026-11-23)

Fixed

Full 3.2.1 notes → · all releases

Setup

1
Install uv
$ curl -LsSf https://astral.sh/uv/install.sh | sh
2
Install Claude Code
$ npm install -g @anthropic-ai/claude-code
$ claude login
Using OpenCode instead? Install OpenCode v2 — the older opencode.ai/install script only installs v1. Already on v1? opencode upgrade --major upgrades it (remove a package-managed v1 first; see OpenCode's migration guide).
$ curl -fsSL https://opencode.ai/v2/install | bash   # new install
$ opencode upgrade --major                           # or: upgrade v1
3
Install graphify (strongly recommended)
graphify builds a queryable knowledge graph of your codebase — every file, function, and relationship mapped. EPAV skills query this graph before touching any code to understand blast radius and cross-file dependencies.

With graphify: scoped subgraph queries — fast, accurate, low token cost. Auto-updates after every file edit via the PostToolUse hook.
Without graphify: EPAV skills still work but fall back to full file reads — slower, more token-heavy, and blast radius analysis is best-effort only.
$ uv tool install graphifyy
$ graphify install    # registers /graphify skill into Claude Code
Alternative: codegraph — a different knowledge-graph tool EPAV skills can use instead of graphify. Pick one, not both; nexus doctor warns if it finds graphs from both built in the same project.
$ npm i -g @colbymchenry/codegraph
$ codegraph install    # wires codegraph into Claude Code / OpenCode / etc.
4
Install nexus-dev-toolkit
$ uv tool install nexus-dev-toolkit
Check it installed:
$ nexus --version     # prints nexus-dev-toolkit vX.Y.Z
$ uv tool list        # lists the nexus and nexus-mcp commands
If you get command not found, run uv tool update-shell and restart your terminal. If --version prints a different name, another package is providing a nexus command — uv tool list shows which.
5
Try it on a sample app (training and quick setup)
Practise on a throwaway project first — nothing real is touched. Four short parts: create the project, give it a sample app to build, open it in OpenCode, then run /scaffold. Delete the folder when you're done.
1. Create the project. This also creates the folder, so there's nothing to set up first.
# creates ~/nexus-test-opencode and sets nexus up in it
$ nexus init ~/nexus-test-opencode --tool opencode --graph-backend graphify
2. Describe the app to build. /scaffold needs to know what it's building. In a real project that's your architecture document, saved in docs/arch-docs/. For this try-out, paste the block below — it saves a short sample (a tiny todo app) into that folder.
# saves the sample as docs/arch-docs/ARCH.md
$ cd ~/nexus-test-opencode
$ cat > docs/arch-docs/ARCH.md <<'EOF'
# Nexus Todo - Architecture

A small three-tier todo app used for training.

## Design goals
A modern, minimal UI with a feature-rich UX: clean on screen, but with
inline editing, filters (all / active / done), keyboard shortcuts and
dark mode.

## Tech stack
- Presentation: React 19, Vite, TypeScript, Tailwind CSS (client/)
- Application: Node.js, Express REST API (server/)
- Data: SQLite via better-sqlite3 (migrations/)

## Data model
todos(id, title, completed, created_at)

## API
GET /api/todos, POST /api/todos
PATCH /api/todos/:id, DELETE /api/todos/:id

## Auth
Single-user demo, no login.

## Error handling
JSON body { "error": { "code", "message" } } with the right HTTP status.

## Security
Validate every request body on the server. Parameterised SQL only.
EOF
3. Check the setup, then open the project in OpenCode. nexus doctor checks what nexus set up and lists each item as working, missing or broken. A ⚠ is fine for optional things; a ✗ needs fixing before you go on.
$ nexus doctor        # checks the setup (✓ ok, ⚠ optional, ✗ fix)
$ opencode            # opens OpenCode in this project
4. Inside OpenCode, type /scaffold. It starts by reviewing the sample (the EVALUATE phase), then stops and waits — you check what it found, then type the next command to continue:
/scaffold → (review) → /plan → (review) → /apply → (review) → /validate
What each phase does is covered in Day 0 below.

nexus init

Run once inside your project folder. All nexus commands operate on the current directory by default — .claude/, knowledge/, and .mcp.json are created relative to where you run them.

Always cd into your project first, then run nexus init . — the dot means "here".
$ cd my-project
$ nexus init .                        # Claude Code (default)
$ nexus init . --tool opencode       # OpenCode
$ nexus init . --tool codex          # Codex
First time opening this project in Claude Code, you'll see a one-time prompt: "New MCP server found in this project: nexus" — choose Use this MCP server (or Use this and all future MCP servers in this project). Picking Continue without using this MCP server means none of the EPAV tools (ingest_architecture_doc, resolve_package_versions, etc.) will actually be available during that session, even though .mcp.json is configured correctly.
Claude Code's MCP trust prompt: 'New MCP server found in this project: nexus-jev' with three options — Use this MCP server, Use this and all future MCP servers in this project, Continue without using this MCP server

Claude Code (default)

.claude/
├── commands/
│   ├── scaffold.md          ← /scaffold         — Day 0 setup
│   ├── evaluate.md          ← /evaluate         — orient on task
│   ├── plan.md              ← /plan             — blueprint
│   ├── apply.md             ← /apply            — implement
│   ├── validate.md          ← /validate         — verify
│   ├── epav.md              ← /epav             — full cycle guide
│   ├── code-review.md       ← /code-review      — reviewer skill
│   ├── database-review.md   ← /database-review  — reviewer skill
│   ├── deployment-review.md ← /deployment-review
│   ├── performance-review.md← /performance-review
│   ├── monitoring-review.md ← /monitoring-review
│   ├── commit.md             ← /commit           — stage & commit
│   ├── create-pr.md          ← /create-pr        — open a PR
│   ├── pr-review.md          ← /pr-review        — deep-verify a commit/PR
│   └── dev-tasks-planner.md  ← /dev-tasks-planner — generate dev-tasks CSVs
├── agents/
│   ├── code-reviewer.md
│   ├── database-reviewer.md
│   ├── deployment-reviewer.md
│   ├── performance-reviewer.md
│   ├── monitoring-reviewer.md
│   └── pr-verifier.md
└── settings.json            ← PostToolUse: graphify auto-update hook (graphify backend only)
knowledge/
├── rules/                   ← coding standards, arch decisions
├── patterns/                ← reusable implementation patterns
├── prompts/dev/             ← task prompt templates
└── retros/                  ← retrospective notes
docs/                        ← arch-docs/, dev-tasks/, designs/, requirements/
.mcp.json                    ← MCP server config

OpenCode

Agents are automatically adapted for OpenCode compatibility — Claude Code-specific frontmatter fields (tools, model) are stripped on copy and each agent is marked mode: subagent. The graphify plugin runs after every tool execution — only scaffolded if you picked graphify at nexus init's --graph-backend prompt. Pick codegraph instead and nothing is scaffolded here; codegraph wires and syncs itself via codegraph install && codegraph init.
OpenCode v1 and v2. Commands, agents and opencode.json are identical for both. Only the graphify plugin differs, because v2 doesn't run v1 plugins: nexus init and nexus sync read opencode --version and write .opencode/plugins/graphify/index.ts for v2 or .opencode/plugins/graphify.js for v1 (v2 if the version can't be detected). nexus sync never deletes the other form — a repo can have teammates on different versions — and nexus doctor warns when the plugin on disk is one your installed OpenCode won't run. Existing v1-era projects: run nexus sync to repair agent files and add the v2 plugin.

Installing or upgrading OpenCode

$ curl -fsSL https://opencode.ai/v2/install | bash   # install v2
$ opencode upgrade --major                           # upgrade an existing v1
$ nexus sync                                         # then, per project

Use the v2 installer — opencode.ai/install only installs v1. It replaces the v1 binary (both live in ~/.opencode/bin); remove a package-managed v1 (npm, brew, …) first. After upgrading, run nexus sync in each project — it repairs the agent files and adds the v2 plugin. v1 and v2 read the same config files, so don't point v1 at a config you've converted to v2's native shape. See OpenCode's migration guide.

.opencode/
├── commands/
│   ├── scaffold.md          ← /scaffold         — Day 0 setup
│   ├── evaluate.md          ← /evaluate         — orient on task
│   ├── plan.md              ← /plan             — blueprint
│   ├── apply.md             ← /apply            — implement
│   ├── validate.md          ← /validate         — verify
│   ├── epav.md              ← /epav             — full cycle guide
│   ├── code-review.md       ← /code-review      — reviewer skill
│   ├── database-review.md   ← /database-review  — reviewer skill
│   ├── deployment-review.md ← /deployment-review
│   ├── performance-review.md← /performance-review
│   ├── monitoring-review.md ← /monitoring-review
│   ├── commit.md             ← /commit           — stage & commit
│   ├── create-pr.md          ← /create-pr        — open a PR
│   ├── pr-review.md          ← /pr-review        — deep-verify a commit/PR
│   └── dev-tasks-planner.md  ← /dev-tasks-planner — generate dev-tasks CSVs
├── agents/
│   ├── code-reviewer.md
│   ├── database-reviewer.md
│   ├── deployment-reviewer.md
│   ├── performance-reviewer.md
│   ├── monitoring-reviewer.md
│   └── pr-verifier.md
└── plugins/
    └── graphify/index.ts    ← graphify auto-update after every tool run (graphify backend only; v1: graphify.js)
knowledge/
├── rules/
├── patterns/
├── prompts/dev/
└── retros/
docs/                        ← arch-docs/, dev-tasks/, designs/, requirements/
opencode.json                ← MCP server config

Codex

Skills go to .agents/skills/<name>/SKILL.md — invoke them with $evaluate, $plan, … or /skills. The EPAV steps also get agents/openai.yaml with allow_implicit_invocation: false, so Codex never starts $apply or $commit on its own. Agents are converted to Codex TOML (Claude Code-only tools/model are dropped; they inherit your session model). The nexus MCP block is appended to .codex/config.toml — existing config is never rewritten. Codex only loads project .codex/ config and hooks for trusted projects — trust it when asked.
.agents/skills/
├── evaluate/
│   ├── SKILL.md             ← $evaluate — orient on task
│   └── agents/openai.yaml   ← explicit-only (EPAV steps)
├── plan/ apply/ validate/ epav/ scaffold/ commit/ create-pr/ dev-tasks-planner/
└── code-review/ database-review/ … pr-review/   ← reviewer skills (implicit allowed)
.codex/
├── agents/
│   ├── code-reviewer.toml
│   └── …                    ← all 6 reviewer subagents
├── config.toml              ← [mcp_servers.nexus]
└── hooks.json               ← PostToolUse: graphify auto-update (graphify backend only)
knowledge/                   ← same structure
docs/                        ← arch-docs/, dev-tasks/, designs/, requirements/

The docs/ folder

docs/ is where your project's reference material lives — the documents Claude reads to understand what you're building and how. nexus init creates the four folders below for every tool (Claude Code, OpenCode, Codex). It only creates folders: if docs/ already exists, nothing inside it is moved, renamed or overwritten, and re-running nexus init just adds any folder that's missing.

docs/
├── arch-docs/       ← HOW: architecture doc, ADRs
├── dev-tasks/       ← WHAT TO DO NEXT: task CSVs, one row per task
├── designs/         ← WHAT IT LOOKS LIKE: design exports (e.g. Figma ZIP)
└── requirements/    ← WHAT & WHY: BRD, PRD, user stories
FolderPut hereRead by
arch-docs/ Your architecture document and ADRs, as markdown. Stack, data model, auth, error format, security rules. ingest_architecture_doc (scans this folder by default), /scaffold, /evaluate, /dev-tasks-planner
dev-tasks/ Task CSVs with columns task_id, user_story, description, acceptance_criteria, dependencies. Usually one file per module or epic. load_task (scans this folder by default), /evaluate. Written by /dev-tasks-planner.
designs/ Design exports — a Figma export ZIP, screens, a design-system spec. /scaffold (design system + UI shell), /dev-tasks-planner
requirements/ Business and product requirements: BRD, PRD, user stories, acceptance notes. No step loads it automatically yet — point Claude at it (e.g. /evaluate a task "per docs/requirements/prd.md") when requirements matter.
Why requirements and architecture are separate folders: ingest_architecture_doc scans all of docs/arch-docs/ and extracts stack, data model and security rules from whatever it finds. A PRD dropped in there would be parsed as architecture and pollute those results. Requirements answer what and why; architecture answers how — keep them apart.
Git doesn't track empty folders. They show up in your repo once you add a file — teammates who clone before then get them by running nexus init . themselves.

Day 0 — /scaffold (one-time, reference)

Run once per project, by one person — usually the tech lead — before anyone starts feature work. Never re-run during Day 1. Produces a production-grade scaffold from your architecture document and Figma design. No business logic, no live integrations — mock auth, mock data, zero external dependencies.

Day 0's entry point is /scaffold, not /evaluate — it runs the same Evaluate → Plan → Apply → Validate shape as Day 1, just once, kicked off from your architecture doc instead of a task description.

Prerequisites

1
Place all reference documents in docs/
nexus init already created the folders. For Day 0 you need at least your architecture doc in docs/arch-docs/ and your design export in docs/designs/. See The docs/ folder for what goes where and which step reads it.
2
Run nexus init .
Sets up .claude/commands/, knowledge/, and .mcp.json.
3
Run /scaffold
/scaffold
Claude reads your docs and produces a production-grade scaffold.
4
Build the knowledge graph
/graphify .              # if you chose graphify at init
$ codegraph install && codegraph init  # if you chose codegraph, run in your terminal
Run after scaffold completes — now there's real code to graph. EPAV skills use whichever backend is present, or fall back to full file reads if neither is built yet. Run nexus doctor any time to check which backend is active.
/scaffold runs EVALUATE first, then stops and waits. You review and type the next command to continue. The flow is:

/scaffold → (review) → /plan → (review) → /apply → (review) → /validate

What happens inside each of those four phases — EVALUATE, PLAN, APPLY, VALIDATE:

EVALUATE (via /scaffold, not typed separately)

Claude summarises 10 key decisions from your arch doc and Figma before writing a single line of code:

# Question
1 Stack decisions and why
2 Data model — tables, relationships, indexes
3 Infrastructure needed from day one
4 Middleware + auth flow
5 Error response format
6 Security rules and constraints
7 Design tokens — Figma oklch/hex → hsl() for web, Color() for Flutter
8 Component inventory — every component, variants, states
9 Layout patterns — grid, breakpoints, responsive
10 Iconography — library, sizes, style

Claude stops. Review the summary, then type /plan to continue.

PLAN (type /plan)

Blueprint only — no code. Four outputs:

Output Contents
Infrastructure Directory structure, schema, env vars, auth flow, error handler
UI shell Component list, props interfaces, page layouts, build order
AGENTS.md Project rules for all AI tools — coding standards, git conventions, quality gates
knowledge/ Coding standards, patterns, prompt templates, design system spec

Claude stops. Review the blueprint, then type /apply to generate code.

APPLY (type /apply)

First step — always: Claude calls resolve_package_versions before writing any file. Exact versions from the real package manager lock file — never from AI memory.

// MCP tool — call this first
resolve_package_versions({
  packages: ["next@16", "react@19", "@supabase/supabase-js@2"],
  stack_hint: "Next.js 16 TypeScript"
})
// → { "status": "resolved", "package_manager": "npm", "versions": { "next": "16.3.2", "react": "19.1.0", ... } }

Then generates everything in one scaffold:

Category Files
Config .gitignore, .env.example, ESLint, Prettier, TypeScript
Auth (mock) Login sets mock-role cookie (8h). No credentials checked. Route guard reads cookie.
Infrastructure Schema migration, error handler, health check, seed script
Git hooks Husky + lint-staged + commitlint. chmod +x .husky/pre-commit. HUSKY=0 for CI.
CI GitHub Actions: lint, typecheck, test, build
Design system Tailwind config, globals.css (hsl() tokens — never oklch), font loading
Components All components with every visual state — default, hover, focus, disabled, loading, empty, error
Pages All pages responsive at 320/768/1024/1440px with mock data
Project rules AGENTS.md, knowledge/rules/coding-standards.md
Never write "latest" or semver ranges (^ ~) in the package manifest. Use exact versions from resolve_package_versions. Never use npx create-next-app or any scaffold CLI.

VALIDATE (type /validate)

Build must pass first, then Claude runs a 19-point checklist:

Category Checks
Packages (4) Stable versions, no deprecated APIs, lock file pinned, no CVEs
Infrastructure (6) Structure matches arch, schema matches data model, env vars documented, production logging, security headers, DB pooling
UI fidelity (6) Matches Figma, responsive at 4 breakpoints, all visual states, WCAG AA, props typed for Day 1, no API calls in components
AGENTS.md + knowledge (2) Coding standards match arch, design system spec saved
Git hooks (1) Pre-commit hook configured and executable

Every [BLOCKER] and [FIX NOW] must be fixed before Day 0 is called complete.

Success: npm install && npm run dev works. Zero credentials needed.

Day 0 is done — that scaffold happens once. Everything below is Day 1: the loop you'll run for the rest of the project.

Day 1 — EPAV (the daily loop)

The same commands from the top of this page, in full, one phase at a time. One task from the dev tasks CSV. Four EPAV steps plus a code review. Repeat forever.

/evaluate <task>  →  /plan  →  /apply  →  /validate  →  /code-review

Today /validate fixes what it finds in one pass, with no retry budget or escalation. A design for apply ↔ validate to retry itself automatically is in the autonomous loop guide (proposal, not shipped yet).

/evaluate

Orient on the task before touching any code.

1
Knowledge graph query
graphify query or codegraph explore, whichever backend is active. Find all files the task touches. Map the blast radius — what else references those files.
2
Check knowledge/
Load relevant rules, patterns, and prior retros.
3
Output
Affected files, acceptance criteria restated, risks flagged. Stops and waits for approval.

/plan

Blueprint only — no code written.

1
Blast radius check
graphify path, or codegraph impact as the closest available check (it takes one symbol, not a file pair). Confirm relationships between primary files. State what else will be affected.
2
Numbered blueprint
File by file — what changes and why. Files created / modified / deleted. AGENTS.md rules that apply.
3
Wait for /apply
No code until the plan is approved.

/apply

Implement exactly what the plan says. No scope creep.

Day 1 replaces With
Mock data in components Real DB client calls
Mock auth cookie Real auth provider
Placeholder Route Handlers Validated API handlers with error handling
Schema file Applied migration + RLS policies

graphify auto-updates after every file edit — via the PostToolUse hook in .claude/settings.json (Claude Code) or the graphify plugin in .opencode/plugins/graphify/index.ts (OpenCode v2; graphify.js on v1) or the PostToolUse hook in .codex/hooks.json (Codex). All are installed automatically by nexus init if you picked graphify. codegraph updates itself via its own background sync daemon — no hook needed, and none is scaffolded.

/validate

1
Build must pass first
npm run build / flutter build apk / go build ./... — fix all errors before continuing.
2
Acceptance criteria
Every criterion from the CSV task: [PASS] / [FAIL] / [PARTIAL]
3
Classify and fix
[BLOCKER] and [FIX NOW] must be resolved before the task is done. [BACKLOG] items go to knowledge/retros/.
4
Contribute patterns back
If APPLY revealed a better approach, add it to knowledge/patterns/.

/code-review

Run once VALIDATE passes, before calling the task done. Not one of the four EPAV phases — a separate reviewer skill — but the recommended last step on every task. See built-in skills for the full reviewer list (database, deployment, performance, monitoring).

That's the full EPAV methodology — Day 0 and Day 1. Everything from here down is tooling reference: MCP setup, built-in skills & agents, custom skills, rules, and file layout. Read once, come back as needed.

MCP Server Setup

MCP tools power the graph queries and task-loading calls used throughout /evaluate and /apply above — set this up once, alongside install. nexus init writes .mcp.json automatically. For Claude Desktop, add manually:

Claude Code (project-level)

// .mcp.json
{
  "mcpServers": {
    "nexus": {
      "command": "uvx",
      "args": ["--refresh", "--from", "nexus-dev-toolkit", "nexus-mcp"]
    }
  }
}

Claude Desktop (macOS)

// ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "nexus": {
      "command": "uvx",
      "args": ["--refresh", "--from", "nexus-dev-toolkit", "nexus-mcp"]
    }
  }
}

OpenCode (project-level)

nexus init . --tool opencode writes opencode.json automatically. OpenCode v2 reads this flat mcp form and normalizes it to its own mcp.servers shape; if your existing file is already on mcp.servers, nexus init adds the entry there. To add manually:

// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "nexus-mcp": {
      "type": "local",
      "command": ["uvx", "--refresh", "--from", "nexus-dev-toolkit", "nexus-mcp"]
    }
  }
}

Codex (project-level)

nexus init . --tool codex appends this to .codex/config.toml automatically (trusted projects only). To add manually:

# .codex/config.toml
[mcp_servers.nexus]
command = "uvx"
args = ["--refresh", "--from", "nexus-dev-toolkit", "nexus-mcp"]

MCP Tool Reference

Tool Purpose When to call
ingest_architecture_doc Extract arch doc sections → knowledge/rules/arch-summary.md Day 0, Step 2 — before /scaffold
load_task Load a CSV task row + knowledge-graph blast radius into context Day 1, start of /evaluate
generate_project_rules Generate AGENTS.md + knowledge/ structure from arch doc. The stack line comes from a catalog of 221 technologies (whole-word matching) Day 0 PLAN — before writing files
resolve_package_versions Run the real package manager in a temp dir → exact pinned versions. 22 supported: npm, pnpm, yarn, bun, pip, uv, poetry, pipenv, composer, bundler, dotnet, swiftpm, cocoapods, mix, cabal, conan, maven, gradle, sbt, pub, go, cargo. An unknown stack returns unsupported, a missing tool returns tool_missing, never a guessed version Day 0 APPLY — must be first step

Built-in Skills

The full list behind every command used so far — plus the reviewer skills, which aren't part of any EPAV phase and run on their own.

Skill Trigger Phase
EPAV Workflow
scaffold.md /scaffold Day 0 — one-time setup
evaluate.md /evaluate Day 1 — orient on task
plan.md /plan Day 1 — blueprint
apply.md /apply Day 1 — implement
validate.md /validate Day 1 — verify
epav.md /epav Day 1 — full cycle guide
Reviewers
code-review.md /code-review Review code quality, bugs, security
database-review.md /database-review Review schema, migrations, queries
deployment-review.md /deployment-review Review CI/CD, Docker, infra config
performance-review.md /performance-review Review performance and bottlenecks
monitoring-review.md /monitoring-review Review observability and alerting
Git
commit.md /commit Stage relevant changes and create a well-formed commit
create-pr.md /create-pr Run /code-review, then open a well-structured pull request
pr-review.md /pr-review Deep-verify a specific commit/PR by SHA or URL against its own claims
Planning
dev-tasks-planner.md /dev-tasks-planner Generate or reconcile docs/dev-tasks/*.csv files from an architecture doc + real repo state

Built-in Agents

Subagents copied to .claude/agents/ on nexus init. Claude Code can spawn them automatically based on context, or you can ask Claude to use one directly.

Agent Triggers when
code-reviewer Code quality review, best practices, maintainability
database-reviewer Schema changes, migrations, query optimization
deployment-reviewer CI/CD pipelines, Docker, infrastructure config
performance-reviewer Performance bottlenecks, caching, resource usage
monitoring-reviewer Observability gaps, logging, metrics, alerting
pr-verifier Deep-verifying a specific commit/PR by SHA or URL against its own claims, with a real build/test run
Reviewers ship in two forms: as skills (/code-review) you invoke manually, and as agents (code-reviewer) Claude can spawn automatically. Both are installed by nexus init.

Custom Skills

$ nexus skill add my-review

Creates .claude/commands/my-review.md with a starter template. Edit it, then type /my-review in Claude Code. For OpenCode, manually copy the file to .opencode/commands/.

# .claude/commands/code-review.md

# /code-review

**code-review** — review the current diff for correctness, security, and style.

## Steps

### 1 — Load context
Run graphify query on changed files. Check knowledge/rules/ for relevant standards.

### 2 — Review
Check: correctness, security, performance, style, test coverage.

### 3 — Output
Findings grouped by severity: [BLOCKER] / [FIX NOW] / [BACKLOG]

Rules

$ nexus rule add api-standards

Creates knowledge/rules/api-standards.md. Skills reference rules via knowledge/ — the AI reads them during EVALUATE and APPLY to enforce project standards.

All Commands

Command Description
Project Setup
nexus init [dir] Initialize for Claude Code (default)
nexus init [dir] --tool opencode Initialize for OpenCode
nexus init [dir] --tool codex Initialize for Codex
nexus update Update the nexus CLI itself to latest — does not touch any project's .claude/.opencode files. In a real terminal, asks whether to also sync the current directory; scripted/CI runs skip the prompt automatically
nexus update --sync Same as above, but skips the prompt and always syncs the current directory's skills/agents (skipped if it isn't a nexus project)
nexus sync [dir] Sync built-in skills & agents to latest versions (custom files untouched)
nexus doctor [dir] Validate project setup — checks tools, skills, agents, MCP config, knowledge graph (graphify/codegraph)
nexus --version Show installed version
Skills
nexus skill list List all skills in .claude/commands/
nexus skill add <name> Create a custom skill
Agents
nexus agent list List all subagents in .claude/agents/
nexus agent add <name> Create a custom subagent
Rules
nexus rule list List all rules in knowledge/rules/
nexus rule add <name> Create a project rule

knowledge/ Layout

knowledge/
├── rules/
│   ├── arch-summary.md      ← generated by ingest_architecture_doc
│   └── coding-standards.md  ← generated by generate_project_rules
├── patterns/
│   └── implement-and-test.md ← E→P→A→V pattern
├── prompts/dev/             ← task prompt templates
└── retros/                  ← [BACKLOG] items from /validate

nexus-jev — Experimental TypeSafe/Jev Build

nexus-dev-toolkit-jev is a separate, independently-versioned package from nexus-dev-toolkit — different name, different commands (nexus-jev / nexus-jev-mcp), its own release history on PyPI. Installing it never touches your existing nexus install.

What's new in nexus-jev

v3.2.0 (2026-11-22)

Added

Fixed

Full 3.2.0 notes → · all releases

Replaces a handful of hardcoded keyword-matching heuristics in the EPAV tools with an actual AI judgment call via TypeSafe's Jev model — which architecture-doc section is about auth vs. security, which technologies an arch doc actually uses (not just mentions), which package manager or IaC tool fits a free-text hint, which CSV column means "acceptance criteria," which design-token name maps to which role. Every tool works exactly the same without it: TypeSafe is off by default, and every judgment falls back to the original heuristic if it isn't enabled or the API call fails.

Also adds support for infrastructure-shaped projects: project_shape (web_app / mobile_app / backend_api / infrastructure / data_pipeline / cli_or_library) and has_infrastructure_component, so /scaffold can generate Terraform/OpenTofu, Helm, or Ansible deliverables instead of — or alongside — application boilerplate.

Install

$ uv tool install nexus-dev-toolkit-jev

Installs nexus-jev and nexus-jev-mcp as real, separate commands — run them side by side with nexus / nexus-mcp on the same machine, no conflict.

Usage

$ cd my-project
$ nexus-jev init . --typesafe    # prompts if --typesafe/--no-typesafe omitted

Claude Code is the default. nexus-jev also sets up OpenCode (v1 and v2) and Codex — same --tool flag as nexus, and --typesafe works with each:

$ nexus-jev init . --tool opencode --typesafe
$ nexus-jev init . --tool codex --typesafe

The generated MCP config (.mcp.json, opencode.json, .codex/config.toml) always points at nexus-dev-toolkit-jev / nexus-jev-mcp, never at the regular nexus package. Already have a project? Run nexus-jev sync after nexus-jev update to pick up the new skills and agents.

First time opening this project in Claude Code, you'll see a one-time prompt: "New MCP server found in this project: nexus-jev" — choose Use this MCP server (or Use this and all future MCP servers in this project). Picking Continue without using this MCP server means none of the EPAV tools (ingest_architecture_doc, resolve_package_versions, etc.) will actually be available, even though .mcp.json is configured correctly — this applies to the regular nexus MCP server the same way, not just nexus-jev.
Claude Code's MCP trust prompt: 'New MCP server found in this project: nexus-jev' with three options — Use this MCP server, Use this and all future MCP servers in this project, Continue without using this MCP server

Enabling TypeSafe needs one more step: set a TYPESAFE_API_KEY (get one at console.typesafe.ai). Without it, every tool below falls back to its original heuristic automatically — nothing breaks, you just don't get the smarter detection.

$ export TYPESAFE_API_KEY=your-key-here
$ nexus-jev doctor    # reports whether TypeSafe is wired up and the key is set
Tool TypeSafe-powered judgment
ingest_architecture_doc Which category a doc section belongs to; project_shape / has_infrastructure_component
generate_project_rules Which of the technologies the stack catalog (221) finds in an arch doc the project actually uses, not just mentions (e.g. "we considered MongoDB" is dropped)
resolve_package_versions Which of the 25 package managers and IaC tools (npm to cargo, cabal and conan, plus Terraform/OpenTofu, Helm, Ansible) fits a free-text stack hint
load_task Which canonical task field a CSV column maps to, regardless of header naming
ingest_design_export (new) Which design-token role a CSS custom property plays (primary, error, spacing, ...) — accepts a Figma export or a standalone HTML mockup (e.g. from Claude's Design artifact type)

Full write-up — including the Terraform/OpenTofu/Helm/Ansible support and version-resolution mechanics — lives in the repo: experimental-jev branch and its tools/README.md.

built by CoderStudio Labs