OpenNexus

Quickstart

OpenNexus is a Rust CLI for bootstrapping, updating, and uninstalling context-driven project workflows

OpenNexus is a Rust CLI package (opennexus) centered on the opennexus command. It installs governance and workflow assets into your project, keeps command specs in sync, and gives teams a repeatable way to run context-driven development.

Start Here

  1. Install the CLI:
cargo install opennexus
  1. Initialize OpenNexus in your project root:
opennexus setup

After install + setup, your repository is prepared with Nexus assets as documented in the README:

.
├── .nexus/
│   ├── .version
│   ├── commands/
│   │   ├── nexus-0-prompt.md
│   │   ├── nexus-1.2-context-create.md
│   │   └── ...
│   ├── context/
│   │   ├── .extract-allowlist
│   │   ├── nexus/
│   │   ├── nexus-cli/
│   │   └── fumadocs/
│   ├── rules/
│   │   ├── context.md
│   │   ├── rs.md
│   │   └── ...
│   └── templates/
│       ├── PROJECT.md
│       ├── AGENTS.md
│       └── nexus/
└── .opencode/
    └── command/
        ├── nexus-0-prompt.md -> ../../.nexus/commands/nexus-0-prompt.md
        ├── nexus-1.2-context-create.md -> ../../.nexus/commands/nexus-1.2-context-create.md
        └── ...

If you are new to the workflow, read the Context Driven Development (CDD) guide for the specification model and project structure.

Core Commands

CommandWhat it does
opennexus setupInstalls/refreshes .nexus assets and .opencode/command links in the current repo
opennexus updateUpgrades the installed opennexus command to the latest published version
opennexus uninstallRemoves the globally installed opennexus command
opennexus --helpShows available commands and options

Features

Slash Commands

OpenCode command-form workflows are documented in the Slash Commands catalog.

Slash CommandPurpose
nexus-0-promptRewrites a user prompt for clarity/structure and returns only the rewritten prompt
nexus-1.1-context-searchFinds relevant Desired Outcomes and Next Actions from .nexus/context/
nexus-1.2-context-createCreates new context specs from goals with correct IDs/prefixes and E2E-testable actions
nexus-1.3-context-syncProduces an analysis-only Context Sync Report without editing files
nexus-1.4-context-reviewAudits context quality, proposes fixes, and can suggest context splitting
nexus-1.5-context-from-codeProposes candidate contexts or updates by analyzing code behavior
nexus-2-investigateRuns 5 parallel analysts and consolidates severity-grouped findings
nexus-3.5-critiqueStress-tests a plan for risks, logic gaps, and edge cases
nexus-4-codeOrchestrates implementation tracks across parallel workstreams
nexus-create-skill-from-codebaseOrchestrates full/incremental llms.txt generation with quality gates

Skills

OpenNexus ships built-in skills under Skills -> Rust.

Rust

SkillPurpose
ratkitOperational guide for the ratkit Rust TUI ecosystem, feature flags, modules, and usage patterns
opencode-rs-sdkOperational guide for OpenCode Rust SDK HTTP, SSE streaming, and managed server/client workflows

llms.txt Generation

OpenNexus can use AIs to generate a friendly llms.txt file that captures project knowledge in an agent-consumable format.

  • Generated llms.txt content can be converted into reusable skills.
  • This is the same workflow used to create .nexus/skills/ratkit/SKILL.md and .nexus/skills/opencode-rs-sdk/SKILL.md.
  • Use the slash-command workflow to iterate from project context to llms.txt, then from llms.txt to skill artifacts.

On this page