add-comparison

Adds or revises comparison definitions in site_comparisons.json using existing traces and renderer families.

Updated Jul 13, 2026
One-click install
npx skills add https://github.com/mryk814/optimization-compass --skill add-comparison-mryk814
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: add-comparison
Source: https://github.com/mryk814/optimization-compass/tree/main/.agents/skills/add-comparison
Command: npx skills add https://github.com/mryk814/optimization-compass --skill add-comparison-mryk814

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Maintainers of the Optimization Compass knowledge base need a controlled, validated way to add or revise comparison entries (Compare definitions) without inventing new traces, renderer contracts, or breaking the published schema. ## Core Features & Use Cases - Guided editing workflow: Copies the closest existing comparison entry in data/seeds/site_comparisons.json by mode and rewrites it, keeping the validated schema intact. - Reuse enforcement: Requires reusing existing traces, visualization scenarios, problem definitions, benchmark contexts, and method IDs; stops if new renderer contracts are needed. - Validation gates: Runs optimization-compass validate comparison, with tier-b as the PR gate and tier-c (including E2E) when routes or interactions change. - Use Case: A contributor wants to add a new method comparison for an existing problem archetype; the skill walks them through copying a matching entry, editing fields, validating, and documenting ranking_eligible reasoning in the PR. ## Quick Start Add a new comparison entry to site_comparisons.json for the existing gradient descent versus Newton method scenario and validate it with the comparison validator.

Frequently Asked Questions about add-comparison

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new comparison to the Optimization Compass site?▼

Copy the existing comparison entry in data/seeds/site_comparisons.json whose mode is closest to your target, rewrite its fields, then run uv run optimization-compass validate comparison. The PR gate is validate tier-b.

Can I create a comparison with a new trace or renderer contract?▼

No. This workflow only reuses existing traces, visualization scenarios, problem definitions, benchmark contexts, and method IDs. If a new trace or renderer contract is needed, stop because that is a separate design task equivalent to Recipe G.

What validation commands are required before submitting a comparison change?▼

Run uv run optimization-compass validate comparison for the entry itself. The PR gate is uv run optimization-compass validate tier-b, and if routes or interactions change you must run validate tier-c, which includes E2E tests.

When is a comparison not eligible for ranking?▼

Failure and sensitivity comparisons cannot be ranked, per docs/adding-knowledge.md section 9. You must state the reasoning behind the ranking_eligible decision explicitly in the pull request.

What documents must I read before editing site_comparisons.json?▼

Read Recipe D in the optimization-compass-maintenance SKILL.md and section 9 of docs/adding-knowledge.md, which covers fixed factors, variable factors, budget, synchronization axes, fairness, and caveats.