Step-by-Step Tutorial: Installing & Bootstrapping wb-flow โ
This field manual walks you through installing wb-flow on your development machine and wiring its 33 slash-command Operating Procedures directly into your terminal AI assistants (Claude Code, OpenCode, Antigravity / Gemini CLI, Cursor, Codex).
๐๏ธ Architecture & Integration Flow โ
Below is how wb-flow bootstraps command templates into stable storage and generates native wrapper commands for every assistant:
๐ Step 1: Installing the CLI โ
You can install wb-flow using npm globally, run it on-demand via npx, or clone the source directly.
Option A: Global Installation (Recommended) โ
Installing globally makes the wb-flow binary available everywhere in your shell:
npm install -g wb-flowVerify your installation and inspect available flags:
wb-flow --version
# Output: 1.0.2
wb-flow --helpOption B: One-Shot Execution via npx โ
If you prefer zero global footprint, run npx wb-flow directly inside any target repository:
cd ~/projects/my-awesome-app
npx wb-flowOption C: Source Clone / Contributor Setup โ
If you want to contribute to wb-flow core or maintain a custom template library:
git clone https://github.com/wissemb11/wb-flow.git ~/.wb-flow-src
cd ~/.wb-flow-src && npm link
cd ~/projects/my-awesome-app
wb-flow๐ Step 2: Wiring Slash Commands (wb-flow init) โ
wb-flow features an automated setup wizard (wb-flow init) that detects all installed AI coding assistants and writes native slash-command wrappers for each of them in a single interactive pass.
Run the initializer in your terminal:
wb-flow initInteractive Step-by-Step Breakdown โ
๐ wb-flow init โ wiring the /wb* commands into your assistants
Where should the /wb* commands be available?
1) Globally โ every project on this machine
2) This project only โ /home/user/my-awesome-app
> [1]- Global Scope (
1): Stores master command templates in~/.wb-flow/commands/. All wrapper files point to absolute paths, enabling/wbPlan,/wbAudit, and/wbWorkacross any repo on your machine. - Project Scope (
2): Stores templates inside./.wb/commands/. Relative links allow you to commit templates to Git so your entire engineering team shares identical SOP contracts.
Next, wb-flow init scans your system paths to detect active assistants:
Which assistants should get the commands? (detected ones default to Yes)
Claude Code โ ~/.claude/commands [Y/n]
OpenCode โ ~/.config/opencode/command [Y/n]
Gemini CLI โ ~/.gemini/commands [y/N]
Antigravity (agy) โ ~/.gemini/config/skills [Y/n]Press Enter to confirm auto-detected assistants. wb-flow will immediately generate all 33 command wrappers across selected platforms!
๐ค Non-Interactive / CI Bootstrap (--yes) โ
For automated dev-container setups, Docker images, or CI/CD pipelines, pass the --yes (-y) flag along with explicit options:
# Global bootstrap for Claude Code & OpenCode
wb-flow init --scope=global --agents=claude,opencode -y
# Project-level bootstrap preview without writing
wb-flow init --scope=project --agents=all --dry-run๐ฏ Step 3: Executing Your First Workflow โ
Once installation and wiring are complete, test the integration inside your preferred assistant terminal interface.
1. Launch your assistant CLI: โ
claude
# OR
opencodeIndex your repository context: Type
/wbSetup .in the assistant prompt. The assistant readswbSetup_template.mdand generatescontext.md+dev.md.Generate an architectural plan: Type
/wbPlan "implement rate limiting on API endpoints". Your assistant generates a structured task table and execution matrix.Execute work items strictly: Type
/wbWork --id=1to run the first task with full traceability and automated verification.
๐ Verification & Troubleshooting โ
To confirm that command wrappers are correctly linked and up to date, run the internal validator:
node ~/.wb-flow/bin/verify-wrappers.jsIf an assistant does not register slash commands after running init:
- Claude Code: Verify that
~/.claude/commands/wbPlan.mdexists. Restart theclaudesession. - OpenCode: Check
~/.config/opencode/command/wbPlan.md. - Antigravity (
agy): Antigravity uses skills instead of slash commands. Run tasks using natural language:run wbPlan on src/api.
