Skip to main content

code-quality

Use when writing or reviewing code, comments, tests, or docs.

Informações da origem

Repositório
superdesigndev/treg
Última atividade na origem
15 de outubro de 2026 às 09:08
Idioma detectado do SKILL.md
inglês
Estrelas
6.052
Forks
517

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
code-quality
description
Use when writing or reviewing code, comments, tests, or docs.
metadata
{"internal":true}
# Code quality 1. **Enforce, don't instruct.** If a machine can check a rule, add the check. Apply these rules to code you change; fix old code in its own PR. 2. **Comments: none by default.** Keep one only for behavior we cannot change (vendor, platform, protocol) or a public contract. A reason worth keeping moves to a test, the docs, or the commit message. 3. **Tests must be able to fail.** Test behavior through the real entry point; if a test still passes with every dependency returning None, it is fake. Break the behavior, show the failing run, then land it. Never turn CI green by skipping, retrying, sleeping, or loosening an assertion. 4. **Docs say only what code cannot.** Keep a sentence only if, without it, the next person would change the code wrongly. Each fact once, where it belongs; when docs and code disagree, fix the doc.
Ver no GitHub