Skip to content
design-compare logo

Design Documentation Version Comparison

design-compare

Compare doc versions across git history. Use when reviewing changes, tracking evolution, or understanding modifications.

SKILL.md

Full skill instructions

Design Documentation Version Comparison

Compares design document versions across git commits, branches, or tags to track evolution and understand changes over time.

Overview

This skill compares document versions by validating git references, loading document content from different versions, performing line-by-line or semantic diffs, analyzing changes for significance, and generating comprehensive comparison reports with metrics and highlights.

Quick Start

Compare with main branch:

/​design-compare observability.md --ref=main

Compare two commits:

/​design-compare doc.md --from=abc123 --to=def456

Semantic comparison:

/​design-compare doc.md --ref=v1.0.0 --format=semantic

Parameters

Required

  • doc: Document filename to compare

Optional

  • module: Module name (default: inferred from current context)
  • ref: Git reference to compare against (commit, branch, tag) (default: main)
  • from: Starting git reference for two-point comparison
  • to: Ending git reference for two-point comparison
  • format: Comparison format - unified, side-by-side, semantic, summary (default: unified)

Workflow

High-level comparison process:

  1. Parse parameters to determine document and comparison references
  2. Validate references to ensure git refs exist and are accessible
  3. Load document versions from current and historical git refs
  4. Perform comparison using diff (unified, side-by-side) or semantic analysis
  5. Analyze changes to extract metrics and categorize modifications
  6. Generate comparison report with summary, frontmatter changes, structural changes, and content diff
  7. Highlight significant changes (status changes, completeness jumps, major additions/​removals)
  8. Format output according to requested format
  9. Provide navigation with git commands for further exploration

For detailed implementation steps, see supporting documentation below.

Supporting Documentation

When you need detailed information, load the appropriate supporting file:

For Detailed Workflow

See instructions.md for:

  • Complete step-by-step comparison workflow
  • Git reference validation methods
  • Document version loading from git
  • Diff execution (line-by-line, side-by-side, semantic)
  • Change analysis and metrics calculation
  • Comparison report generation
  • Significant change highlighting
  • Git navigation commands
  • Comparison modes (single ref, two refs, branch, tag)
  • Advanced features (whitespace, context, word-level, stats)

Load when: Performing comparisons or need implementation details

For Comparison Formats

See comparison-formats.md for:

  • Unified diff format and syntax
  • Side-by-side comparison layout
  • Semantic diff structure
  • Summary format
  • Format selection guidelines
  • Color coding and highlighting

Load when: Need format specifications or output structure details

For Usage Examples

See examples.md for:

  • Compare with main branch
  • Compare two commits
  • Semantic comparison
  • No changes scenario
  • Document doesn't exist in reference
  • Error scenarios

Load when: User needs examples or clarification

Error Handling

Invalid Git Reference

ERROR: Git reference not found: {ref}

Valid references:
- Commit hash: abc123
- Branch name: main, feature-branch
- Tag name: v1.0.0

Check: git log or git branch -a

Document Not in Repository

ERROR: Document not tracked by git

Document: {doc}

Ensure document is committed before comparing versions.

No Changes Detected

INFO: No changes between versions

Document: {module}/​{doc}
References: {from} → {to}

The document is identical in both versions.

Integration

Works well with:

  • /​design-review - Review documents before/​after changes
  • /​design-validate - Validate both versions
  • /​design-sync - Understand sync evolution over time
  • /​design-update - See update history

Success Criteria

A successful comparison:

  • ✅ Git references validated
  • ✅ Document versions loaded from both refs
  • ✅ Diff performed successfully
  • ✅ Changes analyzed and categorized
  • ✅ Metrics calculated accurately
  • ✅ Significant changes highlighted
  • ✅ Clear comparison report generated
  • ✅ Navigation commands provided

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View