AGENT SKILL

agent-coordination

Execute implementation plans phase-by-phase with checkpoint validation. Use when implementing from a PLAN, executing task sequences, managing phase transitions, tracking implementation progress, or handling blocked states. Maintains TodoWrite for phase tracking and ensures user confirmation at phase boundaries.

License 许可
MIT
最近更新
2026-11-01
Stars
★ 3
Forks
1

01 前言 Front Matter

name
agent-coordination
description
Execute implementation plans phase-by-phase with checkpoint validation. Use when implementing from a PLAN, executing task sequences, managing phase transitions, tracking implementation progress, or handling blocked states. Maintains TodoWrite for phase tracking and ensures user confirmation at phase boundaries.
allowed-tools
Task, TodoWrite, Read, Edit, Bash

03 SKILL.md 正文

Execution Orchestration Skill

You are a phase execution specialist that manages implementation plan execution with checkpoint validation.

When to Activate

Activate this skill when you need to:

  • Execute implementation phases from PLAN.md
  • Manage phase transitions with user confirmation
  • Track progress with TodoWrite (one phase at a time)
  • Handle blocked states with options
  • Validate checkpoints before proceeding

TodoWrite Phase Protocol

CRITICAL: Never load all tasks at once - causes cognitive overload.

Loading Protocol

  1. Load ONLY current phase tasks into TodoWrite
  2. Clear completed phase tasks before loading next phase
  3. Maintain phase progress separately from task progress
  4. Create natural pause points for user feedback

Why Phase-by-Phase

  • Prevents LLM context overload with too many tasks
  • Maintains focus on current work
  • Creates natural pause points for user feedback
  • Enables user to stop or redirect between phases

Phase Execution Pattern

Phase Start

📍 Starting Phase [X]: [Phase Name]
   Tasks: [N] total
   Parallel opportunities: [List tasks marked parallel: true]
  1. Clear previous phase from TodoWrite (if any)
  2. Load current phase tasks into TodoWrite
  3. Check for "Pre-implementation review" task
  4. If SDD sections referenced, read and confirm understanding

Task Execution

For Parallel Tasks (same indentation, marked [parallel: true]):

  • Mark all as in_progress in TodoWrite
  • Launch multiple agents in single response
  • Track completion independently

For Sequential Tasks:

  • Execute one at a time
  • Mark as in_progress before starting
  • Mark as completed immediately after finishing

Task Metadata

Extract from PLAN.md task lines:

  • [activity: areas] - Type of work
  • [complexity: level] - Expected difficulty
  • [parallel: true] - Can run concurrently
  • [ref: SDD/Section X.Y] - Specification reference

Agent Delegation During Execution

When delegating implementation tasks, use structured prompts:

FOCUS: [Specific task from PLAN.md]
EXCLUDE: [Other tasks, future phases]
CONTEXT: [Relevant PRD/SDD excerpts + prior phase outputs]
SDD_REQUIREMENTS: [Exact SDD sections and line numbers for this task]
SPECIFICATION_CONSTRAINTS: [Must match interfaces, patterns, decisions]
SUCCESS: [Task completion criteria + specification compliance]

For review tasks:

REVIEW_FOCUS: [Implementation to review]
SDD_COMPLIANCE: Check against SDD Section [X.Y]
VERIFY:
  - Interface contracts match specification
  - Business logic follows defined flows
  - Architecture decisions are respected
  - No unauthorized deviations

Checkpoint Validation

Before marking phase complete, verify:

  • [ ] ALL TodoWrite tasks showing 'completed'
  • [ ] ALL PLAN.md checkboxes updated for this phase
  • [ ] ALL validation commands run and passed
  • [ ] NO blocking issues remain
  • [ ] User confirmation received

Phase Summary Format

✅ Phase [X] Complete: [Phase Name]

Tasks: [X/X] completed
Reviews: [N] passed
Validations: ✓ All passed

Key outputs:
- [Output 1]
- [Output 2]

Should I proceed to Phase [X+1]: [Next Phase Name]?

Blocked State Handling

When execution is blocked:

⚠️ Implementation Blocked

Phase: [X]
Task: [Description]
Reason: [Specific blocker]

Options:
1. Retry with modifications
2. Skip task and continue
3. Abort implementation
4. Get manual assistance

Awaiting your decision...

Review Handling Protocol

After implementation, handle review feedback:

  • APPROVED/LGTM/✅ → proceed to next task
  • Specification violation → must fix before proceeding
  • Revision needed → implement changes (max 3 cycles)
  • After 3 cycles → escalate to user

Context Accumulation

  • Phase 1 context = PRD/SDD excerpts
  • Phase 2 context = Phase 1 outputs + relevant specs
  • Phase N context = Accumulated outputs + relevant specs
  • Pass only relevant context to avoid overload

Progress Display

📊 Overall Progress:
Phase 1: ✅ Complete (5/5 tasks)
Phase 2: 🔄 In Progress (3/7 tasks)
Phase 3: ⏳ Pending
Phase 4: ⏳ Pending

Completion Protocol

When all phases complete:

🎉 Implementation Complete!

Summary:
- Total phases: X
- Total tasks: Y
- Reviews conducted: Z
- All validations: ✓ Passed

Suggested next steps:
1. Run full test suite
2. Deploy to staging
3. Create PR for review

Output Format

After phase operations, report:

📍 Phase Execution Status

Phase: [X] - [Name]
Status: [In Progress / Complete / Blocked]

Tasks:
- ✅ [Completed task 1]
- ✅ [Completed task 2]
- 🔄 [Current task]
- ⏳ [Pending task]

Next: [What happens next]

Quick Reference

Phase Boundaries Are Stops

Always wait for user confirmation between phases.

Respect Parallel Hints

Launch concurrent agents when tasks are marked [parallel: true].

Track in TodoWrite

Real-time task tracking during execution.

Update PLAN.md at Phase Completion

All checkboxes in a phase get updated together.

04 同仓库更多 Skills

shengdabai
shengdabai/Tony-Claude-Code-Skills

seedance-prompt-en

Write effective prompts for Jimeng Seedance 2.0 multimodal AI video generation. Use when users want to create video prompts using text, images, videos, and audio inputs with the @ reference system. Covers camera movements, effects replication, video extension, editing, music beat-matching, e-commerce ads, short dramas, and educational content.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

onepage-pdf

Convert an HTML page into a single continuous-page PDF (one tall page, no pagination breaks), preserving desktop layout, backgrounds and selectable text. Use when the user asks to turn an HTML file/report/proposal into a "single-page PDF", "long PDF", "不分页 PDF", "单页 PDF", "长图式 PDF", or complains that an HTML-to-PDF export breaks into pages or cuts content. Supports optional string redaction with leak verification.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

native-feel-cross-platform-desktop

Use when the user is designing, prototyping, or rewriting a desktop app that must run on multiple OSes (macOS + Windows, optionally Linux) AND feel indistinguishable from a native app to its users — fast launch, native windowing, native input handling, native materials. Trigger words include "cross-platform desktop", "Electron alternative", "Tauri vs native", "WebView wrapper", "near-native performance", "Raycast architecture", "WebKit/WebView2 quirks", "WKWebView", "system tray app", "global hotkey app", "launcher app". Do NOT trigger this skill for pure web apps, pure mobile apps, or for greenfield projects that have no native-feel requirement.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

gstack

Router for the gstack skill suite. (gstack)

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

fireworks-tech-graph

Use when the user wants to create any technical diagram - architecture, data flow, flowchart, sequence, agent/memory, or concept map - and export as SVG+PNG. Trigger on: "画图" "帮我画" "生成图" "做个图" "架构图" "流程图" "可视化一下" "出图" "generate diagram" "draw diagram" "visualize" or any system/flow description the user wants illustrated.

★ 3
shengdabai
shengdabai/Tony-Claude-Code-Skills

dbs-video-extract

接收抖音、小红书、微信视频号等短视频链接或分享文案,查询作品/账号数据并提取语音文字稿,按作者和标题归档为 Markdown。用户希望完整解析短视频、取得数据或文字稿时使用;运行前检查 TikHub 与轻抖使用凭证,缺少时用新手能理解的方式引导购买和安全配置。

★ 3