Skip to content
Development
Skill

/best-practices

Language-specific best practices, code quality standards, and framework detection rules. Use when executing refactoring workflows, applying code quality rules, detecting frameworks, or checking language-specific patterns for TypeScript, Python, Go, Swift, or React.

BOOST
From plugin
dotclaude
59683 skills7 agents4 commands3 MCP
Install
$ npx -y skills add FradSer/dotclaude --skill best-practices --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/best-practices

Context preview

The summary Claude sees to decide when to auto-load this skill.

Language-specific best practices, code quality standards, and framework detection rules. Use when executing refactoring workflows, applying code quality rules, detecting frameworks, or checking language-specific patterns for TypeScript, Python, Go, Swift, or React.

SKILL.md

best-practices.SKILL.md
name: best-practices
description: Language-specific best practices, code quality standards, and framework detection rules. Use when executing refactoring workflows, applying code quality rules, detecting frameworks, or checking language-specific patterns for TypeScript, Python, Go, Swift, or React.
user-invocable: false
version: 1.3.0

Best Practices

Language References

Each 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.md`

Universal principles are in `references/universal.md`.

Next.js/React References

For Next.js projects, the `references/react/` directory provides:

1. `references/react/rules/INDEX.md` — pattern index by impact level 2. `references/react/rules/_sections.md` — priorities and categories 3. Specific rule files matching observed patterns

Rule Application

  • Framework-specific rules (e.g., Next.js) apply only when that framework is detected
  • **CRITICAL** rules have highest priority: waterfalls, bundle size, hydration
  • All refactoring MUST preserve behavior and public interfaces

Code Quality Standards

  • **Comments**: Only for complex business logic; code-restating comments are unnecessary
  • **Error Handling**: Try-catch only where recoverable; no defensive checks in trusted paths
  • **Type Safety**: No `any`; proper types or `unknown` with guards are required
  • **Style**: Existing code style and CLAUDE.md conventions take precedence
  • **Cleanup**: Unused imports, variables, functions, and types are removed
  • **No compat hacks**: Unused `_vars` and re-exports of deleted code are deleted
  • **Renaming**: Descriptive names are preferred over marking as unused
  • **Dead code**: Dead code is deleted, never commented out
  • **File Organization**: Single Responsibility applies at file level; files with multiple concerns are candidates for splitting (see `references/universal.md`)
Read more
Ships withdotclaude

A curated collection of 22 plugins for Claude Code, providing specialized agents, skills, and automation tools for development and productivity workflows.

Get the whole plugin

Other skills on dotclaude.