Skip to main content

code-quality

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

ソース情報

リポジトリ
superdesigndev/treg
ソースの最終更新活動
2026年10月15日 09:08
検出された SKILL.md の言語
英語
スター
5,329
フォーク
433

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
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.
GitHubで見る