Skip to content

ACNet-AI/MetaSpec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MetaSpec

πŸ€– Meta-Specification Framework for generating Spec-Driven X (SD-X) speckits for AI Agents

License: MIT Python: 3.11+ Status: Alpha


🎯 What is Spec-Driven?

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.

πŸ’‘ What is MetaSpec?

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 SDX 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

🌟 Key Features

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)


πŸš€ Quick Start

Installation

git clone https://github.com/ACNet-AI/MetaSpec.git
cd MetaSpec
uv pip install -e .  # or: pip install -e .

Create Your First Speckit

Option 1: Interactive (Recommended)

metaspec init                       # Interactive wizard - guides you through

Option 2: Quick start with template

metaspec init my-spec-kit --template mcp     # One command, done!

Option 3: Preview first

metaspec init my-spec-kit --template api --dry-run    # Preview
metaspec init my-spec-kit --template api              # Create

Result: Complete speckit with CLI, parser, validator, templates, and AI agent support!


πŸ“¦ Features

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 template (fast)
metaspec init my-api-speckit --template api

# Preview before creating
metaspec init my-spec-kit --template mcp --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.

🌟 Generated Speckits

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 SDX commands (AI-assisted development)
# SDX Commands: /sdx.constitution, /sdx.specify, /sdx.plan, /sdx.implement, etc.

Key Principle: MetaSpec is a generator, not a runtime. Generated speckits are independent tools.

Built-in SDX Workflow: Every speckit includes 11 SDX commands for complete development lifecycle


🌐 Community

Discover and share speckits with the community:

πŸ“¦ Awesome Spec Kits - A curated list of community speckits

For Users

# 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>

For Developers

# Contribute your speckit
metaspec contribute my-speckit
# β†’ Generates metadata JSON
# β†’ Submit PR to awesome-spec-kits

Join the community:


πŸ€– AI Assistant Ready

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


🀝 Works Well With

MetaSpec generates speckits. Since generated speckits are also projects, you can use spec-driven methodologies to develop them.

Tool Purpose Built-in? Access Method
SDX Commands Complete spec-driven workflow (11 commands) βœ… Yes /sdx.* slash commands in generated speckits

Complete Workflow:

# 1️⃣ CREATE: Generate speckit
metaspec init my-spec-kit --template generic

# 2️⃣ DEVELOP: Use built-in SDX slash commands (no installation needed)
cd my-spec-kit
# Definition Commands (8) - Active development
# /sdx.constitution - Define speckit principles
# /sdx.specify      - Define entities and validation rules
# /sdx.clarify      - Clarify underspecified areas
# /sdx.plan         - Plan implementation architecture
# /sdx.tasks        - Generate actionable task lists
# /sdx.implement    - Execute implementation
# /sdx.checklist    - Validate specification quality
# /sdx.analyze      - Analyze consistency

# Evolution Commands (3) - Controlled changes
# /sdx.proposal     - Create change proposals
# /sdx.apply        - Apply approved changes
# /sdx.archive      - Archive completed changes

Advantages:

  • βœ… Complete workflow built-in - Everything you need from day one
  • βœ… AI-assisted - SDX commands guide development
  • βœ… No external dependencies - All tools included

πŸš€ Ecosystem Vision

MetaSpec is not just a generatorβ€”it's a platform for speckits:

  1. Create speckits with metaspec init
  2. Develop with built-in SDX commands
  3. Publish to community registry
  4. Install and use directly - no prefix needed!
# Example: Developer workflow
metaspec init api-speckit --template generic
cd api-speckit
# ... develop using SDX 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.json

Future roadmap: Enhanced community features, version management, analytics

πŸ“– Complete guide: See AGENTS.md


πŸ“– Example

Quick Example: Create an API Speckit

# Step 1: Create speckit (interactive mode)
metaspec init
# Or use template mode for quick start
metaspec init api-spec-kit --template generic

# 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/               # SDX commands (11 total)
#   β”‚   └── templates/              # SDX templates
#   β”œβ”€β”€ specs/                      # Feature specifications
#   β”œβ”€β”€ templates/                  # User project templates
#   β”œβ”€β”€ AGENTS.md                   # AI workflow guide
#   β”œβ”€β”€ README.md                   # User documentation
#   └── pyproject.toml              # Package config

Develop the Generated Speckit

# Step 3: Install
cd api-spec-kit
pip install -e .

# Step 4: Define and implement using SDX commands (in Cursor/AI editor)
# /sdx.constitution  - Define design principles
# /sdx.specify       - Define domain protocol specification
# /sdx.specify       - Define speckit specification
# /sdx.plan          - Plan implementation architecture
# /sdx.tasks         - Break down implementation tasks
# /sdx.implement     - Implement your speckit

πŸ“‚ More examples: See examples/ (MCP, API testing, design systems)


πŸ› οΈ Commands

# 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 --template generic
metaspec search "api"              # Search community
metaspec install api-speckit       # Install
metaspec list                      # List installed

Use metaspec --help or metaspec <command> --help for detailed options


πŸ§ͺ Development

# Install dev dependencies
uv pip install -e ".[dev]"

# Run tests
pytest

# Code quality
ruff check src/
ruff format src/

πŸ“– Contributing guide: See contributing.md


πŸ“š Documentation


πŸ—οΈ Status

v0.1.0 - Alpha Release πŸŽ‰

Core features complete: YAML validation, multi-domain generation, CLI tools, AI agent support, built-in SDX commands (11 commands), unified spec interface.


🀝 Contributing

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-feature

πŸ“„ License

MIT License - see LICENSE


πŸ™ Acknowledgments

Inspired by Spec-Kit, Protocol Buffers, and OpenAPI.


Built for the Spec-Driven Development Community

About

Meta-specification framework for AI Agents to generate Spec-driven X toolkits automatically.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published