Skip to content
rysweet avatar

N Version Workflow

N-version programming skill that generates N independent implementations and selects or synthesizes the best one.

CCM score
49 of 100
skills.sh installs
139
GitHub stars
77
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a seven-step workflow: shared specification, N isolated subprocess implementations, comparison, evaluation, selection or hybrid synthesis, implementation, and documented learnings
  • Scores candidates on correctness, security, simplicity, philosophy compliance, and performance, with correctness and security acting as gates
  • Sets N to 3 by default, 4 to 6 for critical features, or 2 for quick validation, and assigns each version a diversity profile
  • Designed for high-risk work such as authentication, authorization, complex algorithms, and core refactoring, not simple CRUD or bug fixes

Install

$ npx -y skills add rysweet/amplihack --skill n-version-workflow -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

N-Version Programming Workflow Skill

Purpose

Execute N-version programming workflow for critical implementations where multiple independent solutions should be generated and compared to select the best approach.

When to Use This Skill

USE FOR:

  • Critical security features (authentication, authorization)
  • Complex algorithms with multiple valid approaches
  • High-risk refactoring of core components
  • Architecture decisions with significant long-term impact
  • When correctness is paramount over speed

AVOID FOR:

  • Simple CRUD operations
  • Straightforward bug fixes
  • Documentation updates
  • Minor UI tweaks
  • Time-sensitive quick fixes

Configuration

Core Parameters

N (Number of Versions):

  • 3 - Default for standard tasks
  • 4-6 - Critical features requiring high confidence
  • 2 - Quick validation of approach

Selection Criteria (priority order):

  1. Correctness - Meets requirements and passes tests
  2. Security - No vulnerabilities or anti-patterns
  3. Simplicity - Ruthless simplicity, minimal complexity
  4. Philosophy Compliance - Follows project principles
  5. Performance - Efficiency and resource usage

Agent Diversity Profiles:

Details

Repository
github.com/rysweet/amplihack
Categories
Agent Workflow & Planning, Code Review & Quality
First seen
Jun 3, 2026

More from rysweet/amplihack

All 55

Similar to N Version Workflow

More Agent Workflow & Planning