Skill

convert

Convert specification between formats (EARS, Gherkin, Kiro, canonical).

From spec-driven-development
Install
1
Run in your terminal
$
npx claudepluginhub melodic-software/claude-code-plugins --plugin spec-driven-development
Tool Access

This skill is limited to using the following tools:

ReadGlobGrepWriteEditSkillTask
Skill Content

Convert Specification Format

Convert specifications between different formats while preserving semantic meaning.

Supported Formats

FormatDescriptionExtension
canonicalCanonical specification format.md
earsEARS-only requirements list.md
gherkinGherkin feature file.feature
kiroAWS Kiro structurerequirements.md, design.md, tasks.md
userstoryAgile user stories.md

Workflow

  1. Detect Source Format

    • Read source file
    • Analyze structure to determine format
    • Parse content
  2. Select Converter

    • Based on source and target formats:
      • EARS ↔ Canonical: spec-converter ears agent
      • Gherkin ↔ Canonical: spec-converter gherkin agent
      • Kiro ↔ Canonical: spec-converter kiro agent
  3. Execute Conversion

    • Invoke appropriate converter agent
    • Preserve semantic meaning
    • Map identifiers appropriately
  4. Validate Output

    • Check target format compliance
    • Verify no content lost
    • Report conversion summary
  5. Save Result

    • Write to specified output path
    • Or derive path from source

Arguments

  • $1 - Source file path
  • --to - Target format (canonical, ears, gherkin, kiro, userstory)
  • --output - Output file path (optional)

Examples

# Convert EARS to Gherkin
/spec-driven-development:convert requirements.md --to gherkin

# Convert Gherkin to canonical
/spec-driven-development:convert auth.feature --to canonical

# Convert to Kiro format
/spec-driven-development:convert .specs/auth/spec.md --to kiro

# Specify output path
/spec-driven-development:convert spec.md --to gherkin --output tests/auth.feature

Conversion Matrix

From → ToCanonicalEARSGherkinKiro
Canonical-
EARS-
Gherkin-
Kiro-

Conversion Notes

EARS ↔ Gherkin

  • EARS "WHEN...SHALL" maps to Gherkin "When...Then"
  • State-Driven EARS maps to Given preconditions
  • Unwanted EARS maps to negative scenarios

Canonical ↔ Kiro

  • Kiro uses EARS syntax natively
  • requirements.md ↔ Functional Requirements
  • design.md ↔ Design section
  • tasks.md ↔ Implementation tasks

Related Commands

  • /spec-driven-development:ears-convert - EARS-specific conversion
  • /spec-driven-development:gherkin-convert - Gherkin-specific conversion
  • /spec-driven-development:kiro-sync - Kiro synchronization
Stats
Parent Repo Stars40
Parent Repo Forks6
Last CommitFeb 15, 2026