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

planner-workflow计划员工作流程

Agent Skill

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

总安装

272

周安装

11

GitHub Stars

44

下载量

85
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:planner-workflow(计划员工作流程)
来源仓库:https://github.com/darraghh1/my-claude-setup
仓库路径:skills/planner-workflow
安装命令:
npx skills add https://github.com/darraghh1/my-claude-setup --skill planner-workflow
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/darraghh1/my-claude-setup --skill planner-workflow

简介

planner-workflow 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于根据关键词、任务场景或来源线索进行信息检索与筛选的场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Planner Phase Workflow

You have been assigned a planning task to create a full plan with phases for a feature. Your spawn prompt contains the feature description, requirements, and plan folder path. This skill teaches you how to handle the entire planning process end-to-end.

Why This Workflow Exists

The user experienced planners that guessed at patterns, skipped template sections, and produced phases with generic code blocks. Each step below prevents a specific failure:

StepPrevents
Read templates completelyMissing required sections, rework during review
Create task listLost progress after context compact, skipped phases
Read codebase referencesCode blocks that don't match real project patterns
Checkpoint 1 (plan summary)Building 20 phases on wrong assumptions — hours wasted
Self-validate each phasePlaceholder content and missing TDD discovered late in review

Step 1: Read Templates

The user created these templates specifically so phases don't miss required sections. Skipping template reading causes incomplete phases that require rework during implementation.

Read both templates completely:

  • $CLAUDE_PROJECT_DIR/.claude/skills/create-plan/references/PLAN-TEMPLATE.md
  • $CLAUDE_PROJECT_DIR/.claude/skills/create-plan/references/PHASE-TEMPLATE.md

Every section in these templates is required. Extract the section lists — you'll use them as checklists when writing plan.md and phase files.

Step 2: Create Folder Structure

Folder naming pattern: plans/{YYMMDD}-{feature-name}/

Examples:

  • plans/260220-voice-assistant/
  • plans/260220-notification-system/

Create these items:

  1. Main folder: plans/{YYMMDD}-{feature-name}/
  2. Planning reviews folder: plans/{YYMMDD}-{feature-name}/reviews/planning/
  3. Code reviews folder: plans/{YYMMDD}-{feature-name}/reviews/code/

Step 3: Create Task List

Tasks survive context compacts — skipping this check causes duplicate tasks and lost progress.

Before creating tasks, run TaskList to check if tasks already exist from a previous session or before a compact. If tasks exist:

  1. Read existing tasks with TaskGet for each task ID
  2. Find the first task with status pending or in_progress
  3. Resume from that task — do NOT recreate the task list

If no tasks exist, create them now. Prefix all task subjects with [Plan] to distinguish from the orchestrator's tasks in the shared team task list. Always set owner to your agent name and include structured metadata:

TaskCreate({
  subject: "[Plan] Create plan.md scaffold",
  description: "Write plan.md with all sections from template except Phase Table rows. Include: frontmatter, executive summary, phasing strategy, architectural north star, security requirements, implementation standards, success metrics, decision log, resources.",
  activeForm: "Creating plan.md scaffold",
  metadata: {
    created_by: "{your-agent-name}",
    agent_type: "planner",
    role: "plan",
    attempt: 1,
    parent_task_id: "{orchestrator-task-id-from-spawn-prompt}"
  }
})
// Then: TaskUpdate({ taskId: "{id}", owner: "{your-agent-name}" })

Standard planner tasks:

[Plan] Create plan.md scaffold (all sections except Phase Table content)
[Plan] Read codebase references
[Plan] Checkpoint 1 — report plan summary to orchestrator
[Plan] Create Phase 01 - [Title]
[Plan] Create Phase 02 - [Title]
[...continue for all phases...]
[Plan] Checkpoint 2 — report completion to orchestrator

Mark each task in_progress before starting and completed when done via TaskUpdate.

Step 4: Read Codebase References

Code blocks written from memory often don't match the real codebase — this is the #1 source of phase quality issues. Reading actual files before writing phases ensures patterns are accurate.

Identify which file types the feature will need and read one reference for each:

Feature NeedsReference to Read
Server actionsGlob app/home/[account]/**/*server-actions*.ts → read one
Service layerGlob app/home/[account]/**/*service*.ts → read one
Zod schemasGlob app/home/[account]/**/*.schema.ts → read one
SQL migrations / RLSGlob supabase/migrations/*.sql → read a recent one
React componentsGlob app/home/[account]/**/_components/*.tsx → read one
Page filesGlob app/home/[account]/**/page.tsx → read one
TestsGlob __tests__/**/*.test.ts → read one

Key patterns to extract and use in phase code blocks:

  • Server action pattern: 'use server' + Zod parse + getSession() auth check
  • Account resolution: slug → ID via client.from('accounts').select('id').eq('slug', data.accountSlug).single()
  • Permission check: your RLS helper function (e.g., client.rpc('check_account_access', {...}))
  • Supabase client: createClient() from @/lib/supabase/server
  • Service factory: createXxxService(client: SupabaseClient<Database>) wrapping a private class
  • Import paths: import 'server-only', @/ path alias for project root
  • File naming: _lib/schema/ (singular), server-actions.ts, exports ending in Action
  • TypeScript: consider enums or union types for constants, interface preferred for objects
  • After mutations: revalidatePath('/home/[account]/...')

Pre-Implementation Analysis

Before scoping phases, run through the checklist in .claude/rules/pre-implementation-analysis.md. Its 7 dimensions — existing patterns, blast radius, security surface, performance, maintainability, multi-tenant safety, and upstream compatibility — directly inform phase boundaries and what each phase's Prerequisites & Clarifications section should cover. Findings from this analysis (e.g. "touches auth flow", "new table needs RLS") should surface in the relevant phase files, not be left implicit.

Frontend Guidelines (If Applicable)

If the feature involves React components, Next.js pages, or UI work, invoke this skill BEFORE designing phases:

/vercel-react-best-practices

This loads 57 performance rules across 8 categories. Reference these when designing data fetching patterns, component architecture, and bundle optimisation requirements.

Keep these patterns in mind for every code block you write in phase files. The review step will flag any code blocks that deviate from these codebase patterns.

Step 5: Create plan.md

Write plans/{folder}/plan.md with ALL sections from the template:

  1. YAML Frontmatter (title, status, priority, tags, dates)
  2. Executive Summary (Mission, Big Shift, Deliverables)
  3. Phasing Strategy (Phase Constraints, Phase File Naming)
  4. Phase Table — Header row only, no content rows yet
  5. Architectural North Star (patterns with Core Principle + Enforcement)
  6. Component Library Priority (check your UI library before building custom)
  7. Security Requirements (RLS, Input Validation, Authorization, Error Handling)
  8. Implementation Standards (Test Strategy, Documentation Standard)
  9. Success Metrics & Quality Gates
  10. Global Decision Log (ADRs)
  11. Resources & References

Complete ALL sections except Phase Table rows. Missing sections are caught during review but cost extra review cycles to fix.

Phase Constraints

Phases that exceed one context window cause Claude to lose earlier context mid-implementation, producing incomplete or inconsistent code. Each phase should be atomic enough for implementation in 1 context window (~15KB document, ~2-3 hour focused session).

30 small phases > 5 large phases

Wrong ApproachRight Approach
"Phase 01: Database + API + UI"Split into 3 phases
"Phase 02: Full Feature Implementation"Break into atomic steps
"Phase 03: Testing and Polish"TDD is Step 0 in EACH phase

TDD Note: Both backend and frontend code require full unit tests:

  • Backend (services, schemas, APIs): Unit tests in __tests__/{feature}/
  • Frontend (React/TSX): Component tests using happy-dom (default) and @testing-library/react
  • The default happy-dom environment works for component tests. Only add // @vitest-environment happy-dom if explicitly overriding another environment.
  • Use it.todo('description') for TDD stubs
  • Use vi.hoisted() for mock variables needed before module evaluation
  • For Supabase client mocks, add .then() method for thenable/awaitable pattern
  • Path aliases in tests: use your project's configured path alias (e.g., @/ or ~/)

The test: Can Claude implement this phase without running out of context? If unsure, split it.

Step 6: Checkpoint 1 — Report Plan Summary

After creating plan.md, report to the orchestrator for user review. This is the key benefit of the team pattern — the user can course-correct before you spend time writing 15 phase files.

SendMessage({
  type: "message",
  recipient: "team-lead",
  content: `## Plan Summary — Ready for Review

**Feature**: {feature name}
**Plan folder**: plans/{YYMMDD}-{feature-name}/

### Executive Summary
{1-2 sentence mission}

### Proposed Phase Breakdown
| # | Title | Group | Skill | Dependencies |
|---|-------|-------|-------|-------------|
| 01 | {title} | {group} | {skill} | None |
| 02 | {title} | {group} | {skill} | Phase 01 |
...

### Group Summary
| Group | Phases | Description |
|-------|--------|-------------|
| {name} | P01-P03 | {what this group delivers} |

### Architecture Decisions
- {key decision 1}
- {key decision 2}

### Security Requirements
- {key requirement}

Awaiting approval or feedback before creating phase files.`,
  summary: "Plan summary ready for review"
})

Then WAIT. Do not proceed to Step 7 until the orchestrator responds with approval or feedback.

  • If approved: Continue to Step 7.
  • If changes requested: Revise plan.md and the phase breakdown, then re-send the summary. Repeat until approved.

Step 7: Create Phases (Iterative)

For EACH phase, in order:

7a: Add Row to Phase Table

Edit plan.md to add the phase row:

| **01** | [Title](./phase-01-slug.md) | [group-name] | [Focus] | Pending |

7b: Create Phase File

Write the complete phase file following PHASE-TEMPLATE.md exactly.

File: plans/{folder}/phase-{NN}-{slug}.md

Include skill in Frontmatter — without it, the implementer won't know which skill to invoke and will use generic patterns instead of project-specific ones.

Phase TypeSkill Value
Database schema, migrations, RLSpostgres-expert
Server actions, services, APIserver-action-builder
React forms with validationreact-form-builder
E2E testsplaywright-e2e
React components/pagesvercel-react-best-practices
UI/UX focused workweb-design-guidelines

Example frontmatter:

---
title: "Phase 01 - Database Schema"
skill: postgres-expert
status: pending
group: "auth-system"
dependencies: []
---

Group assignment rules:

  • Connected phases building the same feature/component MUST share a group: name
  • Group names should be descriptive: auth-system, dashboard-ui, data-pipeline
  • Single-phase groups are valid for standalone work
  • Groups define audit boundaries — after all phases in a group complete during implementation, an auditor reviews them together
  • Order groups so dependencies flow top-to-bottom (group A before group B if B depends on A)

For phases spanning multiple concerns, list the primary skill or use comma-separated values:

skill: react-form-builder, vercel-react-best-practices

Required sections (from template):

  1. YAML Frontmatter (title, description, status, dependencies, tags, dates, skill)
  2. Overview (brief description, single-sentence Goal)
  3. Context & Workflow (How the Project Uses This, User Workflow, Problem Being Solved)
  4. Prerequisites & Clarifications (Questions for User with Context/Assumptions/Impact)
  5. Requirements (Functional + Technical)
  6. Decision Log (phase-specific ADRs)
  7. Implementation Steps — Step 0: TDD is first
  8. Verifiable Acceptance Criteria (Critical Path, Quality Gates, Integration)
  9. Quality Assurance (Manual Testing, Automated Testing, Performance Testing, Review Checklist)
  10. Dependencies (Upstream, Downstream, External)
  11. Completion Gate (Sign-off checklist)

Code blocks in phases should match codebase patterns from Step 4 — not memory, not generic examples. Generic code blocks cause the implementer to write code that doesn't follow project conventions, creating rework. If you don't remember the exact pattern, re-read the reference file from Step 4 before writing the code block.

7c: Validate Phase Quality

After creating each phase file, run these validators to catch issues immediately (before review agents get involved):

# Check for skeleton/placeholder content
echo '{"cwd":"."}' | uv run $CLAUDE_PROJECT_DIR/.claude/hooks/validators/validate_no_placeholders.py \
  --directory plans/{folder} --extension .md

# Check TDD tasks appear before implementation tasks
echo '{"cwd":"."}' | uv run $CLAUDE_PROJECT_DIR/.claude/hooks/validators/validate_tdd_tasks.py \
  --directory plans/{folder} --extension .md

# Confirm the phase file was actually created
echo '{"cwd":"."}' | uv run $CLAUDE_PROJECT_DIR/.claude/hooks/validators/validate_new_file.py \
  --directory plans/{folder} --extension .md

If any validator exits non-zero, fix the issue before moving to the next phase. Placeholder content and missing TDD steps are the two most common causes of rework during implementation.

7d: Update Task Status

Mark the phase task as completed, move to next phase.

7e: Repeat

Continue until all phases are created.

Step 8: Checkpoint 2 — Report Completion

After all phases are created and validated, send a full summary to the orchestrator:

SendMessage({
  type: "message",
  recipient: "team-lead",
  content: `## Plan Complete — All Phases Created

**Plan folder**: plans/{YYMMDD}-{feature-name}/
**Phases**: {count} phases created

### Phase Breakdown
| # | Title | Group | Skill | Dependencies | Self-Validation |
|---|-------|-------|-------|-------------|-----------------|
| 01 | {title} | {group} | {skill} | None | Passed |
| 02 | {title} | {group} | {skill} | Phase 01 | Passed |
...

### Dependency Graph
{describe the dependency flow — which phases unlock which}

### Self-Validation Results
- Placeholder check: {pass/fail count}
- TDD ordering: {pass/fail count}
- File creation: {pass/fail count}

Ready for review via /review-plan.`,
  summary: "All phases created — ready for review"
})

Then go idle. The orchestrator will handle spawning review validators and routing feedback.


Resuming After Context Compact

If your context was compacted mid-planning:

  1. TaskList → scan for tasks where you are the owner (your agent name)
  2. Find your in_progress task, or if none, your first pending task
  3. TaskGet on that task → read the description AND metadata
  4. Metadata tells you: which orchestrator task you report to (parent_task_id)
  5. Continue from that task — don't restart the planning process
  6. The task list and metadata are your source of truth, not your memory

Pattern for every work cycle:

TaskList → filter by owner → find in_progress or first pending → TaskGet → continue work → TaskUpdate (completed) → next task

Tasks are the planner's source of truth for progress — not memory, not plan.md alone.

Troubleshooting

Context Window Overflow

Symptom: Planner loses track of phases mid-creation, produces incomplete or inconsistent output.

Cause: Too many phases being created without task tracking, or codebase references consuming too much context.

Fix: Follow Task List pattern in Step 3 — mark tasks complete as you go. For codebase references, read only what you need (one file per type).

Missing Template Sections

Symptom: Review agents flag missing sections in plan.md or phase files.

Cause: Template not read before writing, or sections skipped during creation.

Fix: Re-read the template ($CLAUDE_PROJECT_DIR/.claude/skills/create-plan/references/PLAN-TEMPLATE.md or PHASE-TEMPLATE.md) and add the missing sections. Each section exists because omitting it caused implementation problems.

Code Blocks Don't Match Codebase

Symptom: Review agents flag code blocks as not matching project patterns.

Cause: Code blocks written from memory instead of from codebase references.

Fix: Re-read the reference file from Step 4 for the relevant file type. Copy the actual pattern — function signatures, imports, naming conventions — into the code block.

Orchestrator Not Responding After Checkpoint

Symptom: Sent checkpoint message but no response.

Cause: The orchestrator relays your checkpoint to the user, who may need time to review. This is expected.

Fix: Wait. Do not proceed past a checkpoint without orchestrator approval. The whole point of checkpoints is user course-correction.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.08%
按下载量换算30

Claude

30.46%
按下载量换算26

Cursor

16%
按下载量换算14

Gemini CLI

9.51%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

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

安装前确认

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

来源信息

继续浏览同类 Skills