Team builder

From 5throck/ai-workspace-standards · View interactive version

Team builder is an AI agent skill from the GitHub repository 5throck/ai-workspace-standards. Guides the Engagement Leader through building a new AI agent team for any consulting domain. Covers requirements interview, web benchmarking, current team diagnosis, proposal generation, and user approval gate. Outputs an approved proposal JSON for scripts/team-builder.ts to execute. Triggered by: "

How to use this skill

Skill file

Overview

Two-layer architecture:

Never proceed to script execution without explicit user approval at Step 5.


Step 1: Requirements Interview

Conduct a structured interview with the user. Collect all of the following before proceeding:

| Question | Purpose |

|----------|---------|

| What is the primary domain/purpose of the new team? | Scope benchmarking |

| What types of projects will this team handle? | Team structure reference |

| Expected team scale (number of agents)? | Budget/tier planning |

| Required expertise areas? | Specialist identification |

| Are there existing agents to retain, convert, or delete? | Change scope |

| What quality/delivery standards must the team meet? | Workflow design criteria |

Do not proceed to Step 2 until all six questions are answered. Summarize requirements back to the user for confirmation before moving on.


Step 2: Benchmarking

Use web search tools to research industry-standard team structures matching the user's requirements.

Benchmarking quality criteria:

Source validation checklist (verify each before citing):

  1. Publication date within 5 years of current date
  2. Official organizational domain (e.g., mckinsey.com, gartner.com) or peer-reviewed journal with DOI
  3. Primary source preferred — if only a secondary citation is available, note the original source explicitly

Benchmarking deliverable format:

Reference Team A — [Source]
  Roles: [list]
  Hierarchy: [structure]
  Fit score: [X/5 per criterion]
  Typical skills required: [list]

Reference Team B — [Source]
  ...

Select the best-fit reference (highest total score) and document the rationale.


Step 3: Current Team State Diagnosis

Before proposing any changes, map the current team state by reading existing agent and skill files.

  1. Agent inventory: List all agents/*.md files — name, formal_name, tier, phases, required_skills, status
  2. Skill inventory: List all skills/*/SKILL.md files — name, owner, status, prerequisites
  3. Dependency map: For each agent to be deleted or converted, identify:
  1. Proactive skill transfer plan: Before any deletion, assign each skill to a valid remaining or new agent

Step 4: Proposal Generation

Generate a structured proposal document covering all planned changes.

Proposal must include:

4a. Team Comparison Table

| | Current | Proposed | Change Type |

|--|---------|----------|-------------|

| Agent Name | existing role | new role | Create / Convert / Delete / Keep |

4b. Agent Change Details

For each change:

4c. Skill Change Plan

4d. Workflow Design

4e. Benchmarking Evidence

4f. Change History Entry


Step 5: User Approval Gate ⛔ MANDATORY STOP

Present the full proposal to the user. Display:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
TEAM BUILDER — PROPOSAL READY FOR REVIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
[Display full proposal from Step 4]

Agents to CREATE : N
Agents to CONVERT: N
Agents to DELETE : N
Skills to CREATE : N
Skills to REASSIGN: N

To execute: reply "approve"
To revise:  reply with specific change requests
To cancel:  reply "cancel"
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

DO NOT proceed to script execution until the user explicitly approves.

On approval:

  1. Save proposal as memory/team-builder-proposal-YYYY-MM-DD.json (JSON format matching the TeamBuilderProposal schema in scripts/team-builder.ts)
  2. Instruct the user to run: bun scripts/team-builder.ts memory/team-builder-proposal-YYYY-MM-DD.json
  3. Do NOT run the script directly. Always wait for the user to execute the command above explicitly.

Proposal JSON Schema

The saved JSON must conform to this structure:

{
  "version": "1.0.0",
  "timestamp": "YYYY-MM-DDTHH:mm:ssZ",
  "teamName": "string",
  "benchmarkSources": ["url or citation"],
  "changes": {
    "agentsToCreate": [
      {
        "name": "kebab-case-name",
        "formalName": "Display Name",
        "tier": "high|medium|low",
        "color": "color-name",
        "description": "one-line description",
        "phases": ["1", "2"],
        "handoffTo": ["agent-name"],
        "handoffFrom": ["agent-name"],
        "requiredSkills": ["skill-name"],
        "rationale": "why this agent"
      }
    ],
    "agentsToConvert": [
      {
        "currentFile": "current-name.md",
        "newFile": "new-name.md",
        "newFormalName": "New Display Name",
        "roleChanges": "description of what changes",
        "skillsRetained": ["skill-name"],
        "skillsReplaced": ["old-skill -> new-skill"]
      }
    ],
    "agentsToDelete": [
      {
        "name": "agent-name",
        "skillsToTransfer": [{ "skill": "skill-name", "newOwner": "agent-name" }],
        "rationale": "why deleting"
      }
    ],
    "skillsToCreate": [
      {
        "name": "skill-name",
        "owner": "agent-name",
        "description": "description",
        "prerequisites": ["skill-name"]
      }
    ],
    "skillsToModify": [
      {
        "name": "skill-name",
        "changes": "what to change"
      }
    ],
    "skillsToReassign": [
      {
        "skill": "skill-name",
        "fromOwner": "old-agent",
        "toOwner": "new-agent"
      }
    ],
    "workflowPhases": [
      {
        "phase": 0,
        "name": "Phase Name",
        "lead": "agent-name",
        "supporting": ["agent-name"]
      }
    ]
  },
  "changeHistoryEntry": "one-paragraph summary",
  "approvedBy": "user",
  "approvedAt": "YYYY-MM-DDTHH:mm:ssZ"
}

Output Format


Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.