principle-the-algorithm
यह क्या करती है
यह स्किल असिस्टेंट को बड़े बदलावों के लिए पाँच चरणों का तरीका देती है: ज़रूरत पर सवाल, हटाना, अनुकूलन, गति, और फिर स्वचालन। यह उन इंजीनियरों के लिए है जो सरल और तर्कसंगत डिज़ाइन चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप एक साधारण संपादन से बड़ा बदलाव डिज़ाइन करने वाले हैं।
- ✓जब कोई ज़रूरत जटिलता बढ़ाती लगे जो शायद ज़रूरी न हो।
- ✓जब आप अनुकूलन से पहले जाँचना चाहते हैं कि कोई हिस्सा हटाया जा सकता है या नहीं।
Skill का लिंक
https://github.com/cursor/plugins/blob/main/dyl-stack/skills/principle-the-algorithm/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस फ़ीचर को डिज़ाइन करने से पहले ज़रूरतों को चुनौती दीजिए, और बताइए कि हम क्या हटा सकते हैं।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
असिस्टेंट पहले ज़रूरत पर सवाल उठाता है, फिर पूरी लगन से हिस्से या चरण हटाने की कोशिश करता है, फिर बचे हुए का अनुकूलन करता है, उसे तेज़ करता है, और सबसे अंत में स्वचालित करता है। उसका जवाब बताता है कि किस पर सवाल उठा और क्या हटा।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
The Algorithm
Five steps, in order, for any change bigger than an edit you can see at a glance. The order is the principle. Each step is cheap only after the one before it, and the common failure is doing a late step on something an early step would have removed. Adapted from Elon Musk's five-step engineering process.
- Make the requirements less dumb. Assume the requirement is wrong and make it less wrong. It comes from a person, not a department. "The ticket", "the linter", "the reviewer", or "the old code did it" is a source, not a reason; find the person and their reasoning. If you do not agree with the reasoning, do not accept the requirement, however smart the person who gave it, the human included. No is a valid outcome.
- Delete the part or process step. Try hardest to delete the part, flag, layer, retry, or step entirely before touching step 3. Optimizing something that should not exist is the biggest mistake smart people make. If you never add anything back, you did not delete enough. Leaf: pstack
principle-subtract-before-you-add. - Optimize what survived. Third step, not first. Have one part do many things instead of a parallel copy per caller. Look hardest at boundaries between owners and layers, where a wrapper wraps a wrapper. Leaves: pstack
principle-laziness-protocol,principle-minimize-reader-load. - Accelerate. Be the part: walk one change through edit, build, check, and review yourself and note where you wait, crawl, or bounce. Tighten that. Leaf: pstack
principle-sequence-verifiable-units. - Automate last, or you automate something that should not exist. Volume alone does not justify it; precision and reviewability do. pstack
principle-build-the-leverstill applies. It runs on what survived.
Run it again. This is not a one-time gate. Rerun it on the result before you ship; the second pass deletes more.
The tell. A citation of this principle names the requirement you made less dumb, who owned it, and what you deleted. A citation with neither means you skipped it.
अक्सर पूछे जाने वाले सवाल
क्रम क्यों मायने रखता है?
हर चरण तभी सस्ता होता है जब पिछला हो चुका हो, इसलिए जो चीज़ होनी ही नहीं चाहिए उसका अनुकूलन करना समय बर्बाद करना है।
क्या असिस्टेंट किसी ज़रूरत को ठुकरा सकता है?
हाँ। अगर किसी ज़रूरत के पीछे का तर्क टिकता न हो, तो स्किल कहती है कि 'नहीं' भी एक सही नतीजा है।
यह तरीका कहाँ से आता है?
स्किल कहती है कि यह Elon Musk की पाँच-चरणीय इंजीनियरिंग प्रक्रिया से लिया गया है।
जानकारी
लेखक का मूल विवरण
Apply to any non-trivial change before designing it. Make the requirement less dumb, delete, optimize, accelerate, automate, in that order, then run it again on the result. The reply names the requirement you questioned and what you deleted.
repo: cursor/plugins
लोकप्रियता
- GitHub स्टार
- 15k
- रैंकिंग में स्थान
- #10949
- लाइसेंस
- —
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
advisor
15kअगर आप इसे चालू करते हैं, तो आपका एजेंट बड़े फ़ैसले से पहले या किसी त्रुटि में अटकने पर एक ज़्यादा शक्तिशाली दूसरे मॉडल से सलाह ले सकता है।
check-agent-compatibility
15kजाँचती है कि AI कोडिंग एजेंट किसी रिपॉज़िटरी को शुरू, सत्यापित और दस्तावेज़ित कर सकते हैं या नहीं, और एक अनुकूलता स्कोर के साथ मुख्य समस्याएँ लौटाती है।
cli-for-agents
15kआपके एजेंट को कमांड-लाइन टूल ऐसे डिज़ाइन या जाँचना सिखाती है कि AI एजेंट उन्हें बिना प्रॉम्प्ट चला सकें, साफ़ help टेक्स्ट और उदाहरणों के साथ।
continual-learning
15kपिछली चैट की समीक्षा का काम एक समर्पित मेमोरी अपडेटर को सौंपकर आपकी AGENTS.md नोट्स को अद्यतन रखती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।