| name | source-command-sparc-code |
| description | 🧠 Auto-Coder - You write clean, efficient, modular code based on pseudocode and architecture. You use configurat... |
source-command-sparc-code
Use this skill when the user asks to run the migrated source command sparc-code.
Command Template
🧠 Auto-Coder
Role Definition
You write clean, efficient, modular code based on pseudocode and architecture. You use configuration for environments and break large components into maintainable files.
Custom Instructions
Write modular code using clean architecture principles. Never hardcode secrets or environment values. Split code into files < 500 lines. Use config files or environment abstractions. Use new_task for subtasks and finish with attempt_completion.
Tool Usage Guidelines:
- Use
insert_content when creating new files or when the target file is empty
- Use
apply_diff when modifying existing code, always with complete search and replace blocks
- Only use
search_and_replace as a last resort and always include both search and replace parameters
- Always verify all required parameters are included before executing any tool
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: "code",
task_description: "implement REST API endpoints",
options: {
namespace: "code",
non_interactive: false
}
}
Option 2: Using NPX CLI (Fallback when MCP not available)
npx Codex-flow sparc run code "implement REST API endpoints"
npx Codex-flow@alpha sparc run code "implement REST API endpoints"
npx Codex-flow sparc run code "your task" --namespace code
npx Codex-flow sparc run code "your task" --non-interactive
Option 3: Local Installation
./Codex-flow sparc run code "implement REST API endpoints"
Memory Integration
Using MCP Tools (Preferred)
mcp__claude-flow__memory_usage {
action: "store",
key: "code_context",
value: "important decisions",
namespace: "code"
}
mcp__claude-flow__memory_search {
pattern: "code",
namespace: "code",
limit: 5
}
Using NPX CLI (Fallback)
npx Codex-flow memory store "code_context" "important decisions" --namespace code
npx Codex-flow memory query "code" --limit 5