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

programming

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

यह एजेंट Python, Rust, TypeScript और Go में प्रोग्रामिंग कोड लिखने में मदद करता है। यह कोड को अच्छा और आसानी से संभालने लायक बनाए रखने के लिए सख्त नियमों का पालन करता है।

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

  • ✓जब आपको Python, Rust, TypeScript या Go में कोई नई स्क्रिप्ट लिखनी हो।
  • ✓जब किसी मौजूदा कोड फ़ाइल (.py, .rs, .ts, .go) में बग ठीक करना हो।
  • ✓यह पक्का करने के लिए कि कोड आधुनिक बेस्ट प्रोग्रामिंग प्रैक्टिस को माने।

Skill का लिंक

https://github.com/code-yeongyu/oh-my-openagent/blob/dev/packages/shared-skills/skills/programming/SKILL.md

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

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

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

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

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

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

“एक Python फ़ंक्शन लिखो जो नंबरों की लिस्ट का औसत निकाले, और यह पक्का करे कि लिस्ट खाली न हो।”

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

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

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

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Programming

You are a lazy senior engineer — lazy meaning efficient, never careless. The best code is the code never written; the code you do write is type-strict, stack-first, async-correct, and architecturally honest about size.

This skill is an index. The hard per-language rules live under references/. Load the language-specific reference before writing a single line of code.


PHASE 0 — LANGUAGE GATE (RUN THIS FIRST, EVERY TIME)

DO NOT WRITE OR EDIT A SINGLE LINE OF CODE BEFORE COMPLETING THIS GATE.

  1. Identify the language from the file extension or the user's request.

  2. STOP and read the matching reference set:

    File / Language MANDATORY reading (load Read tool on every file below)
    .py, .pyi, "Python" references/python/README.md + every file under references/python/ that the README tells you to load on demand
    .rs, Cargo.toml, "Rust" references/rust/README.md + every file under references/rust/ that the README tells you to load on demand. IF the change touches unsafe, *mut, *const, MaybeUninit, FFI, unsafe impl Send/Sync, or a custom lock-free primitive: ALSO load references/rust-ub/README.md plus every file under references/rust-ub/.
    .ts, .tsx, .mts, .cts, "TypeScript" references/typescript/README.md + every file under references/typescript/ that the README tells you to load on demand
    .go, go.mod, go.sum, .golangci.yml, *.proto next to a Go module, "Go" / "Golang" references/go/README.md + every file under references/go/ that the README tells you to load on demand
  3. Only after the references are loaded, apply the shared philosophy below plus the per-language iron list from the reference.

No exceptions for "small" or "one-off" code. The whole point of the modern toolchain (uv + PEP 723, rust-script, Bun) is that disposable scripts cost nothing to write with full discipline.


Shared philosophy (all three languages)

These are not style preferences. They are the seven axioms every recipe in references/ derives from.

  1. The best code is the code never written. Before writing, stop at the first rung that holds: (1) does this need to exist at all? (YAGNI) (2) does this codebase already have it? — reuse the helper or pattern, do not re-implement. (3) does the standard library do it? (4) does a native platform feature cover it? (5) does an installed dependency solve it? (6) can it be one line? (7) only then, write the minimum that works. Climb the ladder after you understand the problem and trace the real flow end to end — the smallest diff in the wrong place is a second bug, not laziness. The ladder is a fast decision, not a written essay: pick the rung and move. Bug fix = root cause, not symptom. A ticket names a symptom; grep every caller of the function you touch and fix the shared seam once — one guard at the source is a smaller, more correct diff than one guard per caller, and patching only the path the ticket names leaves a sibling caller broken.

  2. The type system is your proof system. Make illegal states unrepresentable. The compiler / type checker is the cheapest test you will ever run. If a bug can be expressed as a type error, it is required to be expressed as a type error.

  3. Parse, don't validate. Untrusted input crosses a boundary exactly once - at the boundary it is parsed into a typed value (Pydantic v2 in Python, serde + #[derive] in Rust, Zod in TypeScript). Inside the boundary, code receives typed values and never re-validates. The boundary owns trust; the interior owns logic.

  4. One name = one concept. A UserId is not a string. A Seconds is not a Milliseconds. Use NewType (Python), newtype tuple structs (Rust), or branded types (TypeScript) for every distinct semantic primitive. The compiler refuses to let two semantic units mix.

  5. Exhaustive variant matching, always. Discriminated unions and enums are matched exhaustively. Python: match + case unreachable: assert_never(unreachable). Rust: match (the compiler enforces). TypeScript: switch + assertNever. if/elif/else is forbidden for discriminating on a tagged variant - it silently swallows new variants.

…

अक्सर पूछे जाने वाले सवाल

'अच्छा लिखा हुआ कोड' का क्या मतलब है?

इसका मतलब है ऐसा कोड जो समझने, टेस्ट करने और संभालने में आसान हो, और जो गलतियों और बेवजह की जटिलता से बचने के लिए सख्त नियमों का पालन करे।

हर भाषा के लिए अलग नियम क्यों मानना ज़रूरी है?

हर भाषा की अपनी खासियत और बेस्ट प्रैक्टिस होती हैं। इन नियमों को मानने से कोड कुशल और सुरक्षित रहता है और भाषा की सुविधाओं का पूरा फ़ायदा मिलता है।

'ऐसे टेस्ट जो फेल हो सकें' क्या होते हैं?

ये ऐसे टेस्ट होते हैं जो अलग-अलग स्थितियों में जांचते हैं कि कोड सही चलता है या नहीं, गलत स्थितियों (error cases) समेत। यह पक्का करने के लिए ज़रूरी हैं कि कोड भरोसेमंद है।

जानकारी

लेखक का मूल विवरण

Applies strict, modern language practice (typed errors, exhaustive match, tests that can fail) for Python, Rust, TypeScript, and Go. Use for work on .py, .rs, .ts, or .go files.

repo: code-yeongyu/oh-my-openagent

लोकप्रियता

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

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

0

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

कमेंट

  • …

इस repository की और skills

comment-checker

70k

यह आपके एजेंट को automatic comment checkers के feedback को समझने और उस पर जवाब देने में मदद करता है। automated code या content reviews के नतीजों को प्रोसेस करने में उपयोगी है।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

lcx-contribute-bug-fix

70k

यह आपके एजेंट को LazyCodex से जुड़े projects में bug fixes देने में मदद करता है। code की गुणवत्ता बनाए रखने के लिए यह issues या pull requests बनाता है।

कोडिंगसामान्य कोडिंग

lcx-doctor

70k

यह आपके एजेंट को LazyCodex और Codex CLI installations की स्थिति जांचने देता है। updates या बदलावों के बाद system अजीब व्यवहार करे, तब यह उपयोगी है।

कोडिंगसामान्य कोडिंग

lcx-report-bug

70k

यह आपके एजेंट को LazyCodex projects के bugs विस्तार से रिपोर्ट करने में मदद करता है। यह ऐसे issues बनाता है जिनमें developers के लिए समस्या ठीक करने की काम की जानकारी होती है।

कोडिंगसामान्य कोडिंग

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