DualForge-Workflow README

The project's README from github.com/zc8163623/DualForge-Workflow. As one markdown file: README.md.

DualForge Workflow

Dual AI Collaboration Framework Builder — Establish a clear division of labor between Claude + Codex for new projects

中文文档

🎯 Core Concept

Establish a clear AI collaboration system:

Workflow: Human → Claude (Plan) → Codex (Implement) → Claude (Review) → Human (Decision)

📦 What This Skill Does

Build a complete dual AI collaboration framework from scratch, including:

  1. PRD Co-creation: Conversational guidance to complete Product Requirements Document
  2. Collaboration Standards Generation: Auto-generate CLAUDE.md and AGENTS.md behavior specifications
  3. Documentation System: Create .ai/brief.md, plan.md, review.md, decision-log.md
  4. Verification Script Framework: Generate executable frameworks for scripts/check.sh, build.sh, test.sh
  5. Handoff Mechanism: Built-in quick-switch phrases to solve collaboration breakpoints

🚀 Usage

1. Install Skill

Choose your language:

(Specific path depends on your Claude configuration)

Note: The skill will generate documents in the language you use during conversation. You can mix languages freely (e.g., English conversation → English PRD, Chinese conversation → Chinese PRD).

2. Invoke Skill

In a Claude conversation, type:

/DualForge-Workflow

Or simply say:

I want to set up a dual AI collaboration framework

3. Follow the Process

The skill will guide you through 4 stages:

📂 Generated File Structure

project/
├── PRD.md                    # Product Requirements Document
├── CLAUDE.md                 # Claude behavior specification
├── AGENTS.md                 # Codex behavior specification
├── GETTING_STARTED.md        # Getting started guide
├── scripts/
│   ├── check.sh             # Verification script framework
│   ├── build.sh             # Build script framework
│   └── test.sh              # Test script framework
├── src/                      # Source code root directory
└── .ai/
    ├── brief.md             # Entry point + collaboration contract
    ├── plan.md              # Project plan
    ├── review.md            # Review checklist
    ├── decision-log.md      # Architecture Decision Records
    └── tasks/
        └── _TEMPLATE.md     # Task template (optional)

📋 Live Example

See a complete example of generated framework in examples/small-project-todoapp/

TodoApp - Small Project Example

A task management tool for teams of 10-20 people. Generated in ~15 minutes of conversation.

File Structure:

todoapp/
├── PRD.md                          # 7 functional requirements with acceptance criteria
├── CLAUDE.md                       # Claude work specifications
├── AGENTS.md                       # Codex work specifications
├── GETTING_STARTED.md              # Step-by-step guide
├── scripts/
│   ├── check.sh                   # ✓ Format → Lint → Types → Tests
│   ├── build.sh                   # ✓ Build with Vite
│   └── test.sh                    # ✓ Run Vitest + coverage report
├── src/
│   └── README.md                  # Architecture notes
└── .ai/
    ├── brief.md                   # Project context + quick-switch phrases
    ├── plan.md                    # 13 tasks across 4 stages
    ├── review.md                  # Review checklist
    └── decision-log.md            # 1 ADR (tech stack selection)

Key Highlights:

Sample from PRD.md:

### FR-3 Status Management

**Description**: Tasks have four statuses and transition in a fixed order.

**Status Definitions:**
1. **To Do**: Task created, not yet started
2. **In Progress**: Task is being executed
3. **In Review**: Task completed, awaiting team confirmation
4. **Done**: Task approved and completed

**Transition Rules:**
- Status transitions in order: To Do → In Progress → In Review → Done
- Cannot skip statuses
- Can roll back to previous status
- All team members have permission to modify task status

**Acceptance Criteria:**
- [ ] New tasks default to "To Do" status
- [ ] Can only advance in order
- [ ] Can roll back to previous status
- [ ] Status changes immediately reflected in interface

Sample from scripts/check.sh:

#!/bin/bash
# Stage 4: Lint
echo "🔍 Running ESLint..."
npm run lint
if [ $? -ne 0 ]; then
    echo "❌ Lint failed"
    exit 1
fi

# Stage 5: Type Check
echo "📘 Running TypeScript type check..."
npm run type-check
if [ $? -ne 0 ]; then
    echo "❌ Type check failed"
    exit 1
fi

→ Explore the complete example

✨ Key Features

1. Smart Project Scale Adaptation

2. Optional Task File Mechanism

3. Solves Handoff Breakpoints

4. Complete Verification System

🎨 Use Cases

✅ Suitable for:

❌ Not suitable for:

📖 Workflow Example

You: I want to build a task management system
  ↓
Claude invokes DualForge-Workflow skill
  ↓ Guides through PRD completion
Claude generates complete collaboration framework (13 files)
  ↓
You: Implement user login feature
  ↓
Claude produces task file .ai/tasks/1.1-user-login.md
       + Outputs handoff instructions
  ↓ Copy handoff instructions to Codex
Codex implements according to plan + tests + check.sh
       + Updates status
       + Proactively requests Review
  ↓ Copy Review request to Claude
Claude reviews and gives conclusion (can merge / needs changes / wrong direction)
  ↓
You: Decide whether to merge

🔧 Configuration Options

Project Scale

Tech Stack

Supports any tech stack, skill generates corresponding script examples based on your input:

Test Coverage

📚 Documentation

🤝 Contributing

Issues and Pull Requests are welcome!

📄 License

MIT


Make AI collaboration clearer, make development more efficient.

DualForge-Workflow (zc8163623/DualForge-Workflow)

Searching Database…

这是什么?DualForge Workflow 是一个 Claude 技能,为 AI 辅助编程项目搭建完整的协作框架,对工作分工:Claude 负责规划和审查,Codex 负责实现,由人来拍板最终决定。
这是编程工具还是只是一套文档模板?它是一个 Claude 技能——一个 markdown 指令文件,Claude 读取后交互式地为你的项目生成一整套协作文档和验证脚本,不是独立应用。
怎么安装和使用它?把 SKILL.md(英文)或 SKILL.zh-CN.md(中文)保存到你的 Claude 技能库,然后在 Claude 对话中调用该技能;它会引导你走完 4 个阶段,生成 13 个框架文件。
实际使用这个工作流需要同时有 Claude 和 Codex 吗?需要——该框架假定 Claude 负责规划、设计和审查,Codex 负责编码和测试,因此两个工具都应包含在你的配置中。
它对快速脚本或小型实验有用吗?不——作者说它不适合一次性脚本、实验性项目或目标不明的探索性工作;它是为需求明确、需要长期迭代或团队协作的项目而设计的。
它实际生成哪些文件?它生成 CLAUDE.md 和 AGENTS.md 行为规范、一套文档系统(.ai/brief.md、plan.md、review.md、decision-log.md),以及验证脚本(check.sh、build.sh、test.sh)——共 13 个文件。
它适用于任何技术栈吗?是的,它支持任何技术栈——TypeScript/JavaScript、Python、Go、Rust、Java 等——并根据你的输入生成相应的脚本示例。
生成的 check.sh 实际验证什么?它运行一个 7 阶段流水线,覆盖结构、边界、格式、lint、类型和测试。
有可以参考的完整示例吗?有,examples/small-project-todoapp/ 中包含一个为小型 TodoApp 项目生成的完整框架(PRD、计划和脚本)。
Creator
zc8163623
Size
0.1 MB
Stars
195
Updated
CommitAug 15
Age
2mo
Commits · 90 Days