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 पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
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.
Identify the language from the file extension or the user's request.
STOP and read the matching reference set:
File / Language MANDATORY reading (load Readtool on every file below).py,.pyi, "Python"references/python/README.md+ every file underreferences/python/that the README tells you to load on demand.rs,Cargo.toml, "Rust"references/rust/README.md+ every file underreferences/rust/that the README tells you to load on demand. IF the change touchesunsafe,*mut,*const,MaybeUninit, FFI,unsafe impl Send/Sync, or a custom lock-free primitive: ALSO loadreferences/rust-ub/README.mdplus every file underreferences/rust-ub/..ts,.tsx,.mts,.cts, "TypeScript"references/typescript/README.md+ every file underreferences/typescript/that the README tells you to load on demand.go,go.mod,go.sum,.golangci.yml,*.protonext to a Go module, "Go" / "Golang"references/go/README.md+ every file underreferences/go/that the README tells you to load on demandOnly 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.
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.
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.
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.One name = one concept. A
UserIdis not astring. ASecondsis not aMilliseconds. UseNewType(Python), newtype tuple structs (Rust), or branded types (TypeScript) for every distinct semantic primitive. The compiler refuses to let two semantic units mix.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/elseis 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.
लोकप्रियता
- GitHub स्टार
- 70k
- रैंकिंग में स्थान
- #3136
- लाइसेंस
- NOASSERTION
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस 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
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।