req-2-plan
v0.2.2
Published
Requirement-to-PLAN workflow CLI and agent integration installer.
Maintainers
Readme
req-2-plan
req-2-plan installs and manages the local r2p workflow integration for supported agent platforms.
The npm package exposes one lifecycle command:
r2pUse it to install platform templates, audit installed files, remove integrations, and print the installed workflow version.
Requirements
- Node.js 18+
- Python 3 available as
python3orpython
The lifecycle commands (r2p install, r2p uninstall, r2p installed, r2p doctor, r2p version) use only the Python standard library.
The daily workflow shortcuts installed by r2p install use the Python dependency in requirements.txt:
python3 -m pip install --user -r requirements.txtIf you installed from npm and do not have this repository checkout, install the dependency directly:
python3 -m pip install --user "pyyaml>=6.0"Install
npm install -g req-2-planCheck the lifecycle CLI:
r2p version
r2p installed
r2p doctorInstall An Agent Integration
Supported platforms:
claudecodexgemini
Install one platform:
r2p install --platform claudeInstall another platform:
r2p install --platform codex
r2p install --platform geminiInstall multiple platforms at once:
r2p install --platform claude,codex,geminiIf a platform was already installed, reinstall with explicit confirmation:
r2p install --platform claude --confirmWhat Install Writes
r2p install writes platform-specific templates into the target agent home directory and shared command wrappers under:
~/.req-to-plan/bin/It also writes a manifest:
~/.req-to-plan/install/<platform>.yamlThe manifest records every managed path so uninstall can remove only files created by r2p and restore backups for files that existed before install.
Daily Workflow Shortcuts
After install, platform templates call the shared wrappers:
r2p-start "Add rate limiting"
# or start from a requirement document (reads the file contents, not the path):
r2p-start --file ./requirement.md
r2p-continue
r2p-tier-lock --work-id WF-YYYYMMDD-slug --base light --confirm
r2p-status
r2p-switch --work-id WF-YYYYMMDD-slug
r2p-reopen --from WF-YYYYMMDD-slug --stage spec --reason "Fix upstream gap"The wrappers are installed into ~/.req-to-plan/bin/. Add that directory to PATH if you want to run the shortcuts directly from your shell:
export PATH="$HOME/.req-to-plan/bin:$PATH"Audit And Uninstall
List installed platforms:
r2p installedCheck for missing files or version drift:
r2p doctorUninstall a platform:
r2p uninstall --platform claudeUninstall multiple platforms:
r2p uninstall --platform claude,codex,geminiShared wrappers in ~/.req-to-plan/bin/ are removed only when no installed platform still needs them.
