بنقرة واحدة
plan
Use to turn rough prompts, issues, or transcripts into plan notes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use to turn rough prompts, issues, or transcripts into plan notes.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | plan |
| description | Use to turn rough prompts, issues, or transcripts into plan notes. |
| argument-hint | plan this auth bug | plan this meeting transcript into a proposal | plan .agents/plans/2026-04-25-auth-rewrite-plan.md |
| allowed-tools | Bash, Read, Write, AskUserQuestion, WebSearch |
| user-invocable | true |
| metadata | {"author":"kaushik-gopal","version":"0.4"} |
/plan is the entry point for turning rough inputs into durable plan notes.
Run the classifier helper before doing anything else:
python3 "$SKILL_DIR/scripts/plan_core.py" classify \
--repo-root "$PWD" \
--request "$ARGUMENTS"
The classifier returns:
action - create or refinekind - software, universal, or nullmode - informational mode for the plan noteexisting_plan_path - existing plan file when refiningtarget_path - where the plan should be writtenplans_dir - directory used for new plan notesplans_dir_source - existing-local, repo-guidance, xdg-state, or
explicitcontract_path - durable plan contract referencerouting_path - routing and research rules referencetemplate_path - template reference to followshould_consider_external_researchshould_consider_fanout_researchneeds_clarificationclarification_promptexplanationFor a file-backed request, use:
python3 "$SKILL_DIR/scripts/plan_core.py" classify \
--repo-root "$PWD" \
--request-file path/to/request.txt
If needs_clarification is true, ask clarification_prompt and stop.
Do not guess.
Then tell the user the route in one short line:
Routing to software planning for {request}.Routing to universal planning for {request}.Refining existing plan at {existing_plan_path}.The portable core and canonical CLI live in:
Use it for classification, reusable planning instructions, and validation.
Prompt adapters such as Agent Kombat should own their outer prompt wrapper. When the adapter is producing a durable plan note, splice in shared planning instructions from:
python3 "$SKILL_DIR/scripts/plan_core.py" render-instructions \
--classification classification.json
When the adapter is using planning machinery only for routing and grounding, but the requested output is not a plan note, splice in context-only guidance instead:
python3 "$SKILL_DIR/scripts/plan_core.py" render-context \
--classification classification.json
Use render-context for final-copy artifacts such as executive briefs, PRDs,
memos, critiques, postmortems, release notes, and proposals when the user wants
the deliverable itself rather than a plan for producing it. Do not inject the
plan contract into those prompts.
The plan note contract lives in:
Read it before writing or mutating any plan note.
Use:
Do not fan out for every plan. Use it when the classifier returns
should_consider_fanout_research: true, or when a software request is large,
ambiguous, cross-cutting, risky, or in an unfamiliar/complex codebase.
When fan-out is warranted, gather independent context before writing the plan:
Use references/subagent-prompts.md for the fan-out workflow. If subagents are unavailable or unnecessary, answer the same questions locally. Synthesize only load-bearing findings into the plan; do not paste raw research logs.
Do not automatically run external research for every plan.
If the classifier returns should_consider_external_research: true and the
user did not already provide fresh research, first classify the same request
through the existing research wrapper.
Use a compatible Python interpreter in this repo:
PYTHON_BIN="$(command -v python3.13 || command -v python3)"
Then run:
$PYTHON_BIN skills/research/scripts/research.py --classify $ARGUMENTS
If that research classifier returns a non-empty topic and does not require clarification, run:
$PYTHON_BIN skills/research/scripts/research.py --exec-last30days $ARGUMENTS
Then summarize only the load-bearing takeaways into the plan note's
## Context section. Do not dump raw evidence into the plan.
Before calling a plan note complete, validate it:
python3 "$SKILL_DIR/scripts/plan_core.py" validate --plan-file "$PLAN_PATH"
Validation is intentionally lenient: missing optional sections warn, while
broken frontmatter, wrong kind, missing required sections, and invalid task
checkbox structure fail.
.agents/plans/ in the repo where the skill was invoked.
If none exists, use a repo-local recommended plans directory from guidance
files. If there is no repo-local recommendation, use the classifier's XDG
state fallback.plans_dir if it does not exist.target_path.