Логотип 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, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: Firstp1ck. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Architecture Review у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/Firstp1ck/pi-coding-agent-forge/tree/main/pi-skill-architecture-review/skills/architecture-review
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
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?

Зі скількома забажаєте. У TypingMind ви можете використовувати Architecture Review із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Architecture Review?

Так. На GitHub цю навичку публікує Firstp1ck за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇