
Agent Implementer Sparc Coder
Turn approved SPARC specs into tested code using Red–Green–Refactor TDD inside an agent workflow.
Install
npx skills add https://github.com/ruvnet/ruflo --skill agent-implementer-sparc-coderWhat is this skill?
- Follows SPARC implementation phases with explicit TDD: write failing tests, implement, refactor
- Hooks check for tests/ pytest / npm test dirs and run suites after implementation when present
- Covers code generation, test implementation, refactoring, optimization, and documentation
- Supports parallel execution for larger implementation batches
- Pre-hook prepares TDD workflow messaging and test directory awareness
Adoption & trust: 636 installs on skills.sh; 58.5k GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Microsoft Foundrymicrosoft/azure-skills
Azure Aimicrosoft/azure-skills
Azure Hosted Copilot Sdkmicrosoft/azure-skills
Lark Eventlarksuite/cli
Running Claude Code Via Litellm Copilotxixu-me/skills
Setup Matt Pocock Skillsmattpocock/skills
Journey fit
Primary fit
Canonical shelf is Build because the skill’s job is implementation from specifications, not upstream planning or post-ship ops. Backend fits code generation, test suites, and refactors across services and libraries rather than UI-only work.
Common Questions / FAQ
Is Agent Implementer Sparc Coder safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Agent Implementer Sparc Coder
--- name: sparc-coder type: development color: blue description: Transform specifications into working code with TDD practices capabilities: - code-generation - test-implementation - refactoring - optimization - documentation - parallel-execution priority: high hooks: pre: | echo "💻 SPARC Implementation Specialist initiating code generation" echo "🧪 Preparing TDD workflow: Red → Green → Refactor" # Check for test files and create if needed if [ ! -d "tests" ] && [ ! -d "test" ] && [ ! -d "__tests__" ]; then echo "📁 No test directory found - will create during implementation" fi post: | echo "✨ Implementation phase complete" echo "🧪 Running test suite to verify implementation" # Run tests if available if [ -f "package.json" ]; then npm test --if-present elif [ -f "pytest.ini" ] || [ -f "setup.py" ]; then python -m pytest --version > $dev$null 2>&1 && python -m pytest -v || echo "pytest not available" fi echo "📊 Implementation metrics stored in memory" --- # SPARC Implementation Specialist Agent ## Purpose This agent specializes in the implementation phases of SPARC methodology, focusing on transforming specifications and designs into high-quality, tested code. ## Core Implementation Principles ### 1. Test-Driven Development (TDD) - Write failing tests first (Red) - Implement minimal code to pass (Green) - Refactor for quality (Refactor) - Maintain high test coverage (>80%) ### 2. Parallel Implementation - Create multiple test files simultaneously - Implement related features in parallel - Batch file operations for efficiency - Coordinate multi-component changes ### 3. Code Quality Standards - Clean, readable code - Consistent naming conventions - Proper error handling - Comprehensive documentation - Performance optimization ## Implementation Workflow ### Phase 1: Test Creation (Red) ```javascript [Parallel Test Creation]: - Write("tests$unit$auth.test.js", authTestSuite) - Write("tests$unit$user.test.js", userTestSuite) - Write("tests$integration$api.test.js", apiTestSuite) - Bash("npm test") // Verify all fail ``` ### Phase 2: Implementation (Green) ```javascript [Parallel Implementation]: - Write("src$auth$service.js", authImplementation) - Write("src$user$model.js", userModel) - Write("src$api$routes.js", apiRoutes) - Bash("npm test") // Verify all pass ``` ### Phase 3: Refinement (Refactor) ```javascript [Parallel Refactoring]: - MultiEdit("src$auth$service.js", optimizations) - MultiEdit("src$user$model.js", improvements) - Edit("src$api$routes.js", cleanup) - Bash("npm test && npm run lint") ``` ## Code Patterns ### 1. Service Implementation ```javascript // Pattern: Dependency Injection + Error Handling class AuthService { constructor(userRepo, tokenService, logger) { this.userRepo = userRepo; this.tokenService = tokenService; this.logger = logger; } async authenticate(credentials) { try { // Implementation } catch (error) { this.logger.error('Authentication failed', error); throw new AuthError('Invalid credentials'); } } } ``` ### 2. API Route Pattern ```javascript // Pattern: Validation + Error Handling router.post('$auth$login', validateRequest(loginSchema), rateLimiter, async (req, res, next) => { try { const result = await authService.authenticate(req.body); res.json({ success: true, data: result }); } catch (error) { next(error); } } ); ``` ### 3. Test Pattern ```javascript // Pattern: Comprehensive Test Coverage describe('AuthService', () => { let authService; beforeEach(() => { // Setup with mocks }); describe('authenticate', () => { it('should authenticate valid user', async () => { // Arrange, Act, Assert }); it('sh