https://github.com/lakarpusky/claude-epc-workflow
Production-grade Claude Code agents for JavaScript, React and Git with concise, structured output
https://github.com/lakarpusky/claude-epc-workflow
ai-agents claude-ai claude-code developer-tools engineering-workflow git javascript llm-tools productivity reactjs version-control
Last synced: 6 months ago
JSON representation
Production-grade Claude Code agents for JavaScript, React and Git with concise, structured output
- Host: GitHub
- URL: https://github.com/lakarpusky/claude-epc-workflow
- Owner: lakarpusky
- License: mit
- Created: 2025-08-01T00:17:26.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-08-11T00:47:13.000Z (6 months ago)
- Last Synced: 2025-08-11T02:33:18.930Z (6 months ago)
- Topics: ai-agents, claude-ai, claude-code, developer-tools, engineering-workflow, git, javascript, llm-tools, productivity, reactjs, version-control
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Claude EPC Workflow
FAANG-caliber engineering workflow for Claude Code with aggressive token efficiency. Execute complex tasks via specialized agents while avoiding rate limits.
> **"FAANG-caliber" = Production Reality**
> Not about working at big tech, but thinking like you deploy to millions. It means:
> - Every decision has trade-offs
> - Performance matters at scale
> - Simple solutions beat clever ones
> - Ship working code, not perfect code
## Why EPC?
Traditional AI coding assistants overthink, over-explain, and hit rate limits fast. EPC solves this with:
- **Pattern matching over analysis** - Instant fixes for common issues
- **Token budgets** - Each response stays under 300 tokens
- **Specialized agents** - Right tool for each job
- **No overthinking** - First working solution wins
***Note:** Agents use structured output with consistent prefixes (CREATED:, FILES:, IMPACT:, etc.) for complex operations, while keeping simple fixes concise.*
## Quick Start
```bash
# Standard workflow (Explore β Plan β Code)
/epc optimize user search performance
# Quick mode (skip exploration)
/epc quick fix memory leak
# Emergency mode (production down)
/epc emergency fix payment crash
# With TypeScript
/epc typescript add type-safe event emitter
# With analysis
/epc analyze investigate slow checkout
```
## Agents
### π‘ js-specialist
FAANG-caliber JS/TS engineer. Handles algorithms, performance, and architecture.
- Default: JavaScript ES6+
- TypeScript on request
- Instant patterns for common issues
- Token budget: 300 per response
### π΅ react-virtuoso
React specialist. Optimizes components, state management, and rendering.
- Modern patterns (RSC, Suspense)
- Performance-first approach
- Framework-aware (Next.js, Vite)
- Token budget: 300 per response
### βͺ git-wizard
Git workflow engineer. Handles commits, conflicts, and emergencies.
- Professional commit messages
- Conflict resolution patterns
- Emergency procedures
- Token budget: 300 per response
## Workflow Modes
### Standard Mode (Default)
```
/epc [task]
```
**Token Budget:** 300 total (100 per phase)
- **Explore:** Identify issue via pattern matching
- **Plan:** Direct solution, no alternatives
- **Code:** Execute and show metrics
**Output:**
```
Explore: O(nΒ²) search, 3s blocking
Plan: Map lookup, Web Worker
Code: userSearch.js, 3sβ50ms
```
### Quick Mode
```
/epc quick [task]
```
**Token Budget:** 100 total
- Skip exploration
- Apply instant pattern
- Report metrics only
**Output:**
```
Applied: React.memo to ProductList
Impact: 1000 rerendersβ1
```
### Architect Mode
```
/epc architect [task]
```
**Token Budget:** 200 total
- Structure decisions only
- Bullet points
- Critical trade-offs only
**Output:**
```
Structure:
β /services (api, transforms)
β /components (ui)
β /hooks (logic)
Start: services
```
### Emergency Mode
```
/epc emergency [task]
```
**Token Budget:** 50 total
- Triggered by "emergency" or "production down"
- Revert or patch only
- Skip all analysis
**Output:**
```
Reverted: commit a3f2b1
Deployed: hotfix
```
## Override Dictionary
Magic words that modify behavior:
| Keyword | Effect | Token Cost |
|---------|--------|------------|
| `explain` | Add Why: and Impact: lines | +50 |
| `analyze` | Structured analysis box | +200 |
| `debug` | Add console.log statements | +0 |
| `typescript` | Use TypeScript mode | +0 |
| `emergency` | Skip all checks | -200 |
| `all`/`everything` | Allow bulk operations | +0 |
### Explain Format (50 tokens)
```
Added: Virtual scrolling
Why: Rendered all 500 items
Impact: 4sβ200ms initial load
```
### Analyze Format (200 tokens)
```
ANALYSIS: Memory leak
ββββββββββββββββββββββββ
Heap: 50MBβ500MB over 5min
Leak: Event listeners
Location: useEffect (6 components)
ββββββββββββββββββββββββ
Fix: Add cleanup functions
Result: Stable 50MB
```
## Instant Patterns
Common issues resolved without exploration:
| Pattern | Solution | Agent |
|---------|----------|-------|
| Slow list | React.memo + key | react-virtuoso |
| `undefined is not a function` | Optional chaining | js-specialist |
| Merge conflict | Keep current, continue | git-wizard |
| Memory leak | WeakMap/cleanup | js-specialist |
| Props drilling | Context/composition | react-virtuoso |
| `Maximum call stack` | Remove recursion | js-specialist |
| Too many renders | useMemo/useCallback | react-virtuoso |
## Token Efficiency Rules
1. **No code in responses** - Write directly to files
2. **Summaries only** - File: change, metric
3. **Pattern first** - Check instant patterns before analyzing
4. **One solution** - First working solution, not best
5. **No justification** - Unless "explain" keyword used
## Examples
### Performance Optimization
```bash
/epc optimize dashboard loading time
Explore: Bundle 2.4MB, React 247 renders/min
Plan: Code split, memo selectors
Code: 5 lazy routes, 3 memoized contexts, 2.4MBβ800KB
```
### Bug Fix
```bash
/epc quick fix "Cannot read property 'map' of undefined"
Applied: Optional chaining to all array.map calls
Files: UserList.jsx, Products.jsx, Cart.jsx
```
### Architecture
```bash
/epc architect typescript restructure monolithic api.js
Structure:
β /endpoints (routes)
β /services (business)
β /validators (schemas)
β /types (interfaces)
Migration: No breaking changes
```
### Production Emergency
```bash
/epc emergency fix payment processing crash
Reverted: Latest deploy
Rolled back: DB migration
Status: System stable
```
### With Analysis
```bash
/epc analyze investigate slow checkout
ANALYSIS: Checkout performance
ββββββββββββββββββββββββ
API calls: 6 sequential (3s)
Renders: 47/interaction
Blocking: Tax calculation
ββββββββββββββββββββββββ
Fix: Parallel APIs, memo cart
Result: 3sβ500ms, 47β3 renders
```
## Setup
1. Copy all `.md` files to your Claude Code project
2. Each agent operates independently
3. EPC coordinates multi-agent workflows
4. Agents write code directly to files
## Philosophy
- **Speed over perfection** - First working solution
- **Patterns over analysis** - Common problems have common fixes
- **Metrics over explanations** - Show impact, not reasoning
- **Token efficiency over completeness** - Stay under limits
## Anti-Patterns
Things EPC explicitly avoids:
β Long explanations of approach
β Showing code in responses
β Multiple options/alternatives
β Justifying decisions
β Over-analyzing simple problems
β Perfect architecture on first try
β Comprehensive documentation
β Premature optimization
## Rate Limit Management
With EPC's token efficiency:
- **Standard workflow:** ~300 tokens = 100+ interactions before limit
- **Quick mode:** ~100 tokens = 300+ interactions
- **Without EPC:** ~2000-5000 tokens = 10-20 interactions
## Contributing
This workflow is optimized for Claude Code. Contributions should maintain:
- Token efficiency (300 per response max)
- Pattern-first approach
- Clear override triggers
- No overthinking principle
## License
MIT - Use freely in your Claude Code projects
---
*Built for developers who value speed over philosophy, results over explanations, and staying under rate limits.*