Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计通过

plan计划

Agent Skill

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

总安装

517

周安装

22

GitHub Stars

公开资料未说明

下载量

181
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/michael-menard/monorepo --skill plan

简介

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

  • 适用于项目规划、任务分解或资源调度相关的信息检索场景。
  • 支持基于历史数据和约束条件生成可行的工作计划方案。
  • 安装前建议确认权限范围和维护状态,以及是否会触发联网、命令执行或文件读写。
  • plan 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

/plan — Create, Update, or List Plans

Usage

/plan create <file_path> [--prefix=X] [--priority=P1-P5] [--type=X] [--feature-dir=X]
/plan update <plan_slug> [--priority=X] [--status=X] [--prefix=X] [--type=X] [--tags=a,b,c]
/plan list [args]

Subcommands

/plan create — Create a New Plan

Reads a plan from a text/markdown file, extracts the title, generates metadata, writes the canonical file to ~/.claude/plans/, and upserts to the KB in one step.

Step 1 — Parse Arguments

ArgumentRequiredDescription
file_pathyesPath to a text or markdown file containing the plan
--prefix=XnoStory prefix (e.g., APIP, DASH)
--priority=P1-P5noPriority level (default: P3)
--type=XnoPlan type override (feature, refactor, migration, infra, tooling, workflow, audit, spike)
--feature-dir=XnoTarget feature directory

Read the file using the Read tool. The file must exist.

Step 2 — Extract Title

Extract the title from the first # Heading line in the file. If no # heading exists, use the filename (without extension) as the title.

Step 3 — Generate Slug

  1. Take the title
  2. Lowercase it
  3. Replace non-alphanumeric characters with hyphens
  4. Collapse multiple consecutive hyphens into one
  5. Trim leading/trailing hyphens
  6. Truncate to 60 characters
  7. Check uniqueness: call kb_list_plans with limit: 100, scan returned slugs
  8. If collision: append -2, -3, etc. until unique

Step 4 — Infer Plan Type

If --type was not provided, infer from plan text using keyword matching (first match wins):

TypeKeywords
featurenew feature, product feature, user-facing, ui component, gallery, dashboard
refactorrefactor, restructur, clean up, rename, consolidat
migrationmigrat, import, move to, port to, convert
infrainfrastructure, deployment, docker, aws, lambda, terraform, ci/cd
toolingtooling, developer experience, dx, cli, script, automation
workflowworkflow, agent, orchestrat, pipeline, scrum, story generation
auditaudit, coverage, gap analysis, review all, assess
spikespike, investigation, experiment, explore, poc, proof of concept

Default to feature if no keywords match.

Step 5 — Infer Tags

Scan the plan text (case-insensitive) for keyword groups. If any keyword in a group matches, include that tag. Deduplicate and take the first 10.

TagKeywords
databasemigration, schema, postgres, drizzle, sql
frontendreact, component, ui, tailwind, shadcn, page
backendlambda, api, endpoint, handler, server
testingplaywright, vitest, e2e, test coverage, cucumber
knowledge-baseknowledge base, kb_, mcp, embedding
story-generationstory generation, pm-story, pm-generate, elab
performancetoken usage, performance, bottleneck, caching, optimiz
worktreeworktree, branch, git

Step 6 — Extract Summary

Find the first non-heading, non-empty paragraph in the plan text (skip lines starting with # and blank lines). Join consecutive non-blank, non-heading lines into one string. Truncate to 500 characters.

Step 7 — Extract Additional Metadata

  • story_prefix: If --prefix not provided, scan for the first UPPER-NNN pattern (e.g., WKFL-001) and extract the prefix
  • estimated_stories: Scan for patterns like N stories, ~N stories and extract the number
  • feature_dir: If --feature-dir not provided, scan for plans/future/platform/<dir> or plans/future/<dir> patterns

Step 8 — Write Markdown File

Copy the plan content to ~/.claude/plans/{slug}.md using the Write tool.

If the file content did NOT start with a # Title heading, prepend one:

# {title}

{file content}

Step 9 — Upsert to KB

Load the kb_upsert_plan MCP tool via ToolSearch, then call it with:

{
  "plan_slug": "{slug}",
  "title": "{title}",
  "raw_content": "{full markdown content}",
  "summary": "{extracted summary}",
  "plan_type": "{inferred or specified type}",
  "status": "draft",
  "priority": "{specified or P3}",
  "tags": ["{inferred tags}"],
  "source_file": "~/.claude/plans/{slug}.md",
  "story_prefix": "{if found}",
  "feature_dir": "{if found}",
  "estimated_stories": "{if found}"
}

Step 10 — Display Confirmation

Output a summary:

Plan created successfully.

  Slug:     {slug}
  Title:    {title}
  Type:     {plan_type}
  Priority: {priority}
  Status:   draft
  Tags:     {tags, comma-separated}
  Source:   {original file_path}
  File:     ~/.claude/plans/{slug}.md

Next steps:
  /plans                           — verify it appears in the list
  /pm-bootstrap-workflow {slug}    — generate stories from this plan
  /plan update {slug} --priority=P1  — adjust metadata

/plan update — Update Plan Metadata

Lightweight update of an existing plan's metadata fields.

Step 1 — Parse Arguments

ArgumentRequiredDescription
plan_slugyesThe slug of the plan to update
--priority=XnoNew priority (P1-P5)
--status=XnoNew status (draft, active, accepted, stories-created, in-progress, implemented, superseded, archived, blocked)
--prefix=XnoNew story prefix
--type=XnoNew plan type
--tags=a,b,cnoNew tags (comma-separated, replaces existing)
--title=XnoNew title
--feature-dir=XnoNew feature directory (use none to clear)
--estimated-stories=NnoNew estimated stories count (use none to clear)

At least one optional argument must be provided.

Step 2 — Call kb_update_plan

Load the kb_update_plan MCP tool via ToolSearch, then call it with the plan_slug and only the provided fields.

For --tags, split on commas and pass as an array. For fields set to none, pass null to clear them.

Step 3 — Display Confirmation

Plan "{plan_slug}" updated.

  Changed: {list of changed fields with new values}

/plan list — List Plans

Delegates to the /plans skill. Pass through any arguments.

Run: /plans {args}

MCP Tools Used

  • kb_upsert_plan — Insert or update a plan record (load via ToolSearch first)
  • kb_update_plan — Lightweight metadata update (load via ToolSearch first)
  • kb_list_plans — List plans for slug uniqueness check and listing (load via ToolSearch first)

Important: These tools must be loaded via ToolSearch before calling. Use:

  • ToolSearch({query: "select:mcp__knowledge-base__kb_upsert_plan"}) for create
  • ToolSearch({query: "select:mcp__knowledge-base__kb_update_plan"}) for update
  • ToolSearch({query: "select:mcp__knowledge-base__kb_list_plans"}) for list/uniqueness check

Fallback: If kb_upsert_plan or kb_update_plan are not available in the deferred tools list (MCP server may need restart), inform the user:

The kb_upsert_plan / kb_update_plan MCP tools are not currently available in the
deferred tools registry. The MCP server likely needs a restart to pick them up.

To fix: restart the knowledge-base MCP server, then retry this command.

The plan markdown file has been written to ~/.claude/plans/{slug}.md.
You can sync it to the DB later with:
  pnpm tsx apps/api/knowledge-base/src/scripts/migrate-plans-to-kb.ts

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.43%
按下载量换算68

Claude

32.24%
按下载量换算58

Cursor

17.15%
按下载量换算31

Gemini CLI

8.2%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills