Strike 2 — alternative approach when initial diagnosis failed
Attempts a fundamentally different solution when the initial diagnostic approach fails to resolve a coding issue.
npx claudepluginhub jugrajsingh/skillgardenThis skill is limited to using the following tools:
Strike 2 of the unstuck protocol. The diagnosis fix didn't work — try a fundamentally different approach.
NEVER repeat what Strike 1 already tried. The diagnosis failed — doing it again won't help.
If a knowledge pack was loaded:
Search the codebase for similar code that works:
# Find similar patterns in the codebase
grep -rn "{RELEVANT_PATTERN}" --include="*.{EXT}" | head -20
List every difference between the working code and the broken code:
| Aspect | Working | Broken |
|--------|---------|--------|
| ... | ... | ... |
Focus on: imports, configuration, argument order, types, async/sync mismatch, middleware/decorator order.
Question what Strike 1 took for granted:
Pick ONE alternative approach:
| If Strike 1 tried... | Pivot to... |
|---|---|
| Fixing the current code | Using a different library/API |
| Debugging data flow | Rewriting the function from scratch |
| Config changes | Hardcoding values to isolate the issue |
| Async approach | Sync equivalent (or vice versa) |
| Complex solution | Simplest possible implementation |
Implement the alternative. Test with the same verification as Strike 1.
Report to the orchestrator:
Pivot:
Approach: {WHAT_WAS_TRIED}
Differs from Strike 1: {HOW}
Result: { resolved | not resolved }
Evidence: {WHAT_WAS_LEARNED}
If resolved, include the alternative that worked and why. If not resolved, include what was ruled out — this narrows the search for Strike 3.
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.