Skip to content

Document-driven development skills with Multi-Agent Debate for Cursor & Claude Code

License

Notifications You must be signed in to change notification settings

samdae/archflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archflow

Document-driven development skills with Multi-Agent Debate for Claude Code

Archflow is a Claude Code plugin that enables systematic, document-driven development workflows. It leverages Multi-Agent Debate to produce high-quality architectural designs and maintains full traceability from requirements to implementation.

System Workflow

┌─────────────────────────────────────────────────────────────────────────────┐
│                            Backend Development                              │
│                                                                             │
│      /spec  ───▶  /arch (BE)  ───▶  /check  ───▶  /build                   │
│                       │                                                     │
└───────────────────────│─────────────────────────────────────────────────────┘
                        │
                        ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│                           Frontend Development                              │
│                                                                             │
│              /ui  ───▶  /arch (FE)  ───▶  /check  ───▶  /build             │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────────────────────┐
│                              Bug Fix                                        │
│                                                                             │
│      /debug  ───▶  /trace  ───▶  /sync  ───▶  /arch                        │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────────────────────┐
│                         Enhancement (NEW)                                   │
│                                                                             │
│   New Proposal  ───▶  /reinforce (spec)  ───▶  /arch  ───▶  /check ───▶ /build │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

┌─────────────────────────────────────────────────────────────────────────────┐
│                         Legacy Documentation                                │
│                                                                             │
│   /reverse  ───▶  (spec + arch)  ───▶  /reinforce  ───▶  /arch            │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

SSOT Principle: All changes start from spec.md. arch.md is a derived document.

Features

  • Document-Driven Development: Maintain clear requirements, designs, and changelogs throughout the development lifecycle
  • Multi-Agent Debate: Two specialized agents (Domain Architect and Best Practice Advisor) collaborate to produce optimal designs
  • Systematic Workflows: Pre-built skills for common development tasks
  • Full Traceability: Keep documentation synchronized with code changes

Installation

Quick Install (Recommended)

Use the Launchpad document with your AI coding tool:

  1. Open docs/launchpad.md in your AI tool (Cursor, Windsurf, Claude Code, etc.)
  2. Tell the AI: "Follow this launchpad to install archflow"
  3. The AI will guide you through the installation

NPM Install (from GitHub)

Install directly from the repository:

npm install samdae/archflow

The postinstall script will automatically:

  • Detect your AI tool (or ask you to choose)
  • Copy skills, rules, and agents to the correct paths
  • Create necessary configuration files

Supported Tools

Tool Installation Method
Cursor Copy to .cursor/skills/, .cursor/rules/
Windsurf Copy to .windsurf/skills/, create .windsurfrules
Antigravity Copy to skills/, rules/, agents/
Claude Code Run claude add marketplace + claude install
GPT-Codex Copy to .codex/skills/, .codex/rules/
Gemini CLI Copy to .gemini/skills/, update settings.json

Manual Installation

git clone https://github.com/samdae/archflow.git
cd archflow
node scripts/init.js

Quick Start

After installation, use slash commands:

Command Description
/archflow Show all available skills
/spec Transform materials into spec.md
/arch Multi-agent debate → arch-be.md or arch-fe.md
/ui Generate UI specification from API endpoints
/check Verify design completeness
/build Automated implementation from design
/test Generate and/or run tests (scoped)
/debug Systematic bug fixing with direct execution
/trace Record changes to trace.md
/sync Sync changes to arch.md
/reinforce Add requirements to spec.md or fill gaps
/reverse Reverse-engineer docs from existing code
/overview Generate 1-page project overview
/runbook Generate deployment documentation

Workflow

Backend Development

/spec → /arch (BE) → /check → /build → /test

Frontend Development

/spec → /arch (BE) → /ui → /arch (FE) → /check → /build → /test

Bug Fixing

/debug → /trace → /sync (if design impact)

Legacy Code Documentation

/reverse → /reinforce → /arch → /check → /build

Feature Enhancement (NEW)

New Proposal → /reinforce (spec.md) → /arch → /check → /build

Note: /enhance has been removed. All changes start from spec.md via /reinforce.

Skills Included

Skill Description BE/FE Recommended Model
spec Refine raw requirements into structured docs - Opus
arch Multi-Agent Debate for feature design BE/FE Opus
ui Generate UI specification from API endpoints - Opus
check Verify design completeness before implementation BE/FE Sonnet
build Automated implementation from design docs BE/FE Sonnet
test Generate and/or run tests with scoped targeting BE/FE Sonnet
debug Systematic debugging with direct code execution - Opus
trace Generate structured changelogs - Sonnet
sync Sync documentation after code changes - Sonnet
reinforce Add requirements or fill documentation gaps - Sonnet
reverse Generate documentation from code BE/FE Opus
overview Generate 1-page project overview - Sonnet
runbook Generate deployment documentation - Sonnet

Skills marked with "BE/FE" support separate profiles for Backend and Frontend development.

Agents Included

Agent Description
domain-architect Project-aware design agent with domain knowledge
best-practice-advisor Context-free best practice advisor

Document Structure

Skills that generate documentation follow this folder structure:

projectRoot/
  └── docs/
        └── {serviceName}/
              ├── spec.md           # from /spec
              ├── arch-be.md        # from /arch (Backend)
              ├── ui.md             # from /ui (UI specification)
              ├── arch-fe.md        # from /arch (Frontend)
              ├── trace.md          # from /trace
              ├── overview.md       # from /overview
              └── runbook.md        # from /runbook

Note: Frontend development requires /ui before /arch (FE). The ui.md defines screens, components, and interactions based on backend API endpoints.

Language Support

All skills are written in English but automatically respond in the user's language.

Supported trigger keywords include:

  • English: arch, build, debug, etc.
  • Korean: 설계, 구현, 디버그, etc.

License

Apache License 2.0

Author

samdae

Repository

https://github.com/samdae/archflow


Skill Development Guide

Front Matter Standard

Every skill file must begin with YAML front matter:

---
id: spec
name: Spec
description: |
  Transform unstructured materials into refined requirements document.
  Collects service name and input materials, creates Q&A loop.

  Triggers: spec, specification, 요구사항 정의
user-invocable: true
version: 2.0.0
triggers:
  - "spec"
  - "specification"
  - "requirements"
requires: []
platform: all
recommended_model: opus
allowed-tools:
  - Read
  - Write
  - Glob
  - Grep
  - LS
  - AskQuestion
---

Required Fields

Field Description
id Unique skill identifier in kebab-case
name Human-readable skill name
description Brief description with triggers
user-invocable Must be true for slash command registration
version Semantic versioning
allowed-tools List of tools this skill can use

Language Directive

All skills must include this after the front matter:

> ℹ️ **Global Rules Applied**:
> This skill adheres to the Archflow Global Rules defined in `rules/archflow-rules.md`.

Tool Fallback

Every skill should handle unavailable tools:

Tool Fallback
Read/Grep Request file path → ask for copy-paste
AskQuestion "Please select: 1) OptionA 2) OptionB" format
Task Step-by-step checklist or Self-debate pattern

Quality Gates

Skills producing implementation-ready documents must validate:

Item Validation Criteria
DB Schema All tables have full column definitions
Code Mapping All features mapped to file/class/method
API Spec All endpoints have Request/Response defined
Error Policy Main error scenarios defined

⚠️ If incomplete, return to previous phase for clarification.

About

Document-driven development skills with Multi-Agent Debate for Cursor & Claude Code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published