मुख्य सामग्री पर जाएँ
Skillpedia
टेस्टिंग20k · #10430

Hardening

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

यह स्किल उदाहरण टेस्ट के पीछे के सामान्य नियम को कई बनाए गए इनपुट पर जाँचकर सॉफ़्टवेयर टेस्ट को और धारदार बनाती है। यह उन डेवलपरों के लिए है जो ऐसे बग खोजना चाहते हैं जो उनके उदाहरण छोड़ देते हैं।

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

  • ✓जब आपके टेस्ट पास हो रहे हों, पर आपको शक हो कि वे सीमा वाले मामले छोड़ रहे हैं।
  • ✓जब आप किसी फ़ंक्शन का नियम कई रैंडम इनपुट पर जाँचना चाहते हों।
  • ✓जब कोई असफल मामला सबसे छोटे उदाहरण तक घटाना हो जो उसे तोड़ता है।

Skill का लिंक

https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/Hardening/SKILL.md

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

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

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

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

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

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

“हमारे डेटा पार्सिंग टेस्ट पास हो रहे हैं, पर मुझे लगता है कि सीमा वाले मामले छूट रहे हैं। क्या आप इन्हें property tests से मज़बूत कर सकते हैं?”

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

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

स्किल आपके उदाहरण टेस्ट के पीछे का सामान्य दावा बताती है और उसे कई बनाए गए इनपुट पर चलाती है। अगर कुछ फ़ेल होता है, तो वह विफलता को उस सबसे छोटे इनपुट तक घटाती है जो अब भी टूटता है, फिर बग या property ठीक की जाती है।

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

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

Hardening Skill

Hardening sharpens tests that already exist without adding new functionality: it turns the universal claim behind a set of example tests into a fast-check property, runs it across generated inputs, and shrinks any failure to the minimal counterexample.

One intent ships. Mutation testing, complexity scoring, duplication scanning, and acceptance-test mutation were once listed here as planned; none is built, and this file no longer advertises them (external review of the v7.40.4 payload, 2026-09-03: a routing table that promises unbuilt intents is the "confidently documented, never existed" class).

Ideal State

  • Every property written states the universal claim behind existing example tests, runs across generated inputs drawn from the function's real input domain, and keeps the examples it sharpens.
  • Every failure ends shrunk to a minimal counterexample with its seed, and ends in either a fixed bug or a corrected property.
  • What hardening lands is recorded where the system reads it: a bun-property row in the ISA's Test Strategy, and a C/R/L Learning entry when a counterexample taught something.
  • Functions that cannot carry a universal claim (impure, or no candidate shape) are left to example tests rather than forced into a property.

Intent Routing

Intent Trigger File
PropertyTest property test, property based testing, PBT, fast-check, universal quantified claim, shrink counterexample — pure functions, parsers, serializers, data transforms, invariants Intents/PropertyTest.md

Integration Points

  • Testing Doctrine Rule #12 — names fast-check as the property-testing primitive (LIFEOS/DOCUMENTATION/Testing/TestingDoctrine.md).
  • ISA format — the bun-property ISC type with property | generator | runs columns (LIFEOS/DOCUMENTATION/ISA/ISAFormat.md § ISC Type Vocabulary). A bun-property row is a first-class assert: it counts toward every-ISC-an-assert coverage (H8) and bunker test runs it like any deterministic row.
  • Algorithm — hardening is elected during verification when a run's criteria warrant property depth; spend is discovered from the work.
  • System prompt — Verification Is the Mechanism section at top (LIFEOS/LIFEOS_SYSTEM_PROMPT.md).

    The Bunker CLI is maintainer-private and not in the public release; run code rows with bun test ./<path> and suite rows with bun skills/Assay/Tools/EvalRunner.ts.

Gotchas

No skill-wide gotchas; the fast-check ones live in Intents/PropertyTest.md § Gotchas.

Examples

  • "Property-test the slug parser" → PropertyTest → round-trip and idempotence properties in a .property.test.ts file at 1000 runs, a bun-property row in the ISA, and any failure shrunk with its seed pinned.
  • "What bugs are my example tests missing?" → PropertyTest → the pure functions (parsers, serializers, transforms) that have only example coverage, listed as property-test candidates.
अक्सर पूछे जाने वाले सवाल

क्या यह मेरे उदाहरण टेस्ट की जगह ले लेती है?

नहीं। जिन उदाहरणों को यह धारदार बनाती है उन्हें रखती है, और उनके साथ property tests जोड़ती है।

किन फ़ंक्शन की इस तरह जाँच हो सकती है?

जिनका कोई साफ़ सामान्य नियम हो। अशुद्ध फ़ंक्शन या जिनका इनपुट आकार साफ़ न हो, वे उदाहरण टेस्ट के लिए छोड़ दिए जाते हैं।

यह कौन-सा टूल इस्तेमाल करती है?

यह fast-check इस्तेमाल करती है, जो एक property-based testing लाइब्रेरी है।

जानकारी

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

Hardens LifeOS tests via property-based testing with fast-check. USE WHEN harden, hardening, property test, property based testing, PBT, fast-check, strengthen tests, find bugs example tests miss, universal quantified claim, shrink counterexample, what bugs am I missing, test the tests. NOT FOR new feature tests (bun test directly), grading agent output (Assay), UI verification (Interceptor), finding security vulnerabilities, or building new functionality.

repo: danielmiessler/LifeOS

लोकप्रियता

GitHub स्टार
20k
रैंकिंग में स्थान
#10430
लाइसेंस
MIT
अपडेट की गई
28/10/2026

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

0

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

कमेंट

  • …

इस repository की और skills

LifeOS

20k

आपके एजेंट को LifeOS सेट करने में मदद करती है, एक निजी प्रणाली जो एक इंटरव्यू और डैशबोर्ड से आपकी मौजूदा स्थिति को आपके आदर्श लक्ष्य से जोड़ती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

AnnualReports

20k

आपके एजेंट को प्रमुख विक्रेताओं की साइबर सुरक्षा वार्षिक रिपोर्ट खोजने और तुलना करने में मदद करती है, जैसे उल्लंघन और ransomware के रुझान, हर आँकड़े के स्रोत के साथ।

लेखन और डॉक्यूमेंटरिसर्च

ApertureOscillation

20k

आपके एजेंट को एक डिज़ाइन सवाल को संकीर्ण और व्यापक दायरे में परखना सिखाती है, फिर बनाने से पहले बताना कि दोनों जवाब कहाँ टकराते हैं।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

Aphorisms

20k

आपके एजेंट को एक चुने हुए संग्रह से श्रेय वाले उद्धरण खोजने, मिलाने और उनका रिकॉर्ड रखने देती है, और हाल में आपके न्यूज़लेटर में इस्तेमाल हुए उद्धरण छोड़ देती है।

मार्केटिंगकॉपी और सेल्स

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