شعار Architecture Review

Architecture Review

المجتمع
Firstp1ck
architecture-review

Agents should invoke this skill for architecture reviews, module boundaries, dependency direction, coupling/cohesion, SOLID concerns, system design trade-offs, layering, service boundaries, or design decisions before implementation.

نظرة عامة

الناشرFirstp1ck
المستودعpi-coding-agent-forge
اسم المهارةarchitecture-review
النجوم
93
التفريعات
22
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها Firstp1ck على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Architecture Review في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-skill-architecture-review/skills/architecture-review
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Firstp1ck/pi-coding-agent-forge.git /tmp/pi-coding-agent-forge
mkdir -p .claude/skills
cp -r /tmp/pi-coding-agent-forge/pi-skill-architecture-review/skills/architecture-review .claude/skills/architecture-review
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Architecture Review في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Architecture Review تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Architecture Review بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Architecture Review

Structured architecture review for the user's projects. Evaluates module boundaries, dependency graphs, coupling/cohesion, and adherence to design principles.

Quick Start

Run a Quick Architecture Check

For a single module or component:

  1. Map the structure: What modules/components exist? How are they organized?
  2. Trace dependencies: Who depends on whom? Are there cycles?
  3. Assess coupling: How tightly are modules connected? Can you change one without breaking others?
  4. Evaluate cohesion: Does each module have a single, clear responsibility?
  5. Recommend: Prioritized findings with rationale

Architecture Review Checklist

Module Boundaries

  • Each module has a clear, single responsibility
  • Public APIs are minimal — expose only what's needed
  • Internal implementation details are hidden (encapsulation)
  • Module names accurately describe their responsibility
  • No "God module" that does everything

Dependency Analysis

  • Dependencies flow in one direction (no cycles)
  • High-level modules don't depend on low-level implementation details
  • External dependencies are isolated behind abstractions
  • Dependency count per module is reasonable (< 7 direct deps as guideline)

Coupling Assessment

Coupling TypeDescriptionSeverity
Content couplingModule directly accesses internals of anotherCritical
Common couplingModules share global mutable stateHigh
Control couplingModule controls flow of another via flagsMedium
Stamp couplingModules share complex data structuresLow-Medium
Data couplingModules share only necessary dataAcceptable
Message couplingModules communicate via messages/eventsBest

Cohesion Assessment

Cohesion TypeDescriptionQuality
CoincidentalElements grouped arbitrarilyPoor
LogicalElements grouped by category, not functionPoor
TemporalElements grouped by when they executeFair
ProceduralElements grouped by execution orderFair
CommunicationalElements operate on same dataGood
SequentialOutput of one is input of nextGood
FunctionalAll elements contribute to a single taskBest

Language-Specific Review

Rust Module Trees

bash
# Visualize module structure
cargo tree --depth 1

# Check for circular dependencies
cargo tree --duplicates

# Analyze dependency weight
cargo tree --edges features

Key checks:

  • mod.rs vs named modules — prefer named modules (module_name.rs) over mod.rs for clarity
  • pub vs pub(crate) — minimize public surface, prefer pub(crate) for workspace-internal APIs
  • Trait boundaries — are traits cohesive? Does each trait represent one capability?
  • Error types — one error enum per module, or shared error type with variants per module?
  • Re-exports — pub use in lib.rs should form a clean public API

React Component Hierarchies

bash
# Analyze component tree (manual or via React DevTools)
# Check for deep prop drilling
# Verify state ownership lives at the right level

Key checks:

  • Component depth — deeply nested components suggest missing abstractions
  • Prop drilling — if props pass through 3+ levels, consider context or composition
  • State colocation — state should live as close to where it's used as possible
  • Component responsibility — one component, one job. If it has "and" in its description, split it
  • Hook composition — custom hooks should encapsulate one behavior

Django App Structure

bash
# List apps and their models
python manage.py showmigrations

# Check for circular imports
python -c "import myapp"  # Will error on circular imports

Key checks:

  • App boundaries — each Django app should be independently understandable
  • Fat models vs fat views — prefer logic in models/services, not views
  • Circular imports — usually a sign of misplaced boundaries
  • Manager vs queryset methods — use managers for creation, querysets for filtering
  • Signal usage — signals obscure control flow; prefer explicit calls for important logic

SOLID Principles Check

PrincipleQuestionRed Flag
Single ResponsibilityDoes this module have one reason to change?Module changes for unrelated features
Open/ClosedCan you extend behavior without modifying existing code?Every new feature requires editing core modules
Liskov SubstitutionCan subtypes replace their base type without breaking things?Subclasses override methods with incompatible behavior
Interface SegregationAre interfaces focused and minimal?Implementors must stub out methods they don't need
Dependency InversionDo high-level modules depend on abstractions, not details?Business logic imports database drivers directly

Review Output Template

When delivering an architecture review, use this structure:

markdown
## Architecture Review: [Project/Module]

**Date:** YYYY-MM-DD
**Reviewer:** Arc
**Scope:** [What was reviewed]

### Summary
[1-2 sentences: overall health and key takeaway]

### Module Map
[Describe the current structure — list modules, their responsibilities, and key relationships]

### Findings

| # | Severity | Area | Finding | Recommendation |
|---|---|---|---|---|
| 1 | High | Coupling | Module A directly accesses B internals | Extract interface, use dependency injection |

### Positive Observations
[What's already well-designed]

### Dependency Graph Notes
[Key observations about dependency flow]

### Recommendations
1. [Prioritized by impact and effort]

### Tech Debt Identified
[New items for the debt registry, if any]

Integration

  • Data: Architecture decisions logged to MEMORY.md
  • Cross-reference: Check ../workspace-security/MEMORY.md for security-relevant architecture notes
  • Security flag: If architectural issues create security concerns (missing trust boundaries, shared state across security domains), flag to Zero

Arc skill — Architecture review and design assessment

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Architecture Review؟

Agents should invoke this skill for architecture reviews, module boundaries, dependency direction, coupling/cohesion, SOLID concerns, system design trade-offs, layering, service boundaries, or design decisions before implementation.

لماذا تستخدم Architecture Review على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Architecture Review عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Architecture Review في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-skill-architecture-review/skills/architecture-review. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Architecture Review؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Architecture Review؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Architecture Review معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Architecture Review مجانية؟

نعم. نشرها Firstp1ck على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇