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
|
|
description: Apply refactoring patterns to improve code structure and maintainability
|
|
---
|
|
|
|
# /sentinel refactor
|
|
|
|
Apply refactoring transformations to specified code.
|
|
|
|
## Visual Output
|
|
|
|
```
|
|
+----------------------------------------------------------------------+
|
|
| CODE-SENTINEL - Refactor |
|
|
+----------------------------------------------------------------------+
|
|
```
|
|
|
|
## Usage
|
|
```
|
|
/sentinel refactor <target> [--pattern=<pattern>]
|
|
```
|
|
|
|
**Target:** File path, function name, or "." for current context
|
|
**Pattern:** Specific refactoring pattern (optional)
|
|
|
|
## Skills to Load
|
|
|
|
- skills/refactoring-patterns.md
|
|
|
|
## Process
|
|
|
|
1. **Analyze Target** - Parse code, identify opportunities from skill, check dependencies
|
|
2. **Propose Changes** - Show before/after diff, explain improvement, list affected files
|
|
3. **Apply (with confirmation)** - Make changes, update references, run tests
|
|
|
|
## Output Format
|
|
|
|
```
|
|
## Refactoring: <pattern>
|
|
|
|
### Target
|
|
<file>:<function> (lines X-Y)
|
|
|
|
### Changes
|
|
- Change description
|
|
|
|
### Files Modified
|
|
- file1.py
|
|
|
|
### Metrics
|
|
- Cyclomatic complexity: X -> Y
|
|
- Function length: X -> Y lines
|
|
```
|