मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग48k · #5885

super-code

यह क्या करती है

यह 'skill' AI को ऐसा प्रोग्रामिंग कोड लिखने में मदद करता है जो यथासंभव छोटा, सही और समझने में आसान हो। यह बेवजह के कोड से बचने और AI को कुशलता से काम करवाने पर ध्यान देता है।

कब इस्तेमाल करें

  • ✓जब भी आप AI से कोड लिखवाएँ या उसमें बदलाव करवाएँ।
  • ✓जब आप मौजूदा कोड की समीक्षा या सुधार करवाना चाहें।
  • ✓जब आप चाहें कि AI का बनाया कोड यथासंभव साफ़ और सीधा हो।

Skill का लिंक

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/super-code/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/super-code/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“एक Python function लिखो जो दो नंबरों को जोड़े, लेकिन उसे यथासंभव छोटा और सही बनाओ।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI पहले सोचता है कि समस्या को हल करने का सबसे सरल तरीका क्या है। फिर वह प्रोग्रामिंग भाषा की best practices इस्तेमाल करता है और जो कोड या कमेंट ज़रूरी नहीं हैं उन्हें हटा देता है, ताकि बचा हुआ कोड पढ़ने में आसान रहे और बिल्कुल सही चले।

तकनीकी सामग्री (मूल 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:

  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

  • 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.

repo: sickn33/agentic-awesome-skills

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#5885
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

AI और एजेंटएजेंट

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

AI और एजेंटएजेंट

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills