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

principle-boundary-discipline

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

यह स्किल असिस्टेंट को यह नियम देती है कि कोड में जाँच और त्रुटि संभालना कहाँ रखें। यह उन डेवलपर्स के लिए है जो कम दोहराव वाली जाँचें और आसानी से टेस्ट होने वाला कोड चाहते हैं।

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

  • ✓जब आप किसी प्रोग्राम में सत्यापन या त्रुटि संभालना जोड़ रहे हैं।
  • ✓जब एक ही जाँचें कई आंतरिक फ़ंक्शनों में बार-बार दोहराई जाती हैं।
  • ✓जब आप बिज़नेस लॉजिक को आसानी से टेस्ट होने वाले शुद्ध फ़ंक्शनों में रखना चाहते हैं।

Skill का लिंक

https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-boundary-discipline/SKILL.md

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

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

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

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

इस skill से मेरी मदद करो: https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/principle-boundary-discipline/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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

“इस सर्विस में कॉन्फ़िग और API जवाब कहाँ जाँचने चाहिए, ताकि बाकी कोड सरल रहे?”

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

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

असिस्टेंट सत्यापन को सीमाओं पर रखता है, जैसे कमांड-लाइन आर्गुमेंट, कॉन्फ़िग फ़ाइलें और बाहरी कॉल, फिर भीतर के टाइप किए डेटा पर भरोसा करता है। वह बिज़नेस लॉजिक को फ़्रेमवर्क के बिना चलने वाले शुद्ध फ़ंक्शनों में रखता है।

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

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

Boundary Discipline

Place validation, type narrowing, and error handling at system boundaries. Trust internal code unconditionally. Business logic lives in pure functions. The shell is thin and mechanical.

Why: Scattered validation is noisy, redundant, and gives a false sense of safety. Keep logic out of framework wiring so it can be tested without the framework.

The pattern:

  • At boundaries (CLI args, config files, external APIs, network protocols): validate, return errors, handle defensively.
  • Inside the system: typed data, error propagation, no re-validation. Trust the types.
  • Across the boundary. Expose domain concepts, not the boundary's private representation. Keep general-purpose mechanism inside and special-purpose policy at the edge.

Applications:

Validation and error handling:

  • Validate config at parse time (the boundary), not inside business logic
  • Parse raw data into domain types at the boundary
  • Do not re-export transport, storage, framework, or wire types through the public surface
  • No redundant nil checks deep in call chains if the boundary already validated

Code organization:

  • Business logic in pure functions with no framework dependencies
  • Parse functions: pure transforms from raw bytes to typed state
  • Prompt construction: structured state in, string out
  • Scoring and assessment: pure transforms from state to results

The tests:

  • "Is this data crossing a system boundary right now?" If not, validation is redundant.
  • "Can this be a pure function that the shell just calls?" If yes, extract it.
अक्सर पूछे जाने वाले सवाल

हर जगह क्यों न जाँचें?

बिखरी हुई जाँचें शोर करती हैं, बार-बार दोहराई जाती हैं और सुरक्षा का झूठा एहसास देती हैं।

सिस्टम के भीतर क्या होना चाहिए?

टाइप किया हुआ डेटा और त्रुटि का आगे जाना, बिना उन मानों को दोबारा जाँचे जिन्हें सीमा पहले ही सत्यापित कर चुकी है।

लॉजिक फ़्रेमवर्क से बाहर क्यों रखें?

ताकि उसे फ़्रेमवर्क शुरू किए बिना टेस्ट किया जा सके।

जानकारी

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

Apply when wiring validation, error handling, or framework adapters. Concentrate guards at system boundaries (CLI, config, network, external APIs); trust internal types and keep business logic in pure functions.

repo: cursor/plugins

लोकप्रियता

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

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

0

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

कमेंट

  • …

इस repository की और skills

advisor

15k

अगर आप इसे चालू करते हैं, तो आपका एजेंट बड़े फ़ैसले से पहले या किसी त्रुटि में अटकने पर एक ज़्यादा शक्तिशाली दूसरे मॉडल से सलाह ले सकता है।

AI और एजेंटएजेंट

check-agent-compatibility

15k

जाँचती है कि AI कोडिंग एजेंट किसी रिपॉज़िटरी को शुरू, सत्यापित और दस्तावेज़ित कर सकते हैं या नहीं, और एक अनुकूलता स्कोर के साथ मुख्य समस्याएँ लौटाती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

cli-for-agents

15k

आपके एजेंट को कमांड-लाइन टूल ऐसे डिज़ाइन या जाँचना सिखाती है कि AI एजेंट उन्हें बिना प्रॉम्प्ट चला सकें, साफ़ help टेक्स्ट और उदाहरणों के साथ।

कोडिंगAPI और सर्वर (backend)

continual-learning

15k

पिछली चैट की समीक्षा का काम एक समर्पित मेमोरी अपडेटर को सौंपकर आपकी AGENTS.md नोट्स को अद्यतन रखती है।

AI और एजेंटएजेंट

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