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

plot-approve情节批准

Agent Skill

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

总安装

396

周安装

17

GitHub Stars

2

下载量

139
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:plot-approve(情节批准)
来源仓库:https://github.com/eins78/skills
仓库路径:skills/plot-approve
安装命令:
npx skills add https://github.com/eins78/skills --skill plot-approve
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/eins78/skills --skill plot-approve

简介

用于查找、检索和筛选相关信息。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 适合在关键词搜索或任务场景中快速定位候选结果。
  • 使用时可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态,避免触发敏感操作。
  • plot-approve 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Plot: Approve Plan

Merge an approved plan and fan out into implementation branches. This workflow can be run manually (using git and forge CLI), by an AI agent interpreting this skill, or via a workflow script (once available).

Input: $ARGUMENTS is the <slug> of an existing idea.

Example: /plot-approve sse-backpressure

Setup

Add a ## Plot Config section to the adopting project's CLAUDE.md:

## Plot Config
- **Project board:** <your-project-name> (#<number>)  <!-- optional, for `gh pr edit --add-project` -->
- **Branch prefixes:** idea/, feature/, bug/, docs/, infra/
- **Plan directory:** docs/plans/
- **Active index:** docs/plans/active/
- **Delivered index:** docs/plans/delivered/

Model Guidance

StepsMin. TierNotes
1-2. Parse and PR StateSmallGit/gh commands, helper script, state checks
2b. Suggest Tracer BulletMidHeuristic evaluation of plan design and branch structure
3. Merge Plan PRSmallSingle gh command
4. Read and Parse PlanSmallStructured markdown parsing
4b. Branch ConflictsMidCross-referencing multiple plan files
5-8. Create Branches through SummarySmallGit/gh commands, templates

Nearly all steps are mechanical. Steps 2b and 4b require mid-tier reasoning — heuristic evaluation and cross-plan comparison respectively.

1. Parse Input

If $ARGUMENTS is empty or missing:

  • List open plan PRs: gh pr list --json number,title,headRefName --jq '.[] | select(.headRefName | startswith("idea/"))'
  • If exactly one exists, propose: "Found plan <slug>. Approve it?"
  • If multiple exist, list them and ask which one to approve
  • If none exist, explain: "No open plan PRs found. Create one first with /plot-idea <slug>: <title>."

Extract slug from $ARGUMENTS (trimmed, lowercase, hyphens only).

Batch Mode

If the user asks to approve multiple plans at once ("approve all", or lists multiple slugs):

  1. Verify all plan PRs are non-draft or already merged
  2. Merge each plan PR sequentially (step 3)
  3. Create all implementation branches (steps 4-5)
  4. Print a combined summary

This works naturally — loop the single-plan flow for each slug. No special syntax needed.

2. Determine Plan PR State

Run the helper to get plan PR state:

../plot/scripts/plot-pr-state.sh <slug>

Handle each case:

  • Plan PR is a draft: Error — "Plan is still a draft. Mark it ready for review first: gh pr ready <number>"
  • Plan PR is open and non-draft (ready for review): Proceed to merge it (step 3)
  • Plan PR is already merged: That's the approval signal — skip merge, proceed directly to creating impl branches (step 4)
  • Plan PR is closed (not merged): Error — "Plan PR is closed. Reopen it or create a new one."
  • No PR found: Error — "No PR found for branch idea/<slug>. Run /plot-idea <slug>: <title> first."

2b. Suggest Tracer Bullet (optional)

Before merging, check if a tracer bullet might be valuable. This is a suggestion, never a hard gate.

Read the plan file and check for a ### Tracer subsection under ## Branches:

  • If ### Tracer exists with Status: Complete: proceed normally. Mention in summary: "Tracer bullet validated."
  • If ### Tracer exists but incomplete: warn: "This plan has an incomplete tracer bullet. Consider finishing it with the tracer-bullets skill before approving. Proceed anyway?"
  • If no ### Tracer subsection: apply suggestion heuristics:

- Strongly suggest when the ## Design section describes unfamiliar technology, experimental approaches, or patterns without established docs/tutorials - Strongly suggest when the plan has 3+ branches AND they show a natural core-plus-extras decomposition - If heuristic triggers: "Consider using the tracer-bullets skill to validate the architecture first. Add a ### Tracer subsection to the plan, or proceed without one?" - If heuristic does not trigger: proceed silently

Smaller models: Skip heuristic evaluation. Only check for an existing ### Tracer subsection. If present and incomplete, warn. Otherwise proceed silently.

3. Merge Plan PR (if open and non-draft)

gh pr merge <number> --merge --delete-branch

This lands the plan file on main and deletes the idea/<slug> branch.

Default to merge commits to preserve granular commit history (plan refinement steps are valuable context). If the project's CLAUDE.md specifies a different merge strategy, follow that instead.

4. Read and Parse Plan

Pull main to get the (just-merged or previously-merged) plan:

git checkout main
git pull origin main

Find the plan file: ls docs/plans/active/<slug>.md resolves to the date-prefixed file (e.g., docs/plans/YYYY-MM-DD-<slug>.md). Read it and parse the ## Branches section. If the plan has a Sprint: <name> field in its Status section, note the sprint membership for the summary. Expected format:

- `type/name` — description

Each line must have a backtick-quoted branch name (e.g. feature/sse-backpressure) and a description after the dash.

Example — a valid Branches section:

## Branches

- `feature/sse-backpressure` — Handle client disconnects gracefully
- `bug/sse-memory-leak` — Fix connection pool leak on timeout

Parsing rules:

  1. Find the ## Branches section
  2. Check for subsections: ### Tracer and ### Implementation

- If ### Implementation exists, parse branches from that subsection only (skip ### Tracer — tracer branches are managed by the tracer-bullets skill) - If no subsections exist, parse branches directly from ## Branches (original behavior)

  1. For each line starting with `` - \: extract the branch name between backticks, extract the description after `
  2. Skip comment lines (<!--... -->) and blank lines
  3. If no branches are listed (or section is empty/only has the template comment), error: "No branches listed in the plan. Add branches to the ## Branches section before approving."
  4. Validate each branch name starts with a known prefix: feature/, bug/, docs/, infra/

Note: if a pre-approval tracer was completed on the idea/<slug> branch, tracer commits merge to main with the plan PR. Mention in the summary: "Tracer code merged to main with the plan."

4b. Check for Branch Conflicts

Before creating branches, check if any branch name from the ## Branches section already exists in another Draft/Approved plan:

  • Read all active plan files via docs/plans/active/*.md on main (excluding the current plan)
  • For each plan, parse its ## Branches section for branch names
  • If any branch name in the current plan already appears in another plan, warn the user and ask to confirm before proceeding

Also check if any of the branches already exist as remote branches (git ls-remote --heads origin <branch-name>). If so, warn — the branch may be from a previous run of /plot-approve or from unrelated work.

Smaller models: Skip cross-plan branch conflict detection. Only check if the branch already exists on the remote (git ls-remote --heads origin <branch>). Cross-plan overlap detection requires mid-tier reasoning.

5. Create Implementation Branches and PRs

Collect approval metadata once (reuse for all branches):

APPROVED_AT=$(date -u +%Y-%m-%dT%H:%M:%SZ)
APPROVED_BY=$(gh api user --jq '.login')

For each branch in the parsed list (use the APPROVED_AT and APPROVED_BY values collected above):

git checkout -b <type>/<name> origin/main

Update the plan file (date-prefixed) on the branch to reflect the approval:

  1. Change **Phase:** Draft**Phase:** Approved
  2. Insert an ## Approval section immediately after the ## Status block:
## Approval

- **Approved:** <APPROVED_AT>
- **Approved by:** <APPROVED_BY>
- **Assignee:** <APPROVED_BY>

This provides the initial commit needed for PR creation (no empty commits).

git add docs/plans/YYYY-MM-DD-<slug>.md
git commit -m "plot: approve <slug>"
git push -u origin <type>/<name>

gh pr create \
  --draft \
  --assignee @me \
  --title "<description>" \
  --body "$(cat <<'EOF'
## Plan

Part of [<slug>](../blob/main/docs/plans/YYYY-MM-DD-<slug>.md).

---
*Created with `/plot-approve`*
EOF
)"

(Replace YYYY-MM-DD with the actual date prefix from the plan filename.)

Read the ## Plot Config section from CLAUDE.md for the project board name. If configured:

gh pr edit <number> --add-project "<project board name>"

Collect all created PR numbers and URLs.

6. Check for Release Note Requirements

After creating implementation PRs, check for project-specific release note tooling:

  1. Changesets: Does .changeset/config.json exist? If so, the project uses @changesets/cli.
  2. Project rules: Read CLAUDE.md and AGENTS.md for release note instructions (e.g., custom scripts, specific commands).
  3. Custom scripts: Check package.json for release-related scripts (e.g., release, version, changelog).

If tooling is found, note the specific tool for the summary (step 8).

If no tooling is found, skip — the plan's ## Changelog section will be used during /plot-release.

7. Update Plan File on Main

After all branches are created, update the plan file on main (date-prefixed path) to reflect the approval and link the implementation PRs.

  1. Change **Phase:** Draft**Phase:** Approved
  2. Insert an ## Approval section immediately after the ## Status block (same content as step 5):
## Approval

- **Approved:** <APPROVED_AT>
- **Approved by:** <APPROVED_BY>
- **Assignee:** <APPROVED_BY>
  1. In the ## Branches section, append → #<number> to each branch line.

Before:

- `feature/sse-backpressure` — Handle disconnects
- `bug/sse-memory-leak` — Fix connection leak

After:

- `feature/sse-backpressure` — Handle disconnects → #12
- `bug/sse-memory-leak` — Fix connection leak → #13
  1. Update sprint file (if the plan has a Sprint: field): find the [<slug>] item in the sprint file and add an annotation comment:
- [ ] [slug] description <!-- pr: #<number>, status: draft, branch: <type>/<name> -->

If the plan spawns multiple branches, annotate the item with the first (primary) PR.

git checkout main
git add docs/plans/YYYY-MM-DD-<slug>.md docs/sprints/
git commit -m "plot: link implementation PRs for <slug>"
git push

8. Summary

Print:

  • Plan merged: PR # (or "already merged" if it was pre-merged)
  • Implementation PRs created:

- type/name → PR # (URL) - type/name → PR # (URL)

  • If release note tooling was found in step 6: "Remember to add release note entries on each implementation branch (e.g., pnpm exec changeset)."
  • If the plan has a Sprint field: "Part of sprint <sprint-name>."
  • Progress: [] Draft > [x] Approved > [] Delivered > [] Released
  • Suggested next actions:

1. Check out a branch and start implementing: git checkout <type>/<name> 2. When implementation is done: /plot-deliver <slug> - *Alternative:* work on multiple branches in parallel using worktrees

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.4%
按下载量换算46

Claude

32.74%
按下载量换算46

Cursor

20.12%
按下载量换算28

Gemini CLI

9.91%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills