antislop-code
यह क्या करती है
उन कोड कमेंट को छानती है जो सामान्य AI लेखन जैसे लगते हैं, जैसे सजावटी बैनर या कोड को दोहराने वाले कमेंट, और जिनमें असली जानकारी है उन्हें रखती है। यह उन डेवलपर्स के लिए है जो साफ़ कोड कमेंट चाहते हैं।
कब इस्तेमाल करें
- ✓जब कोई डेवलपर किसी AI एजेंट से प्रोजेक्ट में कोड कमेंट लिखवाना या संपादित करवाना चाहे।
- ✓जब कोई डेवलपर कोड से सजावटी बैनर या स्पष्ट कमेंट हटवाना चाहे।
- ✓जब कोई डेवलपर केवल वे कमेंट रखना चाहे जो पढ़ने वाले को असली जानकारी दें।
Skill का लिंक
https://github.com/miqdadbadjuber/anti-slop/blob/main/skills/antislop-code/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस फ़ाइल के कमेंट साफ़ कीजिए। फ़ालतू बातें हटाइए और उपयोगी नोट रखिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल हर कमेंट में असली उद्देश्य जाँचती है, फिर सजावटी, दोहराने वाले या शोर वाले कमेंट हटाती है। यह केवल कमेंट बदलने के लिए सेट है, कभी चलने वाले कोड को नहीं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
antislop-code
Anti Slop: Rules for AI Coding Agents. Code Comments skill
Part of the antislop system. Read together with
antislop.md(the core). This skill filters comments that read as generically AI (decorative, restating the obvious, stiff, loud) while preserving the comments that carry real information. It references core rules by number and never duplicates or renumbers them. Load it when the task writes or edits code comments.
How to use this skill
- Load together with
antislop.mdwhenever the task touches code comments. The core holds the mechanism (the purpose test, the three tiers, the Delivery Gate); this skill holds comment-specific depth. - Every entry has the same shape: Tell (the pattern), Why (why it reads as slop), Fix (what to do instead), with the governing core rule cited as R-XX.
- Scope guardrail: this skill only modifies comments. Never modify executable code, identifiers, imports, formatting, indentation, whitespace, control flow, or logic. When in doubt, leave the code untouched.
- The Delivery Gate in the core remains the gate. The "Code Comment Checklist" at the end of this file is the comment-specific supplement to run alongside it.
Comments That Add Nothing
Decorative Separators
- Tell: banner comments built from repeated characters, ALL CAPS labels, or box drawing around a section name:
// =======================aroundAuthentication,// -------- WORKFLOW --------, or a/* ---- ROUTES ---- */header. - Why: the decoration is the message. A label wrapped in
=or-signals "AI made this" without adding information, and ALL CAPS reads as shouting. - Fix: replace with a single plain line, or remove entirely if the label adds nothing (R-31).
Restating the Obvious
- Tell: a comment that repeats what the next line or declaration already shows, like
// Initialize the variableabovelet count = 0,// User classaboveclass User {},// Validate userabovefunction validateUser(), orconst userAge = 25; // User age is 25. - Why: it doubles the reading load without adding anything. The code already says it; the comment just repeats it.
- Fix: remove and leave the line of code alone.
Workflow Narration
- Tell: comments that narrate the flow step by step, like
// Step 1: Validate input,// Step 2: Process request,// Step 3: Return response, or// First...,// Next...,// Finally.... - Why: the control flow is visible in the code itself. Numbering it reads as a checklist, not an explanation.
- Fix: remove. If the flow is genuinely hard to follow, that is a structure problem, not a missing comment problem.
Empty Labels
- Tell: generic labels with no information behind them:
// Main logic,// Core logic,// Business logic,// Helper function,// Entry point,// Error handling, or// Note: This is important./// Important: Please read. - Why: the label names a category, not a fact. "Main logic" tells the reader nothing they could not infer from the code.
- Fix: remove unless the label carries specific information. "Note: retries happen only on 5xx" earns its place; "Note: this is important" does not.
Vague Placeholders
- Tell: comments that promise future work without saying what:
// TODO: Improve this,// Future improvements,// Additional optimization can be added here,// Add more validation. - Why: a vague TODO is noise. It names a feeling (this could be better) instead of a task (what, and why).
- Fix: remove. Keep a TODO only when it names a specific task with enough context to act on.
Signature Echo
- Tell: documentation that only restates the signature, like a JSDoc block that repeats
@param price The price.and@returns Total price.for a function whose name and parameters already say all of it. - Why: docs that echo the signature add length, not understanding. The reader learns nothing new.
- Fix: simplify or remove the echo. Keep documentation that explains business rules, edge cases, assumptions, algorithms, limitations, side effects, API behavior, or security implications. Never strip real documentation.
Decorative Emoji
- Tell: emoji used as decoration in comments, like
// ✅ Validationor// 🚀 Performance. - Why: emoji is visual noise in code, and the specific set (✅, 🚀, 🔒) is the AI default vocabulary.
- Fix: replace with plain English, or remove if the lab
अक्सर पूछे जाने वाले सवाल
क्या यह मेरा कोड बदलेगी?
नहीं। स्किल के अनुसार वह केवल कमेंट संपादित करती है और कोड, नाम, इम्पोर्ट तथा फ़ॉर्मेटिंग छोड़ती है।
क्या इसे मुख्य antislop नियमों की ज़रूरत है?
हाँ। यह मुख्य antislop फ़ाइल के साथ इस्तेमाल होने के लिए है, जिसमें साझा नियम हैं।
कौन से कमेंट रखे जाते हैं?
वे कमेंट जिनमें पढ़ने वाले के लिए असली जानकारी हो, और वे हटाए जाते हैं जो कुछ नहीं जोड़ते।
जानकारी
लेखक का मूल विवरण
Code comment hygiene for AI coding agents: remove generic AI-slop comments, keep the valuable ones, never touch the code.
repo: miqdadbadjuber/anti-slop
लोकप्रियता
- GitHub स्टार
- 8.0k
- रैंकिंग में स्थान
- #12648
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
antislop-copywriting
8.0kयह आपके एजेंट को मार्केटिंग टेक्स्ट, हेडलाइन और कॉल-टू-एक्शन सरल, मानवीय भाषा में लिखने और संपादित करने में मदद करती है, आम AI लेखन पैटर्न और गढ़े हुए तथ्यों से बचते हुए।
antislop-human
8.0kयह आपके एजेंट को ऐसे इंटरफ़ेस बनाने में मदद करती है जो सबके लिए काम करें, जिनमें साफ़ कंट्रास्ट और कीबोर्ड सपोर्ट हो।
antislop-layoutmobile
8.0kयह आपके एजेंट को ऐसे लेआउट बनाने में मदद करती है जो फ़ोन से डेस्कटॉप तक ठीक ढलें, बिना साइड में बाहर निकले, और जिन बटनों को छूना आसान हो।
antislop-ui
8.0kयह आपके एजेंट को ऐसे इंटरफ़ेस बनाने में मदद करती है जो आम AI जैसे नहीं, बल्कि सोच-समझकर बने लगें, सही रंगों और उपयोगी मूवमेंट के साथ।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।