architectural-decisions
ما الذي تفعله
تساعد هذه المهارة ذكاءك على شرح الأسباب وراء بناء كود المشروع بطريقته الحالية. وهي لمطورين يعملون في مشروع فهرسه Repowise، ويريدون تجنب التراجع عن خيارات مقصودة.
متى تستخدمها
- ✓عندما تسأل لماذا جرى بناء جزء من الكود بالطريقة التي هو عليها.
- ✓عندما توشك على تغيير نمط، أو إعادة هيكلة وحدات، أو الاختيار بين نهجين.
- ✓عندما تذكر رسائل الـcommit أو تعليقات الكود قرارات أو مفاضلات أو ADR يجب احترامها.
رابط المهارة
https://github.com/repowise-dev/repowise/blob/main/plugins/claude-code/skills/architectural-decisions/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“لماذا تُبنى المصادقة هنا باستخدام JWT؟ تحقق من القرارات المسجّلة قبل أن نغيّرها.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تطلب المهارة من Repowise القرارات التي تطابق سؤالك أو الملف الذي تعمل عليه. وتعرض على ما يلزم من الأسباب المسجّلة قبل أي تغيير، وتنبّه إذا لم يوجد قرار مسجّل.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Architectural Decisions with Repowise
Repowise captures architectural decisions — the why behind how code is built.
get_why has four modes — pick by what you pass:
get_why(query="why is auth using JWT?")— keyword + semantic decision search.get_why(query="src/auth/service.py")— decisions governing that file, plus its origin story and an alignment score (does the file still follow its own ADRs?).get_why(query="why was caching added?", targets=["src/auth/cache.py"])— target-anchored search; decisions touching the targets get boosted.get_why()— the decision-health dashboard.
Decisions are mined from five sources (ADR files, PR and squash-commit bodies,
inline markers, git archaeology, and centrality-bounded code comments). Each
rationale traces to a verbatim source span, stamped exact / fuzzy / unverified.
When no decision exists for a path, get_why falls back to git archaeology so
the call is never empty.
When the user asks "why is X built this way?"
Call get_why(query="X").
When about to make an architectural change
- Call
get_why(query="the specific area you're changing")to find existing decisions that govern that area. - If decisions are found, present them to the user before proceeding — they may not want to contradict an existing architectural choice.
- If no decisions are found, proceed but note that no recorded decision governs this area.
When called with no specific query
Call get_why() with no arguments to get the decision-health dashboard:
- Stale decisions that may no longer apply
- Proposed decisions awaiting confirmation
- Ungoverned hotspots (high-churn files with no recorded decisions)
The same signals surface in the CLI via repowise decision health /
/repowise:decision, and you can query why mid-task with repowise why /
/repowise:why (the get_why adapter). repowise decision candidates --format json
lists proposed decisions with what each still needs;
repowise decision confirm <id> --agent <your slug> --evidence <commit|file>
accepts one (see /repowise:decision).
When a file has decision markers
If you see # WHY:, # DECISION:, # TRADEOFF:, or # ADR: comments in code, call get_context(targets=["that_file.py"]) to see the full decision record with context and affected modules.
Recording new decisions
When you settle an architectural choice yourself (you weighed options and picked one), record it:
repowise decision add --agent <your slug> --title "..." --decision "..." --rationale "<why, and what you rejected>" --affects <path>
Add --evidence-commit <sha> once it is committed. The record lands as a candidate: it never governs until accepted, so recording is safe.
Reviewing candidates
You may review and accept candidates yourself. repowise decision candidates --format json lists each with its blockers. Accept one with repowise decision confirm <id> --agent <your slug>, adding --reason, --scope <path>, --evidence <commit|file|link> or --decision for whatever a blocker names. Dismiss a wrong one with repowise decision dismiss <id> --agent <your slug> --reason ... --yes, fold a duplicate with repowise decision merge <id> <into-id> --agent <your slug> (the target must already be accepted; confirm it first), and retire one with repowise decision deprecate <id> --agent <your slug> --reason .... When an accepted decision is needs_review and still holds, renew it with repowise decision reaffirm <id> --agent <your slug>; confirm is for candidates only. With --format json every review command returns results[], even for one id. Your acceptances are recorded as yours, never a person's. If the repository turned agent acceptance off, the confirm is refused; leave it for a person and mention it.
If the user states a decision, offer to record it the same way without --agent.
الأسئلة الشائعة
من أين تأتي القرارات المسجّلة؟
من سجلات القرارات المعمارية، ورسائل طلبات السحب والـcommits، والعلامات المضمّنة في الكود، وسجل Git، وبعض تعليقات الكود.
ماذا لو لم يكن هناك قرار مسجّل؟
تكمل المهارة عملها، لكنها تنبّه إلى أنه لا يوجد سبب مكتوب لذلك الجزء من الكود.
هل تعمل فقط في مشروع Repowise؟
نعم. تحتاج إلى مشروع فهرسه Repowise، أي فيه مجلد .repowise.
التفاصيل
الوصف الأصلي من المؤلف
Use when encountering questions about WHY code is built a certain way, when about to make architectural changes (new patterns, restructuring, choosing between approaches), or when the user asks about design rationale in a Repowise-indexed codebase (.repowise/ directory exists). Also activates when commit messages or code comments contain decision signals like "WHY:", "DECISION:", "TRADEOFF:", "ADR:".
repo: repowise-dev/repowise
الشعبية
- نجوم GitHub
- 8.1k
- الترتيب
- #12564
- الترخيص
- AGPL-3.0
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
change-review
8.1kيساعد وكيلك على مراجعة طلب سحب أو مجموعة تغييرات قبل الدمج، فيعرض المخاطر والملفات المتأثرة وما يجب أن يتغير معها.
code-health
8.1kيساعد وكيلك على تقييم صحة الكود ملفًا ملفًا، وإيجاد الملفات الأكثر خطرًا، واختيار ما يجب إعادة هيكلته لاحقًا، باستخدام تحليل Repowise.
codebase-exploration
8.1kيساعد وكيلك على فهم مشروع غير مألوف بسرعة، بالإجابة عن كيفية عمل الكود ومن يستدعي ماذا وأين بُنيت الأشياء.
dead-code-cleanup
8.1kيساعد وكيلك على إيجاد الكود غير المستخدم والملفات التي لا يمكن الوصول إليها والتصديرات غير المستخدمة في المشروع، لتنظيفها بأمان.
مهارات مشابهة
diffs
394kيتيح لوكيلك إنتاج فرق تعديلات حقيقي يمكن مشاركته، كرابط عرض أو ملف صورة، بدلاً من ملخص مكتوب يدوياً.
coding-agent
394kيساعد وكيلك على تسليم مهمة برمجة كبيرة إلى Codex أو Claude Code أو OpenCode كعامل في الخلفية، ثم متابعة تقدمها.
gh-issues
394kيساعد وكيلك على إيجاد مشكلات GitHub واختيار ما ستعمل عليه، وفتح طلبات سحب بالإصلاحات، ومتابعة تعليقات المراجعة.