π€ Meta-Specification Framework for generating Spec-Driven X (SD-X) speckits for AI Agents
Spec-Driven is using structured specifications to drive workflows - from requirements to implementation. Define specs first, validate and generate, then execute. This ensures clarity, consistency, and enables AI agents to understand and assist throughout the process.
MetaSpec is a meta-specification framework that enables AI Agents to automatically generate production-ready speckits (Spec-Driven X toolkits).
Define your speckit once β Get complete development environment with CLI, parser, validator, templates, and AI agent support.
What are Speckits?
- Specialized toolkits generated by MetaSpec
- Carry domain specifications as core assets
- Include built-in MetaSpec commands for development
- Follow spec-driven architecture patterns
What you can generate:
β
SD-Development - Spec-driven development
β
SD-Design - Spec-driven design systems
β
SD-Testing - Spec-driven testing frameworks
β
SD-Documentation - Spec-driven documentation
β
SD-Operations - Spec-driven operations
β
SD-X - Spec-driven generation for any domain
1. Meta-Level - A meta-specification framework that generates speckits
2. Any Domain - Supports any domain, not limited to development
3. Full Lifecycle - Covers complete lifecycle (creation, updates, maintenance)
# Recommended: Use uv (10-100x faster) β‘
uv pip install git+https://github.com/ACNet-AI/MetaSpec.git
# Or use pip
pip install git+https://github.com/ACNet-AI/MetaSpec.gitOther installation methods
Development mode:
git clone https://github.com/ACNet-AI/MetaSpec.git && cd MetaSpec
uv pip install -e .Coming soon: pip install metaspec π
Option 1: Interactive (Recommended)
metaspec init # Interactive wizard - guides you throughOption 2: Quick start
metaspec init my-spec-kit # One command, done!Option 3: Preview first
metaspec init my-spec-kit --dry-run # Preview
metaspec init my-spec-kit # CreateResult: Complete speckit with CLI, parser, validator, templates, and AI agent support!
MetaSpec was born from real-world experience building spec-driven development tools:
π§ Phase 1: Universal SDD Tools
- Built spec-kit and OpenSpec - covering 0β1βN generic spec-driven development workflows
- Proved SDD methodology works across different project scales
π‘ Phase 2: The Domain Insight
- Discovery: While practicing SDD, we realized AI needs domain-specific specifications to generate expected results
- Example: To help AI develop MCP projects effectively, we need MCP domain specifications - not just generic development specs
- Vision: Modular domain specifications π§© that can be combined and composed to guide AI to generate content matching our expectations
π Phase 3: Beyond Development
- Realization: This pattern isn't limited to software development
- Breakthrough: Any domain can benefit from specification-driven workflows
- Vision: A meta-framework that generates spec toolkits for ANY domain
MetaSpec is built on two fundamental concepts:
1οΈβ£ Domain Refinement
- Specifications refine from general to specific through multiple levels
- Example: Development Spec β MCP Development Spec β Weather Query MCP Spec
- Each level adds more context and constraints, enabling more precise AI guidance
2οΈβ£ Modular Composition
- Specifications are independent, reusable modules that can be composed in two ways:
- Compose specs: Combine sub-domain specs into a complete domain spec (Full-stack Web = Frontend + Backend + Database)
- Compose usage: Apply multiple specs to one project (MetaSpec uses SDS + SDD; MCP project uses MCP + Python + Testing)
- This enables flexible reuse across different contexts and domains
Together, these create a flexible specification network where AI agents navigate domain knowledge through structured specs, combining them as needed to produce exactly what you envision.
Simple, powerful commands:
| Command | Description |
|---|---|
metaspec init [name] |
π Create spec-driven speckit (interactive or template-based) |
metaspec search <query> |
π Search community speckits |
metaspec install <name> |
π¦ Install speckit from community |
metaspec list |
π List installed speckits |
metaspec info <name> |
βΉοΈ Show speckit information |
metaspec contribute <name> |
π€ Contribute to community registry |
Common usage:
# Create speckit (interactive)
metaspec init
# Create with quick start (fast)
metaspec init my-api-speckit
# Preview before creating
metaspec init my-spec-kit --dry-run
# Discover and install speckits
metaspec search "api" # Search community
metaspec install api-speckit # Install from community
metaspec list # List installed speckits
# Use installed speckits directly
api-speckit info # Direct usage (no metaspec prefix!)What you get: CLI tools, parser, validator, templates, AGENTS.md, constitution, and full Python package structure.
MetaSpec generates independent, production-ready toolkits:
# Each generated speckit is a standalone CLI tool
cd my-speckit
./scripts/init.sh # Install dependencies
my-speckit info # Use directly (no metaspec prefix!)
# Generated speckits include built-in MetaSpec commands (AI-assisted development)
# MetaSpec Commands: /metaspec.sds.*, /metaspec.sdd.*, /metaspec.* (19 commands total)Key Principle: MetaSpec is a generator, not a runtime. Generated speckits are independent tools.
Built-in MetaSpec Workflow: Every speckit includes 19 MetaSpec commands for complete development lifecycle (8 SDS + 8 SDD + 3 Evolution)
Iteration-Aware Design: Commands check for existing output and support update/new/append modes, preserving history and tracking progress across iterations (Constitution Principle #6)
Discover and share speckits with the community:
π¦ Awesome Spec Kits - A curated list of community speckits
# Search community speckits
metaspec search "api validation"
# Install from community
metaspec install <speckit-name>
# List installed speckits
metaspec list
# Get detailed information
metaspec info <command># Contribute your speckit
metaspec contribute my-speckit
# β Generates metadata JSON
# β Submit PR to awesome-spec-kitsJoin the community:
- π Create and share your speckit
- π Community guide
- π¬ Discussions
MetaSpec is designed for AI agents with strong reasoning capabilities. Speckit creation requires meta-level system design, entity modeling, and domain research.
π Complete AI workflow guide: AGENTS.md
MetaSpec generates speckits. Since generated speckits are also projects, you can use spec-driven methodologies to develop them.
| Tool | Purpose | Built-in? | Access Method |
|---|---|---|---|
| MetaSpec Commands | Complete spec-driven workflow (19 commands) | β Yes | /metaspec.sds.*, /metaspec.sdd.*, /metaspec.* slash commands in generated speckits |
Complete Workflow:
# 1οΈβ£ CREATE: Generate speckit
metaspec init my-spec-kit
# 2οΈβ£ DEVELOP: Use built-in MetaSpec slash commands (no installation needed)
cd my-spec-kit
# SDS Commands (8) - Define protocol specification
# /metaspec.sds.constitution - Define protocol principles
# /metaspec.sds.specify - Define protocol entities and operations
# /metaspec.sds.clarify - Resolve protocol ambiguities
# /metaspec.sds.plan - Plan protocol architecture and sub-specifications
# /metaspec.sds.tasks - Break down protocol specification work
# /metaspec.sds.implement - Write protocol specification documents
# /metaspec.sds.checklist - Generate quality checklist for protocol
# /metaspec.sds.analyze - Check protocol consistency
# SDD Commands (8) - Develop spec-driven toolkit
# /metaspec.sdd.constitution - Define toolkit principles
# /metaspec.sdd.specify - Define toolkit specifications
# /metaspec.sdd.clarify - Resolve toolkit ambiguities
# /metaspec.sdd.plan - Plan implementation architecture
# /metaspec.sdd.tasks - Generate actionable task lists
# /metaspec.sdd.implement - Execute implementation
# /metaspec.sdd.checklist - Validate specification quality
# /metaspec.sdd.analyze - Analyze consistency
# Evolution Commands (3) - Controlled changes (shared)
# /metaspec.proposal "change" --type sds|sdd - Create change proposals
# /metaspec.apply <proposal-id> - Apply approved changes
# /metaspec.archive <proposal-id> - Archive completed changesAdvantages:
- β Complete workflow built-in - Everything you need from day one
- β AI-assisted - MetaSpec commands guide development
- β No external dependencies - All tools included
MetaSpec is not just a generatorβit's a platform for speckits:
- Create speckits with
metaspec init - Develop with built-in MetaSpec commands
- Publish to community registry
- Install and use directly - no prefix needed!
# Example: Developer workflow
metaspec init api-speckit
cd api-speckit
# ... develop using MetaSpec commands ...
metaspec contribute api-speckit
# User workflow
metaspec search "api"
metaspec install api-speckit
# Use directly (no metaspec prefix!)
api-speckit init my-api.json
api-speckit validate my-api.jsonFuture roadmap: Enhanced community features, version management, analytics
π Complete guide: See AGENTS.md
# Step 1: Create speckit (interactive mode)
metaspec init
# Or use template mode for quick start
metaspec init api-spec-kit
# Step 2: What you get
# api-spec-kit/
# βββ src/api_spec_kit/ # Python package
# β βββ cli/ # CLI commands
# β βββ parser.py # Parser
# β βββ validator.py # Validator
# βββ .metaspec/
# β βββ commands/ # MetaSpec commands (11 total)
# β βββ templates/ # MetaSpec templates
# βββ specs/ # Feature specifications
# βββ templates/ # User project templates
# βββ AGENTS.md # AI workflow guide
# βββ README.md # User documentation
# βββ pyproject.toml # Package config# Step 3: Install
cd api-spec-kit
pip install -e .
# Step 4: Define and implement using MetaSpec commands (in Cursor/AI editor)
# Phase 1: Define protocol (SDS)
# /metaspec.sds.constitution - Define protocol principles
# /metaspec.sds.specify - Define protocol entities and operations
# /metaspec.sds.plan - Plan protocol architecture (if complex)
# /metaspec.sds.tasks - Break down specification work
# /metaspec.sds.implement - Write protocol specification documents
# /metaspec.sds.analyze - Check protocol consistency
# Phase 2: Develop toolkit (SDD)
# /metaspec.sdd.constitution - Define toolkit principles
# /metaspec.sdd.specify - Define toolkit specifications
# /metaspec.sdd.plan - Plan implementation architecture
# /metaspec.sdd.tasks - Break down implementation tasks
# /metaspec.sdd.implement - Implement your speckitπ More examples: See examples/ (MCP, API testing, design systems)
# Generation
metaspec init [NAME] [OPTIONS] # Create speckit (interactive or template-based)
# Community
metaspec search <query> # Search community speckits
metaspec install <name> # Install from community
metaspec contribute <name> # Contribute to community
# Information
metaspec list # List installed speckits
metaspec info <name> # Show speckit details
metaspec version # Show MetaSpec version
# Examples
metaspec init # Interactive mode
metaspec init my-speckit # Quick start (uses 'default')
metaspec init my-speckit default # Explicit (same as above)
metaspec search "api" # Search community
metaspec install api-speckit # Install
metaspec list # List installedUse metaspec --help or metaspec <command> --help for detailed options
# Clone and install
git clone https://github.com/ACNet-AI/MetaSpec.git && cd MetaSpec
uv pip install -e ".[dev]"
# Run tests
uv run pytest # 138 tests, 69% coverage
# Code quality checks
uv run ruff check . # Lint
uv run mypy src/metaspec # Type checkπ Contributing Guide
- quickstart.md - 5-minute tutorial
- AGENTS.md - AI workflow guide
- contributing.md - Contribution guide
- examples/ - Example meta-specs
Iteration & Decision Guides:
- Evolution Guide - When to use formal evolution vs fast iteration
- Iteration Layers - How Evolution and Command layers work together
- Iteration Roadmap - Which commands support iteration and why
v0.5.0 - Alpha Release π
Core features complete: YAML validation, multi-domain generation, CLI tools, AI agent support, built-in MetaSpec commands (19 commands: 8 SDS + 8 SDD + 3 Evolution), recursive tree structure for protocols, unified spec interface.
Contributions welcome! See contributing.md for guidelines.
git clone https://github.com/ACNet-AI/MetaSpec.git
git checkout -b feature/your-feature
# Make changes, test, commit
git push origin feature/your-featureMIT License - see LICENSE
Inspired by Spec-Kit, Protocol Buffers, and OpenAPI.
A Meta-Specification Framework for Generating Spec-Driven Toolkits