Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

best-practices

БесплатноБез исполняемых скриптовНе проверен

Language-specific best practices, code quality standards, and framework detection rules. Use when executing refactoring workflows, applying code quality…

FradSerот FradSer★ 598 звёзд на GitHub

Об этом скилле

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)

Установить best-practices в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

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.mdreferences/python/language-iterators.mdreferences/python/language-lambda.mdreferences/python/language-lexical-scoping.mdreferences/python/language-nested-classes.mdreferences/python/language-power-features.mdreferences/python/language-properties.mdreferences/python/language-true-false.mdreferences/python/quality-function-length.mdreferences/python/quality-lint.mdreferences/python/quality-main.mdreferences/python/quality-todos.mdreferences/python/quality-type-annotated-code.mdreferences/python/quality-type-annotations.mdreferences/python/style-blank-lines.mdreferences/python/style-comments.mdreferences/python/style-imports-formatting.mdreferences/python/style-indentation.mdreferences/python/style-line-length.mdreferences/python/style-naming.mdreferences/python/style-parentheses.md

FAQ

Что делает скилл 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.

Как установить скилл best-practices?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл best-practices запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить best-practices с