what-could-break
ما الذي تفعله
تساعدك هذه المهارة في معرفة ما الذي قد ينكسر في الكود عند إجراء تغيير. لا تفحص ما عدّلته فقط، بل تفحص أيضاً كيف يؤثر التغيير في أجزاء أخرى من النظام غير المرتبطة مباشرة بتعديلك.
متى تستخدمها
- ✓قبل إجراء تغييرات كبيرة عبر أقسام كثيرة من الكود.
- ✓عند تعديل ملفات تستخدمها برامج كثيرة.
- ✓عندما تريد التأكد من أن تغييراً صغيراً لن يسبب مشكلات غير متوقعة.
رابط المهارة
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/what-could-break/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ما الذي قد يكسره هذا التغيير في أجزاء أخرى من النظام؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تحلل المهارة تغييرك وتبحث عن مشكلات محتملة في أماكن أخرى. وتحاول إثبات أن تغييرك آمن عبر تشغيل اختبارات حقيقية بالكود المعدل.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
What Could Break
Overview
Listing callers is not the job. Grep does that in a second. This skill finds the breakage grep will not show you, and produces one proof that the change is safe.
Run it before design, not only before merge. Whenever a task asserts something about existing code ("X already handles Y", "just make X public"), that assertion is a hypothesis, and the census of real consumers decides the design.
When to Use
- Use before any multi-file edit, or an edit to a shared path: API payload, config, stored data, a client other apps read, a prompt or policy file
- Use when the user asks "what could this break" or "blast radius of X"
- Use for a small diff you do not trust
- Use when a brief asserts something about existing code, before you design against that assertion
How It Works
Step 1: Do not trust your own writeup
A risk analysis that sounds right is worthless: it reads as convincing whether or not it is true. Find the one or two facts the whole change depends on, and get each one as far down this ladder as is cheap. Say where it stopped.
- You said so. Worth nothing on its own.
- You pointed at it. A real
file:line, or the library's own source at the pinned version. - You walked it. You traced the bad case step by step and it does not reach.
- You ran it. A script or test calls the real code and fails loud if you are wrong.
- You saw it live. Reproduced in the running app, service or device.
Rung 4 is usually one small script that imports the same module production runs and calls the exact function you are worried about, with the input you are worried about.
Step 2: Read the change
The diff, the symbols it adds, changes and deletes, and what it now does differently,
including what the diff does not spell out. git log -S '<symbol>' and
git log -L :<function>:<file> show why the old shape exists; a guard that looks
pointless often has a commit explaining the incident it stopped.
Step 3: Find the one fact it is safe because of
Most risky-looking changes are safe because of one fact ("this only drops cache entries that are already expired", "no client reads this field"). If it holds, most risks clear at once. If you cannot find one, the change is not understood yet.
Step 4: Look where grep stops
Search for the literal value, the field name, the error text and the old behavior, not only the symbol you renamed. Then check each of these by hand:
- The same rule living twice. A second config file, a fallback path that hardcodes the old default, a copy synced into another repo, a constant duplicated in a migration or test fixture, a feature flag default.
- Prompts and agent files that restate the rule. System prompts, agent and skill files,
AGENTS.md,CLAUDE.md, runbooks. An agent obeys the stale sentence, not your code. - Every other client. Web, iOS, Android, desktop, CLI, extensions, partner integrations. Mobile clients in users' hands stay on the old version for weeks: what does an old client do with the new shape, and a new client with the old server?
- Wire formats. JSON field names and types, enum values, null versus missing, date formats, pagination shape, error codes, webhook payloads, queue schemas, GraphQL and protobuf contracts.
- Stored state. Columns and their defaults, rows written under the old shape, cache entries, files on disk, append-only logs, session and cookie contents, search indexes. Old data outlives the deploy.
- Environment and secrets. An env var renamed in code but not in the deploy config, CI, the image, or the second service that reads it.
- Processes that restart separately. Web server, workers, cron jobs, serverless functions, the mobile app, a sidecar. During a rollout one runs new code while another runs old code against the same data. Can both coexist for an hour?
- Timing and concurrency. Two writers on the same row or key, a retry that now fires twice, ordering that only held because one step was slow.
- Library source at its pinned version. Read the dependency's code at the lockfile version, not your memory of its docs.
- Generated and vendored code. Clients generated from a schema, vendored copies, committed build artifacts, bundles whose cache-busting key did not change.
- Tests and fixtures that encode the old behavior. A test that passes because its fixture still has the old shape proves nothing about the new one.
…
الأسئلة الشائعة
لماذا لا أستخدم «grep» فقط؟
«grep» يبحث عن نص محدد. أما هذه المهارة فتذهب أبعد، إذ تفحص كيف يعمل الكود فعلياً وكيف يتواصل مع الأجزاء الأخرى، وهو ما لا يستطيعه grep.
ماذا تعني «المرتبة 4» (rung 4)؟
«المرتبة 4» مستوى ثقة يُشغّل فيه اختبار أو سكريبت الكود الحقيقي بمدخلات متوقعة، ويفشل إذا كان هناك خطأ. وهي طريقة لإثبات أن الكود يعمل كما صُمم.
ما هي «صيغ التواصل» (wire formats)؟
هي طرق تبادل البيانات بين أجزاء النظام المختلفة، مثل صيغ الرسائل (JSON أو XML)، وأسماء الحقول وأنواع البيانات، وطريقة الإبلاغ عن الأخطاء.
التفاصيل
الوصف الأصلي من المؤلف
Find what a change breaks outside its own diff, then prove the one fact that makes it safe by running real code. Use before any multi-file edit or an edit to a shared path.
الشعبية
- نجوم GitHub
- 48k
- الترتيب
- #6171
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
00-andruia-consultant
48kيساعد وكيلك على بدء مشاريع الذكاء الاصطناعي أو تحسينها. يحلل الكود ويقترح الأدوات ويُعد خطط عمل بالإسبانية.
007
48kيتيح لوكيلك إجراء تدقيقات أمنية ونمذجة التهديدات. مفيد لحماية المشاريع من الهجمات والثغرات الأمنية.
10-andruia-skill-smith
48kيساعد وكيلك على إنشاء أدوات الذكاء الاصطناعي أو تحسينها. يحدد طريقة عملها، ويكتب توثيقها، ويتحقق من بنيتها.
20-andruia-niche-intelligence
48kيتيح لوكيلك إعداد ملخص عن صناعة محددة. مفيد لفهم السياق والقواعد وأنماط الاستخدام والمخاطر لمشروع ما، باستخدام مصادر موثوقة.
مهارات مشابهة
test-driven-development
311kيعلّم وكيلك كتابة اختبار فاشل أولًا، ثم رؤيته يفشل، ثم كتابة أصغر شيفرة تنجحه، قبل بناء أي ميزة أو إصلاح.
verification-before-completion
311kيعلّم وكيلك تشغيل فحوصات حقيقية وقراءة نتائجها قبل أن يقول إن المهمة أو الإصلاح أو البناء مكتمل أو ناجح.
migrate-to-shoehorn
310kيستبدل تأكيدات النوع الخطرة في ملفات الاختبار بمكتبة shoehorn، حتى تتمكن الاختبارات من استخدام بيانات جزئية وتجتاز فحوص الأنواع.