agentleFS
morixxfoxdatamorixxfoxdata/claude-code-template/.claude/skills/startproject/SKILL.md

startproject

Skill0 starsChanged 9 months agoMITView on GitHub

Start a new project/feature with multi-agent collaboration (Opus4.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.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use Gemini CLI to analyze the entire codebase:

    line 52
  2. Distinctive:

    Ask the user questions to clarify requirements:

    line 76
  3. Distinctive:

    If Codex needs more info → another Gemini subagent round

    line 243
  4. Distinctive:

    Read outputs from Phase 2:

    line 255
  5. Distinctive:

    Create task list using TodoWrite:

    line 262
  6. Distinctive:

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

    line 276
  7. Very specific:

    Phase 3: After plan approval, proceed to parallel implementation with /team-implement

    line 350

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Start Project

Project kickoff skill leveraging Gemini's 1M context and Agent Teams.

Overview

This skill handles the planning phases (Phase 1-3). Implementation is done via /team-implement, and review via /team-review.

/startproject <feature>     ← This skill (planning)
    ↓ After approval
/team-implement             ← Parallel implementation
    ↓ After completion
/team-review                ← Parallel review

Workflow

Phase 1: UNDERSTAND (Gemini 1M context + Claude Lead)
  Gemini analyzes the codebase (1M context), Claude interacts with the user
    ↓
Phase 2: RESEARCH & DESIGN (Agent Teams — Parallel)
  Researcher (Gemini) ←→ Architect (Codex) communicate bidirectionally for research and design
    ↓
Phase 3: PLAN & APPROVE (Claude Lead + User)
  Integrate research and design, create plan and get user approval

Phase 1: UNDERSTAND (Gemini + Claude Lead)

Analyze the codebase with Gemini's 1M context while Claude interacts with the user.

Claude Code's context is 200K. Large-scale codebase analysis is delegated to Gemini (1M context).

Step 1: Analyze Codebase with Gemini

Use Gemini CLI to analyze the entire codebase:

# Via gemini-explore subagent (recommended)
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).

To supplement Gemini's analysis, Claude can use Glob/Grep/Read to inspect specific files.

Step 2: Requirements Gathering

Ask the user questions to clarify requirements:

  1. Purpose: What do you want to achieve?
  2. Scope: What to include / exclude?
  3. Technical requirements: Specific libraries, constraints?
  4. Success criteria: How do you determine completion?
  5. Final design: What form should it take?

Step 3: Create Project Brief

Combine codebase understanding + requirements into a "Project Brief":

## 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)

Launch Researcher and Architect in parallel via Agent Teams with bidirectional communication.

Key difference from subagents: Teammates can communicate with each other. Researcher's findings change Architect's design, and Architect's requests trigger new research.

Team Setup

Create an agent team for project planning: {feature}

Spawn two teammates:

1. **Researcher** — Uses Gemini CLI (1M context + Google Search grounding) for external research
   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** — Uses Codex CLI for design and planning
   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)

Integrate Agent Teams results, create an implementation plan, and request user approval.

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:

{
    "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:

---

## 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 to the user:

## Project Plan: {feature}

### Codebase Analysis
{Key findings from Phase 1 — 3-5 bullet points}

### Research Findings (Researcher)
{Key findings — 3-5 bullet points}
{Library constraints and recommendations}

### Design Direction (Architect)
{Architecture overview}
{Key design decisions with rationale}

### Task List ({N} items)
{Task list with dependencies}

### Risks and Considerations
{From Architect's analysis}

### Next Steps
1. Shall we proceed with this plan?
2. After approval, you can start parallel implementation with `/team-implement`
3. After implementation, run parallel review with `/team-review`

---
Shall we proceed with this plan?

Output Files

FileAuthorPurpose
.claude/docs/research/{feature}.mdResearcherExternal research findings
.claude/docs/libraries/{lib}.mdResearcherLibrary documentation
.claude/docs/DESIGN.mdArchitectArchitecture decisions
CLAUDE.md (updated)LeadCross-session project context
Task list (internal)LeadImplementation tracking

Tips

  • Phase 1: Gemini (1M context) analyzes the codebase while Claude interacts with the user
  • Phase 2: Agent Teams bidirectional communication allows Researcher (Gemini) and Architect (Codex) to influence each other
  • Phase 3: After plan approval, proceed to parallel implementation with /team-implement
  • Ctrl+T: Toggle task list display
  • Shift+Up/Down: Navigate between teammates (when using Agent Teams)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.