Логотип Architecture Decisions

Architecture Decisions

Спільнота
UnpaidAttention
architecture-decisions

Choose between competing technical approaches and make design decisions with an explicit trade-off order. Trigger this when a task requires selecting among 2+ viable designs — "should we use X or Y", designing a schema, shaping a public API, choosing a storage/queue/cache mechanism, deciding whether to add a dependency, or deciding whether to introduce an abstraction. Do NOT trigger for initial request parsing (use task-planning), for line-level style questions (use implementation-standards), or when the codebase already has an established pattern for this exact problem — in that case, follow the existing pattern without deliberation.

Огляд

ВидавецьUnpaidAttention
Репозиторійfable5-methodology
Назва навичкиarchitecture-decisions
Зірки
94
Форки
21
Файли в пакеті
Лише інструкції
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

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

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

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

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

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

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

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

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

1

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

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

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/architecture-decisions
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnpaidAttention/fable5-methodology.git /tmp/fable5-methodology
mkdir -p .claude/skills
cp -r /tmp/fable5-methodology/skills/architecture-decisions .claude/skills/architecture-decisions
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Architecture Decisions в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Architecture Decisions, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Architecture Decisions не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Architecture Decisions

Pick between approaches quickly, with an explicit priority order, weighted by how expensive the decision is to reverse.

Step 1: Check for a decision to make at all

Grep the codebase for how this problem is already solved here (existing cache? existing error envelope? existing job runner?). If an established pattern exists, use it — consistency with the system beats a locally better choice. Only proceed to Step 2 when the problem is genuinely new to this codebase or the existing pattern demonstrably fails a hard requirement.

Step 2: Generate 2–3 candidates, no more

For each candidate write three lines:

  1. Mechanism, one sentence.
  2. Worst failure mode — what happens when the dependency is down, input is malformed, load spikes.
  3. What it makes hard later — the concrete thing, not "less flexible".

If you have more than three candidates, you haven't understood the constraints; re-read them.

Step 3: Apply the trade-off priority order

Earlier beats later unless the user explicitly reorders:

  1. Correctness on known inputs — including the edge cases this data will actually contain.
  2. Failure behavior — prefer designs that fail loudly, early, and partially over silently, late, and totally.
  3. Simplicity / reviewability — could a competent stranger understand it in one read?
  4. Consistency with the existing system.
  5. Extensibility — only for axes of change with concrete evidence (a second case exists or is scheduled). Speculative flexibility loses to simplicity, always.
  6. Performance — only past correctness, and only where measured or obviously hot (per-request loop, O(n²) on unbounded n, I/O inside a loop). No restructuring without a number.

Kill any candidate that fails a hard constraint (correctness, explicit user requirement). Among survivors, take the simplest that doesn't foreclose a known future need.

Step 4: Calibrate deliberation to reversibility

  • Switching later costs < 1 hour → pick the more conventional option NOW and move on. Close calls between good options don't matter; record the choice in one line.
  • Switching later means data migration, breaking API consumers, or redone work measured in days → slow down; if the user's context could change the answer, ask one batched question with your recommendation as the default.

Step 5: Dependency sub-decision

Adding a dependency IS an architecture decision. In order:

  1. Stdlib or an already-installed dependency does it (check the lockfile, not memory)? → use that.
  2. Hand-rolled version is <~50 lines with no tricky edges? → hand-roll. Never hand-roll dates/timezones, crypto, unicode handling, or parsing of established formats — these are always tricky.
  3. Otherwise: one boring, widely-used, maintained, license-compatible library. Never a framework to use one function.

Step 6: Abstraction sub-decision

Introduce an interface/base class/plugin point only when two concrete cases already exist or a second is actually scheduled. One implementation → write the direct version and leave a one-line note naming the upgrade path. When you break any default pattern, leave a comment naming the constraint that forced it — the constraint, not a narration.

Default patterns (use unless codebase or user overrides)

  • Pure logic at the core; I/O (network, disk, DB, clock, randomness) at the edges, passed in.
  • Errors via the language's native mechanism; fail fast on programmer errors; contextualize expected failures; never catch-and-continue silently.
  • Persistence invariants live in the database (constraints, unique indexes, FKs), not only in app code.
  • Validate at trust boundaries; trust internally.
  • Composition over inheritance; functions over classes when no state is carried.

Worked example

Task: "Products API is slow; add caching to product lookups."

  • Step 1: grep finds redis in the lockfile, used for sessions. Candidate space narrows.
  • Candidates: (A) Redis cache-aside, TTL 5 min. (B) In-process LRU per instance. (C) Materialized view refreshed on write.
  • Failure modes: A — stale up to TTL; Redis outage degrades to DB (fine). B — inconsistent across instances after writes (there are 4 instances → correctness problem for post-update reads). C — write amplification, and the write path is owned by another team (hard constraint).
  • Kill C (constraint), kill B (fails correctness at priority 1 given multi-instance writes).
  • Choose A. Reversibility: swapping cache strategy later ≈ an hour → decide now, no user question needed. Record: "Cache-aside via existing Redis, TTL 5m, key product:{id}, invalidated on update."

Done when

The chosen approach is written in 1–3 lines (mechanism, key parameters, why-over-runner-up), every rejected candidate has a named reason tied to the priority order or a hard constraint, and any expensive-to-reverse decision has either user sign-off or a stated assumption at delivery. Then implement.

Поширені запитання

Що робить навичка ШІ Architecture Decisions?

Choose between competing technical approaches and make design decisions with an explicit trade-off order. Trigger this when a task requires selecting among 2+ viable designs — "should we use X or Y", designing a schema, shaping a public API, choosing a storage/queue/cache mechanism, deciding whether to add a dependency, or deciding whether to introduce an abstraction. Do NOT trigger for initial request parsing (use task-planning), for line-level style questions (use implementation-standards), or when the codebase already has an established pattern for this exact problem — in that case, foll...

Навіщо використовувати Architecture Decisions у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Architecture Decisions — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Architecture Decisions у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/architecture-decisions. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Architecture Decisions?

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

Зі скількома моделями ШІ можна використовувати Architecture Decisions?

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

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

На GitHub цю навичку публікує UnpaidAttention. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

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

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

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

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

Усі

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

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