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への頼み方の例
“2つの数を足す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エージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。