code-quality
БесплатноБез исполняемых скриптовНе проверенReview changes or remove redundant error handling with evidence of preserved behavior
от okou-ai★ 1 162 звезды на GitHubОб этом скилле
Code Quality
Operations
review <pr-id|commit-range|description>: review the identified change. For a PR, follow REVIEW.md; it owns practice routing, evidence, verdicts, and posting. For a commit range, apply the same relevant practices and report findings to the caller without inventing a PR destination.cleanup [scope]: implement removal of redundant error handling in the requested scope. The existingdefensive-code-cleanupcommand routes here.
Read code quality and select additional guidance from the documentation index. Searches identify candidates; inspect actual behavior before reporting a violation.
Error-Handling Cleanup
Search the requested source for catches that only log and rethrow, fabricate a generic success/empty result, or duplicate a framework-owned error response. For an unbounded cleanup request, select up to ten related, justified removals.
Before removing each catch, trace its caller and owning error boundary. Establish what the caller observes after removal and why the existing handler is redundant. Do not remove:
- meaningful rollback, resource cleanup, retry, or recovery;
- domain-error conversion to a contractual HTTP response;
- explicitly owned best-effort operations or per-item failure isolation;
- authentication, permission, or other fail-closed security handling;
- required cross-version behavior or expected external-reference misses.
Apply fallback rules, deployment compatibility, and reference authority when those boundaries are involved. A catch containing only a log is not automatically redundant: verify whether it owns necessary diagnostics or rejection handling.
Remove unused imports and adjust callers only when the preserved contract
requires it. Keep async work attached to its owning cancellation signal;
detach() is not a replacement for error handling inside signals.
Completion
Show each finding or removal with its file, behavior, and evidence. Do not assign severity from a regex match or file length alone. Run checks for the changed scope and relevant consumers under project verification. Report remaining uncertainty explicitly. Create a PR when the caller requested one; a research or review request alone does not authorize implementation.
Установить code-quality в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-quality?
Review changes or remove redundant error handling with evidence of preserved behavior
Как установить скилл code-quality?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-quality запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic