plan-validator/SKILL.md
Validates refactoring plans and architectural changes for security vulnerabilities, circular dependencies, architectural fit, scalability, and long-term maintainability. Use when validating refactoring proposals, module restructuring, architecture changes, or when the user asks to validate or review a technical plan.
npx skillsauth add anahelenasilva/skills plan-validatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Validates technical refactoring plans and architectural changes against critical quality dimensions.
When validating a plan, systematically analyze:
Follow this workflow:
Structure your validation report as:
# Plan Validation Report
## Executive Summary
[2-3 sentences: overall assessment, primary concerns, recommendation to proceed/revise/reject]
## Critical Issues 🔴
[Issues that MUST be addressed before proceeding]
- Issue description with specific examples
- Why it's critical
- Suggested fix
## Warnings 🟡
[Concerns that should be considered and mitigated]
- Concern description
- Potential impact
- Mitigation strategy
## Positive Aspects 🟢
[Improvements and benefits of the plan]
- Benefit description
- Impact on codebase quality
## Detailed Analysis
### Security Assessment
[Findings with specifics]
### Dependency Analysis
[Current vs. proposed dependency graph, circular deps]
### Architectural Alignment
[How it fits/conflicts with current architecture]
### Scalability Impact
[Performance and scaling considerations]
### Maintainability Evaluation
[Long-term health implications]
## Recommendations
1. [Specific, actionable recommendation with rationale]
2. [Specific, actionable recommendation with rationale]
3. [Specific, actionable recommendation with rationale]
## Migration Risks
[Potential issues during implementation]
- Risk with likelihood (High/Medium/Low)
- Mitigation approach
Copy this checklist when validating:
Plan Validation Progress:
- [ ] Plan understood and scope identified
- [ ] Current architecture documented
- [ ] Dependency graph mapped (before/after)
- [ ] Security vulnerabilities assessed
- [ ] Circular dependencies checked
- [ ] Architectural fit evaluated
- [ ] Scalability impact analyzed
- [ ] Maintainability factors reviewed
- [ ] Migration risks identified
- [ ] Recommendations documented
- [ ] Final recommendation provided
User request: "Validate this plan to refactor usecases module to domain"
Your process:
Map the change:
usecases/ contains business logicdomain/ layerDependency analysis:
usecases/domain/ won't introduce circular deps with infrastructureSecurity check:
Architecture evaluation:
Scalability/Maintainability:
Generate structured report with findings
tools
Merges a specified branch into the current branch using pnpm-based verification (typecheck + tests), resolves conflicts, and optionally closes a GitHub issue via gh CLI. Use when the user mentions "Sandcastle", asks to merge a branch and close an issue, or references the Sandcastle merge protocol.
tools
Autonomously implements open GitHub issues labeled "Sandcastle" one at a time using the RALPH workflow (explore, plan, RGR test-first, verify, commit, close). Use when the user says "implement next Sandcastle issue", "process open issues", "run RALPH", or asks to work through the Sandcastle backlog. Assumes pnpm, gh CLI, and git are configured in the current repo.
development
Reviews and refines code on a branch for the Sandcastle project. Use when asked to "review", "clean up", "refine", or "code review" on a branch. Call as `/sandcastle-code-review` to review the current branch, or `/sandcastle-code-review [branch-name]` to review a specific branch. Makes improvements in place — reads the diff, fixes issues, runs tests, commits. Do NOT use for general code questions or reviews outside the Sandcastle project.
development
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.