<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
luum-home/luum-cognitive-os/cognitive-os-benchmark
──Details
PublishedOctober 24, 2026 at 12:35 AM
Content Hashsha256:65db1413f5be3a48...
Git SHA30d893e9c0b8
──Files
Files (1 file, 4.1 KB)
SKILL.md4.1 KBactive
SKILL.md · 148 lines · 4.1 KB

name: cognitive-os-benchmark description: Run benchmark comparisons between Cognitive OS and BMAD METHOD v6 triggers:

  • /benchmark
  • /run-benchmark
  • /compare-bmad

tags:

  • testing
  • benchmark
  • comparison
  • quality

audience: os-dev version: 1.0.0 platforms:

  • claude-code

prerequisites: [] routing_patterns:

  • pattern: \bcognitive[- ]?os[- ]?benchmark\b

confidence: 0.95

  • pattern: \bbenchmark\s+(cognitive[- ]?os|cos)\b

confidence: 0.85

  • pattern: \bcos\s+vs\s+(bmad|baseline)\b

confidence: 0.75 summary_line: Run benchmark comparisons between Cognitive OS and BMAD METHOD v6. routing_intents:

  • intent: cognitive_os_benchmark_request

description: User asks to run benchmark comparisons between Cognitive OS and BMAD METHOD v6. confidence: 0.85


<!-- SCOPE: os-only -->

Cognitive OS Benchmark Skill

Run standardized benchmarks to compare Cognitive OS vs BMAD METHOD v6 on 5 coding tasks.

Usage

/benchmark # Run all benchmarks with Cognitive OS
/benchmark --system bmad # Run all benchmarks with BMAD v6
/benchmark --task fix-bug # Run a single benchmark task
/benchmark --dry-run # Preview what would run

What It Does

  1. Reads task definitions from .cognitive-os/tests/benchmark/benchmark-config.yaml
  2. For each task, creates an isolated git worktree
  3. Runs Claude Code headless with the task prompt
  4. Measures: time, tokens, files created, tests created, compilation success
  5. Runs LLM evaluation for architecture/pattern compliance scores
  6. Saves results to .cognitive-os/metrics/benchmark-results.jsonl
  7. Generates a markdown report

Benchmark Tasks

IDDescription
create-go-serviceCreate a new Go microservice with clean architecture
fix-bugFix a validation bug and add regression tests
add-endpointAdd an endpoint following existing patterns
refactor-codeRefactor controllers to use cases
cross-service-featureImplement a feature spanning multiple services

Commands

Run All Benchmarks

bash
bash .cognitive-os/tests/benchmark/run-benchmark.sh

Run Cognitive OS Only

bash
bash .cognitive-os/tests/benchmark/run-benchmark.sh --system cognitive-os

Run BMAD Only

bash
bash .cognitive-os/tests/benchmark/run-benchmark.sh --system bmad

Run Single Task

bash
bash .cognitive-os/tests/benchmark/run-benchmark.sh --task create-go-service

Dry Run (preview)

bash
bash .cognitive-os/tests/benchmark/run-benchmark.sh --dry-run

Keep Worktrees After Run

bash
bash .cognitive-os/tests/benchmark/run-benchmark.sh --no-cleanup

Options

FlagDescriptionDefault
--systemcognitive-os or bmadcognitive-os
--taskRun single task by IDall tasks
--modelOverride Claude modelfrom config
--max-turnsOverride max turnsfrom config
--dry-runShow tasks without executingfalse
--no-cleanupKeep worktrees after runfalse

Output

  • JSONL results: .cognitive-os/metrics/benchmark-results.jsonl
  • Markdown report: .cognitive-os/metrics/benchmark-report-{run-id}.md
  • Comparison guide: .cognitive-os/tests/benchmark/compare-with-bmad.md

Dependencies

  • claude CLI
  • yq (YAML parser)
  • jq (JSON processor)
  • git (for worktree isolation)

Install missing deps: brew install yq jq

Metrics Collected

MetricTypeDescription
time_secondsdurationWall-clock execution time
tokens_usedcountTotal input + output tokens
files_createdcountNew/modified files
tests_createdcountTest files created
compilation_successbooleanCode builds without errors
architecture_scorellm_evalClean architecture compliance (0-10)
follows_patternsllm_evalCodebase pattern consistency (0-10)
architecture_improvedllm_evalRefactoring quality (0-10)

Scoring

Maximum score: 50 points across all 5 tasks. Weights defined in benchmark-config.yaml under scoring.weights. Time and token usage apply small negative penalties to reward efficiency.

All versions