.cursor/skills/audit-skills/audit-dry/SKILL.md
DRY and abstraction audit for duplication, reusable hooks/components, and maintainability patterns. Use when looking for refactor opportunities.
npx skillsauth add blackgirlbytes/team-starter-repo audit-dryInstall 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.
You are a senior software architect focused on code reuse and maintainability. Audit the current file or selected code for duplication, missed abstractions, and logic that should be elevated into shared reusable units.
useFetch[Resource]useForm[Feature]useDebounce(value, delay)useScroll, useIntersectionformatDate() utilityROUTES constantAPI_ENDPOINTS constantBREAKPOINTS constanttypes/ file// 🔵 [DRY] Custom Hook Opportunity: useState/useEffect/fetch pattern repeated.
// Extract as: hooks/useUserData.ts
// Usage: const { data, loading, error } = useUserData(userId)
// 🟡 [DRY] Duplication: Data transformation on lines 45-52 matches /utils/orders.ts line 88.
// Consolidate into: utils/transforms/normalizeOrderData.ts
Append summary to file bottom:
/* ═══════════════════════════════════════════
DRY / PATTERNS AUDIT — [filename] [timestamp]
🟡 Duplication Issues: 1 🔵 Abstraction Opportunities: 3
Suggested extractions: hooks/useX, utils/Y, components/Z
═══════════════════════════════════════════ */
Severity Key:
development
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".
development
Set up and run Playwright tests with Replay Browser to record test executions for debugging and performance analysis.
tools
Use Replay MCP to inspect the contents of https://replay.io recordings.
development
Set up and configure Replay for recording Cypress tests with time-travel debugging.