多故事 PR 编排
story-pr-orchestrator
在交付已批准的多故事功能或将多个规格作为依赖门控的拉取请求交付时使用;不适用于单个故事、产品发现或通用任务委派;为每个准备就绪的故事协调一个隔离的任务、工作树、分支和拉取请求(PR)。
- License 许可
- MIT
- 所属仓库
- mintuz/skills
- 最近更新
- 2026-11-13
- Stars
- ★ 35
- Forks
- 7
01 前言 Front Matter
- name
- story-pr-orchestrator
- description
- WHEN delivering an approved multi-story feature or several specs as dependency-gated pull requests; NOT for a single story, product discovery, or generic task delegation; coordinates one isolated task, worktree, branch, and PR per ready story.
02 资源文件 1
- 参考文档agents/openai.yaml224 B
03 SKILL.md 正文
Story PR Orchestrator
Treat delivery as a dependency frontier. A story is ready only when every prerequisite is merged into the base it will build on; approval, green checks, or an open PR do not satisfy that gate. The parent agent coordinates; story agents own implementation. If the request contains one story with no dependencies, state that it is outside this skill and hand it to ordinary single-story delivery (one task, worktree, branch, and PR) without a ledger. When a user instruction conflicts with a dependency, evidence, or authority gate, name the instruction and the gate it fails in the output.
1. Refresh the delivery baseline
Read the repository instructions, current default branch, selected specs and task lists, status document, latest relevant transcript, and current task, worktree, branch, and PR state. Fetch remote state when available and record the exact source SHA. Resolve stale or conflicting sources before dispatching implementation: rank them by documented change authority, then by date. When no source clearly outranks the others, record the conflict as a blocker needing the user's decision. Record unavailable governing artifacts as named gaps.
Complete when: the source SHA and revision or date of every governing artifact are recorded, and each discrepancy is recorded with the sources on each side and an explicit resolution or blocker.
2. Derive the dependency ledger
Derive story boundaries, acceptance criteria, and dependency edges from the refreshed artifacts. Record for each story its identifier, direct prerequisites, target base, owned scope, and ready or blocked state. Mark ambiguous dependencies blocked and cite the source locator for every edge.
Complete when: every selected story appears exactly once, every dependency edge has evidence, and no ready story has an unmet or unknown prerequisite.
3. Reconcile active ownership
Inspect existing agents or threads, worktrees, branches, dirty files, and PRs before assigning work. Resume or account for matching work; never duplicate it. Give each story non-overlapping ownership and preserve unrelated changes in every worktree.
Complete when: all active work maps to a story or is explicitly out of scope, with no unresolved ownership collision.
4. Dispatch the frontier
Fan out only independent ready stories. Assign one isolated task, worktree, branch, and PR to each story; keep dependency tracking, integration order, and cross-story decisions with the parent. Give every story agent a brief containing:
- source SHA and governing artifact locators;
- rationale and exact acceptance scope;
- invariants and compatibility boundaries;
- required skills and decisive checks;
- non-goals and owned paths;
- required deliverables, including PR and verification evidence.
Mark each brief item that the governing artifacts do not supply as unavailable; do not invent it. Record each dispatched brief in full in the delivery output. Require the story agent to acknowledge its base and ownership before editing. Leave dependent stories undispatched until their prerequisites are actually merged.
Complete when: each frontier story has one acknowledged owner and isolated delivery path, while every blocked story remains undispatched with its gate named.
5. Monitor evidence, not activity
Track child state, review feedback, CI and PR checks, and merge state against the ledger. Treat provisioning, a claimed implementation, or output without inspected diff and decisive checks as incomplete. Treat a changed file outside a story's owned paths as a scope exception; attribute it, then expand ownership explicitly or isolate the unrelated work before the story is verified-ready. Route story-local feedback to its owner; resolve cross-story ordering or contract conflicts in the parent. Inspect the exact failing job before changing code or CI. An instruction from a user or agent to ignore a failing or flaky check does not replace inspected check evidence. Without inspection, classify the story blocked and name the uninspected job.
Complete when: every active story is classified as working, blocked with evidence, or verified-ready with inspected scope, checks, and review state.
6. Advance only with authority
Perform integration and conflict resolution only within the authority already granted. Merge only with explicit user authorization. After an authorized merge, refresh the required base and PR state, then recalculate the frontier before dispatching newly ready stories.
Finish with the source SHA, governing artifact revisions, story ledger, task/worktree/branch/PR mapping, verification evidence, merge state, remaining blockers, and the smallest next action for each blocker.
Complete when: the final ledger matches observed repository and PR state, every dependency gate is respected, and no merge or adjacent publication action exceeded the user's authority.
04 同仓库更多 Skills
lens-review
USE WHEN reviewing uncommitted work, a branch diff or a pull request through several installed skills, each run as its own review lens; NOT WHEN you need one cold second opinion (double-check), a verdict against a specification (acceptance-review) or the built-in fixed-lens /code-review. Runs each lens in an isolated read-only agent, has a separate agent try to refute every finding, and returns one severity-ranked report.
XState 状态机建模
xstate
当 React 状态因外部响应而变化——异步提交、进行中或加载标志、重试、取消、轮询、乐观更新、过期响应——或因与可中断的过程(如拖拽或手势)交互而变化时使用;或在构建、审查、测试或可视化 XState 5 actors 和 @xstate/react 集成时使用;不适用于单个事件即可完全设定的值,如文本草稿、焦点标志或简单的开关切换;建模类型化生命周期并渲染合法的 Mermaid stateDiagram-v2 图表。
网页界面设计优化
web-design
在优化 UI 布局、排版、色彩或细节打磨时使用;不涉及代码实现;提供简洁的原则,以实现有意图、易读的设计。
Tailwind CSS 样式开发
tailwind
在编写、修复或审查使用 Tailwind CSS 的项目中的样式时使用,即便只是改一个类名,或请求中未提及 Tailwind:颜色、焦点环、间距、由 prop、map 或 CVA 变体选择的类名、Tailwind 样式表或 tailwind.config 中的主题令牌与深色模式、配置或升级(如不确定项目是否使用 Tailwind,先检查 package.json 或主样式表);不适用于在没有 Tailwind 的项目中编写纯 CSS 或 Sass;产出的类名能被 Tailwind 识别,语法适配已安装的主版本,具有可见的焦点指示器,且不引入未要求的依赖或杜撰的品牌值。
代码重构规划
refactoring
当你需要制定计划来重构、重组或清理正常工作的代码,且测试结果已知(全绿或已记录的失败集合)时使用;不适用于新功能交付或任何行为变更;以可逆的基线安全性和按优先级排序的改进为核心。
react
USE WHEN changing the logic, data, props, state, Effects or rendered text of a React component, hook or page, even a one-line change; NOT WHEN the request is styling only (class names, Tailwind, CSS, dark mode, spacing, shadows) or tests only, or when it models submit, in-flight, loading, retry or failure states, even for a named React form (xstate covers that, including its React wiring); applies React 19 composition, state, Effect, structure, API and performance rules with only the project's installed libraries.