Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

team-lifecycle团队生命周期

Agent Skill

team-lifecycle 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

979

周安装

40

GitHub Stars

1,920

下载量

317
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:team-lifecycle(团队生命周期)
来源仓库:https://github.com/catlog22/claude-code-workflow
仓库路径:skills/team-lifecycle
安装命令:
npx skills add https://github.com/catlog22/claude-code-workflow --skill team-lifecycle
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/catlog22/claude-code-workflow --skill team-lifecycle

简介

定义完整的多代理软件开发生命周期阶段与管道流程。

  • 覆盖从需求分析到测试验证的全流程标准化操作。
  • 支持会话恢复、任务链构建与协调执行控制。team-lifecycle 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 适用于 Codex、Claude、Cursor、Gemini CLI 等主流宿主环境。
  • 需定期备份 .workflow/.team 目录以防状态文件损坏。

SKILL.md

Team Lifecycle Orchestrator

Full lifecycle team orchestration for specification, implementation, and testing workflows. The orchestrator drives a multi-agent pipeline through five phases: requirement clarification, session initialization, task chain creation, pipeline coordination (spawn/wait/close loop), and completion reporting.

Key design principles:

  • Inline discuss subagent: Produce roles (analyst, writer, reviewer) call a discuss subagent internally rather than spawning a dedicated discussion agent. This halves spec pipeline beats from 12 to 6.
  • Shared explore cache: All agents share a centralized explorations/ directory with cache-index.json, eliminating duplicate codebase exploration.
  • Fast-advance spawning: After an agent completes, the orchestrator immediately spawns the next agent in a linear chain without waiting for a full coordination cycle.
  • Consensus severity routing: Discussion verdicts route through HIGH/MEDIUM/LOW severity tiers, each with distinct orchestrator behavior (revision, warn-proceed, or pass-through).
  • Beat model: Each pipeline step is a single beat -- spawn agent, wait for result, process output, spawn next. The orchestrator processes one beat per cycle, then yields.

Architecture

+-------------------------------------------------------------+
|  Team Lifecycle Orchestrator                                  |
|  Phase 1 -> Phase 2 -> Phase 3 -> Phase 4 -> Phase 5         |
|  Require    Init       Dispatch   Coordinate   Report         |
+----------+------------------------------------------------+--+
           |
     +-----+------+----------+-----------+-----------+
     v            v          v           v           v
+---------+ +---------+ +---------+ +---------+ +---------+
| Phase 1 | | Phase 2 | | Phase 3 | | Phase 4 | | Phase 5 |
| Require | | Init    | | Dispatch| | Coord   | | Report  |
+---------+ +---------+ +---------+ +---------+ +---------+
     |            |          |          |||          |
  params       session     tasks     agents      summary
                                    /  |  \
                              spawn  wait  close
                              /        |        \
                       +------+   +-------+   +--------+
                       |agent1|   |agent2 |   |agent N |
                       +------+   +-------+   +--------+
                          |           |            |
                     (may call discuss/explore subagents internally)

Phase 4 Beat Cycle (single beat):

  event (phase advance / user resume)
      |
      v
  [Orchestrator]
      +-- read state file
      +-- find ready tasks (pending + all blockers completed)
      +-- spawn agent(s) for ready task(s)
      +-- wait(agent_ids, timeout)
      +-- process results (consensus routing, artifacts)
      +-- update state file
      +-- close completed agents
      +-- fast-advance: immediately spawn next if linear successor
      +-- yield (wait for next event or user command)

Agent Registry

AgentRole FileResponsibilityPattern
analyst~/.codex/agents/analyst.mdSeed analysis, context gathering, DISCUSS-0012.8 Inline Subagent
writer~/.codex/agents/writer.mdDocument generation, DISCUSS-002 to DISCUSS-0052.8 Inline Subagent
planner~/.codex/agents/planner.mdMulti-angle exploration, plan generation2.9 Cached Exploration
executor~/.codex/agents/executor.mdCode implementation2.1 Standard
tester~/.codex/agents/tester.mdTest-fix cycles2.3 Deep Interaction
reviewer~/.codex/agents/reviewer.mdCode review + spec quality, DISCUSS-0062.8 Inline Subagent
architect~/.codex/agents/architect.mdArchitecture consulting (on-demand)2.1 Standard
fe-developer~/.codex/agents/fe-developer.mdFrontend implementation2.1 Standard
fe-qa~/.codex/agents/fe-qa.mdFrontend QA, GC loop2.3 Deep Interaction
All agent role files MUST be deployed to ~/.codex/agents/ before use. Pattern 2.8 = agent internally spawns discuss subagent for multi-perspective critique. Pattern 2.9 = agent uses shared explore cache before work. Pattern 2.3 = orchestrator may use send_input for iterative correction loops.

Subagent Registry

SubagentAgent FileCallable ByPurpose
discuss~/.codex/agents/discuss-agent.mdanalyst, writer, reviewerMulti-perspective critique via CLI tools
explore~/.codex/agents/explore-agent.mdanalyst, planner, any agentCodebase exploration with shared cache

Subagents are spawned by agents themselves (not by the orchestrator). An agent reads the subagent spec, spawns it inline via spawn_agent, waits for the result, and closes it. The orchestrator never directly manages subagent lifecycle.


Fast-Advance Spawning

After wait() returns a completed agent result, the orchestrator checks whether the next pipeline step is a simple linear successor (exactly one task becomes ready, no parallel window, no checkpoint).

Decision table:

ConditionAction
1 ready task, simple linear successor, no checkpointImmediately spawn_agent for next task (fast-advance)
Multiple ready tasks (parallel window)Spawn all ready tasks in batch, then wait on all
No ready tasks, other agents still runningYield, wait for those agents to complete
No ready tasks, nothing runningPipeline complete, proceed to Phase 5
Checkpoint task completed (e.g., QUALITY-001)Pause, output checkpoint message, wait for user

Fast-advance failure recovery: When the orchestrator detects that a fast-advanced agent has failed (wait returns error or timeout with no result):

  1. Record failure in state file
  2. Mark that task as "pending" again in state
  3. Spawn a fresh agent for the same task
  4. If the same task fails 3+ times, pause pipeline and report to user

Consensus Severity Routing

When a produce agent (analyst, writer, reviewer) reports a discuss result, the orchestrator parses the verdict from the agent output.

Output format from agents (written to their artifact, also in wait() result):

DISCUSS_RESULT:
- verdict: <consensus_reached | consensus_blocked>
- severity: <HIGH | MEDIUM | LOW>
- average_rating: <N>/5
- divergences: <summary>
- action_items: <list>
- recommendation: <revise | proceed-with-caution | escalate>
- discussion_path: <path-to-discussion-record>

Routing table:

VerdictSeverityOrchestrator Action
consensus_reached-Proceed normally, fast-advance to next task
consensus_blockedLOWTreat as reached with notes, proceed normally
consensus_blockedMEDIUMLog warning to wisdom/issues.md, include divergence in next task context, proceed
consensus_blockedHIGHCreate revision task (see below) OR pause for user
consensus_blockedHIGH (DISCUSS-006)Always pause for user decision (final sign-off gate)

Revision task creation (HIGH severity, not DISCUSS-006):

// Add revision entry to state file
const revisionTask = {
  id: "<original-task-id>-R1",
  owner: "<same-agent-role>",
  blocked_by: [],
  description: "Revision of <original-task-id>: address consensus-blocked divergences.\n"
    + "Session: <session-dir>\n"
    + "Original artifact: <artifact-path>\n"
    + "Divergences: <divergence-details>\n"
    + "Action items: <action-items-from-discuss>\n"
    + "InlineDiscuss: <same-round-id>",
  status: "pending",
  is_revision: true
}

// Max 1 revision per task. If already revised once, pause for user.
if (stateHasRevision(originalTaskId)) {
  // Pause pipeline, ask user
} else {
  // Insert revision task into state, spawn agent
}

Phase Execution

PhaseFileSummary
Phase 1phases/01-requirement-clarification.mdParse user input, detect mode, frontend auto-detection, gather parameters
Phase 2phases/02-team-initialization.mdCreate session directory, initialize state file, wisdom, explore cache
Phase 3phases/03-task-chain-creation.mdBuild pipeline task chain based on mode, write to state file
Phase 4phases/04-pipeline-coordination.mdMain spawn/wait/close loop, fast-advance, consensus routing, checkpoints
Phase 5phases/05-completion-report.mdSummarize results, list artifacts, offer next steps

Phase 0: Session Resume Check (before Phase 1)

Before entering Phase 1, the orchestrator checks for interrupted sessions:

  1. Scan .workflow/.team/TLS-*/team-session.json for files with status: "active" or status: "paused"
  2. No sessions found -> proceed to Phase 1
  3. Single session found -> resume it (Session Reconciliation below)
  4. Multiple sessions found -> ask user to select

Session Reconciliation (when resuming):

  1. Read state file -> get pipeline state
  2. For each task in state file:

- If status is "in_progress" but no agent is running -> reset to "pending" (interrupted) - If status is "completed" -> verify artifact exists

  1. Rebuild task readiness from reconciled state
  2. Proceed to Phase 4 with reconciled state (spawn ready tasks)

Pipeline Definitions

Spec-only (6 beats)

RESEARCH-001(+D1) -> DRAFT-001(+D2) -> DRAFT-002(+D3) -> DRAFT-003(+D4) -> DRAFT-004(+D5) -> QUALITY-001(+D6)

Each task includes inline discuss. (+DN) = inline discuss round N executed by the agent internally.

Impl-only (3 beats with parallel window)

PLAN-001 -> IMPL-001 -> TEST-001 || REVIEW-001

TEST-001 and REVIEW-001 run in parallel after IMPL-001 completes.

Full-lifecycle (9 beats)

[Spec pipeline: RESEARCH-001 -> DRAFT-001 -> ... -> QUALITY-001]
    |
    CHECKPOINT: pause for user confirmation
    |
PLAN-001(blockedBy: QUALITY-001) -> IMPL-001 -> TEST-001 || REVIEW-001

FE-only (3 beats)

PLAN-001 -> DEV-FE-001 -> QA-FE-001

GC loop: if QA-FE verdict is NEEDS_FIX, dynamically create DEV-FE-002 -> QA-FE-002 (max 2 rounds).

Fullstack (4 beats with dual parallel)

PLAN-001 -> IMPL-001 || DEV-FE-001 -> TEST-001 || QA-FE-001 -> REVIEW-001

REVIEW-001 is blocked by both TEST-001 and QA-FE-001.

Full-lifecycle-FE (12 tasks)

[Spec pipeline] -> PLAN-001 -> IMPL-001 || DEV-FE-001 -> TEST-001 || QA-FE-001 -> REVIEW-001

PLAN-001 blockedBy QUALITY-001. Spec-to-impl checkpoint applies.


Task Metadata Registry

Task IDAgentPhaseDependenciesDescriptionInline Discuss
RESEARCH-001analystspec(none)Seed analysis and context gatheringDISCUSS-001
DRAFT-001writerspecRESEARCH-001Generate Product BriefDISCUSS-002
DRAFT-002writerspecDRAFT-001Generate Requirements/PRDDISCUSS-003
DRAFT-003writerspecDRAFT-002Generate Architecture DocumentDISCUSS-004
DRAFT-004writerspecDRAFT-003Generate Epics and StoriesDISCUSS-005
QUALITY-001reviewerspecDRAFT-0045-dimension spec quality + sign-offDISCUSS-006
PLAN-001plannerimpl(none or QUALITY-001)Multi-angle exploration and planning-
IMPL-001executorimplPLAN-001Code implementation-
TEST-001testerimplIMPL-001Test-fix cycles-
REVIEW-001reviewerimplIMPL-0014-dimension code review-
DEV-FE-001fe-developerimplPLAN-001Frontend implementation-
QA-FE-001fe-qaimplDEV-FE-0015-dimension frontend QA-

Cadence Control

Beat Model

Event-driven pipeline. Each beat = orchestrator processes one event -> spawns agent(s) -> waits -> processes result -> yields.

Beat Cycle (single beat)
======================================================================
  Event                 Orchestrator                  Agents
----------------------------------------------------------------------
  advance/resume --> +- read state file ------+
                     |  find ready tasks       |
                     |  spawn agent(s) --------+--> [Agent A] executes
                     |  wait(ids, timeout) ----+--> [Agent B] executes
                     +- process results -------+         |
                     |  update state file      |         |
                     |  close agents           |         |
                     +- yield -----------------+         |
                                                         |
  next beat <--- result from wait() <-------------------+
======================================================================

  Fast-Advance (skips full yield for linear successors)
======================================================================
  [Agent A] completes via wait()
    +- 1 ready task? simple linear successor?
    |   YES -> spawn Agent B immediately, enter wait() again
    |   NO  -> yield, wait for user/event
======================================================================

Pipeline Beat View

Spec-only (6 beats, was 12 in v3)
-------------------------------------------------------
Beat  1         2         3         4         5         6
      |         |         |         |         |         |
    R1+D1 --> W1+D2 --> W2+D3 --> W3+D4 --> W4+D5 --> Q1+D6
    ^                                                     ^
  pipeline                                            sign-off
   start                                               pause

R=RESEARCH  W=DRAFT(writer)  Q=QUALITY  D=DISCUSS(inline)

Impl-only (3 beats, with parallel window)
-------------------------------------------------------
Beat  1         2              3
      |         |         +----+----+
      PLAN --> IMPL --> TEST || REVIEW    <-- parallel window
                         +----+----+
                           pipeline
                            done

Full-lifecycle (9 beats)
-------------------------------------------------------
Beat 1-6: [Spec pipeline as above]
                                    |
Beat 6 (Q1+D6 done):      CHECKPOINT -- user confirms then resume
                                    |
Beat 7      8           9
 PLAN --> IMPL --> TEST || REVIEW

Fullstack (with dual parallel windows)
-------------------------------------------------------
Beat  1              2                    3                4
      |         +----+----+         +----+----+           |
      PLAN --> IMPL || DEV-FE --> TEST || QA-FE -->  REVIEW
              ^                ^                   ^
         parallel 1       parallel 2          sync barrier

Checkpoints

TriggerPositionBehavior
Spec-to-impl transitionQUALITY-001 completedPause, output "SPEC PHASE COMPLETE", wait for user
GC loop max reachedQA-FE max 2 roundsStop iteration, report current QA state
Pipeline stallNo ready + no runningCheck for missing tasks, report to user
DISCUSS-006 HIGH severityFinal sign-offAlways pause for user decision

Stall Detection

CheckConditionResolution
Agent unresponsivewait() timeout on active agentClose agent, reset task to pending, respawn
Pipeline deadlockNo ready + no running + has pendingInspect blocked_by chains, report blockage to user
GC loop exceededDEV-FE / QA-FE iteration > 2 roundsTerminate loop, output latest QA report
Fast-advance orphanTask is "in_progress" in state but agent closedReset to pending, respawn

Agent Spawn Template

When the orchestrator spawns an agent for a pipeline task, it uses this template:

const agentId = spawn_agent({
  message: `
## TASK ASSIGNMENT

### MANDATORY FIRST STEPS (Agent Execute)
1. **Read role definition**: ~/.codex/agents/<agent-role>.md (MUST read first)
2. Read session state: <session-dir>/team-session.json
3. Read wisdom files: <session-dir>/wisdom/*.md (if exists)

---

## Session
Session directory: <session-dir>
Task ID: <task-id>
Pipeline mode: <mode>

## Scope
<scope-description>

## Task
<task-description>

## InlineDiscuss
<discuss-round-id or "none">

## Dependencies
Completed predecessors: <list of completed task IDs and their artifact paths>

## Constraints
- Only process <PREFIX>-* tasks
- All output prefixed with [<agent-role>] tag
- Write artifacts to <session-dir>/<artifact-subdir>/
- Before each major output, read wisdom files for cross-task knowledge
- After task completion, write discoveries to <session-dir>/wisdom/
- If InlineDiscuss is set, call discuss subagent after primary artifact creation

## Completion Protocol
When work is complete, output EXACTLY:

TASK_COMPLETE:
- task_id: <task-id>
- status: <success | failed>
- artifact: <path-to-primary-artifact>
- discuss_verdict: <consensus_reached | consensus_blocked | none>
- discuss_severity: <HIGH | MEDIUM | LOW | none>
- summary: <one-line summary>
`
})

Session Directory

.workflow/.team/TLS-<slug>-<date>/
+-- team-session.json           # Pipeline state (replaces TaskCreate/TaskList)
+-- spec/                       # Spec artifacts
|   +-- spec-config.json
|   +-- discovery-context.json
|   +-- product-brief.md
|   +-- requirements/
|   +-- architecture/
|   +-- epics/
|   +-- readiness-report.md
|   +-- spec-summary.md
+-- discussions/                # Discussion records (written by discuss subagent)
+-- plan/                       # Plan artifacts
|   +-- plan.json
|   +-- tasks/                  # Detailed task specs
+-- explorations/               # Shared explore cache
|   +-- cache-index.json        # { angle -> file_path }
|   +-- explore-<angle>.json
+-- architecture/               # Architect assessments + design-tokens.json
+-- analysis/                   # Analyst design-intelligence.json (UI mode)
+-- qa/                         # QA audit reports
+-- wisdom/                     # Cross-task knowledge accumulation
|   +-- learnings.md            # Patterns and insights
|   +-- decisions.md            # Architecture and design decisions
|   +-- conventions.md          # Codebase conventions
|   +-- issues.md               # Known risks and issues
+-- .msg/                       # Message bus (UI integration)
|   +-- meta.json               # Pipeline metadata (stages, roles, team_name)
|   +-- messages.jsonl          # NDJSON event log
+-- shared-memory.json          # Cross-agent state

State File Schema (team-session.json)

The state file replaces Claude's TaskCreate/TaskList/TaskGet/TaskUpdate system. The orchestrator owns this file exclusively.

{
  "session_id": "TLS-<slug>-<date>",
  "mode": "<spec-only | impl-only | full-lifecycle | fe-only | fullstack | full-lifecycle-fe>",
  "scope": "<project description>",
  "status": "<active | paused | completed>",
  "started_at": "<ISO8601>",
  "updated_at": "<ISO8601>",
  "tasks_total": 0,
  "tasks_completed": 0,
  "pipeline": [
    {
      "id": "RESEARCH-001",
      "owner": "analyst",
      "status": "pending | in_progress | completed | failed",
      "blocked_by": [],
      "description": "...",
      "inline_discuss": "DISCUSS-001",
      "agent_id": null,
      "artifact_path": null,
      "discuss_verdict": null,
      "discuss_severity": null,
      "started_at": null,
      "completed_at": null,
      "revision_of": null,
      "revision_count": 0
    }
  ],
  "active_agents": [],
  "completed_tasks": [],
  "revision_chains": {},
  "wisdom_entries": [],
  "checkpoints_hit": [],
  "gc_loop_count": 0
}

Message Bus (.msg/)

The .msg/ directory provides pipeline metadata for the frontend UI. This is the same format used by Claude version's team_msg tool with type: "state_update".

meta.json

Pipeline metadata read by the API for frontend display:

{
  "status": "active",
  "pipeline_mode": "<mode>",
  "pipeline_stages": ["role1", "role2", "..."],
  "roles": ["coordinator", "role1", "role2", "..."],
  "team_name": "lifecycle",
  "role_state": {
    "<role>": {
      "status": "completed",
      "task_id": "TASK-ID",
      "_updated_at": "<ISO8601>"
    }
  },
  "updated_at": "<ISO8601>"
}

pipeline_stages by mode:

Modepipeline_stages
spec-only["analyst", "writer", "reviewer"]
impl-only["planner", "executor", "tester", "reviewer"]
fe-only["planner", "fe-developer", "fe-qa"]
fullstack["planner", "executor", "fe-developer", "tester", "fe-qa", "reviewer"]
full-lifecycle["analyst", "writer", "planner", "executor", "tester", "reviewer"]
full-lifecycle-fe["analyst", "writer", "planner", "executor", "fe-developer", "tester", "fe-qa", "reviewer"]

messages.jsonl

NDJSON event log (one JSON object per line):

{"id":"MSG-001","ts":"<ISO8601>","from":"coordinator","to":"coordinator","type":"state_update","summary":"Session initialized","data":{...}}
{"id":"MSG-002","ts":"<ISO8601>","from":"analyst","to":"coordinator","type":"impl_complete","summary":"RESEARCH-001 completed","data":{...}}

Message types: state_update, impl_complete, impl_progress, test_result, review_result, error, shutdown


Session Resume

When the orchestrator detects an existing active/paused session:

  1. Read team-session.json from session directory
  2. For each task with status "in_progress":

- No matching active agent -> task was interrupted -> reset to "pending" - Has matching active agent -> verify agent is still alive (attempt wait with 0 timeout)

  1. Reconcile: ensure all expected tasks for the mode exist in state
  2. Create missing tasks with correct blocked_by dependencies
  3. Verify dependency chain integrity (no cycles, no dangling references)
  4. Update state file with reconciled state
  5. Proceed to Phase 4 to spawn ready tasks

User Commands

During pipeline execution, the user may issue commands:

CommandAction
check / statusOutput execution status graph (read-only, no advancement)
resume / continueCheck agent states, advance pipeline
New session requestPhase 0 detects, enters normal Phase 1-5 flow

Status graph output format:

[orchestrator] Pipeline Status
[orchestrator] Mode: <mode> | Progress: <completed>/<total> (<percent>%)

[orchestrator] Execution Graph:
  Spec Phase: (if applicable)
    [V RESEARCH-001(+D1)] -> [V DRAFT-001(+D2)] -> [>>> DRAFT-002(+D3)]
    -> [o DRAFT-003(+D4)] -> [o DRAFT-004(+D5)] -> [o QUALITY-001(+D6)]
  Impl Phase: (if applicable)
    [o PLAN-001]
      +- BE: [o IMPL-001] -> [o TEST-001] -> [o REVIEW-001]
      +- FE: [o DEV-FE-001] -> [o QA-FE-001]

  V=completed  >>>=running  o=pending  .=not created

[orchestrator] Active Agents:
  > <task-id> (<agent-role>) - running <elapsed>

[orchestrator] Ready to spawn: <task-ids>
[orchestrator] Commands: 'resume' to advance | 'check' to refresh

Lifecycle Management

Timeout Protocol

PhaseTimeoutOn Timeout
Phase 1 (requirements)None (interactive)N/A
Phase 2 (init)60sFail with error
Phase 3 (dispatch)60sFail with error
Phase 4 per agent15 min (spec agents), 30 min (impl agents)Send convergence request via send_input, wait 2 min more, then close
Phase 5 (report)60sOutput partial report

Convergence request (sent via send_input on timeout):

send_input({
  id: <agent-id>,
  message: `
## TIMEOUT NOTIFICATION

Execution timeout reached. Please:
1. Save all current progress to artifact files
2. Output TASK_COMPLETE with status: partial
3. Include summary of completed vs remaining work
`
})

Cleanup Protocol

When the pipeline completes (or is aborted):

// Close all active agents
for (const agentEntry of state.active_agents) {
  try {
    close_agent({ id: agentEntry.agent_id })
  } catch (e) {
    // Agent already closed, ignore
  }
}

// Update state file
state.status = "completed"  // or "aborted"
state.updated_at = new Date().toISOString()
// Write state file

Error Handling

ScenarioDetectionResolution
Agent timeoutwait() returns timed_outsend_input convergence request, retry wait 2 min, then close + reset task
Agent crash / unexpected closewait() returns error statusReset task to pending, respawn agent (max 3 retries)
3+ failures on same taskRetry count in state filePause pipeline, report to user
Fast-advance orphanTask in_progress but no active agent and > 5 min elapsedReset to pending, respawn
Consensus blocked HIGHDISCUSS_RESULT parsed from agent outputCreate revision task (max 1) or pause
Consensus blocked HIGH on DISCUSS-006Same as above but final sign-off roundAlways pause for user
Revision also blockedRevision task returns blocked HIGHPause pipeline, escalate to user
Session file corruptJSON parse errorAttempt recovery from last known good state, or report error
Pipeline stallNo ready + no running + has pendingInspect blocked_by, report blockage details
Unknown agent output formatTASK_COMPLETE not found in wait resultLog warning, attempt to extract status, mark as partial
Duplicate task in stateTask ID already exists during dispatchSkip creation, log warning
Missing dependencyblocked_by references non-existent taskLog error, halt pipeline

Frontend Auto-Detection

During Phase 1, the orchestrator detects whether frontend work is needed:

SignalDetectionPipeline Upgrade
FE keywords in descriptionMatch: component, page, UI, React, Vue, CSS, HTML, Tailwind, Svelte, Next.js, Nuxt, shadcn, design systemimpl-only -> fe-only or fullstack
BE keywords also presentMatch: API, database, server, endpoint, backend, middlewareimpl-only -> fullstack
FE framework in projectDetect react/vue/svelte/next in package.jsonfull-lifecycle -> full-lifecycle-fe

Inline Discuss Protocol (for agents)

Produce agents (analyst, writer, reviewer) call the discuss subagent after completing their primary artifact. The protocol is documented here for reference; each agent's role file contains the specific invocation.

Discussion round mapping:

AgentAfter TaskDiscuss RoundPerspectives
analystRESEARCH-001DISCUSS-001product, risk, coverage
writerDRAFT-001DISCUSS-002product, technical, quality, coverage
writerDRAFT-002DISCUSS-003quality, product, coverage
writerDRAFT-003DISCUSS-004technical, risk
writerDRAFT-004DISCUSS-005product, technical, quality, coverage
reviewerQUALITY-001DISCUSS-006all 5 (product, technical, quality, risk, coverage)

Agent-side discuss invocation (inside the agent, not orchestrator):

// Agent spawns discuss subagent internally
const discussId = spawn_agent({
  message: `
## MANDATORY FIRST STEPS (Agent Execute)
1. **Read agent definition**: ~/.codex/agents/discuss-agent.md (MUST read first)

---

## Multi-Perspective Critique: <round-id>

### Input
- Artifact: <artifact-path>
- Round: <round-id>
- Perspectives: <perspective-list>
- Session: <session-dir>
- Discovery Context: <session-dir>/spec/discovery-context.json

### Execution
Per-perspective CLI analysis -> divergence detection -> consensus determination -> write record.

### Output
Write discussion record to: <session-dir>/discussions/<round-id>-discussion.md
Return verdict summary with: verdict, severity, average_rating, action_items, recommendation.
`
})

const discussResult = wait({ ids: [discussId], timeout_ms: 300000 })
close_agent({ id: discussId })
// Agent includes discuss result in its TASK_COMPLETE output

Shared Explore Protocol (for agents)

Any agent needing codebase context calls the explore subagent. Results are cached in explorations/.

Agent-side explore invocation (inside the agent, not orchestrator):

// Agent spawns explore subagent internally
const exploreId = spawn_agent({
  message: `
## MANDATORY FIRST STEPS (Agent Execute)
1. **Read agent definition**: ~/.codex/agents/explore-agent.md (MUST read first)

---

## Explore Codebase

Query: <query>
Focus angle: <angle>
Keywords: <keyword-list>
Session folder: <session-dir>

## Cache Check
1. Read <session-dir>/explorations/cache-index.json (if exists)
2. If matching angle found AND file exists -> return cached result
3. If not found -> proceed to exploration

## Output
Write JSON to: <session-dir>/explorations/explore-<angle>.json
Update cache-index.json with new entry.
Return summary: file count, pattern count, top 5 files, output path.
`
})

const exploreResult = wait({ ids: [exploreId], timeout_ms: 300000 })
close_agent({ id: exploreId })

Cache lookup rules:

ConditionAction
Exact angle match exists in cache-index.jsonReturn cached result
No matchExecute exploration, cache result
Cache file missing but index has entryRemove stale entry, re-explore

Wisdom Accumulation

Cross-task knowledge accumulation. Orchestrator creates wisdom/ at session init.

Directory:

<session-dir>/wisdom/
+-- learnings.md      # Patterns and insights discovered
+-- decisions.md      # Architecture and design decisions made
+-- conventions.md    # Codebase conventions identified
+-- issues.md         # Known risks and issues flagged

Agent responsibilities:

  • On start: read all wisdom files for cross-task context
  • During work: append discoveries to appropriate wisdom file
  • On complete: include significant findings in TASK_COMPLETE summary

Role Isolation Rules

AllowedProhibited
Agent processes only its own prefix tasksProcessing other agents' tasks
Agent communicates results via TASK_COMPLETE outputDirect agent-to-agent communication
Agent calls discuss/explore subagents internallyAgent modifying orchestrator state file
Agent writes artifacts to its designated directoryAgent writing to other agents' directories
Agent reads wisdom files and shared-memory.jsonAgent deleting or overwriting other agents' artifacts

Orchestrator additionally prohibited: directly write/modify code, call implementation tools, execute analysis/test/review work.


GC Loop (Frontend QA)

For FE pipelines, QA-FE may trigger a fix-retest cycle:

Round 1: DEV-FE-001 -> QA-FE-001
  QA-FE verdict: NEEDS_FIX?
    YES -> Round 2: DEV-FE-002(blocked_by: QA-FE-001) -> QA-FE-002(blocked_by: DEV-FE-002)
    QA-FE-002 verdict: NEEDS_FIX?
      YES -> max rounds reached (2), stop loop, report current state
      NO  -> proceed to next pipeline step
    NO -> proceed to next pipeline step

The orchestrator dynamically adds DEV-FE-NNN and QA-FE-NNN tasks to the state file when a GC loop iteration is needed.


Mode-to-Pipeline Quick Reference

ModeTotal TasksFirst TaskCheckpoint
spec-only6RESEARCH-001None (QUALITY-001 is final)
impl-only4PLAN-001None
fe-only3 (+GC)PLAN-001None
fullstack6PLAN-001None
full-lifecycle10RESEARCH-001After QUALITY-001
full-lifecycle-fe12 (+GC)RESEARCH-001After QUALITY-001

Shared Spec Resources

ResourcePath (relative to skill)Usage
Document Standardsspecs/document-standards.mdYAML frontmatter, naming, structure
Quality Gatesspecs/quality-gates.mdPer-phase quality gates
Product Brief Templatetemplates/product-brief.mdDRAFT-001
Requirements Templatetemplates/requirements-prd.mdDRAFT-002
Architecture Templatetemplates/architecture-doc.mdDRAFT-003
Epics Templatetemplates/epics-template.mdDRAFT-004

Coordinator Role Constraints (Main Agent)

CRITICAL: The coordinator (main agent executing this skill) is responsible for orchestration only, NOT implementation.

  1. Coordinator Does NOT Execute Code: The main agent MUST NOT write, modify, or implement any code directly. All implementation work is delegated to spawned team agents. The coordinator only:

- Spawns agents with task assignments - Waits for agent callbacks - Merges results and coordinates workflow - Manages workflow transitions between phases

  1. Patient Waiting is Mandatory: Agent execution takes significant time (typically 10-30 minutes per phase, sometimes longer). The coordinator MUST:

- Wait patiently for wait() calls to complete - NOT skip workflow steps due to perceived delays - NOT assume agents have failed just because they're taking time - Trust the timeout mechanisms defined in the skill

  1. Use send_input for Clarification: When agents need guidance or appear stuck, the coordinator MUST:

- Use send_input() to ask questions or provide clarification - NOT skip the agent or move to next phase prematurely - Give agents opportunity to respond before escalating - Example: send_input({id: agent_id, message: "Please provide status update or clarify blockers"})

  1. No Workflow Shortcuts: The coordinator MUST NOT:

- Skip phases or stages defined in the workflow - Bypass required approval or review steps - Execute dependent tasks before prerequisites complete - Assume task completion without explicit agent callback - Make up or fabricate agent results

  1. Respect Long-Running Processes: This is a complex multi-agent workflow that requires patience:

- Total execution time may range from 30-90 minutes or longer - Each phase may take 10-30 minutes depending on complexity - The coordinator must remain active and attentive throughout the entire process - Do not terminate or skip steps due to time concerns

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.07%
按下载量换算114

Claude

28.96%
按下载量换算92

Cursor

17.92%
按下载量换算57

Gemini CLI

8.75%
按下载量换算28

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/catlog22/claude-code-workflow --skill team-lifecycle 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills