Skip to content
c3-adopt logo

C3 Adopt

c3-adopt

Use when bootstrapping C3 documentation for any project - guides through Socratic discovery and delegates to layer skills for document creation

SKILL.md

Full skill instructions

C3 Adopt

⛔ CRITICAL GATE: Check Existing State First

STOP - Before ANY adoption work, execute:

ls -la .c3/ 2>/​dev/​null || echo "NO_C3_DIR"
cat .c3/​README.md 2>/​dev/​null || echo "NO_CONTEXT"

Based on output:

  • If "NO_C3_DIR" → Fresh project, proceed with scaffolding
  • If .c3/ exists with content → Ask user: update, backup+recreate, or abort?
  • If .c3/ exists but empty → Proceed with scaffolding

⚠️ DO NOT read existing ADRs during adoption:

  • ADRs are historical records from past decisions
  • For fresh adoption, they add confusing context
  • If rebuilding, user will specify what to preserve

Why this gate exists: Blindly creating .c3/ can overwrite existing documentation.

Self-check before proceeding:

  • I executed the commands above
  • I know whether .c3/ exists
  • If exists: I asked user what to do

Overview

Bootstrap C3 architecture documentation through Socratic questioning and delegation. Works for existing codebases and fresh projects.

Announce: "I'm using the c3-adopt skill to initialize architecture documentation."


Scenario Detection

ScenarioSignalPath
Fresh projectNo .c3/, no codeQuestions → Scaffold → Document
Existing codebaseCode exists, no .c3/Explore code → Questions → Document
Rebuild needed.c3/ exists, user wants resetBackup → Fresh start

V3 Structure (MANDATORY)

.c3/
├── README.md                     ← Context (c3-0) IS the README
├── TOC.md                        ← Table of contents
├── settings.yaml                 ← Project settings
├── c3-1-{slug}/
│   ├── README.md                 ← Container 1
│   └── c3-101-{slug}.md          ← Component inside container
├── c3-2-{slug}/
│   └── README.md                 ← Container 2
└── adr/
    └── adr-YYYYMMDD-{slug}.md    ← ADRs

File Path Rules:

LevelPathExample
Context.c3/​README.md.c3/​README.md (ONLY this)
Container.c3/​c3-{N}-{slug}/​README.md.c3/​c3-1-backend/​README.md
Component.c3/​c3-{N}-{slug}/​c3-{N}{NN}-{slug}.md.c3/​c3-1-backend/​c3-101-api.md
ADR.c3/​adr/​adr-{YYYYMMDD}-{slug}.md.c3/​adr/​adr-20251216-auth.md

Process

Phase 1: Detect

Already done via Critical Gate.

Phase 2: Discover (Socratic Questions)

For fresh projects:

  • "What problem does this system solve?"
  • "Who are the users/​actors?"
  • "What are the major deployable parts?"

For existing codebases:

  • Explore code structure first
  • "I see X, Y, Z directories. What are the major containers?"
  • "How do these parts communicate?"

Phase 3: Scaffold

# Create base structure
mkdir -p .c3/​adr

# Create container folders based on discovery
mkdir -p .c3/​c3-1-{slug}
mkdir -p .c3/​c3-2-{slug}

# Create empty README (will be filled by c3-context-design)
touch .c3/​README.md

Phase 4: Delegate to Layer Skills

INVOKE each skill in order:

OrderSkillCreates
1Use Skill tool → c3-context-design.c3/​README.md
2Use Skill tool → c3-container-design.c3/​c3-{N}-*/​README.md
3Use Skill tool → c3-component-design.c3/​c3-{N}-*/​c3-{N}{NN}-*.md
4Use Skill tool → c3-config.c3/​settings.yaml

Phase 5: Generate TOC

After all docs created:

# Run TOC generator
./​scripts/​build-toc.sh
# Or manually create TOC.md

⛔ Enforcement Harnesses

Harness 1: V3 Structure (No V2 Patterns)

Rule: Use V3 hierarchical structure. V2 flat structure is prohibited.

Prohibited (V2)Required (V3)
context/​c3-0.md.c3/​README.md
containers/​c3-1.md.c3/​c3-1-{slug}/​README.md
components/​c3-101.md.c3/​c3-1-{slug}/​c3-101-{slug}.md

🚩 Red Flags:

  • Creating context/, containers/, or components/ folders
  • Any file named c3-0.md
  • Components outside their container folder

Harness 2: Skill Delegation (No Hallucination)

Rule: INVOKE layer skills. Never create C3 docs directly.

Anti-PatternCorrect Action
Writing .c3/​README.md content directlyUse Skill tool → c3-context-design
"c3-container-design would create..."Invoke the skill
Creating docs without skill invocationAlways delegate to layer skill

🚩 Red Flag: Write tool used on .c3/ files without prior Skill tool invocation


Verification Checklist

Before claiming adoption complete, execute:

# Verify V3 structure
ls .c3/​README.md                           # Context exists
ls -d .c3/​c3-[1-9]-*/                       # Container folders exist
ls .c3/​c3-[1-9]-*/​README.md                 # Container READMEs exist

# Verify no V2 patterns
ls .c3/​context/ 2>/​dev/​null && echo "ERROR: V2 context folder"
ls .c3/​containers/ 2>/​dev/​null && echo "ERROR: V2 containers folder"
ls .c3/​components/ 2>/​dev/​null && echo "ERROR: V2 components folder"
  • Critical gate executed (existing state checked)
  • User scenario confirmed (fresh/​existing/​rebuild)
  • Discovery questions completed
  • V3 structure scaffolded
  • Layer skills INVOKED (not described)
  • All verification commands pass
  • TOC generated

📚 Reading Chain Output

At the end of adoption, output a reading chain for the newly created docs.

Format:

## 📚 Your New C3 Documentation

**Start here:**
└─ .c3/​README.md (c3-0) - System overview

**Then explore containers:**
├─ .c3/​c3-1-{slug}/​README.md - [description]
├─ .c3/​c3-2-{slug}/​README.md - [description]
└─ ...

**Key components to understand:**
├─ c3-101 - [why this is important]
└─ c3-201 - [why this is important]

*Reading chain generated from docs created during adoption.*

Rules:

  • List docs in logical reading order (context → containers → key components)
  • Explain WHY each doc matters (not generic)
  • Help user navigate their new documentation

Related

  • references/​discovery-questions.md - Socratic question templates
  • references/​v3-structure.md - File structure conventions
  • references/​archetype-hints.md - Container type patterns

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
Any Summary logo
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View