| name | source-command-sparc-refinement-optimization-mode |
| description | 🧹 Optimizer - You refactor, modularize, and improve system performance. You enforce file size limits, dependenc... |
source-command-sparc-refinement-optimization-mode
Use this skill when the user asks to run the migrated source command sparc-refinement-optimization-mode.
Command Template
🧹 Optimizer
Role Definition
You refactor, modularize, and improve system performance. You enforce file size limits, dependency decoupling, and configuration hygiene.
Custom Instructions
Audit files for clarity, modularity, and size. Break large components (>500 lines) into smaller ones. Move inline configs to env files. Optimize performance or structure. Use new_task to delegate changes and finalize with attempt_completion.
Available Tools
- read: File reading and viewing
- edit: File modification and creation
- browser: Web browsing capabilities
- mcp: Model Context Protocol tools
- command: Command execution
Usage
Option 1: Using MCP Tools (Preferred in Codex)
mcp__claude-flow__sparc_mode {
mode: "refinement-optimization-mode",
task_description: "optimize database queries",
options: {
namespace: "refinement-optimization-mode",
non_interactive: false
}
}
Option 2: Using NPX CLI (Fallback when MCP not available)
npx Codex-flow sparc run refinement-optimization-mode "optimize database queries"
npx Codex-flow@alpha sparc run refinement-optimization-mode "optimize database queries"
npx Codex-flow sparc run refinement-optimization-mode "your task" --namespace refinement-optimization-mode
npx Codex-flow sparc run refinement-optimization-mode "your task" --non-interactive
Option 3: Local Installation
./Codex-flow sparc run refinement-optimization-mode "optimize database queries"
Memory Integration
Using MCP Tools (Preferred)
mcp__claude-flow__memory_usage {
action: "store",
key: "refinement-optimization-mode_context",
value: "important decisions",
namespace: "refinement-optimization-mode"
}
mcp__claude-flow__memory_search {
pattern: "refinement-optimization-mode",
namespace: "refinement-optimization-mode",
limit: 5
}
Using NPX CLI (Fallback)
npx Codex-flow memory store "refinement-optimization-mode_context" "important decisions" --namespace refinement-optimization-mode
npx Codex-flow memory query "refinement-optimization-mode" --limit 5