From refactor
Applies best practices, code quality rules, and framework detection for TypeScript, React/Next.js, Python, Go, and Swift in refactoring and pattern checking workflows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/refactor:best-practicesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Each file extension maps to a specific reference:
references/_template.mdreferences/go.mdreferences/python.mdreferences/python/INDEX.mdreferences/python/_sections.mdreferences/python/_template.mdreferences/python/fundamental-background.mdreferences/python/fundamental-exceptions.mdreferences/python/fundamental-future-imports.mdreferences/python/fundamental-global-state.mdreferences/python/fundamental-imports.mdreferences/python/fundamental-packages.mdreferences/python/fundamental-resources.mdreferences/python/fundamental-threading.mdreferences/python/language-comprehensions.mdreferences/python/language-conditionals.mdreferences/python/language-decorators.mdreferences/python/language-default-args.mdreferences/python/language-generators.mdreferences/python/language-getters-setters.mdEach file extension maps to a specific reference:
.ts, .js — references/typescript.md.tsx, .jsx — references/typescript.md + references/react/react.md.py — references/python.md + references/python/INDEX.md.go — references/go.md.swift — references/swift.mdUniversal principles are in references/universal.md.
For Next.js projects, the references/react/ directory provides:
references/react/rules/INDEX.md — pattern index by impact levelreferences/react/rules/_sections.md — priorities and categoriesany; proper types or unknown with guards are required_vars and re-exports of deleted code are deletedreferences/universal.md)npx claudepluginhub fradser/dotclaude --plugin refactorIndexes pedantic-coder skills for universal code quality principles including naming precision, casing law, import discipline, declaration order, symmetry, and dead code intolerance. Use for code reviews, refactoring, or greenfield projects.
Enforces universal code quality rules — KISS, DRY, clean code, code review. Use when writing or reviewing any code.
Encourages writing code that follows language-specific conventions and patterns. Useful when code compiles but feels foreign, or when contributors from different backgrounds produce conflicting styles.