๐Ÿ”€ Architecture Decision

Get perspectives from Claude, Gemini, and Codex on architectural decisions, synthesized into a formal ADR.

multi-agent claude-code gemini-cli codex
parallel-process:
  claude-analysis:
    input: STDIN
    model: claude-code
    action: "Analyze options and trade-offs"
    output: $CLAUDE_ANALYSIS

  gemini-analysis:
    input: STDIN
    model: gemini-cli
    action: "Industry best practices"
    output: $GEMINI_ANALYSIS
...

๐Ÿ” Code Review

Comprehensive code review using Claude Code for bugs, security issues, and improvement suggestions.

claude-code code-quality
review:
  input: "src/*.go"
  model: claude-code
  action: |
    Review for:
    - Bugs and logic errors
    - Security vulnerabilities
    - Performance issues
    - Code style improvements
  output: review.md

๐Ÿ” Iterative Refinement

Agentic loop that iterates on code until it meets quality standards. LLM decides when complete.

agentic-loop code-generation
implement:
  agentic_loop:
    max_iterations: 3
    exit_condition: pattern_match
    exit_pattern: "SATISFIED"
  input: STDIN
  model: claude-code
  action: |
    Iteration {{ loop.iteration }}.
    Previous: {{ loop.previous_output }}
    
    Refine until production-ready.
  output: STDOUT

โœ… Quality Gate

Agentic loop with quality gates that abort or retry based on code quality checks.

agentic-loop quality-gate
generate:
  agentic_loop:
    max_iterations: 5
    exit_condition: quality_gate
    quality_command: "go test ./..."
    on_failure: retry
  input: STDIN
  model: claude-code
  action: "Implement with passing tests"
  output: STDOUT

โš–๏ธ Model Comparison

Run the same prompt through multiple models in parallel and compare their outputs.

parallel comparison
parallel-process:
  gpt4:
    model: gpt-4o
    action: "Solve the problem"
    output: gpt4-result.txt
  claude:
    model: claude-3-5-sonnet-latest
    action: "Solve the problem"
    output: claude-result.txt

compare:
  input: [gpt4-result.txt, claude-result.txt]
  action: "Compare approaches"

๐Ÿงช Generate Tests

Automatically generate comprehensive test suites for your code using Claude Code.

claude-code testing
generate-tests:
  input: "src/api/*.go"
  model: claude-code
  action: |
    Generate comprehensive tests:
    - Unit tests for all functions
    - Edge cases and error handling
    - Table-driven tests where appropriate
    - Mock external dependencies
  output: src/api/*_test.go

๐Ÿ› ๏ธ Tool Integration

Execute shell commands within workflows. Perfect for git operations, linting, and build pipelines.

tool-use bash
get-changes:
  tool: bash
  input: "git diff HEAD~5 --stat"
  output: $CHANGES

analyze:
  input: $CHANGES
  model: claude-code
  action: "Summarize recent changes"
  output: STDOUT

๐ŸŒ Web Scraping

Fetch and analyze web pages. Take screenshots and extract structured data.

web scraping
fetch:
  input: "https://example.com/docs"
  output: $PAGE_CONTENT

analyze:
  input: $PAGE_CONTENT
  model: gpt-4o
  action: |
    Extract key information:
    - Main topics covered
    - API endpoints mentioned
    - Code examples
  output: summary.md

๐Ÿ“Š Data Analysis

Analyze CSV files and structured data. Generate insights and visualizations.

data csv
analyze:
  input: quarterly_data.csv
  model: gpt-4o
  action: |
    Analyze this data:
    - Key trends and patterns
    - Notable outliers
    - Recommendations
  output: analysis.md

More Templates on GitHub

Browse the full examples directory for more workflow templates.