Agent skill

startproject

Start a new project/feature with multi-agent collaboration (Opus 4.6 + Agent Teams). Phase 1: Codebase understanding (Gemini 1M context + Claude user interaction). Phase 2: Parallel research & design (Agent Teams: Researcher + Architect). Phase 3: Plan synthesis & user approval. Implementation is handled separately by /team-implement.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/startproject

Metadata

Additional technical details for this skill

short description
Project kickoff with Agent Teams (Plan phase)

SKILL.md

Start Project

Gemini の 1M コンテキストと Agent Teams を活用したプロジェクト開始スキル。

Overview

このスキルは計画フェーズ(Phase 1-3)を担当する。実装は /team-implement、レビューは /team-review で行う。

/startproject <feature>     ← このスキル(計画)
    ↓ 承認後
/team-implement             ← 並列実装
    ↓ 完了後
/team-review                ← 並列レビュー

Workflow

Phase 1: UNDERSTAND (Gemini 1M context + Claude Lead)
  Gemini がコードベースを分析(1M context)、Claude がユーザーと対話
    ↓
Phase 2: RESEARCH & DESIGN (Agent Teams — 並列)
  Researcher(Gemini)←→ Architect(Codex)が双方向通信しながら調査・設計
    ↓
Phase 3: PLAN & APPROVE (Claude Lead + User)
  調査と設計を統合し、計画を作成してユーザー承認

Phase 1: UNDERSTAND (Gemini + Claude Lead)

Gemini の 1M コンテキストでコードベースを分析し、Claude がユーザーと対話する。

Claude Code のコンテキストは 200K。大規模コードベースの全体分析は Gemini(1M context)に委譲する。

Step 1: Analyze Codebase with Gemini

Gemini CLI を使い、コードベース全体を分析する:

bash
# gemini-explore サブエージェント経由(推奨)
Task tool:
  subagent_type: "gemini-explore"
  prompt: |
    Analyze this codebase comprehensively:
    - Directory structure and organization
    - Key modules and their responsibilities
    - Existing patterns and conventions
    - Dependencies and tech stack
    - Test structure

    gemini -p "Analyze this codebase: directory structure, key modules, architecture patterns, dependencies, conventions, and test structure" 2>/dev/null

    Save analysis to .claude/docs/research/{feature}-codebase.md
    Return concise summary (5-7 key findings).

Gemini の分析結果を補完するため、Claude は Glob/Grep/Read で特定ファイルを確認できる。

Step 2: Requirements Gathering

ユーザーに質問して要件を明確化(日本語で):

  1. 目的: 何を達成したいですか?
  2. スコープ: 含めるもの・除外するものは?
  3. 技術的要件: 特定のライブラリ、制約は?
  4. 成功基準: 完了の判断基準は?
  5. 最終デザイン: どのような形にしたいですか?

Step 3: Create Project Brief

コードベース理解 + 要件を「プロジェクト概要書」にまとめる:

markdown
## Project Brief: {feature}

### Current State
- Architecture: {existing architecture summary}
- Relevant code: {key files and modules}
- Patterns: {existing patterns to follow}

### Goal
{User's desired outcome in 1-2 sentences}

### Scope
- Include: {list}
- Exclude: {list}

### Constraints
- {technical constraints}
- {library requirements}

### Success Criteria
- {measurable criteria}

This brief is passed to Phase 2 teammates as shared context.


Phase 2: RESEARCH & DESIGN (Agent Teams — Parallel)

Agent Teams で Researcher と Architect を並列起動し、双方向通信させる。

サブエージェントとの決定的な違い: Teammates は相互通信できる。 Researcher の発見が Architect の設計を変え、Architect の要求が新たな調査を生む。

Team Setup

Create an agent team for project planning: {feature}

Spawn two teammates:

1. **Researcher** — Gemini CLI (1M context + Google Search grounding) で外部調査を行う
   Prompt: "You are the Researcher for project: {feature}.

   Your job: Research external information needed for this project.

   Project Brief:
   {project brief from Phase 1}

   Tasks:
   1. Research libraries and tools: usage patterns, constraints, best practices
   2. Find latest documentation and API specifications
   3. Identify common pitfalls and anti-patterns
   4. Look for similar implementations and reference architectures

   How to research:
   - Use Gemini CLI for comprehensive research (1M context + Google Search grounding):
     gemini -p 'Research: {topic}. Find latest best practices, constraints, and recommendations' 2>/dev/null
   - Use WebSearch/WebFetch for targeted lookups when needed

   Save all findings to .claude/docs/research/{feature}.md
   Save library docs to .claude/docs/libraries/{library}.md

   Communicate with Architect teammate:
   - Share findings that affect design decisions
   - Respond to Architect's research requests
   - Flag constraints that limit implementation options

   IMPORTANT — Work Log:
   When ALL your tasks are complete, write a work log file to:
     .claude/logs/agent-teams/{team-name}/researcher.md

   Use this format:
   # Work Log: Researcher
   ## Summary
   (1-2 sentence summary of what you researched)
   ## Tasks Completed
   - [x] {task}: {brief description of findings}
   ## Sources Consulted
   - {URL or source}: {what was found}
   ## Key Findings
   - {finding}: {relevance to project}
   ## Communication with Teammates
   - → {recipient}: {summary of message sent}
   - ← {sender}: {summary of message received}
   ## Issues Encountered
   - {issue}: {how it was resolved}
   (If none, write 'None')
   "

2. **Architect** — Codex CLI を使って設計・計画を行う
   Prompt: "You are the Architect for project: {feature}.

   Your job: Use Codex CLI to design the architecture and create implementation plan.

   Project Brief:
   {project brief from Phase 1}

   Tasks:
   1. Design architecture (modules, interfaces, data flow)
   2. Select patterns (considering existing codebase conventions)
   3. Create step-by-step implementation plan with dependencies
   4. Identify risks and mitigation strategies

   How to consult Codex:
   codex exec --model gpt-5.3-codex --sandbox read-only --full-auto "{question}" 2>/dev/null

   Update .claude/docs/DESIGN.md with architecture decisions.

   Communicate with Researcher teammate:
   - Request specific library/tool research
   - Share design constraints that need validation
   - Adjust design based on Researcher's findings

   IMPORTANT — Work Log:
   When ALL your tasks are complete, write a work log file to:
     .claude/logs/agent-teams/{team-name}/architect.md

   Use this format:
   # Work Log: Architect
   ## Summary
   (1-2 sentence summary of what you designed)
   ## Tasks Completed
   - [x] {task}: {brief description of what was done}
   ## Design Decisions
   - {decision}: {rationale}
   ## Codex Consultations
   - {question asked to Codex}: {key insight from response}
   ## Communication with Teammates
   - → {recipient}: {summary of message sent}
   - ← {sender}: {summary of message received}
   ## Issues Encountered
   - {issue}: {how it was resolved}
   (If none, write 'None')
   "

Wait for both teammates to complete their tasks.

Why Bidirectional Communication Matters

Example interaction flow:

Researcher: "httpx has a connection pool limit of 100 by default"
    → Architect: "Need to add connection pool config to design"
    → Architect: "Also research: does httpx support HTTP/2 multiplexing?"
    → Researcher: "Yes, via httpx[http2]. Requires h2 dependency."
    → Architect: "Updated design to use HTTP/2 for the API client module"

Without Agent Teams (old subagent approach), this would require:

  1. Gemini subagent finishes → returns summary
  2. Claude reads summary → creates new Codex subagent prompt
  3. Codex subagent finishes → returns summary
  4. If Codex needs more info → another Gemini subagent round

Agent Teams collapses this into a single parallel session with real-time interaction.


Phase 3: PLAN & APPROVE (Claude Lead)

Agent Teams の結果を統合し、実装計画を作成してユーザーに承認を求める。

Step 1: Synthesize Results

Read outputs from Phase 2:

  • .claude/docs/research/{feature}.md — Researcher findings
  • .claude/docs/libraries/{library}.md — Library documentation
  • .claude/docs/DESIGN.md — Architecture decisions

Step 2: Create Implementation Plan

Create task list using TodoWrite:

python
{
    "content": "Implement {specific task}",
    "activeForm": "Implementing {specific task}",
    "status": "pending"
}

Task breakdown should follow references/task-patterns.md.

Step 3: Update CLAUDE.md

Add project context to CLAUDE.md for cross-session persistence:

markdown
---

## Current Project: {feature}

### Context
- Goal: {1-2 sentences}
- Key files: {list}
- Dependencies: {list}

### Architecture
- {Key architecture decisions from Architect}

### Library Constraints
- {Key constraints from Researcher}

### Decisions
- {Decision 1}: {rationale}
- {Decision 2}: {rationale}

Step 4: Present to User

Present the plan in Japanese:

markdown
## プロジェクト計画: {feature}

### コードベース分析
{Key findings from Phase 1 — 3-5 bullet points}

### 調査結果 (Researcher)
{Key findings — 3-5 bullet points}
{Library constraints and recommendations}

### 設計方針 (Architect)
{Architecture overview}
{Key design decisions with rationale}

### タスクリスト ({N}個)
{Task list with dependencies}

### リスクと注意点
{From Architect's analysis}

### 次のステップ
1. この計画で進めてよろしいですか?
2. 承認後、`/team-implement` で並列実装を開始できます
3. 実装後、`/team-review` で並列レビューを行います

---
この計画で進めてよろしいですか?

Output Files

File Author Purpose
.claude/docs/research/{feature}.md Researcher External research findings
.claude/docs/libraries/{lib}.md Researcher Library documentation
.claude/docs/DESIGN.md Architect Architecture decisions
CLAUDE.md (updated) Lead Cross-session project context
Task list (internal) Lead Implementation tracking

Tips

  • Phase 1: Gemini(1M context)でコードベースを分析し、Claude がユーザーと対話する
  • Phase 2: Agent Teams の双方向通信により、Researcher(Gemini)と Architect(Codex)が相互に影響し合える
  • Phase 3: 計画承認後、/team-implement で並列実装に進む
  • Ctrl+T: タスクリストの表示切り替え
  • Shift+Up/Down: チームメイト間の移動(Agent Teams 使用時)

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results