Skip to main content

Skill Commands

Skill commands provide specialized capabilities beyond the core Double Diamond workflow. Each skill focuses on a specific domain expertise.

/octo:debate - AI Debate Hub

Structured three-way debates between Claude, Gemini, and Codex.

Syntax

What It Does

Orchestrates a structured debate with:
  • Three participants: Claude (moderator), Gemini, Codex
  • Multiple rounds: Opening, rebuttals, synthesis
  • Consensus building: Final recommendation with confidence score
  • Adversarial mode: Red team vs blue team critique

Debate Structure

  1. Round 1 - Opening Statements
    • Each AI presents their position
    • Initial arguments and evidence
  2. Round 2 - Rebuttals
    • Respond to other perspectives
    • Address counterarguments
  3. Round 3 - Synthesis
    • Claude moderates consensus
    • Final recommendation with reasoning

Interactive Questions

Before debate, you’ll be asked:
  1. Debate style: Collaborative vs Adversarial
  2. Depth: Quick (2 rounds) vs Deep (3+ rounds)
  3. Decision urgency: High stakes vs exploratory

Examples

When to Use

Use debate for:
  • Comparing technology options
  • Architecture decisions with trade-offs
  • Security approach evaluation
  • Adversarial code review
  • High-stakes technical choices

Output

Natural Language Triggers

Auto-activates when you say:
  • “should”, “vs”, “or”, “compare”
  • “versus”, “decide”, “which is better”
  • “debate”, “argue for/against”

/octo:review - Code Review

Expert code review with comprehensive quality assessment.

Syntax

What Gets Reviewed

  • Design patterns and architecture
  • Code complexity (cyclomatic)
  • Maintainability and readability
  • Naming conventions
  • Code duplication
  • OWASP Top 10 vulnerabilities
  • Authentication/authorization flaws
  • Input validation
  • SQL injection and XSS risks
  • Sensitive data exposure
  • Algorithm efficiency
  • Database query optimization
  • Memory usage
  • Caching opportunities
  • Scalability issues
  • Industry standards
  • Framework conventions
  • Error handling
  • Logging and monitoring
  • Test coverage

Interactive Questions

Before review, you’ll be asked:
  1. Goal: Pre-commit / Security focus / Performance / Architecture
  2. Priority concerns: Security / Performance / Maintainability / Testing
  3. Audience: Just me / Team review / Production release / External audit

Review Types

Pre-commit checks - Fast validation before committing
  • Surface-level checks (5-10 sec)
  • Critical issues only
  • Best for small changes

Examples

Output Format


/octo:security - Security Audit

OWASP compliance and vulnerability detection.

Syntax

What Gets Audited

OWASP Top 10

  • Injection flaws
  • Broken authentication
  • Sensitive data exposure
  • XML external entities
  • Broken access control
  • Security misconfiguration
  • XSS vulnerabilities
  • Insecure deserialization
  • Known vulnerable components
  • Insufficient logging

Authentication & Auth

  • Password storage (hashing/salting)
  • Session management
  • Token security (JWT/OAuth)
  • Authorization logic
  • Multi-factor authentication

Input Validation

  • SQL injection prevention
  • XSS protection
  • Command injection
  • Path traversal
  • LDAP/XML injection

Data Protection

  • Encryption at rest/transit
  • Cryptographic implementations
  • Key management
  • PII handling
  • GDPR/HIPAA compliance

Interactive Questions

  1. Threat model: Standard web app / High-value target / Compliance-driven / API-focused
  2. Compliance requirements: None / OWASP / GDPR/HIPAA/PCI / SOC2/ISO27001
  3. Risk tolerance: Strict zero-trust / Balanced / Pragmatic / Development-only

Examples

Output Format


/octo:tdd - Test-Driven Development

Red-green-refactor discipline with multi-AI test generation.

Syntax

TDD Workflow

What You Get

  1. Test-First: Failing tests written before implementation
  2. Minimal Code: Only enough code to pass tests
  3. Refactor: Clean up with confidence (tests protect you)
  4. Coverage: High test coverage by design
  5. Regression Protection: Catch breaks early

Interactive Questions

  1. Coverage goal: Critical paths / Standard ~80% / Comprehensive >90% / Mutation testing
  2. Test style: Unit tests / Integration / E2E / Mix of all
  3. Complexity: Simple CRUD / Moderate logic / Complex algorithms / Distributed systems

Examples

TDD Cycle Example

1

Red: Write Failing Test

Test fails ❌ (no implementation yet)
2

Green: Write Minimal Code

Test passes ✅
3

Refactor: Improve Quality

Tests still pass ✅, code is cleaner
4

Repeat

Add next failing test, implement, refactor…

When to Use TDD

Use TDD for:
  • Critical business logic
  • Complex algorithms
  • Features with clear requirements
  • When you need high confidence
  • Legacy code refactoring
Consider alternatives for:
  • Prototypes and spikes
  • UI/UX experimentation
  • Unclear requirements (use /octo:discover first)

/octo:factory - Dark Factory Mode

Spec-in, software-out autonomous pipeline.

Syntax

What It Does

7-phase autonomous pipeline:
1

1. Parse Spec

Validates NLSpec format and extracts:
  • Satisfaction target (0.80-0.99)
  • Complexity estimate
  • Behaviors and constraints
2

2. Generate Scenarios

Multi-provider scenario generation:
  • Codex: Technical scenarios
  • Gemini: User scenarios
  • Claude: Edge cases
3

3. Split Holdout

80/20 train/test split:
  • 80% used for implementation
  • 20% held back for blind validation
4

4. Embrace Workflow

Full 4-phase implementation:
  • Discover → Define → Develop → Deliver
  • Fully autonomous (no phase approval)
5

5. Holdout Tests

Blind evaluation:
  • Test implementation against withheld scenarios
  • Measure actual vs expected behavior
6

6. Score Satisfaction

Weighted scoring:
  • Behavior coverage: 40%
  • Constraint adherence: 20%
  • Holdout pass rate: 25%
  • Code quality: 15%
7

7. Generate Report

Verdict with evidence:
  • PASS (>= target)
  • WARN (>= target - 0.05)
  • FAIL (< target - 0.05)

Interactive Questions

  1. Spec path: Where is the NLSpec file?
  2. Satisfaction target: Use spec default or override? (0.80-0.99)
  3. Cost confirmation: Proceed with ~$0.50-2.00 cost? (~20-30 agent calls)

Options

--spec
string
required
Path to NLSpec file defining the feature
--holdout-ratio
number
default:"0.25"
Percentage of scenarios for blind validation (0.20-0.30)
--max-retries
number
default:"2"
Number of retry attempts on FAIL verdict
--ci
boolean
Non-interactive mode for automation pipelines

Examples

Output Structure

When to Use Factory

Use factory for:
  • Features with clear specifications
  • Autonomous development pipelines
  • CI/CD integration
  • When you have a complete NLSpec
  • Spec-driven development
Don’t use for:
  • Simple bug fixes
  • Exploratory coding
  • Unclear requirements (use /octo:plan first)
  • Tasks without specifications

Cost & Duration

  • Cost: ~$0.50-2.00 per run (20-30 agent calls)
  • Duration: 15-30 minutes depending on complexity
  • Retries: Auto-retry on FAIL (up to max-retries)

/octo:prd - PRD Generation

AI-optimized Product Requirements Document with 100-point scoring.

Syntax

What You Get

Comprehensive PRD with:
  1. Executive Summary - Vision and key value proposition
  2. Problem Statement - Quantified by user segment
  3. Goals & Metrics - SMART goals with P0/P1/P2 priorities
  4. Non-Goals - Explicit scope boundaries
  5. User Personas - 2-3 specific personas with needs
  6. Functional Requirements - FR-001 format with acceptance criteria
  7. Implementation Phases - Dependency-ordered rollout
  8. Risks & Mitigations - Identified risks with mitigation plans

Interactive Questions

Phase 0 clarification (mandatory):
  1. Target Users: Who will use this? (developers/end-users/admins/agencies)
  2. Core Problem: What pain point does this solve? Metrics?
  3. Success Criteria: How will you measure success? KPIs?
  4. Constraints: Technical, budget, timeline, platform constraints?
  5. Existing Context: Greenfield or integrating with existing systems?

Scoring Framework (100 points)

Examples

Output Example


/octo:claw - OpenClaw Administration

Manage OpenClaw gateway instances across platforms.

Syntax

What It Manages

Gateway Lifecycle

  • Start/stop/restart gateway
  • Health checks and diagnostics
  • Daemon installation
  • Version updates and rollback

5 Platforms

  • macOS: launchd service
  • Ubuntu/Debian: systemd service
  • Docker: compose orchestration
  • OCI (ARM): ARM-optimized containers
  • Proxmox: LXC containers

6 Channels

  • WhatsApp
  • Telegram
  • Discord
  • Slack
  • Signal
  • iMessage

Security

  • Security audit and hardening
  • Firewall configuration
  • Tailscale VPN setup
  • Credential management
  • SSL/TLS configuration

Methodology

Every claw action follows:
  1. DETECT - Identify platform (never assume OS)
  2. DIAGNOSE - Non-destructive checks before changes
  3. EXECUTE - Platform-specific commands
  4. VERIFY - Confirm the change took effect

Examples

Platform-Specific Commands

When to Use Claw

  • Managing OpenClaw gateway instances
  • Platform-specific administration tasks
  • Channel configuration (WhatsApp, Telegram, etc.)
  • Security hardening and VPN setup
  • Troubleshooting gateway issues
  • Multi-platform deployments
/octo:claw is specifically for OpenClaw gateway administration. For general system commands, use /octo:setup or /octo:doctor.

Planning & Orchestration Skills

/octo:plan - Strategic Planning

Create execution plans without running them. See Workflow Commands - Plan for details.

/octo:parallel - Team of Teams

Decompose work into parallel packages.

/octo:multi - Force Multi-Provider

Manual override for parallel execution.

/octo:spec - NLSpec Authoring

Write structured natural language specifications.

Skill Comparison


Next Steps

Try a Debate

Compare options with multi-AI perspectives

Code Review

Get comprehensive quality assessment

Workflow Commands

Learn the core Double Diamond phases