ワンクリックで
pwrl-plan-scope
Gather context, check learnings, validate domain, and bootstrap requirements for planning workflow.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Gather context, check learnings, validate domain, and bootstrap requirements for planning workflow.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Extract, classify, deduplicate, structure, and save learnings from code, commits, tasks, and documentation
Create structured implementation plans with three tiers (Fast/Standard/Deep). Pure skill pipeline orchestrator—no agent routing.
Review code changes through 4-phase micro-skill pipeline (scope, prepare, analyze, report)
Execute implementation work efficiently through 4-phase micro-skill pipeline
Verify repository state and confirm session completion before committing.
Create a clear session commit with state and next steps. Orchestrates checkpoint and commit micro-skills, optionally chains to pwrl-learnings.
| name | pwrl-plan-scope |
| description | Gather context, check learnings, validate domain, and bootstrap requirements for planning workflow. |
| argument-hint | [task description, requirements doc, or goal to plan] |
Purpose: Entry point to the planning workflow. Gathers context, checks existing plans and learnings, validates domain, and returns a scoped context object that downstream skills (pwrl-plan-research, pwrl-plan-design, pwrl-plan-generate) consume.
ask_user_question extension for all user-facing decisions.After completing the workflow, produce a scoped context block (as markdown) with this schema:
scope-id: YYYY-MM-DD-NNN-scope
domain: software | non-software
status: confirmed
interactionMode: detailed | smart | yolo
# Scoped Context
## Problem
[Clear statement of the problem frame]
## Intended Behavior
[Description of desired outcome]
## Success Criteria
- [Criterion 1]
- [Criterion 2]
## Existing Plan
path: docs/plans/...md | null
action: resume | review | archive | delete | create-new | none
## Related Learnings
- docs/learnings/XXX.md — [1-line applicability note]
- (List from docs/learnings/INDEX.md; empty list if none)
## Learning Gaps
- [Gap name] — [Follow-up action via /pwrl-learnings]
## Requirements Found
- docs/brainstorms/XXX.md — [relevant excerpt]
- docs/requirements/XXX.md — [relevant excerpt]
- (Empty list if none found)
This context is passed to pwrl-plan-research (S3) for the research phase.
Search docs/plans/ for existing plans related to the task.
If an existing plan is found:
ask_user_question (multiple choice):
An existing plan was found: "[Plan Title]"
What would you like to do?
- Resume: Continue working on this plan
- Review: Read the plan before deciding
- Archive: Keep for reference, mark as inactive
- Delete: Remove the plan entirely
- Create New: Start fresh
existing_plan.action: resumeexisting_plan.action: archiveexisting_plan.action: deleteexisting_plan.action: create-newIf no existing plan is found:
existing_plan.path: null, existing_plan.action: noneAsk the user to choose their engagement level for this workflow. Use the platform's ask_user_question extension (or equivalent) to present the following three options:
Question: "How would you like to proceed with this workflow?"
Options:
Store the selection in the scoped context (replacing the placeholder in the schema above):
interactionMode: detailed | smart | yolo
Propagation: The interactionMode value flows into pwrl-plan-research, pwrl-plan-design, and pwrl-plan-generate artifacts. Each downstream phase reads the value and adjusts its confirmation behavior:
domain: softwaredomain: non-software
If no existing context was found (no plan, no brainstorms/requirements), bootstrap from the user:
If the user already provided rich context in the initial input, extract these from the input text and confirm with the user via ask_user_question.
Search project learnings (in docs/learnings/INDEX.md) for entries matching the task description. For details on keyword matching, relevance rating, gap identification, and examples, see learnings-gate-logic.md. Add HIGH and MEDIUM relevance learnings to Related Learnings; identify and document any learning gaps.
docs/brainstorms/ for files whose names or content match the task description.
docs/requirements/ for matching files.
Requirements Found listRequirements Found to empty.ask_user_question for confirmation.Seven edge cases commonly encountered during scope gathering: outdated existing plans, multiple plans found, no learnings indexed, missing requirement directories, vague user input, non-software domains, and learning gaps. For handling instructions, decision trees, and examples, see edge-cases.md.
The scoped context object is passed to pwrl-plan-research in markdown format with YAML frontmatter. Downstream skills read it from docs/plans/.scope/YYYY-MM-DD-NNN-scope.md. For detailed schema documentation, field reference, storage conventions, and versioning rules, see state-schema.md.
pwrl-plan/SKILL.mdpwrl-plan-research (S3) — receives scoped contextask_user_question extension for all user decisionsdocs/learnings/INDEX.mddocs/plans/docs/brainstorms/ (optional)docs/requirements/ (optional)