360 Secure SkillHub
360 安全技能中心

st-create-plan

在 Strikethroo 项目中起草新的工作计划:运行脚本定位项目根目录,读取目录约定与前置钩子,分析工作单并循环澄清关键信息,分配下一个计划 ID,按项目自定义模板写入 plans 目录下的计划文件,执行后置钩子并输出结构化计划摘要。

分类:协作
e0ipso
热度 0.66
最近更新 2026-12-01 00:27:24

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add e0ipso/strikethroo/st-create-plan
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
name
st-create-plan
description
Use when the user asks to draft, scope, or write up a new Strikethroo plan. Do not use to refine an existing plan.

st-create-plan

Inputs

The user's request supplies the work order.

Operating Procedure

1. Locate the strikethroo root

Run scripts/find-strikethroo-root.cjs from the user's working directory. If it exits non-zero, stop and ask the user to run npx strikethroo init.

Treat the path it prints as <root> for every subsequent step.

2. Load project context

Read these files, in order:

  • <root>/config/STRIKETHROO.md for this project's directory conventions.
  • <root>/config/hooks/PRE_PLAN.md, and execute its instructions before proceeding.

3. Analyze the work order

Identify:

  • Objective.
  • Scope and explicit boundaries.
  • Success criteria.
  • Dependencies, prerequisites, blockers.
  • Technical requirements and constraints.
  • Blast radius size.

4. Clarification loop

If any critical context is missing, ask the user targeted questions. Keep looping until you have no further questions. Explicitly confirm whether backwards compatibility is required. Never invent answers; never paper over a missing answer.

If the user declines to clarify a blocking question, stop and report the plan as needing clarification. Do not produce a partial plan.

Read <root>/config/shared/clarification-gate.md and follow its clarification cadence.

Read <root>/config/shared/anti-rationalization.md and apply it to this rationalization table:

You catch yourself thinking… …do this instead
"I can deduce the answer." An assumption is not an answer. Ask the question and never invent answers.
"Asking again is annoying." A silent wrong assumption is unrecoverable. Ask.
"The user implied it, so it's settled." An implication is not a confirmation. Surface it as a question and get an explicit answer.

5. Allocate the next plan ID

Run scripts/get-next-plan-id.cjs for the next available plan ID. Compute its zero-padded form for the directory name ({padded-id}--{slug}) and use the unpadded integer in the plan frontmatter.

6. Emit the plan

Read <root>/config/templates/PLAN_TEMPLATE.md. Projects customize this template, so follow it instead of any default plan layout.

Write the plan to <root>/plans/{padded-id}--{slug}/plan-{padded-id}--{slug}.md, conforming to the plan template in both frontmatter and sections. Derive <slug> from the plan summary: lowercase, alphanumeric and hyphens only, no prepositions, no conjunctions, repeated hyphens collapsed, trimmed.

Do not include time estimates, task lists, or code samples.

7. Run post-plan hook

Execute <root>/config/hooks/POST_PLAN.md.

8. Emit the structured summary

Conclude with exactly this block (an update notice, when present, follows separately):

---

Plan Summary:
- Plan ID: [numeric-id]
- Plan File: [absolute-path-to-plan-file]

The summary is consumed by downstream automation; keep the format exact.

Before you write the final response, run scripts/check-for-updates.cjs "<root>" as a separate command using this skill's script path. Keep the user's working directory. Read the one JSON line on stdout. Never pause for permission and never run an update. When notice is present, append its exact text after the structured summary block, or after your final response when this skill emits no summary block. Nothing may follow the notice.

Failure Modes

  • Plan directory already exists for the allocated ID. Determine the next available plan ID by re-running scripts/get-next-plan-id.cjs, then update the frontmatter and paths to match.