code-quality
БесплатноБез исполняемых скриптовНе проверенLoad for any coding or development task in any repository: writing, changing, fixing, refactoring, or testing code or scripts in any language.
от vanillagreencom★ 93 звезды на GitHubОб этом скилле
Project Instructions
Problems with a kendex-owned skill go through kendex report; check ownership in the file first.
React
- A store selector returns a stable reference: never mint an array, object or Set inside one, since a fresh value re-renders forever and blanks the page.
- An effect that positions or measures rendered content takes what is drawn as its trigger, not a list of state names; the exhaustive-dependencies lint checks only what the effect reads.
Platform rules
Enforce a rule on the platform where it can hold it (GitHub settings and rulesets, a harness's own settings). Keep a hook, script or instruction guard only where it cannot, and state why at the guard.
Compatibility
From 1.0, kendex keeps a retired consumer-visible form reading, with one warning that names the new form, until the next major release. This overrides § Cleanup's no-shim line here; the rule is changelog.d/README.md § Release standard.
Code Quality
Repo-specific standards live in each repo's ## Project Instructions section and add to these rules, winning where they conflict.
Core Principle
- Do not trade correctness for a smaller change.
- A failed check limits the evidence; it does not establish a product defect.
- Name the reachable failure before claiming user impact.
Every rule here serves an outcome: correct results for the user, reliability under change, low cost to carry.
- Before adding or removing a guard, check, abstraction, test or dependency, state what it protects and for whom, what it costs to carry and what is lost without it.
- Act on that reading.
- When two rules pull apart, the one that better serves those outcomes for this change wins.
- The deviation is written where the decision lives.
- A finding that no shipped producer, supported external caller or untrusted input reaches, or that only new code written to bypass the guard reaches, is a note on the model, not a defect to fix.
Correctness
- Fix the cause in its existing owner.
- When the correct fix exceeds the scope, report that conflict instead of adding a workaround.
- When the cause is in software the organization does not own, build the workaround in our own code, with one comment at its place that names the upstream report and the release or condition that removes it.
- Let no item wait for the upstream release.
- A defect has a class: the rule the code broke, not the line that broke it. Name the class and fix it once in its owner, so code that goes through the owner cannot repeat it.
- Never widen the class fix to a route § Core Principle calls unreached.
- An instance that recurs after the fix is a design finding, not a bug to patch: restate what the fix serves and who it is against before widening it.
- Unreadable evidence is not evidence. A dependency failure, an unreadable input or an unevaluated check never becomes a passing result, a default value or a zero.
- A required gate refuses with the cause.
- An advisory check reports unavailable with the cause.
- A decision over a set of candidates stands only when every candidate was read.
- An absent or unknown application input is a separate contract choice; state why refusing it is necessary where that choice is made.
- A relation to an external system that code or its tests rely on, such as how a tool builds a row, what an API field means or which identifier is unique, is cited to that system's source, its documentation or a recorded run of it, never modeled from memory.
- A relation with none of these is not relied on.
- A state with mutually exclusive cases is one tagged value with exhaustive handling.
- Convert an untouched field only when it has a reachable invalid state.
- A gate or guard that needs an exemption list is wrong at the exempted sites: narrow the rule, or state it at the point where the code cannot judge.
- Keep an exemption only with its reason beside it.
- An unexpected branch asserts or returns the violated invariant.
- An error names the failed operation, not a neighbouring dependency, and the value it acted on unless that value is a secret.
- Each diagnostic is emitted in one place.
- Where a program reads the diagnostic, lead with a stable key and put the human explanation after it.
Structure
- One lifetime, one owner. Resources with a shared lifetime have one owner whose teardown releases them.
- Resources with independent lifetimes have separate owners, each responsible for acquisition, recovery and release.
- Phases of one lifetime are private functions, not separate owners.
- Acquire ownership before registering cleanup.
- A pathname alone grants no right to replace or delete a file, and a saved process number grants no right to signal: hold what the ownership mechanism keeps unique, an exclusively created file or a process handle, or verify identity
Установить code-quality в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл code-quality?
Load for any coding or development task in any repository: writing, changing, fixing, refactoring, or testing code or scripts in any language.
Как установить скилл code-quality?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-quality запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic