mergegate/.miyabi/commands/refactor.md
Shunsuke Hayashi 48dfa915c7 feat: Add hooks, workflow, MCP support and core modules
Phase 2: Hooks System
- Event-driven execution with HookEvent/HookAction types
- HookManager for registration and execution

Phase 3: Multi-Agent Workflow
- Workflow orchestration with dependency graphs
- WorkflowStep with conditions and retry support

Phase 4: MCP (Model Context Protocol) Support
- McpServer for external tool servers
- McpManager for multiple server management

Also includes core modules: cache, error_policy, feature_flags,
git, logger, plugin, retry, rules

662 tests passing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 23:37:14 +09:00

20 lines
710 B
Markdown

# Code Refactoring
Refactor the specified code with the following goals:
1. **Improve Readability** - Clear naming, logical structure, remove complexity
2. **Reduce Duplication** - Extract common patterns into reusable functions
3. **Enhance Maintainability** - Better separation of concerns, SOLID principles
4. **Optimize Performance** - Only if it doesn't sacrifice readability
Guidelines:
- Preserve existing behavior (no functional changes)
- Keep existing tests passing
- Add comments only where logic isn't self-evident
- Prefer small, focused functions over large ones
Output format:
1. Analysis of current issues
2. Refactoring plan
3. Refactored code with explanations
4. Summary of improvements