Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Objective-Arts/lens-dist --skill clarity명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| 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