Solution Comparator Skill

SkillDev tools

Compare multiple solutions for correctness and performance

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the Solution Comparator Skill skill

What this skill tells your AI

The instructions your AI receives, as published by a5c-ai/babysitter in library/specializations/algorithms-optimization/skills/solution-comparator/SKILL.md and read by ahel’s review.

Purpose

Compare multiple algorithm solutions against the same test cases to verify correctness and benchmark performance.

Capabilities

  • Run solutions against same test cases
  • Performance benchmarking and comparison
  • Output diff analysis
  • Find minimal failing test case
  • Memory usage comparison
  • Time complexity validation

Target Processes

  • correctness-proof-testing
  • complexity-optimization
  • upsolving
  • algorithm-implementation

Comparison Modes

  1. Correctness: Compare outputs against a known-correct solution
  2. Performance: Benchmark execution time across solutions
  3. Stress Testing: Run with random large inputs to find discrepancies
  4. Minimal Counter-example: Binary search to find smallest failing case

Input Schema

{
  "type": "object",
  "properties": {
    "solutions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": { "type": "string" },
          "code": { "type": "string" },
          "language": { "type": "string" }
        }
      }
    },
    "testCases": { "type": "array" },
    "mode": {
      "type": "string",
      "enum": ["correctness", "performance", "stress", "minimal"]
    },
    "oracleSolution": { "type": "string" },
    "timeout": { "type": "integer", "default": 5000 }
  },
  "required": ["solutions", "mode"]
}

Output Schema

{
  "type": "object",
  "properties": {
    "success": { "type": "boolean" },
    "results": { "type": "array" },
    "discrepancies": { "type": "array" },
    "performance": { "type": "object" },
    "minimalFailingCase": { "type": "object" }
  },
  "required": ["success"]
}

Signals

GitHub stars
2k
Forks
112
Last commit
Sep 2026
Advanced
Item type
skill
Key
solution-comparator
Source
github.com/a5c-ai/babysitter