exhaustive-specification

📁 wojons/skills 📅 Today
0
总安装量
1
周安装量
安装命令
npx skills add https://github.com/wojons/skills --skill exhaustive-specification

Agent 安装分布

amp 1
cline 1
opencode 1
cursor 1
kimi-cli 1
codex 1

Skill 文档

Exhaustive Specification Writing

Write exhaustive specifications for autonomous AI systems that leave nothing to chance. Create specs so detailed that a blind person could visualize the entire system, covering every aspect from UI/UX, animations, API connections, database schemas, logging, error handling, and edge cases. These specifications should be comprehensive enough (tens of thousands to millions of lines) that autonomous AI agents can build complete systems from scratch without human oversight.

When to use me

Use this skill when:

  • You need specifications for autonomous AI agents to build complete systems without human intervention
  • Current AI-generated specs are insufficiently detailed and leave critical aspects ambiguous
  • You’re building complex systems (game engines, benchmarks, enterprise applications) where every detail matters
  • You want to eliminate all guesswork, assumptions, and ambiguity from the development process
  • You need specs that cover UI visualization, backend logic, data flows, error handling, and edge cases comprehensively
  • You’re preparing for long-term autonomous development where humans won’t be monitoring every step

What I do

  • Blind-person visualization: Create specs so detailed that someone who cannot see can fully understand and visualize the system
  • Adversarial refinement: Use adversarial thinking (devil’s advocate, red teaming) to challenge and refine specs until nothing is left uncovered
  • Hierarchical organization: Structure massive specs (20,000+ lines) into manageable, cross-referenced components
  • Cross-validation: Ensure alignment between multiple spec files (UI, API, database, etc.) through systematic verification
  • Edge case enumeration: Document every possible error condition, input validation, and failure scenario
  • Complete system coverage: Specify everything from database schema to logging format to animation timing
  • Autonomous-ready: Create specs that autonomous AI can use to build, test, and deploy systems without human guidance
  • Bible Standard: Create canonical specifications that produce identical implementations across different AI systems, models, and languages – the definitive source all future versions build upon

Core Principles

1. Go Beyond Super Saiyan 3

Push specifications until there’s nothing left to uncover, like Goku powering up to Super Saiyan 3. Never settle for “good enough” – keep digging deeper into requirements, implications, and edge cases.

2. Blind-Person Visualization Standard

Write specs so detailed that a blind person could visualize:

  • Complete user interfaces (layout, colors, spacing, animations)
  • System interactions and data flows
  • Error states and recovery procedures
  • API request/response sequences
  • Database relationships and query patterns

3. Adversarial Refinement Loop

Use adversarial thinking patterns repeatedly:

  • Devil’s advocate: Challenge every assumption and decision
  • Red team: Attack the spec as if trying to break the system
  • Assumption buster: Identify and explicitly test all implicit assumptions
  • Reality validation: Compare against real-world expectations and domain knowledge

4. Hierarchical Decomposition

Organize massive specs using:

  • Master specification: High-level system overview and architecture
  • Component specifications: Detailed specs for each system component
  • Interface specifications: API contracts, data formats, protocols
  • Implementation specifications: Code-level details, algorithms, data structures
  • Validation specifications: Test cases, acceptance criteria, performance benchmarks

5. Cross-File Alignment

Ensure consistency across multiple specification files:

  • Reference tracking between related specs
  • Version synchronization across components
  • Conflict detection and resolution
  • Dependency mapping and impact analysis

6. The Bible Standard

Treat specifications as the canonical source (“The Bible”) that future implementations must follow exactly:

  • Deterministic implementation: Same specs should produce identical results across different AI systems, models, languages, and coding harnesses
  • Implementation-agnostic: Avoid language/framework-specific biases; focus on behavior, not implementation details
  • Test-driven specification: Include executable tests and validation suites within the spec itself
  • Cross-implementation validation: Verify different implementations produce identical observable behavior
  • Future-proof foundation: These specs become the source all future versions build upon; any flaw propagates through all derived systems
  • No human interpretation: Eliminate all ambiguity so AI systems don’t need to interpret or guess intent

Specification Framework

Phase 1: Foundation

  1. System Purpose: Why this system exists, problems it solves, value proposition
  2. Success Criteria: What “perfect” looks like for this domain (perfect benchmark, perfect game, perfect application)
  3. User Personas: Detailed characteristics, needs, behaviors, edge cases
  4. Domain Analysis: Deep understanding of the problem space, existing solutions, gaps

Phase 2: Comprehensive Requirements

  1. Functional Requirements: Every feature, function, and capability
  2. Non-Functional Requirements: Performance, scalability, security, reliability, maintainability
  3. User Experience: Complete user journeys, workflows, interactions
  4. Data Requirements: Schema, storage, retrieval, processing, backup
  5. Integration Requirements: External systems, APIs, protocols, formats
  6. Operational Requirements: Deployment, monitoring, logging, alerting

Phase 3: Detailed Design

  1. Architecture: System components, relationships, data flows
  2. UI/UX Design: Mockups, interactions, animations, responsive behavior
  3. API Design: Endpoints, request/response formats, error codes
  4. Database Design: Schema, indexes, queries, migrations
  5. Algorithm Design: Business logic, calculations, transformations
  6. Security Design: Authentication, authorization, encryption, compliance

Phase 4: Implementation Details

  1. Code Structure: File organization, naming conventions, coding standards
  2. Dependencies: Libraries, frameworks, versions, compatibility
  3. Configuration: Environment variables, settings, feature flags
  4. Build & Deployment: CI/CD pipelines, containerization, orchestration
  5. Testing Strategy: Unit, integration, e2e, performance, security tests
  6. Documentation: API docs, user guides, developer guides, troubleshooting

Phase 5: Validation & Verification

  1. Test Cases: Comprehensive test coverage for all requirements
  2. Acceptance Criteria: Clear pass/fail conditions for each requirement
  3. Performance Benchmarks: Expected performance under various loads
  4. Security Audits: Vulnerability assessments, penetration testing scenarios
  5. Compliance Checks: Regulatory requirements, industry standards
  6. Deterministic Validation: Tests ensuring identical behavior across different implementations
  7. Cross-Implementation Suite: Validation that different AI systems produce identical results
  8. Implementation-Agnostic Tests: Tests focused on behavior, not implementation details
  9. Bible Compliance Checks: Verification that specs are canonical and unambiguous

Adversarial Refinement Process

Iteration 1: Initial Specification

  • Write complete first draft covering all phases
  • Apply blind-person visualization to each section
  • Document explicit assumptions for later testing

Iteration 2: Devil’s Advocate Review

  • Challenge every requirement: “Why is this needed?” “What if we didn’t have it?”
  • Identify hidden assumptions and document them
  • Find contradictions and ambiguities

Iteration 3: Red Team Attack

  • Attack the system as an adversary
  • Identify security vulnerabilities, failure points, edge cases
  • Stress test performance assumptions
  • Attempt to break each component specification

Iteration 4: Assumption Testing

  • For each documented assumption, design tests to validate
  • Create “assumption validation suite” alongside test suite
  • Identify assumptions that cannot be tested automatically

Iteration 5: Reality Validation

  • Compare spec against real-world domain knowledge
  • Consult experts or reference materials for accuracy
  • Validate against similar successful systems

Iteration 6: Cross-Validation

  • Verify alignment between all specification files
  • Check for consistency in terminology, formats, requirements
  • Resolve any conflicts or gaps

Iteration 7: Bible Standard Validation

  • Test for determinism: Would different AI systems produce identical implementations?
  • Check for implementation-agnostic language: Avoid framework/language biases
  • Verify test-driven specification: Are there executable tests in the spec?
  • Validate cross-implementation consistency: Would the spec produce the same observable behavior regardless of implementation choices?
  • Eliminate all ambiguity: Ensure no human interpretation needed

Iteration 8: Final Exhaustion Check

  • Ask: “Is there anything left uncovered?”
  • Review each component for completeness
  • Ensure no aspect is left to chance or interpretation

Examples

# Generate exhaustive specification for a turn-based game benchmark
./scripts/generate-exhaustive-spec.sh \
  --domain "turn-based-game" \
  --purpose "benchmark-for-ai-agents" \
  --output-dir "specs/game-benchmark" \
  --adversarial-iterations 5

# Validate specification completeness
./scripts/validate-spec-completeness.sh \
  --spec-dir "specs/game-benchmark" \
  --validation-level "exhaustive"

# Run adversarial refinement on existing spec
./scripts/run-adversarial-refinement.sh \
  --spec-file "project-spec.md" \
  --adversary "redteam,devils-advocate,assumption-buster" \
  --iterations 3

# Generate blind-person visualization report
./scripts/generate-blind-visualization.sh \
  --spec-file "ui-spec.md" \
  --output "blind-visualization-report.md"

Output Format

Exhaustive specifications should include:

Master Specification Document

EXHAUSTIVE SPECIFICATION: [System Name]
========================================
Version: 1.0.0
Generated: 2026-02-27
Adversarial Iterations: 7
Total Lines: 42,857
Coverage Score: 98.7%

1. SYSTEM PURPOSE & VISION
   • Why this system exists
   • Problems it solves
   • Perfect implementation vision
   • Success metrics

2. COMPREHENSIVE REQUIREMENTS
   • Functional requirements (147 items)
   • Non-functional requirements (89 items)
   • User experience flows (23 workflows)
   • Data requirements (schema, volume, velocity)
   • Integration requirements (APIs, protocols)
   • Operational requirements (monitoring, logging)

3. DETAILED DESIGN
   • Architecture diagram and component relationships
   • UI/UX specifications (mockups, interactions, animations)
   • API specifications (endpoints, formats, errors)
   • Database specifications (schema, queries, indexes)
   • Algorithm specifications (logic, calculations)
   • Security specifications (auth, encryption, compliance)

4. IMPLEMENTATION GUIDE
   • Code structure and organization
   • Dependencies and versions
   • Configuration management
   • Build and deployment procedures
   • Testing strategy and coverage
   • Documentation requirements

5. VALIDATION SUITE
   • Test cases for all requirements
   • Performance benchmarks
   • Security audit checklist
   • Compliance verification
   • Assumption validation tests

6. ADVERSARIAL REFINEMENT LOG
   • Iteration 1: Initial draft
   • Iteration 2: Devil's advocate challenges
   • Iteration 3: Red team attacks
   • Iteration 4: Assumption testing
   • Iteration 5: Reality validation
   • Iteration 6: Cross-validation
   • Iteration 7: Bible Standard validation
   • Iteration 8: Exhaustion check

7. CROSS-REFERENCE INDEX
   • Requirement → Design → Implementation → Test mapping
   • Component dependencies
   • File relationships
   • Version compatibility matrix

Component Specification Files

  • ui-spec.md – Complete UI/UX specification
  • api-spec.md – API endpoints and contracts
  • db-spec.md – Database schema and queries
  • security-spec.md – Security requirements and implementation
  • deployment-spec.md – Deployment and operations
  • test-spec.md – Testing strategy and cases

Notes

  • Quantity is quality: 100,000 lines of detailed spec is better than 1,000 lines of vague spec
  • Autonomous readiness: Specs must enable AI agents to build without human interpretation
  • No mocks, no guesses: Every test should validate real behavior, not mocked assumptions
  • Continuous refinement: Specs evolve through adversarial challenges until exhaustion
  • Cross-skill integration: Leverage skills like adversarial-thinking, spec-gap-analysis, trust-but-verify
  • Real-world validation: Compare against domain expertise and existing successful systems
  • Blind visualization: If a blind person can’t understand it, it’s not detailed enough
  • Bible Standard: Specifications are the canonical source; different AI systems must produce identical implementations; any flaw propagates through all future versions

Remember: The goal is to create specifications so comprehensive that autonomous AI agents can build, test, and deploy complete systems without any human oversight or interpretation. Leave nothing to chance. These specs should be the “Bible” – the definitive source that produces identical results across different AI systems, models, languages, and coding harnesses.