@chriskealley/openroad
v0.2.0
Published
A roadmap companion for OpenSpec projects
Maintainers
Readme
OpenRoad
A companion CLI that connects a project-level roadmap to OpenSpec without forking OpenSpec or modifying its generated skills.
Requirements
- Node.js 22 or later, with npm and
npxavailable. - An existing project initialized with OpenSpec. The project must contain
openspec/config.yaml,openspec/specs/, andopenspec/changes/. - At least one supported agent/tool if you want skills installed automatically: Codex, Pi, Claude, or Cursor.
- Write access to the target project. A global installation may also require permission to write to npm's global package directory.
Initialize OpenSpec in the target project before installing this integration:
cd path/to/your-project
openspec initRun with npx
You can run the CLI without installing it globally:
npx @chriskealley/openroad init --tools codex,pi,claude,cursorTo install only for Codex, for example:
npx @chriskealley/openroad init --tools codexInstall globally
Install the CLI globally if you plan to use it across several OpenSpec projects:
npm install --global @chriskealley/openroadThen run it from the root of an initialized OpenSpec project:
openroad init --tools codex,pi,claude,cursorIf npm reports a permissions error during global installation, configure an npm-managed user-level global directory or use the npx option above; avoid running npm with sudo.
What installation changes
If --tools is omitted, the CLI detects existing .agents, .pi, .claude, and .cursor directories. Codex uses the shared .agents/skills location. It then:
- Creates
openspec/roadmap.mdif it does not already exist. - Installs the
openroadandopenroad-nextskills for each selected tool. - Adds narrowly scoped context, rules, and archive guidance to
openspec/config.yaml. - Records managed files in
.openroad.jsonso updates and removal are safe.
Existing roadmap content is preserved during updates. Removal preserves openspec/roadmap.md and removes only this package's exact configuration guidance and managed skill files.
Commands
openroad init
openroad update
openroad doctor
openroad remove
openroad next --json
openroad start RM-004 --change add-example-outcome --jsonAll commands accept --root <path>; the default is the current directory. init and update accept --tools <comma-separated-list> using any combination of codex, pi, claude, and cursor.
next validates the roadmap and reports the highest-priority eligible ready item without changing any files. start links an existing local OpenSpec change, then atomically transitions an eligible item to active with work state available. Repeating the same start is a successful no-op. In --json mode, both success and failure emit exactly one schema-versioned JSON document for agents and scripts.
Roadmap semantics
Lifecycle statuses are planned, ready, active, done, and cancelled. Only active items have a work state: available, blocked, or paused. Multiple items may be active simultaneously. openroad-next selects the eligible ready item with the lowest numeric priority, after checking dependencies, regardless of other blocked or paused active work.
Development
The CLI is TypeScript compiled to ES modules. Node.js 22 or later is required to build and test; the repository has one runtime dependency (yaml) and no build tooling beyond tsc.
This repository uses OpenSpec for user-visible behavior and workflow changes. Start a change with the installed OpenSpec workflow, keep its artifacts under openspec/changes/, and archive it after implementation and validation. Small maintenance changes that do not alter behavior may remain lightweight.
git clone https://github.com/chriskealley/openroad.git
cd openroad
npm install
npm test| Command | Purpose |
| --- | --- |
| npm run build | Compile src/ and test/ to dist/ |
| npm test | Build, then run the suite with the Node test runner |
| npm run typecheck | Type-check without emitting output |
OpenSpec project context and artifact rules live in openspec/config.yaml. Generated Codex workflow skills live in .agents/skills/ and should be refreshed with openspec update after upgrading OpenSpec.
Sources live in src/; cli.ts handles argument parsing, installer.ts manages the managed-file lifecycle and .openroad.json manifest, config.ts merges and removes the OpenSpec config.yaml guidance, and roadmap.ts parses and validates roadmap.md. The roadmap template shipped to new projects is templates/roadmap.md, and the agent skills are in skills/.
Two behaviours are worth preserving when changing the installer or parser, and both are covered by tests: installing and removing must leave an existing openspec/config.yaml byte-identical, and the shipped roadmap template must validate cleanly under openroad doctor.
To try a change against a real project, pack the tarball and install it rather than linking, so you exercise the same layout users get:
npm pack
npm install --global ./chriskealley-openroad-*.tgz