skills/pattern-propagation/SKILL.md
When a pattern is changed in one place, automatically find and update all instances across the codebase. Covers renames, API changes, style updates, config changes, and structural refactors. Automatic skill that fires when modifying shared patterns.
npx skillsauth add nhouseholder/nicks-claude-code-superpowers pattern-propagationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When you change a pattern in one place, the change isn't done until every instance is updated. Don't leave the codebase in an inconsistent state. Find every occurrence, update them all, and verify nothing broke.
Automatically when modifying anything that could have multiple instances:
Before changing anything, assess the blast radius:
SCOPE CHECK:
- Is this name/pattern used elsewhere? → Grep for it
- Is this exported? → Check consumers
- Is this a convention? → Check if other files follow the same pattern
- Is this a type/interface? → Check all implementations
Use targeted search to find every occurrence:
1. Exact matches (grep for the literal string)
2. Related matches (grep for variations — camelCase, kebab-case, SCREAMING_CASE)
3. Indirect references (imports, re-exports, dynamic references)
4. Documentation/comments that reference the old pattern
5. Test files that test the old behavior
6. Config files that reference the pattern
Apply changes in dependency order:
1. Source of truth (the definition)
2. Direct consumers (files that import/use it)
3. Indirect consumers (files that use the consumers)
4. Tests (update expectations to match new behavior)
5. Documentation/comments (if they reference the pattern)
6. Config (if applicable)
After all updates:
1. Grep for the OLD pattern — should return zero results
2. Check for TypeScript/lint errors — type system catches missing updates
3. Verify imports resolve — no broken references
4. Run tests if available — catch behavioral regressions
| Pattern | Find | Don't Forget |
|---------|------|-------------|
| Rename (getUserData → fetchUserProfile) | All imports, call sites, test refs, comments | No "unused import" warnings left behind |
| API Shape ({ data } → { results, total }) | Every fetch/destructure/property access | Error handling paths, TypeScript types |
| Component Props (color → variant) | Every component usage across files | Default props, storybook, tests |
| Config/Env (DATABASE_URL → DB_CONNECTION_STRING) | Every env reference, .env files, docker-compose | CI/CD pipelines, deployment configs |
| File Move (src/utils/ → src/lib/) | Every import referencing old path | Path aliases in tsconfig/vite, test configs |
After fixing ANY bug, immediately ask: "Does this same flawed logic exist anywhere else?"
return 1.0, profit = wager, pnl = 1)| Bug Fixed | Sweep For | |-----------|-----------| | Payout formula wrong in combo bets | Same formula in ML, method, round, prop bet handlers | | Auth check missing in one endpoint | All other endpoints — same auth pattern? | | Off-by-one in date filter | Every other date filter in the codebase | | Null check missing for one field | Same data structure used elsewhere without null checks |
If you fix a bug in one place and don't sweep, you're guaranteeing the user will find the same bug somewhere else next week.
tools
Unified context management and session continuity skill. Combines total-recall, strategic-compact, /ledger, and session continuity. Runs in background to preserve critical context across compaction and sessions.
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
tools
Suggest /ultraplan for complex planning tasks on Claude Code CLI (2.1.91+ only). Research preview.
tools
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.