review-plan
/review-plan — Plan Review & Validation
You are an AI assistant performing an independent review of an implementation plan before any code is written. Follow the procedure below precisely.
Step 0: Load Context
- The workspace may contain multiple repositories, each with its own
agents.mdat its root. Identify the relevant repository and read itsagents.md. If it doesn't exist, stop and tell the developer to create one (point them toagents.md.template). - Read
.ai/implementation-plan.md. If it doesn't exist, tell the developer to run/plan-fixfirst. - Read
.ai/issue-analysis.md. If it doesn't exist, tell the developer to run/reproducefirst. - Verify
implementation-plan.mdhas no unresolved open questions. If it does, stop and tell the developer to resolve them first.
Step 1: Completeness Check
- Does the plan actually address the root cause from
issue-analysis.md? - Is there a logical chain from root cause → code change → fix?
- Are there any gaps in reasoning?
Step 2: Approach Review
- Are the correct modules being modified?
- Are changes minimal and scoped?
- Does the approach follow existing codebase patterns? (Verify against
agents.md > Architecture) - Are there simpler alternatives that were overlooked?
Step 3: Test Coverage Review
Does the test plan cover:
- The exact bug scenario
- Edge cases
- Boundary conditions
- Negative inputs
- Regression paths
Are both unit and integration tests planned where appropriate?
Step 4: Security Review
Does the fix touch any of the following? If yes, flag for additional human review:
- Input validation
- Authentication / Authorization
- Session handling
- Data serialization
- Cryptography
Check for injection risks, privilege escalation, and data exposure.
Step 5: Regression Risk Assessment
- Which existing features could break?
- Is the existing test suite for affected components being run?
- Are there implicit dependencies that might not be caught by tests?
Step 6: Breaking Change Review
- If breaking changes are declared, is the migration path clear?
- If none are declared, verify this is actually true by inspecting the plan details.
Step 7: Write the Output Artifact
Write the review to .ai/plan-review-report.md using this exact format:
# Plan Review Report — [Issue #ID]: [Issue Title]
## Verdict: ✅ Approved / ⚠️ Revisions Required
## Implementation Plan Assessment
- **Completeness:** [Does it fully address the root cause?]
- **Correctness:** [Is the proposed logic sound?]
- **Approach:** [Appropriate scope? Follows conventions?]
## Test Coverage Evaluation
- **Bug scenario covered:** Yes / No
- **Edge cases covered:** Yes / No — [gaps identified]
- **Negative tests included:** Yes / No
- **Regression tests planned:** Yes / No
## Security Findings
- **Risk level:** None / Low / Medium / High
- **Details:** [specific findings, if any]
- **Recommendation:** [proceed / require security review]
## Regression Risk
- **Risk level:** Low / Medium / High
- **Affected features:** [list]
- **Mitigation:** [what tests/checks cover this]
## Required Revisions (if any)
1. [Specific, actionable revision with rationale]
2. ...
## Notes for Implementation
[Any additional guidance for the /implement phase]
Important Rules
- Be critical but constructive. The purpose is to catch issues before code is written.
- Never guess. If you cannot determine something from the available artifacts and code, flag it.
- After writing the artifact, inform the developer of the verdict:
- If "Revisions Required": tell the developer to send the report back to
/plan-fixfor a revised plan. - If "Approved": tell the developer they can proceed to
/implement.
- If "Revisions Required": tell the developer to send the report back to
More from tharsanan1/wso2-se-agent-skills
create-tests
Write unit and integration tests for a reproduced bug based on issue-analysis-<issue_number>.md.
45verify-fix
Verify whether a GitHub issue is fixed in the local codebase. User provides a GitHub issue URL, the skill fetches it, extracts reproduction steps, builds the product from source, runs the reproduction steps, and reports whether the issue still exists or not.
43reproduce
Analyze a GitHub issue, reproduce the bug, and produce a structured issue analysis artifact.
42plan-fix
Plan and implement a fix for a reproduced issue using its issue analysis artifact.
18submit-fix
Create PRs for the fix across all changed repos and track everything in a local fix report.
16send-pr
Assemble and submit a pull request with proper metadata, description, and labels.
1