Command Reference
35 commands · all under /x4:
Command
Description
Category
/x4:onboard
Check tools, accounts, CLIs, companion plugins — set up your dev environment
Setup
/x4:create
Scaffold a new project (presets: full-stack, saas, landing, api-only)
Setup
/x4:tour
Guided walkthrough — explore apps, test login, try AI chat, set up git
Setup
/x4:add
Add a mobile or web app to an existing project
Setup
/x4:env
Set up environment variables (database, auth, AI keys)
Setup
/x4:status
Quick project health dashboard — apps, ports, database, git, plugins
Setup
/x4:kickstart
Brainstorm features, design UI, prioritize, and batch-generate PRDs
Planning
/x4:idea
Capture a feature idea to the backlog
Planning
/x4:plan-backlog
Triage backlog → brainstorm → implementation plan → write PRD
Planning
/x4:plan-bridge
Convert any planning session into a PRD
Planning
/x4:init-tracker
Scaffold STATUS.md, BACKLOG.md, planning folders
Planning
/x4:gaps
Find product gaps — dead ends, missing connections, incomplete flows
Discovery
/x4:dream
Explore big ideas — bold features, natural evolutions, untapped tech stack capabilities
Discovery
/x4:work
7-phase pipeline with auto-loop: Orient → Build → Review → Ship → Next
Agents
/x4:run-tests
Run configured test commands — app-type-aware for e2e (web, marketing, desktop)
Agents
/x4:e2e-setup
One-time Playwright scaffold wizard for monorepo apps
Agents
/x4:init-setup
Interactive wizard for database, hosting, CI, tests, tracker, opensrc
Agents
/x4:init-agents
Generate project-specific agent files from templates
Agents
/x4:verify-local
Run all checks with auto-fix — mandatory ship gate
Agents
/x4:pr-create
Create branch + DB branch + draft PR
Agents
/x4:pr-status
Check CI, preview URLs, review state
Agents
/x4:pr-cleanup
Post-merge cleanup
Agents
/x4:debt-scan
Post-build technical debt audit — TODOs, dead code, complexity hotspots, dependency drift
Agents
/x4:deploy-setup
One-time Railway wizard — detect services, generate railway.toml, sync env vars
Agents
/x4:opensrc-init
One-time setup: clone runtime dependency sources via opensrc, update CLAUDE.md
Sources
/x4:opensrc-update
Diff package.json vs sources.json, fetch new/updated packages, remove orphans
Sources
/x4:opensrc-status
Read-only report: fetched packages, version freshness vs lockfile, missing coverage
Sources
/x4:help
Contextual plugin guide — detects project state, shows all commands, suggests next step
Utility
/x4:doctor
Project health diagnostic — prerequisites, config, agents, env vars, database, version, plugins
Utility
/x4:upgrade
Apply x4 project migrations after updating the plugin
Utility
/x4:market-update
Sync marketing site with shipped features
Utility
/x4:market-subscribe
Scaffold email capture form + /api/subscribe route into the marketing site
Utility
/x4:market-email
Generate release email from changelog — subject line, preview text, body, Resend snippet
Utility
/x4:market-linkedin
Generate LinkedIn post from changelog — hook, body, hashtags, clipboard
Utility
/x4:market-tweet
Generate X/Twitter thread from changelog — 280-char enforced, clipboard or --post
Utility
35 of 35 commands