重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
npx skills add https://github.com/anentrypoint/plugforge --skill planning此技能为结构化工作跟踪构建 ./.prd(产品需求文档)文件。PRD 是一个单一事实来源,它捕获了所有需要完成的项目,并组织成一个用于并行执行的依赖关系图。
关键:PRD 必须在 PLAN 阶段创建,在任何工作开始之前。在完成之前,它会阻塞所有其他工作。创建后即被冻结——只有项目在完成时可以被移除。计划创建后不得添加或重新组织。
在以下情况下使用 planning 技能:
请勿使用,如果任务是琐碎的(单个项目,耗时少于 5 分钟)。
每个 PRD 包含:
{
"id": "1",
"subject": "描述结果的祈使动词",
"status": "pending",
"description": "详细需求",
"blocking": ["2", "3"],
"blockedBy": ["4"],
"effort": "small|medium|large",
"category": "feature|bug|refactor|docs",
"notes": "上下文信息"
}
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
Subject:使用祈使形式 - "修复认证错误"、"添加 webhook 支持"、"整合模板",而不是 "Bug: 认证"、"新功能" 等。
Blocking/Blocked By:映射依赖关系图
"blockedBy": ["1"]"blocking": ["2", "3"]Status:仅三个值
pending - 未开始in_progress - 当前正在进行completed - 全部完成Effort:估算相对范围
small:1-2 个项目,15 分钟内medium:3-5 个项目,30-45 分钟内large:6 个以上项目或 1 小时以上在规划复杂工作时使用此模板:
{
"id": "task-name-1",
"subject": "整合重复的模板构建器",
"status": "pending",
"description": "从 cli-adapter.js 和 extension-adapter.js 中提取共享的 generatePackageJson() 和 buildHooksMap() 逻辑到 TemplateBuilder 方法中。当前的重复导致维护负担。",
"category": "refactor",
"effort": "medium",
"blocking": ["task-name-2"],
"blockedBy": [],
"acceptance": [
"TemplateBuilder 中的单一 generatePackageJson() 方法",
"两个适配器都调用 TemplateBuilder 方法",
"所有 9 个平台生成相同的 package.json 结构",
"适配器代码中没有重复"
],
"edge_cases": [
"没有 package.json 的平台(JetBrains IDE)",
"CLI 与扩展平台的自定义字段"
],
"verification": "所有 9 个构建输出都通过验证,每个适配器代码少于 150 行"
}
创建 PRD 时,请涵盖:
./.prd 写入磁盘.prdpending 状态且没有 blockedBy 约束的项目completed.prd 文件中移除已完成的项目.prd 为空.prd 文件为空(所有项目已移除)pending 或 in_progress 项目关键:PRD 必须位于 ./.prd(当前工作目录根目录)。
/home/user/plugforge/.prd/home/user/plugforge/.prd-temp/home/user/plugforge/build/.prd/home/user/plugforge/.prd.json没有变体,没有子目录,没有扩展名。绝对路径必须解析为 cwd + .prd。
PRD 文件是有效的 JSON,便于解析和操作。
{
"project": "plugforge",
"created": "2026-02-24",
"objective": "统一代理工具和规划基础设施",
"items": [
{
"id": "1",
"subject": "更新 agent-browser 技能文档",
"status": "pending",
"description": "添加包含所有 100 多个命令的完整命令参考",
"blocking": ["2"],
"blockedBy": [],
"effort": "small",
"category": "docs"
},
{
"id": "2",
"subject": "为 PRD 构建创建规划技能",
"status": "pending",
"description": "创建带有依赖关系图的 .prd 文件的新技能",
"blocking": ["3"],
"blockedBy": ["1"],
"effort": "medium",
"category": "feature"
},
{
"id": "3",
"subject": "更新 gm.md 代理指令",
"status": "pending",
"description": "引用新技能,强调 codesearch 而非 cli 工具",
"blocking": [],
"blockedBy": ["2"],
"effort": "medium",
"category": "docs"
}
],
"completed": []
}
波次编排:每波次最多 3 个子代理(通过 Task 工具的 gm:gm 代理)。
Wave 1: Items 1, 2, 3 (all pending, no dependencies)
└─ 3 subagents launched in parallel
Wave 2: Items 4, 5 (depend on Wave 1 completion)
└─ Items 6, 7 (wait for Wave 2)
Wave 3: Items 6, 7
└─ 2 subagents (since only 2 items)
Wave 4: Item 8 (depends on Wave 3)
└─ Completes work
每波次完成后:
.prd 中移除已完成的项目.prd(现在更短了){
"project": "plugforge",
"objective": "向 5 个 CLI 平台添加 hooks 支持",
"items": [
{
"id": "hooks-cc",
"subject": "向 gm-cc 平台添加 hooks",
"status": "pending",
"blocking": ["test-hooks"],
"blockedBy": [],
"effort": "small"
},
{
"id": "hooks-gc",
"subject": "向 gm-gc 平台添加 hooks",
"status": "pending",
"blocking": ["test-hooks"],
"blockedBy": [],
"effort": "small"
},
{
"id": "hooks-oc",
"subject": "向 gm-oc 平台添加 hooks",
"status": "pending",
"blocking": ["test-hooks"],
"blockedBy": [],
"effort": "small"
},
{
"id": "test-hooks",
"subject": "测试所有 5 个平台的 hooks",
"status": "pending",
"blocking": [],
"blockedBy": ["hooks-cc", "hooks-gc", "hooks-oc"],
"effort": "large"
}
]
}
执行:
hooks-cc、hooks-gc、hooks-octest-hooks这将挂钟时间从 45 分钟(顺序执行)减少到约 15 分钟(并行执行)。
不要低估工作量。如果你认为是 3 个项目,列出 8 个。遗漏项目会导致重启。
blocking:此项目阻止了什么?blockedBy:在此项目之前必须完成什么?feature:新功能bug:修复损坏的行为refactor:改进结构而不改变行为docs:文档infra:构建、CI、部署即使一个项目看起来很小,如果它有边界情况,也要明确指出。它们通常占用 50% 的时间。
small:编码 + 测试一次完成medium:可能需要 2 轮改进large:多轮,可能出现意外问题当会话结束时,一个停止钩子会检查 .prd 是否存在并且是否有 pending 或 in_progress 项目。如果是,会话将被阻止。你不能留下未完成的工作。
这强制了有纪律的工作收尾:每个 PRD 必须达到空状态,或者有明确记录的原因暂停。
gm 代理(不可变状态机)在 PLAN 阶段读取 .prd:
.prd 存在且包含有效的 JSONstatus: pending 的项目blockedBy 约束的项目.prd 为空这为复杂项目创建了结构化、可审计的工作流程。
每周安装次数
19
仓库
GitHub 星标数
1
首次出现
2026 年 2 月 26 日
安全审计
安装于
mcpjam19
claude-code19
replit19
junie19
windsurf19
zencoder19
This skill constructs ./.prd (Product Requirements Document) files for structured work tracking. The PRD is a single source of truth that captures every possible item to complete, organized as a dependency graph for parallel execution.
CRITICAL : The PRD must be created in PLAN phase before any work begins. It blocks all other work until complete. It is frozen after creation—only items may be removed as they complete. No additions or reorganizations after plan is created.
Use planning skill when:
Do NOT use if task is trivial (single item under 5 minutes).
Each PRD contains:
{
"id": "1",
"subject": "imperative verb describing outcome",
"status": "pending",
"description": "detailed requirement",
"blocking": ["2", "3"],
"blockedBy": ["4"],
"effort": "small|medium|large",
"category": "feature|bug|refactor|docs",
"notes": "contextual info"
}
Subject : Use imperative form - "Fix auth bug", "Add webhook support", "Consolidate templates", not "Bug: auth", "New feature", etc.
Blocking/Blocked By : Map dependency graph
"blockedBy": ["1"]"blocking": ["2", "3"]Status : Only three values
pending - not startedin_progress - currently workingcompleted - fully doneEffort : Estimate relative scope
small: 1-2 items in 15 minmedium: 3-5 items in 30-45 minlarge: 6+ items or 1+ hoursUse this when planning complex work:
{
"id": "task-name-1",
"subject": "Consolidate duplicate template builders",
"status": "pending",
"description": "Extract shared generatePackageJson() and buildHooksMap() logic from cli-adapter.js and extension-adapter.js into TemplateBuilder methods. Current duplication causes maintenance burden.",
"category": "refactor",
"effort": "medium",
"blocking": ["task-name-2"],
"blockedBy": [],
"acceptance": [
"Single generatePackageJson() method in TemplateBuilder",
"Both adapters call TemplateBuilder methods",
"All 9 platforms generate identical package.json structure",
"No duplication in adapter code"
],
"edge_cases": [
"Platforms without package.json (JetBrains IDE)",
"Custom fields for CLI vs extension platforms"
],
"verification": "All 9 build outputs pass validation, adapters <150 lines each"
}
When creating PRD, cover:
./.prd to disk.prdpending items with no blockedBycompleted.prd file.prd is empty.prd file is empty (all items removed)pending or in_progress itemsCRITICAL : PRD must be at exactly ./.prd (current working directory root).
/home/user/plugforge/.prd/home/user/plugforge/.prd-temp/home/user/plugforge/build/.prd/home/user/plugforge/.prd.jsonNo variants, no subdirectories, no extensions. Absolute path must resolve to cwd + .prd.
PRD files are valid JSON for easy parsing and manipulation.
{
"project": "plugforge",
"created": "2026-02-24",
"objective": "Unify agent tooling and planning infrastructure",
"items": [
{
"id": "1",
"subject": "Update agent-browser skill documentation",
"status": "pending",
"description": "Add complete command reference with all 100+ commands",
"blocking": ["2"],
"blockedBy": [],
"effort": "small",
"category": "docs"
},
{
"id": "2",
"subject": "Create planning skill for PRD construction",
"status": "pending",
"description": "New skill that creates .prd files with dependency graphs",
"blocking": ["3"],
"blockedBy": ["1"],
"effort": "medium",
"category": "feature"
},
{
"id": "3",
"subject": "Update gm.md agent instructions",
"status": "pending",
"description": "Reference new skills, emphasize codesearch over cli tools",
"blocking": [],
"blockedBy": ["2"],
"effort": "medium",
"category": "docs"
}
],
"completed": []
}
Wave Orchestration : Maximum 3 subagents per wave (gm:gm agents via Task tool).
Wave 1: Items 1, 2, 3 (all pending, no dependencies)
└─ 3 subagents launched in parallel
Wave 2: Items 4, 5 (depend on Wave 1 completion)
└─ Items 6, 7 (wait for Wave 2)
Wave 3: Items 6, 7
└─ 2 subagents (since only 2 items)
Wave 4: Item 8 (depends on Wave 3)
└─ Completes work
After each wave completes:
.prd.prd (now shorter){
"project": "plugforge",
"objective": "Add hooks support to 5 CLI platforms",
"items": [
{
"id": "hooks-cc",
"subject": "Add hooks to gm-cc platform",
"status": "pending",
"blocking": ["test-hooks"],
"blockedBy": [],
"effort": "small"
},
{
"id": "hooks-gc",
"subject": "Add hooks to gm-gc platform",
"status": "pending",
"blocking": ["test-hooks"],
"blockedBy": [],
"effort": "small"
},
{
"id": "hooks-oc",
"subject": "Add hooks to gm-oc platform",
"status": "pending",
"blocking": ["test-hooks"],
"blockedBy": [],
"effort": "small"
},
{
"id": "test-hooks",
"subject": "Test all 5 platforms with hooks",
"status": "pending",
"blocking": [],
"blockedBy": ["hooks-cc", "hooks-gc", "hooks-oc"],
"effort": "large"
}
]
}
Execution :
hooks-cc, hooks-gc, hooks-oc in paralleltest-hooksThis cuts wall-clock time from 45 min (sequential) to ~15 min (parallel).
Don't under-estimate work. If you think it's 3 items, list 8. Missing items cause restarts.
blocking: What does THIS item prevent?blockedBy: What must complete before THIS?feature: New capabilitybug: Fix broken behaviorrefactor: Improve structure without changing behaviordocs: Documentationinfra: Build, CI, deploymentEven if an item seems small, if it has edge cases, call them out. They often take 50% of the time.
small: Coding + testing in 1 attemptmedium: May need 2 rounds of refinementlarge: Multiple rounds, unexpected issues likelyWhen session ends, a stop hook checks if .prd exists and has pending or in_progress items. If yes, session is blocked. You cannot leave work incomplete.
This forces disciplined work closure: every PRD must reach empty state or explicitly pause with documented reason.
The gm agent (immutable state machine) reads .prd in PLAN phase:
.prd exists and has valid JSONstatus: pendingblockedBy constraints.prd is emptyThis creates structured, auditable work flow for complex projects.
Weekly Installs
19
Repository
GitHub Stars
1
First Seen
Feb 26, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
mcpjam19
claude-code19
replit19
junie19
windsurf19
zencoder19
GitHub Actions 官方文档查询助手 - 精准解答 CI/CD 工作流问题
49,000 周安装
OpenClaw主机安全加固指南:评估风险、制定计划、分步执行
912 周安装
session-logs 技能:搜索和管理 OpenClaw 会话日志的完整指南
912 周安装
Python Excel自动化:openpyxl库操作XLSX文件教程,创建编辑格式化电子表格
926 周安装
数据分析技能:使用DuckDB高效分析Excel/CSV文件,支持SQL查询与统计摘要
925 周安装
Apple Notes CLI 终端命令行工具 - 在 macOS 终端管理 Apple 笔记
921 周安装
GitHub Copilot for Azure 技能创作指南:规范、令牌预算与渐进式披露
932 周安装