Home / Market / super code

super code

Standing house style to enforce dense, correct, and idiomatic code on all coding tasks. Minimizes code bloat and agent operation overhead.

skill★ 507590 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: super-code description: "Standing house style to enforce dense, correct, and idiomatic code on all coding tasks. Minimizes code bloat and agent operation overhead." risk: safe source: community date_added: "2026-06-16"

---

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:

  1. Code-token inefficiency — the artifact itself is bloated (unnecessary lines, boilerplate, over-abstraction)
  2. 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

---

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:

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:

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):

If yes to any: undo that specific compression and keep the rest.

Step 5: Present output — generation-token rules

Always:

Never:

---

Universal Anti-Pattern Checklist

These apply in every language. The language-specific files extend this list.

Comments

Defensive coding

Abstractions

Scaffolding

---

Generation-Token Rules (agentic IDE specific)

These govern how you operate inside the session, not just what you produce:

File edits

Unrequested artifacts

Prose overhead

---

Language Reference Files

| Language / Stack | File | |---|---| | Bash / Shell | bash/SKILL.md | | C | c/SKILL.md | | C++ | cpp/SKILL.md | | C# / .NET | csharp/SKILL.md | | Dart / Flutter | dart/SKILL.md | | Elixir / Erlang | elixir/SKILL.md | | Go | go/SKILL.md | | Java | java/SKILL.md | | Kotlin + Compose (Android) | kotlin/SKILL.md | | PHP | php/SKILL.md | | Python | python/SKILL.md | | Ruby | ruby/SKILL.md | | Rust | rust/SKILL.md | | Scala | scala/SKILL.md | | Swift (iOS/macOS) | swift/SKILL.md | | TypeScript / JavaScript | typescript/SKILL.md |

Read the relevant file at Step 2. If the language isn't listed, apply the universal checklist above and use the language's own idioms for loops, error handling, and data transformation.

Examples

Example 1: Refactoring a verbose loop

// Anti-pattern
List<String> names = new ArrayList<>();
for (User u : users) {
    if (u.isActive()) {
        names.add(u.getName());
    }
}
// Super-code idiomatic (Java)
List<String> names = users.stream().filter(User::isActive).map(User::getName).toList();

Troubleshooting

Problem: Code is too dense to read

Symptoms: Reviewer complains or logic is unreadable.

Solution: Revert the overly compressed section. Clarity and correctness always win over conciseness.

Related Skills

Limitations