Claude Code Plugins

Community-maintained marketplace

Feedback

Wrapper for spec-kit CLI operations - intelligent delegation to spec-kit commands with workflow discipline, TodoWrite tracking, and error handling

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name spec-kit
description Wrapper for spec-kit CLI operations - intelligent delegation to spec-kit commands with workflow discipline, TodoWrite tracking, and error handling

Spec-Kit Integration

Overview

This plugin bundles spec-kit templates and scripts, providing spec-kit functionality without requiring users to install spec-kit separately.

Bundled Resources:

  • Templates: Spec, plan, tasks, checklist, and agent file templates
  • Scripts: Shell scripts for feature creation, prerequisites checking, and agent context updates
  • Commands: Slash commands for spec-kit workflows (reference implementations)

Integration Approach:

  • Use bundled templates and scripts from plugin directory
  • Optionally delegate to spec-kit CLI if user has it installed
  • Provides full SDD workflow support with or without spec-kit CLI

This skill:

  • Uses bundled spec-kit resources
  • Optionally delegates to spec-kit CLI where beneficial
  • Adds TodoWrite tracking
  • Handles errors gracefully
  • Provides context-aware guidance
  • Integrates with SDD workflows

When to Use

  • When spec-kit CLI command would be helpful
  • To validate spec format/structure
  • To initialize spec-kit in project
  • For spec-kit-specific operations

Note: Most SDD skills call this internally. Direct use is for spec-kit-specific tasks.

Bundled Resources

The plugin bundles spec-kit templates and scripts so users don't need to install spec-kit separately.

Accessing Bundled Templates

Templates are located in the plugin's templates/ directory:

# Get plugin directory
PLUGIN_DIR="${CLAUDE_PLUGINS_DIR}/cc-superpowers-sdd"

# Access templates
SPEC_TEMPLATE="$PLUGIN_DIR/templates/spec-template.md"
PLAN_TEMPLATE="$PLUGIN_DIR/templates/plan-template.md"
TASKS_TEMPLATE="$PLUGIN_DIR/templates/tasks-template.md"
CHECKLIST_TEMPLATE="$PLUGIN_DIR/templates/checklist-template.md"
AGENT_FILE_TEMPLATE="$PLUGIN_DIR/templates/agent-file-template.md"

Available Templates:

  • spec-template.md - Feature specification template
  • plan-template.md - Implementation plan template
  • tasks-template.md - Task breakdown template
  • checklist-template.md - Quality checklist template
  • agent-file-template.md - Agent context file template

Accessing Bundled Scripts

Scripts are located in the plugin's scripts/bash/ directory:

# Get plugin directory
PLUGIN_DIR="${CLAUDE_PLUGINS_DIR}/cc-superpowers-sdd"

# Access scripts
CREATE_FEATURE="$PLUGIN_DIR/scripts/bash/create-new-feature.sh"
CHECK_PREREQS="$PLUGIN_DIR/scripts/bash/check-prerequisites.sh"
SETUP_PLAN="$PLUGIN_DIR/scripts/bash/setup-plan.sh"
UPDATE_CONTEXT="$PLUGIN_DIR/scripts/bash/update-agent-context.sh"

Available Scripts:

  • create-new-feature.sh - Create feature branch and spec structure
  • check-prerequisites.sh - Check project prerequisites
  • setup-plan.sh - Set up implementation plan structure
  • update-agent-context.sh - Update agent context files
  • common.sh - Common functions and utilities

Using Bundled Resources

Example: Create new feature using bundled script

# Get plugin directory (usually ~/.claude/plugins/cc-superpowers-sdd)
PLUGIN_DIR="${CLAUDE_PLUGINS_DIR}/cc-superpowers-sdd"

# Run bundled script
"$PLUGIN_DIR/scripts/bash/create-new-feature.sh" --json "Add user authentication"

Example: Copy template for manual editing

# Get plugin directory
PLUGIN_DIR="${CLAUDE_PLUGINS_DIR}/cc-superpowers-sdd"

# Copy template to project
cp "$PLUGIN_DIR/templates/spec-template.md" ./specs/001-my-feature/spec.md

Prerequisites

Check if Spec-Kit CLI is Available (Optional)

The plugin bundles all necessary resources, so spec-kit CLI is optional.

which speckit
# or
speckit --version

If spec-kit CLI is available:

  • Use CLI for validation and advanced features
  • Bundled scripts work alongside CLI

If spec-kit CLI is not available:

  • Use bundled templates and scripts
  • Full SDD workflow support without CLI
  • No degraded mode - full functionality

Configuration

Check .claude/settings.json:

{
  "sdd": {
    "spec_kit": {
      "enabled": true,
      "path": "speckit"  // or full path
    }
  }
}

Available Spec-Kit Commands

1. Initialize Spec-Kit

speckit init

Creates:

  • .speckit/ directory
  • Default configuration
  • Template structure

Use when:

  • First time using spec-kit in project
  • Setting up new project

2. Create Specification

speckit specify

Interactive spec creation.

Use when:

  • Creating new spec (alternative to manual)
  • Want spec-kit's guided workflow

Called by: sdd:spec, sdd:brainstorm

3. Create Constitution

speckit constitution

Interactive constitution creation.

Use when:

  • Creating project constitution
  • Want spec-kit's constitution template

Called by: sdd:constitution

4. Validate Specification

speckit validate specs/features/[feature].md

Validates spec format and structure.

Use when:

  • Checking spec correctness
  • Before implementation
  • After spec changes

Called by: sdd:reviewing-spec, sdd:evolve

5. Generate Plan

speckit plan specs/features/[feature].md

Generates implementation plan from spec.

Use when:

  • Creating implementation plan
  • Exploring spec structure

Called by: sdd:writing-plans

Workflow Integration

Pattern 1: Spec Creation with Spec-Kit

# User invokes sdd:spec

# Skill checks if spec-kit available
if spec-kit available:
    # Use spec-kit for creation
    speckit specify
    # Add SDD validation on top
    run sdd:reviewing-spec
else:
    # Fall back to manual spec creation
    create markdown file
    # Still run SDD validation
    run sdd:reviewing-spec

Pattern 2: Spec Validation

# User runs sdd:reviewing-spec

# Skill uses spec-kit validation
if spec-kit available:
    speckit validate [spec-file]
    # Add SDD soundness checks
    check implementability
    check testability
else:
    # Manual validation only
    check structure manually
    check completeness manually

Pattern 3: Plan Generation

# User runs sdd:writing-plans

# Skill may use spec-kit
if spec-kit available AND spec-kit plan works well:
    speckit plan [spec-file]
    # Enhance with SDD requirements
    add file paths
    add test strategy
    add validation
else:
    # Generate plan manually
    parse spec
    create plan from scratch

The Process

1. Check Availability

# Check if spec-kit is available
which speckit

# Check configuration
cat .claude/settings.json | grep spec_kit

If not available:

  • Note in output
  • Offer degraded mode
  • Recommend installation if frequent use

2. Determine Appropriate Command

Based on user intent:

User Intent Spec-Kit Command SDD Enhancement
Create spec speckit specify + Validation
Create constitution speckit constitution + Review
Validate spec speckit validate + Soundness checks
Generate plan speckit plan + Implementation details
Initialize project speckit init + SDD setup

3. Execute Command

With error handling:

# Execute command
speckit [command] [args]

# Capture output and errors
# Provide helpful feedback

Common errors:

Spec-kit not found:

Error: speckit command not found

This skill integrates with spec-kit CLI for enhanced spec management.

Options:
1. Install spec-kit: https://github.com/github/spec-kit
2. Continue without spec-kit (degraded mode)

Continuing in degraded mode...

Invalid spec format:

Error: Spec validation failed

Spec-kit validation errors:
- Missing required section: Purpose
- Invalid format for requirements

Fix these issues and re-run validation.

Configuration error:

Error: Spec-kit configuration invalid

Check .speckit/config.yaml for errors.

Common issues:
- Invalid YAML syntax
- Missing required fields
- Incorrect paths

4. Add SDD Workflow Discipline

After spec-kit command:

  • Run SDD validation (even if spec-kit validation passed)
  • Create TodoWrite tasks if checklist workflow
  • Integrate with git (commit specs)
  • Link to next workflow step

5. Provide Next Steps

Guide user:

Spec created with spec-kit ✓
SDD validation complete ✓

Next steps:
1. Review spec for soundness (sdd:reviewing-spec) [if not auto-done]
2. Create implementation plan (sdd:implement)
3. Or refine spec further

Checklist

Use TodoWrite for spec-kit workflows:

For spec creation:

  • Check spec-kit availability
  • Run speckit specify (if available)
  • Validate with SDD soundness checks
  • Commit spec to git
  • Offer next steps

For validation:

  • Run speckit validate
  • Add SDD-specific checks
  • Report results
  • Recommend fixes if issues

For plan generation:

  • Run speckit plan
  • Enhance with file paths
  • Add test strategy
  • Validate against spec
  • Save plan

Examples

Example 1: Spec Creation with Spec-Kit

You: Creating spec with spec-kit integration...

Checking spec-kit availability...
✓ Spec-kit found at /usr/local/bin/speckit

Running: speckit specify

[Spec-kit interactive prompts]

Feature name: User Profile API
Purpose: Allow users to update their profile information
...

Spec created by spec-kit: specs/features/user-profile-api.md

Adding SDD validation...

Running sdd:reviewing-spec...
✓ Structure complete
✓ Requirements clear
✓ Success criteria defined

Spec created and validated ✓

Committed to git ✓

Ready for implementation planning?

Example 2: Spec Creation WITHOUT Spec-Kit

You: Creating spec...

Checking spec-kit availability...
✗ Spec-kit not found

Note: Spec-kit is not installed. Proceeding with manual spec creation.

(Install spec-kit for enhanced workflows: https://github.com/github/spec-kit)

Creating spec at specs/features/user-profile-api.md...

[Manual spec creation using template]

Spec created ✓

Running SDD validation...
✓ Structure complete
✓ Requirements clear

Ready for implementation planning?

Example 3: Spec Validation

You: Validating spec with spec-kit...

Running: speckit validate specs/features/user-profile-api.md

Spec-kit validation: ✓ PASS

Adding SDD soundness checks...

Checking implementability...
✓ Can generate implementation plan
✓ All dependencies identified

Checking testability...
✓ Success criteria measurable
✓ Requirements verifiable

Overall: ✓ SOUND

Spec is valid and ready for implementation.

Bundled Resources Mode (Default)

The plugin bundles all spec-kit resources:

Fully functional without spec-kit CLI:

  • Spec creation using bundled templates
  • Feature creation using bundled scripts
  • Plan generation using bundled templates
  • Task management using bundled templates
  • Validation using bundled scripts

When spec-kit CLI is also installed:

  • Can use CLI validation for additional checks
  • Can use CLI-specific features
  • Bundled resources still work alongside CLI

Recommendation:

  • Start with bundled resources (no installation needed)
  • Optionally install spec-kit CLI for advanced validation
  • Both approaches fully supported

Integration Points

This skill is called by:

  • sdd:spec (for spec creation)
  • sdd:brainstorm (for spec creation)
  • sdd:constitution (for constitution creation)
  • sdd:reviewing-spec (for validation)
  • sdd:writing-plans (for plan generation)

This skill calls:

  • Spec-kit CLI commands
  • Git (for commits)
  • TodoWrite (for tracking)
  • File operations (for manual fallback)

Configuration Options

{
  "sdd": {
    "spec_kit": {
      "enabled": true,
      "path": "speckit",
      "prefer_manual": false,
      "validate_always": true,
      "fallback_on_error": true
    }
  }
}

Options:

  • enabled: Use spec-kit if available
  • path: Path to spec-kit binary
  • prefer_manual: Skip spec-kit even if available
  • validate_always: Always run spec-kit validation
  • fallback_on_error: Use manual mode if spec-kit errors

Remember

Bundled resources provide full functionality.

  • Plugin includes all spec-kit templates and scripts
  • No external dependencies required
  • Spec-kit CLI is optional enhancement

Integration provides complete workflow:

  • Bundled templates for spec creation
  • Bundled scripts for automation
  • SDD adds workflow enforcement and discipline
  • Together: powerful spec-driven development out of the box

No degraded mode:

  • All features work with bundled resources
  • Spec-kit CLI adds validation features
  • Users choose their preferred approach

The goal is great specs with minimal setup.