super-code
하는 일
이 '스킬'은 AI가 가능한 한 짧고, 정확하고, 이해하기 쉬운 프로그래밍 코드를 작성하도록 돕습니다. 불필요한 코드를 피하고 AI가 효율적으로 작동하도록 하는 데 중점을 둡니다.
사용하는 경우
- ✓AI에게 코드 작성이나 수정을 요청할 때.
- ✓AI에게 기존 코드를 검토하거나 개선하도록 요청할 때.
- ✓생성된 코드가 최대한 깔끔하고 단순하도록 하고 싶은 경우.
스킬 링크
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/super-code/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“두 숫자를 더하는 Python 함수를 작성해 주세요. 최대한 간결하고 정확하게 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
AI는 먼저 문제를 해결하는 가장 단순한 방법을 생각합니다. 그다음 프로그래밍 언어의 모범 사례를 사용하고, 필수적이지 않은 코드와 주석을 제거합니다. 그래서 남은 코드는 읽기 쉽고 완벽하게 작동합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Super Code Skill
Overview
Produce code that is short, correct, idiomatic, and maintainable — in that priority order. This skill addresses two distinct inefficiency types that must be fixed independently:
- Code-token inefficiency — the artifact itself is bloated (unnecessary lines, boilerplate, over-abstraction)
- Generation-token inefficiency — how the agent operates during a session (full-file rewrites, unrequested files, prose padding before/after changes)
Both matter. Fixing only one is not enough.
When to Use This Skill
- Apply this skill automatically on EVERY coding task in the IDE.
- Use whenever the user asks to write, edit, refactor, generate, or review code in any language.
- This is a standing house style, not an on-demand pass — always apply it.
Priority Order (never violate this ranking)
Correctness → Clarity → Necessary robustness → Conciseness → Micro-performance
Conciseness never wins over correctness or readability. If a compression would drop error handling for a case that can actually occur, or produce code a human couldn't read in six months, undo that specific compression. Short bad code is worse than long correct code.
Workflow — apply to every coding task
Step 1: Commit to minimal correct shape BEFORE writing
Before touching a file, decide:
- What is the smallest surface area that correctly solves this problem?
- What does the caller actually need from this function/class/module?
- Is there a stdlib/framework primitive that already does this?
Write that down mentally (not in a prose block to the user). This is the target shape.
Step 2: Write using language-idiomatic patterns
Read the relevant reference file for the language in use:
- Bash/Shell →
bash/SKILL.md - C →
c/SKILL.md - C++ →
cpp/SKILL.md - C# →
csharp/SKILL.md - Dart/Flutter →
dart/SKILL.md - Elixir/Erlang →
elixir/SKILL.md - Go →
go/SKILL.md - Java →
java/SKILL.md - Kotlin/Compose →
kotlin/SKILL.md - PHP →
php/SKILL.md - Python →
python/SKILL.md - Ruby →
ruby/SKILL.md - Rust →
rust/SKILL.md - Scala →
scala/SKILL.md - Swift →
swift/SKILL.md - TypeScript/JavaScript →
typescript/SKILL.md
Apply idiomatic patterns from that file. They replace verbose imperative code with correct, concise equivalents that are still readable.
Step 3: Compression pass on your own draft
Before presenting any code, scan it for:
| Anti-pattern | Fix |
|---|---|
| Comment restates what code does | Delete comment, or rewrite to say why |
| Single-use helper function/class | Inline it |
| Stdlib/framework already does this | Replace with the primitive |
| Defensive handling for impossible case | Remove |
| Verbose loop replaceable by idiomatic expression | Replace |
| Logging/print nobody asked for | Remove |
| Extra config/files/parameters not requested | Remove |
| Unused import or variable | Remove |
Step 4: Guardrail check — run this before presenting
Ask yourself (silently):
- Did I remove handling for a case that can actually happen?
- Did I make this harder to read for a human six months from now?
- Did I drop correctness or security to save lines?
If yes to any: undo that specific compression and keep the rest.
Step 5: Present output — generation-token rules
Always:
- Edit files via targeted patches/diffs, not full rewrites, unless the file is new or the change touches >70% of lines
- Present only what was asked for
Never:
- Generate unrequested files (tests, READMEs, configs, types) unless the user asked
- Add prose blocks before/after code explaining what you're about to do or just did — just do it
- Re-explain the user's own requirement back to them before writing
- Restate what changed in a paragraph after showing the diff — the diff is self-evident
Universal Anti-Pattern Checklist
These apply in every language. The language-specific files extend this list.
Comments
- ❌
// Loop through the list and add each item→ ❌ delete - ✅
// Order matters: process refunds before charges→ ✅ keep (explains why) - Rule: if the comment could be generated mechanically from reading the code, it adds no value
Defensive coding
- Only handle error cases that can actually occur given the call site
- If the caller guarantees non-null, don't null-check inside the function
- If a catch block can only log and rethrow, consider removing the try/catch
Abstractions
…
자주 묻는 질문
코드는 왜 간결해야 하나요?
간결한 코드는 읽고, 이해하고, 관리하기가 더 빠르며 컴퓨터 자원도 적게 씁니다.
'관용적(idiomatic)'이란 무엇인가요?
특정 프로그래밍 언어에서 흔하고 예상되는 구조와 패턴을 사용한다는 뜻입니다. 다른 프로그래머에게 더 익숙하게 느껴지도록 합니다.
AI가 중요한 주석을 지우나요?
아니요. 코드가 이미 말하고 있는 내용을 반복하는 주석만 제거합니다. 특정 구현의 '이유'를 설명하는 주석은 유지합니다.
상세 정보
작성자의 원본 설명
Standing house style to enforce dense, correct, and idiomatic code on all coding tasks. Minimizes code bloat and agent operation overhead.
인기도
- GitHub 스타
- 48k
- 순위
- #5885
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.