Skip to main content
Glama
README.md
<div align="center">

<img src="logo.svg" alt="Gigaspec Logo" width="120" height="120">

# ๐Ÿš€ Gigaspec

### **AI-Native Specification Framework**

[![npm](https://img.shields.io/npm/v/gigaspec.svg)](https://www.npmjs.com/package/gigaspec)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
[![Node.js](https://img.shields.io/badge/node-%3E%3D16.0.0-brightgreen.svg)](https://nodejs.org/)
[![Tests](https://github.com/oleksiitrembach/gigaspec/workflows/Tests/badge.svg)](https://github.com/oleksiitrembach/gigaspec/actions)

**The AI does the thinking. We provide the structure.**

[Installation](#installation) โ€ข [Quick Start](#quick-start) โ€ข [Documentation](#documentation) โ€ข [GitHub](https://github.com/oleksiitrembach/gigaspec)

</div>

---

## ๐ŸŽฏ What is Gigaspec?

Gigaspec is an **AI-native collaboration framework** that transforms how software projects are planned and built. Instead of static templates or keyword-based recommendations, Gigaspec enables **deep AI analysis** of your requirements with intelligent Q&A workflows.

### The Problem with Traditional Tools

```
User: "I want to build a real-time collaborative app"
Traditional Tool: "Use Elixir!" โ† No questions, no reasoning
```

### The Gigaspec Way

```
User: "I want to build a real-time collaborative app"
AI: "Tell me more! What's your expected user count? Do you need 
     offline support? What's your team's expertise?"
     
     โ†’ Analyzes deeply
     โ†’ Explains reasoning  
     โ†’ Recommends tailored stack
```

---

## โœจ Features

| Feature | Description |
|---------|-------------|
| ๐Ÿš€ **Gigaspec v5.0** | Ultimate spec kit with **forced AI compliance** |
| ๐Ÿ”’ **Immutable Rules** | CLAUDE.md enforces standards that AI cannot override |
| โœ… **Automated Verification** | Every code change validated before completion |
| ๐Ÿ› ๏ธ **Universal Tool Support** | Claude Code, Cursor, Kimi adapters |
| ๐ŸŒ **Model-Agnostic** | Works with Claude, GPT, Gemini, Llama |
| ๐Ÿค– **AI-Native Workflow** | Designed for AI assistants to drive development |
| ๐Ÿ’ฌ **Intelligent Q&A** | AI asks clarifying questions, not keyword matching |
| ๐Ÿ“‹ **Living Documentation** | STATE.md tracks progress, AGENT.md guides AI coding |
| ๐ŸŽฏ **Stack Recommendations** | Deep analysis with transparent reasoning |
| ๐Ÿ”ง **MCP Server** | Native integration with AI IDEs |
| ๐Ÿ“ฆ **Zero Config** | Works out of the box with sensible defaults |

---

## ๐Ÿš€ Quick Start

### Installation

```bash
# Global installation
npm install -g gigaspec

# Or use without installing
npx gigaspec init --name "MyApp"
```

### Create Your First Project

```bash
# Interactive AI-guided wizard
gigaspec init

# Or specify your stack directly
gigaspec init --name "MyApp" --stack "Node.js/Next.js"

# Non-interactive with defaults
gigaspec init --name "MyApp" --yes

# Generate v5.0 Ultimate Spec Kit (RECOMMENDED)
gigaspec generate --name "MyApp" --stack "Node.js/Express" --v5
```

### ๐Ÿš€ Gigaspec v5.0 (Ultimate Spec Kit)

**The specification framework that forces AI compliance.**

```bash
# Generate v5.0 spec kit with immutable rules
gigaspec generate --name "MyApp" --stack "Node.js/Express" --v5
```

**What makes v5.0 different:**
- **CLAUDE.md** - Immutable system rules that AI **cannot** override
- **Automated Verification** - Every code change validated
- **Multi-Tool Adapters** - Claude Code, Cursor, Kimi support
- **Model-Agnostic** - Works with any LLM

**Generated v5.0 Structure:**
```
my-project/
โ”œโ”€โ”€ CLAUDE.md          โ† IMMUTABLE system rules (AI cannot override)
โ”œโ”€โ”€ AGENT.md           โ† Project-specific standards
โ”œโ”€โ”€ STATE.md           โ† Living project status
โ”œโ”€โ”€ ARCHITECTURE.md    โ† System design
โ”œโ”€โ”€ PLAN.md            โ† Development roadmap
โ”œโ”€โ”€ RULES/             โ† Modular rule modules
โ”‚   โ”œโ”€โ”€ security.md
โ”‚   โ””โ”€โ”€ testing.md
โ”œโ”€โ”€ .claude/           โ† Claude Code adapter
โ”‚   โ”œโ”€โ”€ CLAUDE.md
โ”‚   โ”œโ”€โ”€ skills/
โ”‚   โ””โ”€โ”€ agents/
โ”œโ”€โ”€ .cursorrules       โ† Cursor IDE adapter
โ”œโ”€โ”€ .cursor/
โ”‚   โ””โ”€โ”€ agents/
โ””โ”€โ”€ .kimi/             โ† Kimi CLI adapter
    โ””โ”€โ”€ AGENT.md
```

### What Gets Created (v4.x)

```
my-project/
โ”œโ”€โ”€ AGENT.md           โ† AI coding standards & constraints
โ”œโ”€โ”€ ARCHITECTURE.md    โ† System design & decisions  
โ”œโ”€โ”€ PLAN.md            โ† Development roadmap
โ”œโ”€โ”€ STATE.md           โ† Project status (living document)
โ”œโ”€โ”€ WORKFLOW.md        โ† AI development protocols
โ”œโ”€โ”€ SETUP.md           โ† Local development guide
โ”œโ”€โ”€ DEPLOYMENT.md      โ† Production deployment
โ”œโ”€โ”€ ENVIRONMENT.md     โ† Secrets & configuration
โ”œโ”€โ”€ CLAUDE.md          โ† Claude Code integration guide
โ”œโ”€โ”€ .cursorrules       โ† Cursor IDE rules
โ”œโ”€โ”€ .github/workflows/ โ† CI/CD automation
โ”œโ”€โ”€ .hooks/            โ† Git hooks
โ”œโ”€โ”€ scripts/           โ† Utility scripts
โ””โ”€โ”€ prompts/           โ† AI prompt templates
```

---

## ๐Ÿค– For AI Assistants

Gigaspec works both as a **CLI tool** (for humans) and an **MCP server** (for AI IDEs). Use whichever fits your workflow:

- **CLI**: Run `gigaspec` commands directly in terminal
- **MCP**: AI assistants use tools via MCP integration

All CLI commands support `--json` for structured output:

```bash
# Start AI workflow
gigaspec init --json

# Get current task to implement  
gigaspec continue --json

# Verify code compliance
gigaspec verify --json
```

### MCP Integration

Gigaspec includes an MCP (Model Context Protocol) server for AI IDEs like Kimi, Claude Desktop, and Cline.

#### Configuration

Add to your AI IDE's MCP settings:

**Option 1: Global Install (Recommended)**

```bash
npm install -g gigaspec
```

Then configure your AI IDE:

**Kimi Desktop** (`~/.kimi/mcp.json`):
```json
{
  "mcpServers": {
    "gigaspec": {
      "command": "gigaspec-mcp"
    }
  }
}
```

**Claude Desktop** (`%APPDATA%/Claude/claude_desktop_config.json` on Windows):
```json
{
  "mcpServers": {
    "gigaspec": {
      "command": "gigaspec-mcp"
    }
  }
}
```

**Option 2: Using npx (No Install)**

```json
{
  "mcpServers": {
    "gigaspec": {
      "command": "npx",
      "args": ["-y", "gigaspec-mcp"]
    }
  }
}
```

**Option 3: Local Development (Project Path)**

When developing gigaspec itself or using a local copy:

```json
{
  "mcpServers": {
    "gigaspec": {
      "command": "node",
      "args": [
        "./bin/mcp-server.js"
      ],
      "env": {}
    }
  }
}
```

#### Available Tools

Once configured, your AI assistant can use:
- `gigaspec-init` โ€” Initialize project
- `gigaspec-analyze` โ€” Create analysis prompt
- `gigaspec-generate` โ€” Generate specification files
- `gigaspec-status` โ€” Get project status
- `gigaspec-wizard` โ€” Interactive project setup

---

## ๐Ÿ“š Commands

### Core Commands

| Command | Description |
|---------|-------------|
| `gigaspec init` | Initialize project with AI collaboration framework |
| `gigaspec analyze "<description>"` | Create analysis prompt for AI |
| `gigaspec generate` | Generate specification files |
| `gigaspec status` | Show current project status |
| `gigaspec continue` | Get next development task |
| `gigaspec verify` | Verify code against AGENT.md |

### Options

```bash
# JSON output for AI consumption
gigaspec init --name "MyApp" --json

# Specify stack
gigaspec init --name "MyApp" --stack "Elixir/Phoenix"

# With all options
gigaspec init \
  --name "MyApp" \
  --stack "Node.js/Express" \
  --database "PostgreSQL" \
  --deploy "Railway" \
  --yes
```

---

## ๐ŸŽ“ How It Works

### 1. Describe Your Project

```
"I want to build a math learning app for kids"
```

### 2. AI Analyzes Deeply

The AI receives a structured prompt and:
- โœ… Analyzes core requirements
- โœ… Identifies user types and scale
- โœ… Considers technical challenges
- โœ… Asks clarifying questions

### 3. Intelligent Q&A

```
AI: "I have some questions to better understand your needs:

1. What age range are you targeting?
2. Do you need offline capability?  
3. Will this be free or subscription?
4. Any compliance requirements (COPPA)?"
```

### 4. Tailored Recommendations

```
AI: "Based on your answers, I recommend:

Stack: Next.js 14 with PWA capabilities
Why: PWA gives offline capability, Next.js excels at interactive content

Database: PostgreSQL via Supabase  
Why: Built-in realtime for progress sync, COPPA compliance features

Services: Clerk (COPPA-compliant auth), Stripe (payments)"
```

### 5. Generate & Build

```bash
gigaspec generate --stack "Next.js 14" --name "MathLearn"
```

---

## ๐Ÿ†š Comparison

|  | Traditional Tools | Gigaspec |
|--|-------------------|----------|
| **Analysis** | Keyword matching | Deep AI reasoning |
| **Questions** | None | Intelligent Q&A |
| **Explanations** | "Use X" | "Use X because of Y" |
| **Tailored** | One-size-fits-all | Project-specific |
| **AI Workflow** | Not designed for AI | Built for AI collaboration |

---

## ๐Ÿ“ Project Structure

When you run `gigaspec init`, you get a complete specification framework:

```
๐Ÿ“ฆ my-project/
โ”œโ”€โ”€ ๐Ÿ“„ AGENT.md              AI coding standards (the "rulebook")
โ”œโ”€โ”€ ๐Ÿ“„ ARCHITECTURE.md       System design & tech decisions
โ”œโ”€โ”€ ๐Ÿ“„ PLAN.md               Development phases & milestones
โ”œโ”€โ”€ ๐Ÿ“„ STATE.md              Current status & next tasks
โ”œโ”€โ”€ ๐Ÿ“„ WORKFLOW.md           AI collaboration protocols
โ”œโ”€โ”€ ๐Ÿ“„ SETUP.md              Environment setup guide
โ”œโ”€โ”€ ๐Ÿ“„ DEPLOYMENT.md         Production deployment
โ”œโ”€โ”€ ๐Ÿ“„ ENVIRONMENT.md        Secrets & configuration
โ”œโ”€โ”€ ๐Ÿ“„ CLAUDE.md             Claude Code integration
โ”œโ”€โ”€ โš™๏ธ  .cursorrules          Cursor IDE rules
โ”œโ”€โ”€ ๐Ÿ—‚๏ธ  .github/workflows/    CI/CD automation
โ”œโ”€โ”€ ๐Ÿ—‚๏ธ  .hooks/               Git hooks
โ”œโ”€โ”€ ๐Ÿ—‚๏ธ  scripts/              Utility scripts
โ””โ”€โ”€ ๐Ÿ—‚๏ธ  prompts/              AI prompt templates
```

---

## ๐Ÿงช Example Walkthrough

See [EXAMPLE.md](EXAMPLE.md) for a complete walkthrough of building a math learning app, including:

- Initial project description
- AI analysis and questions
- Stack recommendation with reasoning
- Full specification generation
- Development workflow

---

## ๐Ÿ”ง Requirements

- **Node.js** >= 16.0.0
- **npm** or **yarn**

---

## ๐Ÿ“„ License

Apache License 2.0 โ€” see [LICENSE](LICENSE) file for details.

---

<div align="center">

**Made with โค๏ธ for AI-human collaboration**

[โญ Star us on GitHub](https://github.com/oleksiitrembach/gigaspec) โ€ข [๐Ÿ› Report Issues](https://github.com/oleksiitrembach/gigaspec/issues)

</div>