AgentSkillsCN

aidlc-elaborate

采用 Mob Elaboration 方法,将已批准的意图分解为任务与单元。任务以 Confluence 页面的形式创建,供团队协作评审;结合领域知识与松耦合/高内聚原则重新评估,并提出适合 Jira 转移的 Bolt 分组方案。(触发条件:decompose intent、break down intent、create units、unit decomposition、create tasks、break into units、split intent、aidlc decompose、mob elaboration)

SKILL.md
--- frontmatter
name: aidlc-elaborate
description: Decompose an approved Intent into Tasks and Units using Mob Elaboration. Tasks are created as Confluence pages for collaborative review, re-assessed using domain knowledge and loose coupling/high cohesion principles, with proposed Bolt groupings for Jira transfer. (Triggers - decompose intent, break down intent, create units, unit decomposition, create tasks, break into units, split intent, aidlc decompose, mob elaboration)

AI-DLC Decompose (Mob Elaboration)

Break down an approved Intent into Tasks and Units using the AI-DLC Mob Elaboration ritual. This skill uses parallel agents for efficient Task elaboration. Tasks are created as Confluence pages (child pages under the Intent) for collaborative team review, with proposed Bolt groupings for later Jira transfer. Do not create Bugs unless explicitly requested by a human.

AI-DLC Mob Elaboration

Per AI-DLC methodology: "AI plays a central role in proposing an initial breakdown of the Intent into Tasks, Acceptance Criteria, Units, and Bolt groupings, leveraging domain knowledge, and the principles of loose coupling and high cohesion for rapid parallel execution downstream."

Units are cohesive, self-contained work elements (analogous to Subdomains in DDD). Tasks are grouped into Bolts (rapid iteration cycles) for implementation. Jira artifacts are created later in /aidlc-verify after design and verification.

CRITICAL: Confluence First, Jira Later

This skill has FOUR phases with approval gates between them:

  • Phase 1: Elaborate Tasks and create Confluence pages (Overview → Units → Tasks). NO Jira creation.
  • Phase 2: Team reviews in Confluence, adding inline and footer comments. (Human activity)
  • Phase 3: Comment resolution session - address feedback, update content, resolve comments.
  • Phase 4: Reorganization - regroup Tasks into Units, propose Bolt groupings.

Jira transfer happens in /aidlc-verify after design and verification are complete. DO NOT create Jira issues in this skill. DO NOT skip phases without explicit user approval.

Completion Checklist

IMPORTANT: Create tasks for each step at the start using TodoWrite. Mark tasks complete as you go using TodoWrite. Each task description should reference the corresponding Workflow step.

Phase 1: Task Decomposition

#TaskDepends OnWorkflow ReferenceExit Criteria
1Validate prerequisitesPrerequisites sectionConfluence doc exists and shows "Level 1 Intent: ✅ Approved"
2Gather context1Phase 1 > Step 1Confluence link and Jira project key collected
3Identify theme clusters2Phase 1 > Step 23-5 clusters identified, user confirms
4Spawn task elaboration subagents3Phase 1 > Step 3All subagents launched (one per theme)
5Consolidate subagent results4Phase 1 > Step 4JSON parsed, deps classified with environment field, Tasks right-sized
6Group tasks into Units5Phase 1 > Step 5Tasks assigned to Units based on blocking dependencies, user confirms
7Decouple dependencies6Phase 1 > Step 6Infra deps reviewed (dev vs deploy), Unit chains addressed, easy wins applied
8Plan Bolts per Unit6, 7Phase 1 > Step 7Bolt sequence respects blocking deps, parallel opportunities identified
9Create Confluence pages7, 8Phase 1 > Step 8Overview, Unit, and Task pages created (incl. contract/integration tasks)
10Request team review9Phase 1 > Step 9User notified to begin team review

Phase 3: Comment Resolution (after human review)

#TaskDepends OnWorkflow ReferenceExit Criteria
11Fetch all comments10Phase 3 > Step 10Inline + footer comments fetched for all pages
12Address feedback11Phase 3 > Step 11Each comment analyzed, action determined
13Update content12Phase 3 > Step 12Pages updated to address valid feedback
14Reply to comments13Phase 3 > Step 13Replies posted explaining how feedback was addressed
15Mark comments resolved14Phase 3 > Step 14User informed which comments need manual resolution

Phase 4: Unit Re-assessment

#TaskDepends OnWorkflow ReferenceExit Criteria
16Apply re-assessment criteria15Phase 4 > Step 15Each Unit evaluated against 5 criteria, findings presented
17Regroup tasks if needed16Phase 4 > Step 16Task pages moved between Units, or user confirms no changes
18Update Units Overview17Phase 4 > Step 17Summary table and dependency graph updated
19Update workflow status18Phase 4 > Step 18Status shows "Unit Decomposition: ✅ Complete"

Task Tracking

When this skill is invoked:

  1. Create tasks for the current phase's checklist items using TodoWrite
    • Include a reference to the workflow step in the task description (content field)
    • Set activeForm appropriately (e.g., "Validating prerequisites" for content "Validate prerequisites")
    • Example: "Validate prerequisites (See Prerequisites section)"
  2. Mark task as in_progress when starting each step using TodoWrite (update status)
  3. Mark task complete when the exit criteria are met using TodoWrite (update status)
  4. At phase boundaries, create tasks for the next phase
  5. Verify all phase tasks complete before stopping at a gate

This ensures visibility into progress and prevents incomplete execution.

Example Invocations

  • "Break down the authentication intent into Tasks and Units"
  • "Decompose the billing intent"
  • "Create Units and Tasks for the API migration intent"
  • "Split the approved intent into work items"

References

  • Use @${CLAUDE_PLUGIN_ROOT}/references/planning-shared.md for templates, Bolt guidance, subagent prompts, and Jira tool names.

Prerequisites

Before starting, validate:

  1. Required artifacts

    • Confluence Intent document (ask for link)
    • Fetch using Atlassian MCP to confirm it exists
  2. Required status

    • Check the Workflow Status table in the Confluence doc
    • Verify "Intent" row shows "✅ Approved"
  3. If prerequisites incomplete

    • Offer to run /aidlc-intent first if Confluence doc is missing or not approved
    • Or allow override with explicit confirmation (see Override Pattern in @${CLAUDE_PLUGIN_ROOT}/references/planning-shared.md)

Confluence Page Hierarchy

Tasks are organized as a page hierarchy under the Intent document:

code
Intent Document (existing)
└── Units Overview (child of Intent)
    ├── Unit 1: [Name] (child of Overview)
    │   ├── Task 1.1 (child of Unit)
    │   ├── Task 1.2 (child of Unit)
    │   └── ...
    ├── Unit 2: [Name] (child of Overview)
    │   ├── Task 2.1 (child of Unit)
    │   └── ...
    └── ...

Note: Bolt groupings are documented in the Units Overview page (not as separate pages). During /aidlc-verify, Bolts become Stories in Jira that group Tasks as Sub-tasks.

Workflow

Phase 1: Task Decomposition to Confluence

In this phase, you will:

  • Read from Confluence (to understand the Intent)
  • Spawn subagents to elaborate Tasks in parallel
  • Create Confluence pages for Units Overview, Units, and Tasks
  • Propose initial Bolt groupings on Units Overview
  • Discuss and refine with the user

DO NOT in Phase 1:

  • Create any Jira issues (Sub-epics, Stories, Sub-tasks, etc.)
  • Update Jira labels or fields
  • Modify Confluence workflow status

Step 1: Gather Context

Ask only for what is missing:

  • Approved Confluence Intent doc link (this will be the parent for the Units Overview)
  • Jira project key (for later transfer in /aidlc-verify - no default)
  • Any known constraints, dependencies, or sequencing needs

Step 2: Identify Theme Clusters

Analyze the Intent and identify 3-5 theme clusters for parallel elaboration:

  • Group related functionality/capabilities together
  • Each cluster should have low coupling to other clusters
  • Present the clusters to the user for confirmation

Example output:

code
Based on the Intent, I've identified these theme clusters:
1. **Authentication & Authorization** - Login, SSO, permissions (4 Tasks)
2. **API Layer** - Endpoints, validation, rate limiting (3 Tasks)
3. **Data Migration** - Schema changes, ETL, rollback (3 Tasks)

I'll spawn 3 subagents to elaborate these in parallel.

Step 3: Spawn Task Elaboration Subagents

For each theme cluster, spawn a subagent using the Task tool:

  • Use subagent_type: "task-elaborator" (aidlc plugin agent)
  • Pass the condensed Intent context (not full documents)
  • Spawn all subagents in a single message (parallel execution)

Each subagent will:

  • Elaborate all Tasks for its assigned theme
  • Apply internal Task sizing (combine trivial, split large)
  • Classify dependencies as blocking vs non-blocking
  • Return structured JSON with Tasks, risks, dependencies, cross-cutting concerns

Step 4: Consolidate Subagent Results

After all subagents return:

  1. Parse the JSON results from each subagent
  2. Merge cross-cutting concerns into a unified risk list
  3. Build a dependency graph across all Tasks using @${CLAUDE_PLUGIN_ROOT}/references/dependency-analysis.md
  4. Classify each dependency as blocking or non-blocking (critical for parallelization)
  5. Validate environment field on all dependencies:
    • Each dependency should have environment: "dev" | "deploy" | "both"
    • Flag any infrastructure dependency marked as "dev" or "both" — challenge whether local alternative exists
    • Default: Cloud infrastructure should be "deploy" only
  6. Surface any conflicts or gaps between themes
  7. Right-size Tasks using internal Fibonacci sizing (see dependency-analysis.md)

Step 5: Group Tasks into Units

Organize the elaborated Tasks into cohesive Units:

  • Start with theme boundaries as initial groupings
  • Adjust based on dependency analysis (may merge or split themes)
  • Apply loose coupling, high cohesion principles
  • Each Unit should deliver independent value
  • Surface dependencies between Units

Step 6: Propose Initial Bolt Groupings

For each Unit, propose how Tasks should be grouped into Bolts:

Grouping Criteria (from AI-DLC methodology):

  • Tasks that can be implemented in a single rapid iteration (hours to days)
  • Tasks forming a cohesive, well-defined scope of work
  • Tasks aligned with Unit objectives
  • Consider: A Unit may have multiple Bolts running in parallel or sequentially
  • Each Bolt should be sized between 2 hours and 3 days

Include in Units Overview page:

BoltPhaseLaneTasksDependenciesEst. Duration
Bolt 10A1, 2, 3X hours/days
Bolt 21A4, 5Bolt 1X hours/days

Initial Bolt Execution Plan:

  • Propose initial phase assignments (Phase 0 for foundation/setup, then sequential phases for dependent work)
  • Identify bolt-to-bolt dependencies and assign lanes for parallelism within each phase
  • Include the initial Bolt Execution Plan in Units Overview using the Phase/Lane template from @${CLAUDE_PLUGIN_ROOT}/references/planning-shared.md

Note: These are initial proposals — phases, lanes, and critical path are refined during /aidlc-verify.

See Bolt Planning Guidance in @${CLAUDE_PLUGIN_ROOT}/references/planning-shared.md

Step 6b: Suggest Team Size

After proposing bolt groupings and the initial execution plan, generate a team size recommendation using the Team Size Recommendation Rubric from @${CLAUDE_PLUGIN_ROOT}/references/planning-shared.md.

Steps:

  1. Count peak lanes: Find the maximum number of parallel lanes across all phases
  2. Calculate weighted average lanes: Σ(lanes × phase_duration) / Σ(phase_duration)
  3. Assess coupling level: Evaluate the dependency graph against the coupling criteria (Low / Medium / High)
  4. Identify specialist requirements: Count distinct skill sets needed concurrently from bolt content (e.g., backend, frontend, infrastructure)
  5. Apply the formula:
    • Start with weighted average lanes
    • Apply coupling discount (Low: ×1.0, Medium: ×0.85, High: ×0.70)
    • Cap Phase 0 at 2 lanes and recalculate
    • Round up, then apply bounds (floor = specialist count, ceiling = peak lanes)
  6. Build the recommendation: Fill in the Team Size Recommendation template (metrics table, rationale, scaling options, phase staffing guide)
  7. Present to user: Show the recommendation with scaling options and ask if they want to adjust before creating pages

Include the completed Team Size Recommendation section in the Units Overview page (Step 7) using the template from @${CLAUDE_PLUGIN_ROOT}/references/planning-shared.md.

Step 7: Create Confluence Pages (Parallel)

Create the page hierarchy under the Intent document using parallel sub-agents for efficiency.

Phase A: Create Units Overview (sequential)

  1. Create Units Overview page (child of Intent)
    • Use the Units Overview Template from @${CLAUDE_PLUGIN_ROOT}/references/planning-shared.md
    • Include: Intent name, Unit summary table, Proposed Bolts section, dependency graph, technical decisions, acceptance criteria
    • This must complete first to provide the parent page ID for Units

Phase B: Create Unit + Tasks (parallel, one agent per Unit)

  1. Spawn one sub-agent per Unit using the Task tool:

    • Use subagent_type: "confluence-creator" (aidlc plugin agent)
    • Pass the Units Overview page ID as the parent
    • Pass Unit definition and all Task definitions
    • Spawn all sub-agents in a single message (parallel execution)

    Each sub-agent creates:

    • The Unit page (child of Units Overview)
    • All Task pages for that Unit (children of Unit page)
    • Returns page IDs and URLs for consolidation
  2. Consolidate sub-agent results:

    • Collect all Unit page IDs and Task page IDs
    • Verify all pages were created successfully
    • Report any failures and offer to retry

Step 8: Request Review

Summarize the full decomposition:

  • Tasks grouped by Unit (with links to Confluence pages)
  • Proposed Bolt groupings per Unit
  • Dependencies and risks

Ask explicitly: "The Tasks are now in Confluence for team review. Please add inline and footer comments, then return for comment resolution."


⛔ STOP — Review Gate

Phase 1 is complete. The team will now review the Tasks in Confluence.

This is a human activity that happens outside of Claude.

Team members should:

  • Review each Task page
  • Add inline comments on specific text that needs clarification or changes
  • Add footer comments for general feedback
  • Reply to existing comments to discuss
  • Review the Proposed Bolts section and suggest adjustments

Wait for the user to return and request comment resolution before continuing to Phase 2.


Phase 2: Team Review in Confluence

(Human activity - no Claude involvement)

The team reviews Tasks in Confluence by:

  • Adding inline comments on specific text selections
  • Adding footer comments for general page feedback
  • Replying to comments for discussion
  • Reviewing proposed Bolt groupings

Phase 3: Comment Resolution

This phase is typically run in a NEW Claude session after the team has completed their review.

Step 9: Fetch All Comments

For each page (Units Overview, Unit pages, Story pages):

  1. Fetch inline comments using getConfluencePageInlineComments
  2. Fetch footer comments using getConfluencePageFooterComments
  3. Include replies - comments have threaded replies that must be read

Present a summary of all comments organized by page.

Step 10: Address Feedback

For each comment:

  1. Analyze the feedback and any reply thread
  2. Determine the appropriate action:
    • Update Task content if the feedback is valid
    • Clarify if the feedback is based on a misunderstanding
    • Escalate if the feedback requires a decision beyond scope

Step 11: Update Content

Update the Confluence pages to address feedback:

  • Use updateConfluencePage to modify Task content
  • Update Proposed Bolts section if groupings need adjustment
  • Ensure changes address the specific feedback

Step 12: Reply to Comments

Reply to each comment explaining how it was addressed:

  • Use createConfluenceInlineComment (with parentCommentId) for inline comment replies
  • Use createConfluenceFooterComment (with parentCommentId) for footer comment replies

Step 13: Mark Comments Resolved

After addressing feedback, comments should be marked as resolved. Note: Confluence inline comments have a resolution status; footer comments are resolved by the reply thread.


⛔ STOP — Reorganization Gate

Phase 3 is complete. Before proceeding to design, the team may need to reorganize Tasks into different Units.

Ask: "Are you ready to proceed with the current Unit groupings, or do you need to reorganize Tasks first?"


Phase 4: Unit Re-assessment and Reorganization

This phase applies domain knowledge and architectural principles to validate and refine Unit boundaries and Bolt groupings before proceeding to design.

Step 14: Apply Unit Re-assessment Criteria

Evaluate each Unit against these AI-DLC principles:

CriterionQuestionAction if Failed
Domain AlignmentDoes each Unit map to a coherent subdomain?Split or merge Units to align with domain boundaries
Loose CouplingAre cross-Unit dependencies minimized?Regroup Tasks to reduce dependencies
High CohesionAre related Tasks grouped together?Move Tasks between Units
Independent ValueCan each Unit deliver value independently?Ensure each Unit has a clear deliverable
Parallel ExecutionCan Units be built in parallel by different teams?Resolve blocking dependencies

Present the re-assessment findings to the user:

  • Which Units pass all criteria
  • Which Units need adjustment and why
  • Proposed regrouping (if any)

Step 15: Regroup into Units

If regrouping is needed based on re-assessment:

  1. Move Task pages between Unit pages (update parent page ID)
  2. Rename/repurpose Unit pages where possible (avoid creating new pages unnecessarily)
  3. Create new Unit pages only when necessary
  4. Archive Unit pages that are no longer needed
  5. Document the rationale for Unit boundaries in the Units Overview

Step 16: Refine Bolt Groupings

Review and refine the Proposed Bolts on the Units Overview:

  1. Verify each Bolt forms a cohesive scope (2 hours to 3 days of work)
  2. Check Tasks are grouped logically (related functionality)
  3. Ensure no circular dependencies between Bolts
  4. Verify bolt-to-bolt dependencies are explicitly identified
  5. Verify phase and lane assignments reflect actual dependency chains
  6. Adjust groupings based on re-assessment findings

If adjustments needed:

  • Move Tasks between Bolts
  • Split large Bolts (>3 days of work)
  • Merge small Bolts (<2 hours of work)
  • Reassign phases/lanes if dependency structure changed
  • Update Units Overview with refined Bolt Execution Plan (Phase/Lane table format)

Step 17: Update Units Overview

Update the Units Overview page to reflect the new groupings:

  • Update the Unit summary table
  • Update the Proposed Bolts section with refined groupings
  • Update the dependency graph
  • Update Task counts
  • Add "Unit Boundary Rationale" section documenting why Units are grouped this way

Step 18: Update Workflow Status

Update the Confluence Intent page status table:

  • Set "Unit Decomposition" row to "✅ Complete" with today's date
  • Add note that Units are ready for design phase

Step 19: Chain to Design

Report back with:

  • Summary of Units and their Tasks (with Confluence links)
  • Refined Bolt groupings per Unit
  • Boundary rationale for each Unit
  • Any cross-cutting concerns or dependencies

Ask whether to proceed with Domain Design for any Unit. If yes, invoke /aidlc-design with the Unit context.

Note: Jira transfer happens later in /aidlc-verify after design is complete and documentation has been verified. Final Bolt groupings are confirmed during verify before creating Jira artifacts.

Workflow Chain

  • Previous: /aidlc-intent (Intent documentation)
  • Next: /aidlc-design (Domain and Logical Design)

Definition of Done

Phase 1 (Confluence Pages Created)

  • Theme clusters identified and confirmed with user
  • Subagents spawned in parallel for Task elaboration
  • All subagent results consolidated
  • Units Overview page created as child of Intent
  • Unit pages created as children of Units Overview
  • Task pages created as children of their respective Units
  • All pages include acceptance criteria, dependencies, risks
  • Proposed Bolt groupings documented on Units Overview
  • User notified to begin team review

Phase 2 (Team Review)

  • Team has reviewed all Task pages in Confluence
  • Inline and footer comments added
  • Comment threads include replies/discussion
  • Proposed Bolt groupings reviewed

Phase 3 (Comment Resolution)

  • All comments fetched (inline + footer + replies)
  • Task content updated to address feedback
  • Replies posted explaining how feedback was addressed
  • Comments marked as resolved

Phase 4 (Unit Re-assessment and Reorganization)

  • All Units evaluated against re-assessment criteria (domain alignment, loose coupling, high cohesion, independent value, parallel execution)
  • Tasks regrouped based on domain knowledge and architectural principles
  • Task pages moved between Units as needed
  • Unit pages renamed/repurposed (not duplicated)
  • Bolt groupings refined based on re-assessment
  • Units Overview updated with new groupings, Bolt proposals, and boundary rationale
  • Workflow status table updated in Confluence
  • User informed that next step is /aidlc-design

Note: Jira transfer (Sub-epics → Units, Stories → Bolts, Sub-tasks → Tasks) happens later in /aidlc-verify after design and verification are complete.

Troubleshooting

  • Too many Tasks: Consider splitting into multiple Units or deferring lower-priority Tasks.
  • User wants to skip Confluence phase: Allow override but recommend Confluence for team collaboration.
  • Subagent failure: Report which theme cluster failed and offer to retry or elaborate manually.
  • Single theme identified: Still spawn one subagent for consistency; workflow proceeds normally.
  • Comment resolution in same session: If user wants to resolve comments immediately (no new session), proceed with Phase 3 in the current session.
  • Moving pages between Units: Use updateConfluencePage with a new parentId to move Task pages.
  • Bolt grouping disagreement: Present alternative groupings and let user decide; document rationale for chosen approach.