Getting Started

What is Code
Addiction?

Code Addiction is a spec-driven framework for AI coding assistants. It standardizes how features go from idea to production through structured, repeatable workflows — installed in any project with a single command.

.codeadd/

Shared core: commands, scripts, skills, templates

Provider adapters

Claude, Codex, Antigravity, KiloCode, OpenCode

codeadd CLI

install, update, uninstall, doctor, validate, features, config

Installation

Requires Node.js 18+. Works on Windows, macOS, and Linux.

# install in your project
$ npx codeadd install
# install specific version
$ npx codeadd install --version v2.0.1
# install from a specific branch
$ npx codeadd install --branch feature-xyz

What gets installed

your-project/
├── .codeadd/← core (always)
├── .claude/← Claude Code
├── .agent/← Codex (OpenAI)
├── .agents/← Antigravity
├── .kilocode/← KiloCode
└── .opencode/← OpenCode

Quickstart

After installing, use these CLI commands to manage your setup:

npx codeadd doctor Check environment health — Node, Git, installation status
npx codeadd validate Validate file integrity via SHA-256 hashes
npx codeadd validate --repair Restore missing or modified files from the release
npx codeadd update Update to latest release, or re-pull current branch
npx codeadd uninstall Clean removal of all Code Addiction files (user files are kept)
npx codeadd uninstall --force Skip confirmation prompt during uninstall
npx codeadd features List, enable, or disable optional features (e.g. TDD, Startup Test)
npx codeadd config show Display installation configuration. Add --verbose to check for updates

Reference

Commands

Every command is a slash command you type in your AI coding assistant. They orchestrate discovery, planning, implementation, and delivery.

Discovery

/add-brainstorm

Explore ideas (read-only)

/add-feature

AI-guided feature discovery → about.md

/add-init

Project onboarding → owner.md

/add-architecture-analyzer

Map architecture, classify apps

Planning

/add-design

UX spec, mobile-first. Coordinates subagents

/add-plan

Technical planning → plan.md. Epic vs Feature detection

Implementation

/add-dev

Subagent-driven implementation. Supports Epics

/add-autopilot

Full autonomous implementation, no interaction

Quality

/add-review

Code review + auto-correction

/add-test

Generate tests (80% coverage target)

/add-audit

Full project health analysis

Delivery

/add-done

Changelog, docs, finalize. Routes to PR or merge

/add-pr

Create PR for code review

/add-hotfix

Emergency fix with global ID (H[NNNN])

Utilities

/add

Smart gateway — answers questions, guides flow

/add-copy

SaaS copy generator

/add-landing

High-conversion SaaS landing page builder

/add-ux

Quick UX — loads ux-design for free context

Reference

Flows

Pick the shortest path that fits. Less ceremony, same quality.

Complete Flow

Complex features with UI — full discovery, design, planning, implementation, review

Brainstorm
/add-brainstorm
Feature
/add-feature
Design
/add-design
Plan
/add-plan
Code
/add-dev
Review
/add-review
Ship
/add-done

Standard Flow

Features without complex UI — skip brainstorm and design

Feature
/add-feature
Plan
/add-plan
Code
/add-dev
Ship
/add-done

Lean Flow

Small changes, quick tasks — minimal ceremony

Feature
/add-feature
Code
/add-dev
Ship
/add-done

Autonomous Flow

Full AI implementation, no human interaction needed

Feature
/add-feature
Autopilot
/add-autopilot
Ship
/add-done

Emergency Flow

Critical bug in production — fast track to fix

Hotfix
/add-hotfix
Ship
/add-done

Exploration Flow

Don't know where to start? Brainstorm first, then pick any flow above

Brainstorm
/add-brainstorm
Feature
/add-feature
...pick your flow

Reference

Scenarios

Real-world examples of when to use each flow.

COMPLETE

"Build a user dashboard with charts and filters"

Complex feature with UI, multiple user flows, needs discovery and design.

/add-brainstorm → explore scope and requirements
/add-feature → define requirements, acceptance criteria
/add-design → UX spec, mobile-first layouts
/add-plan → technical architecture, task breakdown
/add-dev → subagent-driven implementation
/add-review → automated code review
/add-done → changelog, docs, merge
STANDARD

"Add email notifications for order status"

Backend feature, no complex UI. Needs planning but no design phase.

/add-feature → define notification triggers, templates
/add-plan → service architecture, queue strategy
/add-dev → implement
/add-done → finalize
LEAN

"Add a loading spinner to the submit button"

Small, well-defined change. Minimal ceremony.

/add-feature → quick spec
/add-dev → implement
/add-done → ship it
AUTONOMOUS

"Implement the 5 API endpoints from the spec"

Well-specified work. Let the AI handle it end-to-end with no interaction.

/add-feature → define scope
/add-autopilot → AI implements everything autonomously
/add-done → finalize
EMERGENCY

"Users can't login — auth token validation is broken"

Critical production bug. Fast-track fix with tracking.

/add-hotfix → diagnose, fix, document with global ID
/add-done → deploy
EXPLORATION

"I want to add AI to the product but don't know where to start"

Unclear scope. Start with brainstorming, then pick a flow.

/add-brainstorm → explore possibilities, no commitment
/add-feature → lock in what you'll build
→ ...pick Complete, Standard, or Lean from here

Deep Dive

Skills

Skills are specialized knowledge modules loaded by commands. They provide domain expertise for backend, frontend, database, UX, security, and more.

backend-development SOLID, Clean Arch, DTOs, Services, Repository — stack-agnostic
frontend-development State, data fetching, components, forms, routing — stack-agnostic
database-development Entities, repositories, migrations, naming — stack-agnostic
ux-design Components, mobile-first, SaaS patterns, shadcn, Tailwind
security-audit OWASP checklist, RLS, secrets, multi-tenancy
code-review Validation, auto-correction, quality gates
feature-discovery Discovery process, codebase analysis
feature-specification Structured about.md with RFs, RNs, criteria
documentation-style Documentation standards across all outputs
architecture-discovery Map architecture, detect patterns, stack-context.md
delivery-validation Validate RF/RN implemented, acceptance criteria
subagent-driven-development Coordinate subagents with quality gates
landing-page-saas High-conversion landing page framework
saas-copy Copy frameworks and templates for SaaS
stripe Stripe integration, price versioning, grandfathering
token-efficiency Compression, compact JSON, minimal tokens

Optional Features

Features are toggleable behaviors injected into commands via fragment files. Enable or disable them with npx codeadd features enable|disable <name>.

tdd enabled by default

TDD Pipeline (test-first development)

Injected into: add-plan, add-dev

startup-test enabled by default

Application Startup Test (IoC/DI validation)

Injected into: add-dev, add-review

Providers

Code Addiction generates provider-specific files so the same commands work across AI assistants.

Provider Directory Format
Claude Code.claude/commands/
Codex (OpenAI).agent/workflows/ + skills/
Google Antigravity.agents/skills/
KiloCode.kilocode/workflows/
OpenCode.opencode/commands/

Project Structure

The Code Addiction repository is organized as follows:

code-addiction/
├── cli/← installer CLI (npm: codeadd)
├── framwork/← framework payload
│ └── .codeadd/← core: commands, skills, scripts
├── web/← this website
├── scripts/← build and release scripts
└── docs/← project documentation