ce-simplify-code
यह क्या करती है
यह स्किल मौजूदा कोड को उसका व्यवहार बदले बिना पढ़ने और संभालने में आसान बनाती है। यह उन डेवलपर्स के लिए है जो लिखने के बाद और रिव्यू से पहले कोड की सफ़ाई चाहते हैं।
कब इस्तेमाल करें
- ✓जब आपने कोई फ़ीचर लिख लिया हो और रिव्यू से पहले कोड साफ़ करना चाहते हों।
- ✓जब आप प्रोजेक्ट के किसी हिस्से में ऐसा अतिरिक्त कोड, टेस्ट या कमेंट खोजना चाहते हों जिसका कोई काम नहीं।
- ✓जब आपको कोई बग ठीक करना हो, तो यह गलत टूल है, क्योंकि यह सिर्फ़ कोड की सफ़ाई करता है।
Skill का लिंक
https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-simplify-code/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप आज मेरे बदले गए कोड को सरल कर सकते हैं और पक्का कर सकते हैं कि कुछ न टूटे?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह दायरे में आने वाला कोड पढ़ता है, वे हिस्से खोजता है जिन्हें साफ़ या छोटा किया जा सकता है, और वे बदलाव लागू करता है जो व्यवहार वही रखें।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Simplify code for clarity, reuse, quality, and efficiency, and prune tests and comments that carry no value, while preserving exact behavior. Prioritize readable, explicit code over compact code — fewer lines is not the goal.
Mode
Strip a mode:pipeline token and every proof-test:<path> token from the input before reading the rest as the scope. The proof-test path is context for Step 3, never scope; a caller may pass several.
- Pipeline when
mode:pipelineis present, or when no one asked for this run in their own current message: a step of another skill, or a run the agent starts itself, such as at a completion boundary. Work only on the current work, apply fixes without asking or waiting, and return the Step 5 summary to the caller. That summary is for the caller's record; never paste it into a commit, PR body, or other artifact. - Standalone when the user's own current message asked for this run. Their request sets the scope and focus. Report findings before editing anything, unless the request says to just fix them. Read
references/standalone-report.mdnow, and again before applying any reported finding.
Step 1: Identify scope
Resolve the scope in this order:
- User-named scope is authoritative; do not widen it. In standalone mode it may be the whole repo, an area, or a path.
- Otherwise, in git, use the current branch versus its base. Without a usable base, use staged and unstaged changes (
git diff HEAD). - Outside git or without a diff, use files the user named or that were edited earlier in the conversation.
In pipeline mode the scope is what the caller passed, else the branch diff. Within it, prune only tests and comments the current work added or changed.
If none of the above produces a non-empty scope, pipeline mode reports "nothing to simplify" and returns. Standalone mode asks the user what to simplify, as references/standalone-report.md describes.
Preflight. If the scope has no substantive human-authored code — only documentation, generated or vendored files, dependencies or lockfiles, or mechanical churn — report that there is nothing to simplify and stop without reviewers. For mixed scopes, retain only the code and its tests. This check is about the kind of change, never its size: explicit small scopes still run, and any size or cost threshold is the caller's to set.
When the platform's task-tracking capability is available, show the review, apply, and verification outcomes without creating one task per reviewer. Otherwise continue without simulating a task list in chat.
Step 2: Launch review agents in parallel
Dispatch generic subagents via the platform's subagent primitive (Agent/Task in Claude Code, spawn_agent in Codex) where available; otherwise run the reviews inline or serially. For each reviewer, read its prompt asset from this skill's directory and pass the full file content as the subagent's prompt, together with the resolved scope (the full diff or file set), the mode, any proof test, the user's constraints, and the project standards governing the scope (or their file paths):
references/personas/code-reuse-reviewer.mdreferences/personas/code-quality-reviewer.mdreferences/personas/efficiency-reviewer.mdreferences/personas/test-value-reviewer.md, when the scope holds testsreferences/personas/comment-reviewer.md, when the scope holds comments
A standalone request about only tests or only comments runs only that reviewer.
Do not paraphrase these rubrics from memory. Read each file and pass it verbatim, or the reviewer loses the rules that keep the pass behavior-preserving.
Read references/reviewer-dispatch.md before dispatching; it covers a full harness, releasing review agents, and the permission mode.
Model selection. Use the platform's balanced mid-tier model for these reviewers when the current harness exposes a known override. In Claude Code this is the Sonnet class. In Codex, apply this tier only when the active dispatch primitive exposes an explicit model or custom-agent selector; task wording alone does not select a different model. Otherwise omit the override and inherit the parent model -- a working pass on the parent model beats a broken dispatch.
If the user's or project's active instructions or the live prompt name a model for this subagent, use that model instead of the default tier above. They can name it by the subagent's tier, by its prompt-asset name, or for the subagents bei
अक्सर पूछे जाने वाले सवाल
क्या इससे मेरे कोड का व्यवहार बदलेगा?
इसका मकसद है कि व्यवहार बिल्कुल वही रहे और कोड सिर्फ़ साफ़ या कुशल बने।
क्या यह बग ठीक करती है?
नहीं। यह स्किल सफ़ाई पर केंद्रित है, और बग ठीक करना एक अलग डिबगिंग स्किल का काम है।
क्या यह मेरे प्रोजेक्ट के सिर्फ़ एक हिस्से को देख सकती है?
हाँ। आप कोई फ़ोल्डर या पाथ नाम ले सकते हैं, और काम उसी दायरे में रहता है।
जानकारी
लेखक का मूल विवरण
Simplify code for clarity, reuse, quality, and efficiency while preserving behavior, and prune tests and comments that carry no value. Use after implementation and before review, or to audit tests or comments in any part of a repo; use ce-debug for bugs.
लोकप्रियता
- GitHub स्टार
- 26k
- रैंकिंग में स्थान
- #10046
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
ce-babysit-pr
26kयह आपके एजेंट को खुली GitHub पुल रिक्वेस्ट को समय के साथ मर्ज की ओर बढ़ाते रहने में मदद करती है, रिव्यू टिप्पणियाँ, विफल जाँचें और पुरानी ब्रांच सँभालकर।
ce-bakeoff
26kयह आपके एजेंट को किसी समस्या के कई प्रतिस्पर्धी समाधान बनाने, उनकी तुलना करने और सबसे मज़बूत हिस्सों को मिलाकर एक सुझाया गया तरीका बनाने में मदद करती है।
ce-brainstorm
26kयह आपके एजेंट को कोई भी काम शुरू होने से पहले एक छोटी, निर्देशित बातचीत के ज़रिए एक धुंधले विचार को साफ़ और सही आकार की आवश्यकताओं में बदलने में मदद करती है।
ce-code-review
26kयह आपके एजेंट को किसी नामित कोड बदलाव या पुल रिक्वेस्ट की बग, रिग्रेशन, गायब टेस्ट और मानकों की समस्याओं के लिए समीक्षा करने और साफ़ निष्कर्ष रिपोर्ट करने में मदद करती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।