Phase 1b: Rename all ~94 commands across 12 plugins to /<noun> <action> sub-command pattern. Git-flow consolidated from 8→5 commands (commit variants absorbed into --push/--merge/--sync flags). Dispatch files, name: frontmatter, and cross-reference updates for all plugins. Phase 2: Design documents for 8 new plugins in docs/designs/. Phase 3: Scaffold 8 new plugins — saas-api-platform, saas-db-migrate, saas-react-platform, saas-test-pilot, data-seed, ops-release-manager, ops-deploy-pipeline, debug-mcp. Each with plugin.json, commands, agents, skills, README, and claude-md-integration. Marketplace grows from 12→20. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
54 lines
1.2 KiB
Markdown
54 lines
1.2 KiB
Markdown
---
|
|
name: sentinel refactor-dry
|
|
description: Preview refactoring changes without applying them
|
|
---
|
|
|
|
# /sentinel refactor-dry
|
|
|
|
Analyze and preview refactoring opportunities without making changes.
|
|
|
|
## Visual Output
|
|
|
|
```
|
|
+----------------------------------------------------------------------+
|
|
| CODE-SENTINEL - Refactor Preview |
|
|
+----------------------------------------------------------------------+
|
|
```
|
|
|
|
## Usage
|
|
```
|
|
/sentinel refactor-dry <target> [--all]
|
|
```
|
|
|
|
**Target:** File path, function name, or "." for current file
|
|
**--all:** Show all opportunities, not just recommended
|
|
|
|
## Skills to Load
|
|
|
|
- skills/refactoring-patterns.md
|
|
- skills/dry-run-workflow.md
|
|
|
|
## Process
|
|
|
|
1. **Scan Target** - Analyze code using patterns from skill
|
|
2. **Score Opportunities** - Rate by Impact/Risk/Effort (see dry-run-workflow skill)
|
|
3. **Output** - Group by recommended vs optional
|
|
|
|
## Output Format
|
|
|
|
```
|
|
## Refactoring Opportunities: <target>
|
|
|
|
### Recommended (High Impact, Low Risk)
|
|
1. **pattern** at lines X-Y
|
|
- Impact: High | Risk: Low
|
|
- Run: `/sentinel refactor <target> --pattern=<pattern>`
|
|
|
|
### Optional
|
|
- Lower priority items
|
|
|
|
### Summary
|
|
- X recommended, Y optional
|
|
- Estimated complexity reduction: Z%
|
|
```
|