diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
new file mode 100644
index 0000000..a0449cc
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -0,0 +1,38 @@
+---
+name: Bug Report
+about: Report a bug in CCG workflow
+title: "[bug] "
+labels: bug
+assignees: ''
+---
+
+## Environment
+
+- **CCG version**: (e.g., 1.7.75)
+- **Node.js version**: (e.g., 20.11.0)
+- **OS**: (e.g., macOS 15.1 / Ubuntu 24.04 / Windows 11)
+- **Claude Code version**: (e.g., 1.0.26)
+
+## Description
+
+
+
+## Expected Behavior
+
+
+
+## Steps to Reproduce
+
+1. ...
+2. ...
+3. ...
+
+## Error Output
+
+```
+
+```
+
+## Additional Context
+
+
diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md
new file mode 100644
index 0000000..c2174f2
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,23 @@
+---
+name: Feature Request
+about: Suggest a new feature or improvement
+title: "[feat] "
+labels: enhancement
+assignees: ''
+---
+
+## Problem
+
+
+
+## Proposed Solution
+
+
+
+## Alternatives Considered
+
+
+
+## Additional Context
+
+
diff --git a/.github/ISSUE_TEMPLATE/good_first_issue.md b/.github/ISSUE_TEMPLATE/good_first_issue.md
new file mode 100644
index 0000000..eb302f7
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/good_first_issue.md
@@ -0,0 +1,47 @@
+---
+name: Good First Issue
+about: A well-scoped task for new contributors
+title: "[good first issue] "
+labels: good first issue
+assignees: ''
+---
+
+## Description
+
+
+
+## Acceptance Criteria
+
+- [ ]
+- [ ]
+- [ ] Tests pass: `pnpm test`
+- [ ] Build succeeds: `pnpm build`
+
+## Relevant Files
+
+
+
+- `src/utils/example.ts:42-58` — the function to modify
+- `tests/example.test.ts` — add tests here
+
+## Similar PRs
+
+
+
+- #N/A
+
+## Getting Started
+
+1. Fork and clone the repo
+2. `cd skills-v2 && pnpm install`
+3. Read [CONTRIBUTING.md](../../CONTRIBUTING.md)
+4. Make changes in the files listed above
+5. `pnpm test` to verify
+6. `pnpm build` to ensure build passes
+
+## Scope
+
+
+
+**In scope**: ...
+**Out of scope**: ...
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dbcc29f..1f1f80c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
---
+## [1.7.76] - 2026-03-10
+
+### 📝 文档
+
+- **README 重构**:命令分组展示(7 类)、新增「Why CCG?」价值主张、架构图上移、Prerequisites 合并、环境变量增加「何时修改」列、FAQ/Hook 配置去重折叠
+- **新增 CONTRIBUTING.md**:开发环境搭建、PR 流程、Commit 规范、代码标准、Good First Issue 指南
+- **新增 Issue 模板**:`.github/ISSUE_TEMPLATE/` 下 3 套模板(bug report / feature request / good first issue)
+
+---
+
## [1.7.75] - 2026-03-10
### 🐛 修复
diff --git a/CLAUDE.md b/CLAUDE.md
index 31b85a7..2f8690c 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -2,7 +2,7 @@
> [根目录](../CLAUDE.md) > **skills-v2**
-**Last Updated**: 2026-03-10 (v1.7.75)
+**Last Updated**: 2026-03-10 (v1.7.76)
---
@@ -10,6 +10,9 @@
> 完整变更历史请查看 [CHANGELOG.md](./CHANGELOG.md)
+### 2026-03-10 (v1.7.76)
+- 📝 **README 重构**:命令分组(7 类)、新增 Why CCG? + CONTRIBUTING.md + Issue 模板 x3、配置章节去重折叠
+
### 2026-03-10 (v1.7.75)
- 🐛 **Skills 命名空间隔离**:`skills/` → `skills/ccg/`,卸载不再误删用户自建 skill + 旧版自动迁移
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..78fbd48
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,134 @@
+# Contributing to CCG
+
+Thanks for your interest in contributing to CCG! This guide will help you get started.
+
+## Development Setup
+
+### Prerequisites
+
+- Node.js 20+
+- pnpm (`npm install -g pnpm`)
+- Go 1.21+ (only for `codeagent-wrapper` changes)
+
+### Getting Started
+
+```bash
+# Clone the repository
+git clone https://github.com/fengshao1227/ccg-workflow.git
+cd ccg-workflow/skills-v2
+
+# Install dependencies
+pnpm install
+
+# Build
+pnpm build
+
+# Run tests
+pnpm test
+```
+
+### Project Structure
+
+```
+skills-v2/
+├── src/ # TypeScript source
+│ ├── cli.ts # CLI entry point
+│ ├── commands/ # CLI commands (init, update, menu, etc.)
+│ └── utils/ # Shared utilities
+├── templates/ # Installed to ~/.claude/
+│ ├── commands/ # 26 slash command templates (.md)
+│ ├── prompts/ # Expert prompts (codex/ + gemini/)
+│ └── skills/ # Quality gates + orchestration
+├── codeagent-wrapper/ # Go binary source
+├── tests/ # Vitest test files
+└── bin/ # Build output + pre-compiled binaries
+```
+
+### Key Files
+
+| File | Purpose |
+|------|---------|
+| `src/utils/installer.ts` | Core installation logic |
+| `src/utils/config.ts` | Configuration management |
+| `src/utils/mcp.ts` | MCP tool integration |
+| `templates/commands/*.md` | Slash command templates |
+| `templates/prompts/` | Expert prompts for Codex/Gemini |
+
+## How to Contribute
+
+### Find an Issue
+
+- Check [`good first issue`](https://github.com/fengshao1227/ccg-workflow/labels/good%20first%20issue) for beginner-friendly tasks
+- Check [`help wanted`](https://github.com/fengshao1227/ccg-workflow/labels/help%20wanted) for tasks needing assistance
+- Or open a new issue to propose your idea
+
+### Development Workflow
+
+1. Fork the repository
+2. Create a feature branch: `git checkout -b feat/your-feature`
+3. Make your changes
+4. Run tests: `pnpm test`
+5. Build: `pnpm build`
+6. Commit with conventional format: `git commit -m "feat: add something"`
+7. Push and create a Pull Request
+
+### Commit Convention
+
+We use [Conventional Commits](https://www.conventionalcommits.org/):
+
+| Prefix | Usage |
+|--------|-------|
+| `feat:` | New feature |
+| `fix:` | Bug fix |
+| `docs:` | Documentation changes |
+| `test:` | Adding or updating tests |
+| `refactor:` | Code refactoring (no behavior change) |
+| `chore:` | Build, CI, dependency updates |
+
+### Code Standards
+
+- **TypeScript**: Follow existing patterns in `src/`
+- **Templates**: Markdown files in `templates/commands/` — use `{{VARIABLE}}` for template variables
+- **Tests**: Use Vitest, place tests in `tests/` mirroring `src/` structure
+- **Metrics**: Function complexity < 10, single function < 50 lines, single file < 500 lines
+
+### What Makes a Good PR
+
+- **Focused**: One concern per PR
+- **Tested**: Include tests for new functionality
+- **Documented**: Update README if adding user-facing features
+- **Small**: Prefer multiple small PRs over one large one
+
+## Good First Issues
+
+Good first issues are designed to be completable in ~2 hours. They typically involve:
+
+- **Documentation**: Fix typos, improve examples, add missing descriptions
+- **i18n**: Add missing translations in command templates
+- **Tests**: Write tests for untested utility functions
+- **Templates**: Improve slash command templates with better examples
+- **Small fixes**: Single-file bug fixes in `src/utils/`
+
+Each good first issue includes:
+- Clear problem description
+- Specific files to modify
+- Acceptance criteria
+- Verification commands
+
+## Review Process
+
+| Event | Timeline |
+|-------|----------|
+| Issue claimed | Assigned within 1 day |
+| PR submitted | First review within 3 days |
+| After review feedback | Contributor has 5 days to respond |
+| No response | Issue unassigned (you can reclaim later) |
+
+## Questions?
+
+- Open a [Discussion](https://github.com/fengshao1227/ccg-workflow/discussions)
+- Check existing [Issues](https://github.com/fengshao1227/ccg-workflow/issues)
+
+---
+
+Thank you for contributing!
diff --git a/README.md b/README.md
index be8e5fa..f5dfa7e 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,7 @@
[](https://www.npmjs.com/package/ccg-workflow)
[](https://opensource.org/licenses/MIT)
[](https://claude.ai/code)
+[]()
[简体中文](./README.zh-CN.md) | English
@@ -12,98 +13,136 @@
A multi-model collaboration development system where Claude Code orchestrates Codex + Gemini. Frontend tasks route to Gemini, backend tasks route to Codex, and Claude handles orchestration and code review.
-## Installation
+## Why CCG?
+
+- **Zero-config model routing** — Frontend tasks automatically go to Gemini, backend tasks to Codex. No manual switching.
+- **Security by design** — External models have no write access. They return patches; Claude reviews before applying.
+- **26 slash commands** — From planning to execution, git workflow to code review, all accessible via `/ccg:*`.
+- **Spec-driven development** — Integrates [OPSX](https://github.com/fission-ai/opsx) to turn vague requirements into verifiable constraints, eliminating AI improvisation.
+
+## Architecture
+
+```
+Claude Code (Orchestrator)
+ │
+ ┌───┴───┐
+ ↓ ↓
+Codex Gemini
+(Backend) (Frontend)
+ │ │
+ └───┬───┘
+ ↓
+ Unified Patch
+```
+
+External models have no write access — they only return patches, which Claude reviews before applying.
+
+## Quick Start
+
+### Prerequisites
+
+| Dependency | Required | Notes |
+|------------|----------|-------|
+| **Node.js 20+** | Yes | `ora@9.x` requires Node >= 20. Node 18 causes `SyntaxError` |
+| **Claude Code CLI** | Yes | [Install guide](#install-claude-code) |
+| **jq** | Yes | Used for auto-authorization hook ([install](#install-jq)) |
+| **Codex CLI** | No | Enables backend routing |
+| **Gemini CLI** | No | Enables frontend routing |
+
+### Installation
```bash
npx ccg-workflow
```
-**Requirements**: Claude Code CLI, Node.js 20+
+On first run, CCG prompts you to select a language (English / Chinese). This preference is saved for all future sessions.
-> **Important**: This project depends on `ora@9.x` and `string-width@8.x`, which require Node.js >= 20. Using Node.js 18 will cause `SyntaxError: Invalid regular expression flags`. Please upgrade to Node.js 20 or higher.
+### Install jq
-**Optional**: Codex CLI (backend), Gemini CLI (frontend)
+```bash
+# macOS
+brew install jq
-## First-Time Setup
+# Linux (Debian/Ubuntu)
+sudo apt install jq
-On first run, CCG will prompt you to select your preferred language (English or Chinese). This preference is saved and used for all subsequent sessions.
+# Linux (RHEL/CentOS)
+sudo yum install jq
+
+# Windows
+choco install jq # or: scoop install jq
+```
+
+### Install Claude Code
+
+```bash
+npx ccg-workflow menu # Select "Install Claude Code"
+```
+
+Supports: npm, homebrew, curl, powershell, cmd.
## Commands
+### Development Workflow
+
+| Command | Description | Model |
+|---------|-------------|-------|
+| `/ccg:workflow` | Full 6-phase development workflow | Codex + Gemini |
+| `/ccg:plan` | Multi-model collaborative planning (Phase 1-2) | Codex + Gemini |
+| `/ccg:execute` | Multi-model collaborative execution (Phase 3-5) | Codex + Gemini + Claude |
+| `/ccg:codex-exec` | Codex full execution (plan → code → review) | Codex + multi-model review |
+| `/ccg:feat` | Smart feature development | Auto-routed |
+| `/ccg:frontend` | Frontend tasks (fast mode) | Gemini |
+| `/ccg:backend` | Backend tasks (fast mode) | Codex |
+
+### Analysis & Quality
+
+| Command | Description | Model |
+|---------|-------------|-------|
+| `/ccg:analyze` | Technical analysis | Codex + Gemini |
+| `/ccg:debug` | Problem diagnosis + fix | Codex + Gemini |
+| `/ccg:optimize` | Performance optimization | Codex + Gemini |
+| `/ccg:test` | Test generation | Auto-routed |
+| `/ccg:review` | Code review (auto git diff) | Codex + Gemini |
+| `/ccg:enhance` | Prompt enhancement | Built-in |
+
+### OPSX Spec-Driven
+
| Command | Description |
|---------|-------------|
-| `/ccg:workflow` | Full 6-phase development workflow |
-| `/ccg:plan` | Multi-model collaborative planning (Phase 1-2) |
-| `/ccg:execute` | Multi-model collaborative execution (Phase 3-5) |
-| `/ccg:feat` | Smart feature development |
-| `/ccg:frontend` | Frontend tasks (Gemini) |
-| `/ccg:backend` | Backend tasks (Codex) |
-| `/ccg:analyze` | Technical analysis |
-| `/ccg:debug` | Problem diagnosis |
-| `/ccg:optimize` | Performance optimization |
-| `/ccg:test` | Test generation |
-| `/ccg:review` | Code review |
-| `/ccg:commit` | Git commit |
-| `/ccg:rollback` | Git rollback |
-| `/ccg:clean-branches` | Clean branches |
-| `/ccg:worktree` | Worktree management |
-| `/ccg:init` | Initialize CLAUDE.md |
-| `/ccg:enhance` | Prompt enhancement |
| `/ccg:spec-init` | Initialize OPSX environment |
| `/ccg:spec-research` | Requirements → Constraints |
| `/ccg:spec-plan` | Constraints → Zero-decision plan |
| `/ccg:spec-impl` | Execute plan + archive |
| `/ccg:spec-review` | Dual-model cross-review |
-| `/ccg:team-research` | Agent Teams requirements → constraints |
-| `/ccg:team-plan` | Agent Teams constraints → parallel plan |
-| `/ccg:team-exec` | Agent Teams parallel execution |
-| `/ccg:team-review` | Agent Teams dual-model review |
-| `/ccg:codex-exec` | Codex full execution (plan → code → review) |
-### OPSX Spec-Driven (v1.7.52+)
+### Agent Teams (v1.7.60+)
-Integrates [OPSX architecture](https://github.com/fission-ai/opsx) to turn requirements into constraints, eliminating AI improvisation:
+| Command | Description |
+|---------|-------------|
+| `/ccg:team-research` | Requirements → constraints (parallel exploration) |
+| `/ccg:team-plan` | Constraints → parallel implementation plan |
+| `/ccg:team-exec` | Spawn Builder teammates for parallel coding |
+| `/ccg:team-review` | Dual-model cross-review |
-```bash
-# Initialize OPSX environment
-/ccg:spec-init
+> **Prerequisite**: Enable Agent Teams in `settings.json`: `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`
-# Research requirements → output constraints
-/ccg:spec-research implement user authentication
+### Git Tools
-# Parallel analysis → zero-decision plan
-/ccg:spec-plan
+| Command | Description |
+|---------|-------------|
+| `/ccg:commit` | Smart commit (conventional commit format) |
+| `/ccg:rollback` | Interactive rollback |
+| `/ccg:clean-branches` | Clean merged branches |
+| `/ccg:worktree` | Worktree management |
-# Execute the plan
-/ccg:spec-impl
+### Project Setup
-# Independent review (available anytime)
-/ccg:spec-review
-```
+| Command | Description |
+|---------|-------------|
+| `/ccg:init` | Initialize project CLAUDE.md |
-**Note**: `/ccg:spec-*` commands are CCG's wrapper around OPSX, internally calling `/opsx:*` commands. You can `/clear` between phases — state is persisted in the `openspec/` directory, so context overflow is not a concern.
-
-### Agent Teams Parallel Execution (v1.7.60+)
-
-Leverage Claude Code Agent Teams experimental feature to spawn multiple Builder teammates for parallel coding:
-
-```bash
-# 1. Requirements research → constraints (recommended for complex projects)
-/ccg:team-research implement real-time collaboration kanban API
-
-# 2. /clear then plan → zero-decision parallel plan
-/ccg:team-plan kanban-api
-
-# 3. /clear then parallel execution → Builder teammates write code in parallel
-/ccg:team-exec
-
-# 4. /clear then review → dual-model cross-review
-/ccg:team-review
-```
-
-**Prerequisite**: Manually enable Agent Teams (`settings.json`: set `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`)
-
-**vs Traditional Workflow**: Team series uses `/clear` between steps to isolate context, passing state through files. Builders work in parallel, ideal for tasks decomposable into 3+ independent modules.
+## Workflow Guides
### Planning & Execution Separation
@@ -121,31 +160,66 @@ Leverage Claude Code Agent Teams experimental feature to spawn multiple Builder
/ccg:codex-exec .claude/plan/user-auth.md
```
+### OPSX Spec-Driven Workflow
+
+Integrates [OPSX architecture](https://github.com/fission-ai/opsx) to turn requirements into constraints, eliminating AI improvisation:
+
+```bash
+/ccg:spec-init # Initialize OPSX environment
+/ccg:spec-research implement user auth # Research → constraints
+/ccg:spec-plan # Parallel analysis → zero-decision plan
+/ccg:spec-impl # Execute the plan
+/ccg:spec-review # Independent review (anytime)
+```
+
+> **Tip**: `/ccg:spec-*` commands internally call `/opsx:*`. You can `/clear` between phases — state is persisted in the `openspec/` directory.
+
+### Agent Teams Parallel Workflow
+
+Leverage Claude Code Agent Teams to spawn multiple Builder teammates for parallel coding:
+
+```bash
+/ccg:team-research implement kanban API # 1. Requirements → constraints
+# /clear
+/ccg:team-plan kanban-api # 2. Plan → parallel tasks
+# /clear
+/ccg:team-exec # 3. Builders code in parallel
+# /clear
+/ccg:team-review # 4. Dual-model cross-review
+```
+
+> **vs Traditional Workflow**: Team series uses `/clear` between steps to isolate context, passing state through files. Ideal for tasks decomposable into 3+ independent modules.
+
## Configuration
### Directory Structure
```
~/.claude/
-├── commands/ccg/ # Slash commands
+├── commands/ccg/ # 26 slash commands
├── agents/ccg/ # Sub-agents
-├── skills/ # Quality gates + multi-agent orchestration
+├── skills/ccg/ # Quality gates + multi-agent orchestration
├── bin/codeagent-wrapper
└── .ccg/
- ├── config.toml
- └── prompts/{codex,gemini}/
+ ├── config.toml # CCG configuration
+ └── prompts/
+ ├── codex/ # 6 Codex expert prompts
+ └── gemini/ # 7 Gemini expert prompts
```
### Environment Variables
-| Variable | Description | Default |
-|----------|-------------|---------|
-| `CODEAGENT_POST_MESSAGE_DELAY` | Wait time after Codex completion (seconds) | 5 |
-| `CODEX_TIMEOUT` | codeagent-wrapper execution timeout (seconds) | 7200 |
-| `BASH_DEFAULT_TIMEOUT_MS` | Claude Code Bash default timeout (ms) | 120000 |
-| `BASH_MAX_TIMEOUT_MS` | Claude Code Bash max timeout (ms) | 600000 |
+Configure in `~/.claude/settings.json` under `"env"`:
-Configuration in `~/.claude/settings.json`:
+| Variable | Description | Default | When to change |
+|----------|-------------|---------|----------------|
+| `CODEAGENT_POST_MESSAGE_DELAY` | Wait after Codex completion (sec) | `5` | Set to `1` if Codex process hangs |
+| `CODEX_TIMEOUT` | Wrapper execution timeout (sec) | `7200` | Increase for very long tasks |
+| `BASH_DEFAULT_TIMEOUT_MS` | Claude Code Bash timeout (ms) | `120000` | Increase if commands time out |
+| `BASH_MAX_TIMEOUT_MS` | Claude Code Bash max timeout (ms) | `600000` | Increase for long builds |
+
+Example settings.json
```json
{
@@ -158,79 +232,32 @@ Configuration in `~/.claude/settings.json`:
}
```
-### codeagent-wrapper Auto-Authorization
-
-CCG automatically installs a Hook in `settings.json` to auto-authorize codeagent-wrapper commands, so you don't have to manually approve each collaboration call.
-
-**Requirement**: `jq` must be installed on your system.
-
-```bash
-# macOS
-brew install jq
-
-# Linux (Debian/Ubuntu)
-sudo apt install jq
-
-# Linux (RHEL/CentOS)
-sudo yum install jq
-
-# Windows
-choco install jq
-# or
-scoop install jq
-```
+Manual setup (for versions before v1.7.71)
-Supports multiple installation methods: npm, homebrew, curl, powershell, cmd
-
-## Update / Uninstall
-
-```bash
-# Update
-npx ccg-workflow@latest # npx users
-npm install -g ccg-workflow@latest # npm global users
-
-# Uninstall
-npx ccg-workflow # Select "Uninstall"
-npm uninstall -g ccg-workflow # npm global users need this extra step
-```
-
-## FAQ
-
-### 1. How to auto-authorize codeagent-wrapper without manual approval?
-
-CCG automatically installs the Hook during setup (v1.7.71+). If you installed an older version, add this to `~/.claude/settings.json`:
+Add to `~/.claude/settings.json`:
```json
{
@@ -251,37 +278,49 @@ CCG automatically installs the Hook during setup (v1.7.71+). If you installed an
}
```
-> **Note**: Requires `jq` installed on your system. See [codeagent-wrapper Auto-Authorization](#codeagent-wrapper-auto-authorization) for install instructions.
+