一键导入
pwrl-plan-research
Perform local and external research to inform technical design decisions during planning.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Perform local and external research to inform technical design decisions during planning.
用 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-research |
| description | Perform local and external research to inform technical design decisions during planning. |
| argument-hint | [scoped context from pwrl-plan-scope] |
Purpose: Second step in the planning workflow. Accepts scoped context from pwrl-plan-scope, performs local codebase research, detects high-risk areas, and determines if external research is needed. Returns research findings that inform the design phase (pwrl-plan-design).
ask_user_question extension for decisions (e.g., approve external research).This skill expects the scoped context object from pwrl-plan-scope (S2). It contains:
scope-id: YYYY-MM-DD-NNN-scope
domain: software
problem: "..."
intended_behavior: "..."
success_criteria: ["..."]
related_learnings: ["docs/learnings/XXX.md"]
learning_gaps: ["gap_name"]
If the context is not provided, try to bootstrap by searching for recent scope files in docs/plans/.scope/ or prompt the user to run pwrl-plan-scope first.
After completing the workflow, produce a research findings block (in memory or as markdown):
research-id: YYYY-MM-DD-NNN-research
status: complete
# Research Findings
## Patterns Found
- `path/to/pattern/file` — [pattern description]
## High-Risk Detection
- Detected areas: [list]
- Risk Level: HIGH | MEDIUM | LOW
- External Research Recommended: YES | NO
## Tech Stack
- [Framework]: [version]
- [Language]: [version]
- [Database]: [version]
- [Key libraries]: [versions]
## External Research
- Needed: YES | NO
- Guidance: [librarian query or web search suggestion]
- Status: completed | skipped | declined
## Technical Constraints
- [Constraint 1]
- [Constraint 2]
## Findings Summary
[2-3 sentence overview of all findings]
This findings object is passed to pwrl-plan-design (S4) for the design phase.
grep and find:
src/, app/, lib/, services/, api/package.json, composer.json, requirements.txt, go.mod, Cargo.toml, Gemfile, etc.Scan the task description and scoped context for high-risk keywords across six areas: Security, Payments, APIs, Migrations, Complex Logic, and Infrastructure. For details on the risk keyword table, area definitions, and heuristics for assigning risk levels, see high-risk-detection.md.
should_run_external_research = high_risk_detected AND patterns_found_count < 3
should_run_external_research is true:
Generate targeted librarian or web search queries when external research is recommended. For query templates, formatting guidance, and examples for each high-risk area, see external-research-guidance.md.
ask_user_question.Seven edge cases encountered during research: no local patterns found, conflicting local patterns, missing tech stack info, user declining external research on high-risk tasks, multiple high-risk areas, unavailable librarian/search, and overwhelming pattern count. For decision trees, handling strategies, and examples, see edge-cases.md.
Research findings are passed to pwrl-plan-design in markdown format with YAML frontmatter. Downstream skills read it from memory or from docs/plans/.research/YYYY-MM-DD-NNN-research.md. For detailed schema documentation, field reference, storage conventions, and versioning rules, see state-schema.md.
pwrl-plan/SKILL.mdpwrl-plan-scope (S2)pwrl-plan-design (S4) — receives research findingspackage.json, composer.json, etc. for tech stack detection