SOC 職業分類に基づく
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/Objective-Arts/lens-dist --skill clarityコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SKILL.md を表示中
| name | clarity |
| description | Clarity and simplicity |
| allowed-tools | [] |
Brian Kernighan's core belief: code is read far more often than it is written. Every decision should favor the reader over the writer.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
If you cannot debug it, you wrote it wrong. Cleverness is a cost, not a benefit.
Write the clearest code that does the job. If there's a straightforward way and a clever way, choose straightforward.
Not this:
result = data and data[0] or default
This:
result = data[0] if data else default
The compiler doesn't care about clarity. Your future self does. Your teammates do.
Every clever trick is a future debugging session. Ask: "Will I understand this in six months? Will a new teammate?"
If the answer is uncertain, rewrite it simply.
"Controlling complexity is the essence of computer programming." — Brian Kernighan
Names are documentation. A well-chosen name eliminates the need for comments.
Not this:
def proc(d, f):
return [f(x) for x in d if x]
This:
def filter_and_transform(items, transform_fn):
return [transform_fn(item) for item in items if item]
Every literal value should have a name that explains its purpose.
Not this:
if retry_count > 3:
time.sleep(60)
This:
MAX_RETRIES = 3
RETRY_DELAY_SECONDS = 60
if retry_count > MAX_RETRIES:
time.sleep(RETRY_DELAY_SECONDS)
Comments should explain why, not what. If you need a comment to explain what code does, the code is too complex.
Not this:
# Increment counter by one
counter += 1
This:
# Retry count tracks attempts for circuit breaker pattern
retry_count += 1
Before committing any code, ask:
Apply these checks:
Use a different skill when:
data-first (kernel style) or simplicity (Go/systems)optimization (optimization, data-oriented design)design-patterns (design patterns) or java (defensive OO)composition (Unix philosophy, composition)correctness (formal reasoning)Kernighan is for general application code clarity—not specialized domains.
"The most effective debugging tool is still careful thought, coupled with judiciously placed print statements." — Brian Kernighan