graph TD
A[CacheHandler Subagent Start] --> B[Input Requirements]
B --> C{Caching Type Decision}
C -->|Local Storage| D[Generate Local Storage Code]
C -->|Redis| E[Generate Redis Code]
C -->|Both| F[Generate Hybrid Code]
D --> G[Add Error Handling]
E --> G
F --> G
G --> H[Generate Documentation]
H --> I[Add Usage Examples]
I --> J[Create Function Signatures]
J --> K[setCache Implementation]
J --> L[getCache Implementation]
K --> M[Add TTL Logic]
L --> M
M --> N[Add Fallback Logic]
N --> O[Format Final Code]
O --> P[Generate JSDoc Comments]
P --> Q[Add Expansion Stubs]
Q --> R[Final Code Review]
R --> S[Output cache-service.js]
subgraph Skill223[Skill 223 LLM Integration]
J
K
L
M
N
O
end
subgraph Documentation
H
I
P
Q
end