Логотип 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 по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

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

  • Открытый исходный код

    Издатель навыка на GitHub — UnpaidAttention. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Architecture Decisions в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/UnpaidAttention/fable5-methodology/tree/main/skills/architecture-decisions
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
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 или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇