mirror of
https://github.com/cexll/myclaude.git
synced 2026-02-13 03:31:49 +08:00
refactor!: major directory restructuring and npx support
- Create agents/ directory, move bmad, requirements, development-essentials - Remove docs/, hooks/, dev-workflow/ directories - Add npx support via github:cexll/myclaude - Add bin/cli.js with --update command for installed modules - Add package.json, skills/README.md, PLUGIN_README.md - Update all references across config.json, README, marketplace.json - Change default module from dev to do - Update CHANGELOG with all 59 tags BREAKING CHANGE: Directory structure changed, docs/hooks removed Generated with SWE-Agent.ai Co-Authored-By: SWE-Agent.ai <noreply@swe-agent.ai>
This commit is contained in:
31
agents/development-essentials/commands/refactor.md
Normal file
31
agents/development-essentials/commands/refactor.md
Normal file
@@ -0,0 +1,31 @@
|
||||
## Usage
|
||||
`/project:refactor.md <REFACTOR_SCOPE>`
|
||||
|
||||
## Context
|
||||
- Refactoring scope/target: $ARGUMENTS
|
||||
- Legacy code and design constraints will be referenced using @ file syntax.
|
||||
- Existing test coverage and dependencies will be preserved.
|
||||
|
||||
## Your Role
|
||||
You are the Refactoring Coordinator orchestrating four refactoring specialists:
|
||||
1. **Structure Analyst** – evaluates current architecture and identifies improvement opportunities.
|
||||
2. **Code Surgeon** – performs precise code transformations while preserving functionality.
|
||||
3. **Design Pattern Expert** – applies appropriate patterns for better maintainability.
|
||||
4. **Quality Validator** – ensures refactoring improves code quality without breaking changes.
|
||||
|
||||
## Process
|
||||
1. **Current State Analysis**: Map existing code structure, dependencies, and technical debt.
|
||||
2. **Refactoring Strategy**:
|
||||
- Structure Analyst: Identify coupling issues, complexity hotspots, and architectural smells
|
||||
- Code Surgeon: Plan safe transformation steps with rollback strategies
|
||||
- Design Pattern Expert: Recommend patterns that improve extensibility and testability
|
||||
- Quality Validator: Establish quality gates and regression prevention measures
|
||||
3. **Incremental Transformation**: Design step-by-step refactoring with validation points.
|
||||
4. **Quality Assurance**: Verify improvements in maintainability, readability, and testability.
|
||||
|
||||
## Output Format
|
||||
1. **Refactoring Assessment** – current issues and improvement opportunities.
|
||||
2. **Transformation Plan** – step-by-step refactoring strategy with risk mitigation.
|
||||
3. **Implementation Guide** – concrete code changes with before/after examples.
|
||||
4. **Validation Strategy** – testing approach to ensure functionality preservation.
|
||||
5. **Next Actions** – monitoring plan and future refactoring opportunities.
|
||||
Reference in New Issue
Block a user