cross-platform-contract-propagation-audit
यह क्या करती है
यह tool जाँचता है कि कोई contract बदलाव (जैसे database field या कोई feature) उन सभी जगहों पर एक जैसा लागू हुआ है या नहीं जहाँ वह इस्तेमाल होता है, जैसे services, apps और tests। यह सुनिश्चित करता है कि सब उस बदलाव को एक ही तरीके से समझें और इस्तेमाल करें।
कब इस्तेमाल करें
- ✓किसी field को जोड़ते या बदलते समय, जो कई सिस्टम्स पर असर डालती है।
- ✓जब सिस्टम के अलग-अलग हिस्से किसी value को अलग-अलग तरीके से समझ सकते हों।
- ✓यह सुनिश्चित करने के लिए कि बदलाव पुराने सिस्टम्स या मौजूदा data को न तोड़े।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/cross-platform-contract-propagation-audit/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“जाँचो कि नया 'dark mode' feature mobile apps, web और usage data collection में सही तरीके से पहुँच रहा है या नहीं।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
पहले आप साफ़ तय करते हैं कि बदलाव का मतलब क्या है और अलग-अलग स्थितियों में उसे कैसे व्यवहार करना चाहिए। फिर आप सारी जगहों की सूची बनाते हैं जहाँ यह बदलाव इस्तेमाल होगा, और आखिर में जाँचते हैं कि हर जगह बदलाव सही लागू हुआ है, और उसका सबूत दर्ज करते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Cross-Platform Contract Propagation Audit
Overview
Audit a contract change from its source through every transformation and consumer before release. Treat a field that exists in one schema as incomplete until its meaning, defaults, wire behavior, rollout controls, client handling, analytics, and tests are proven across all relevant paths.
This is a read-only evidence workflow. It reports propagation gaps; it does not implement them.
When to Use This Skill
- Use when adding or changing a field, enum value, status, capability, or feature flag shared by multiple components.
- Use when database, backend, API, Web, Android, iOS, jobs, events, or analytics may interpret the same value differently.
- Use when a change must preserve existing records, older clients, or a default-off rollout.
- Use when a change looks complete in one endpoint but may be missing from alternate entry points or generated models.
How It Works
Step 1: Write the semantic contract
Before tracing files, state the business invariant and define every observable state. Distinguish values that languages and serializers often collapse:
| State | Questions to answer |
|---|---|
| missing | Is the property absent on the wire or in an old record? |
null |
Is it unknown, inherited, unsupported, or invalid? |
false or zero |
Is this an explicit disabled value or a default? |
true or non-zero |
What behavior becomes available? |
| unknown enum | Must old consumers ignore, preserve, or reject it? |
Record compatibility requirements, ownership, rollout condition, and the exact user-visible or system behavior for each state. Do not accept optional, nullable, and default false as equivalent without evidence.
Step 2: Enumerate the propagation graph
List every relevant node before judging completeness:
source of truth
-> persistence and migration
-> domain model and mapper
-> service or policy computation
-> every API, event, cache, and job projection
-> generated or handwritten client model
-> client state and presentation logic
-> analytics and operational observability
-> tests, rollout, and rollback checks
Include alternate read/write endpoints, list/detail projections, background consumers, offline caches, admin surfaces, older app versions, and feature-flag evaluation points when they are in scope. Mark a node not applicable only with a reason.
Step 3: Trace evidence edge by edge
For each edge, cite the producer, transformation, consumer, and test using file paths, symbols, schema names, or other inspectable evidence. Assign one status:
| Status | Meaning |
|---|---|
proven |
Producer and consumer agree, with direct evidence and relevant test coverage. |
partial |
Some paths or states agree, but coverage is incomplete. |
missing |
A required propagation edge or consumer is absent. |
conflict |
Two layers implement different semantics. |
unknown |
Evidence is unavailable or ambiguous. |
not_applicable |
The layer is outside scope, with a stated reason. |
Do not upgrade likely, convention, type compatibility, or a framework default to proven. A declaration proves shape, not runtime mapping or behavior.
Step 4: Check the high-risk boundaries
Inspect these boundaries explicitly:
- Migration and existing data: default, backfill, nullability, rollback, mixed-version reads and writes.
- Domain mapping: missing/null coercion, enum fallbacks, validation, derived values, serialization symmetry.
- Fan-out surfaces: list and detail DTOs, events, caches, jobs, search indexes, SDKs, and alternate API versions.
- Client compatibility: missing and explicit-null decoding, unknown enums, generated-model drift, cached payloads, release or minified builds.
- Rollout control: flag default, evaluation location, cohort consistency, kill switch, and behavior when stored data disagrees with the flag.
- Analytics: offered, rendered, attempted, succeeded, and failed events carry enough contract and version context to join reliably.
Step 5: Build a state-by-path test matrix
Cross the semantic states from Step 1 with every material path from Step 2. At minimum, include existing-data defaults, enabled and disabled values, flag on and off, alternate endpoints, current clients, and representative older clients.
…
अक्सर पूछे जाने वाले सवाल
इस संदर्भ में 'contract' क्या है?
contract एक समझौता है कि कोई जानकारी (जैसे data या feature) कैसे काम करे और कैसे समझी जाए। इसे ऐसे समझें जैसे सभी सिस्टम्स के लिए तय किए गए नियम।
'propagation' की जाँच क्यों ज़रूरी है?
Propagation का मतलब है सुनिश्चित करना कि बदलाव सभी सिस्टम्स और उन सभी जगहों पर एक जैसा लागू हो जहाँ वह इस्तेमाल होता है। अगर यह सही तरीके से न पहुँचे, तो errors, असंगतियाँ या अनचाहा व्यवहार हो सकता है।
क्या यह tool अपने-आप fixes करता है?
नहीं, यह tool audit और verification के लिए है। यह बताता है कि असंगति कहाँ है, लेकिन उसे ठीक नहीं करता। यह developers के लिए जानकारी देता है ताकि वे ज़रूरी सुधार कर सकें।
जानकारी
लेखक का मूल विवरण
Use when auditing whether a field, enum, flag, or API contract propagates consistently across storage, services, clients, analytics, and tests.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #4287
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
test-driven-development
311kयह आपके एजेंट को किसी भी फ़ीचर या सुधार से पहले पहले असफल होने वाला टेस्ट लिखना, उसे असफल होते देखना, फिर पास करने वाला सबसे छोटा कोड लिखना सिखाती है।
verification-before-completion
311kयह आपके एजेंट को किसी काम, सुधार या build के पूरा या पास होने का दावा करने से पहले असली जांच चलाकर उसका आउटपुट पढ़ना सिखाती है।
migrate-to-shoehorn
310kआपकी टेस्ट फ़ाइलों में जोखिम भरे type casts की जगह shoehorn लाइब्रेरी लगाती है, ताकि टेस्ट अधूरे डेटा से भी type checks पास कर सकें।