Skip to main content
Forge Docs

Slash Commands

All 21 slash commands provided by the forge-plugin, available inside Claude Code after installing the plugin.

All 21 slash commands provided by the forge-plugin. These are available inside Claude Code after installing the plugin.

Governance

CommandDescription
/forge:statusDisplay complete project state — health score, git status, test results, security scan. Zero-context-friendly (safe to run at any point).
/forge:status-enhancedEnhanced status with detailed dashboard and metrics. Includes dependency analysis, code quality trends, and workstream breakdown.
/forge:gap-analysisAnalyze project gaps across 5 dimensions: testing, docs, security, architecture, and performance. Returns prioritized remediation plan.
/forge:complianceScan tech stack, check license compatibility, and generate SBOM (Software Bill of Materials). Covers OWASP, dependency licenses, and regulatory requirements.
/forge:command-centerActivate the orchestrator command center — connects to forge-orchestrator MCP tools for task management, knowledge queries, and drift detection. Requires L2.

Feature Development

CommandDescription
/forge:feature "description"Add a new feature with full agent orchestration. Spawns planner → builder → tester → security reviewer. Pass a description of what you want to build.
/forge:spec "description"Generate a technical specification for a feature. Produces architecture, data flow, API contracts, and test strategy.
/forge:agent-assignAssign tasks to specialized agents. Routes work to the right agent based on task type (security, testing, performance, etc.).
/forge:integrateSet up third-party service integrations. Guides through API key setup, SDK installation, and connection validation.

Quality & Testing

CommandDescription
/forge:testExecute project tests with detailed analysis. Auto-detects test runner (vitest, jest, pytest, cargo test). Reports failures, coverage, and trends.
/forge:deployDeploy with pre-flight validation and safety checks. Runs quality gates, confirms branch state, and validates environment before deployment.
/forge:optimizeAnalyze and optimize codebase for performance and maintainability. Covers bundle size, dependency weight, hot paths, and code complexity.

State Management

CommandDescription
/forge:checkpointSave a restorable project state checkpoint. Captures governance state, git status, and test results. Use before risky changes.
/forge:restoreRestore project state from a previously saved checkpoint. Rolls back governance state (does not roll back git changes).
/forge:reportDisplay comprehensive session activity report. Shows what was accomplished, what changed, and what's pending.

Documentation

CommandDescription
/forge:docs-statusShow documentation health and coverage. Reports which areas have docs, which are missing, and staleness indicators.
/forge:docs-updateUpdate stale documentation based on code changes. Identifies docs that reference outdated code and suggests updates.
/forge:docs-auditComprehensive documentation quality audit. Checks completeness, accuracy, and consistency across all doc files.

Setup & Maintenance

CommandDescription
/forge:initInitialize Forge in a project — 60-second setup wizard. Creates governance hooks, detects project stack, and configures quality baselines.
/forge:dashboardOpen the Forge governance dashboard in your browser. Requires forge-ui (L3) to be running on port 5050.
/forge:updateUpdate Forge to the latest version.

CEO Decision Loop

CommandDescription
/forge:ceo-loop [max-iterations] [time-limit]Activate the CEO Decision Loop in ORBIT mode. Continuous multi-iteration governance cycle: OBSERVE pending decisions → REASON with precedent → BUILD decisions → INSPECT retrograde → TURN for next iteration.
/forge:ceo-loop-cancelCancel the active CEO Decision Loop gracefully. Sets the loop to inactive, writes a final summary, and preserves all decisions in the journal.

Usage Tips

  • Start with /forge:status — it's the fastest way to understand any project's state
  • Use /forge:gap-analysis after major changes — catches regressions across all 5 dimensions
  • Save checkpoints before risky changes/forge:checkpoint then /forge:restore if things go wrong
  • Commands work without L2 — all slash commands function with just the plugin installed. L2 (orchestrator) adds task management and knowledge features but is not required.
Slash Commands | NXTG.AI