Логотип Design Driven Dev

Design Driven Dev

Сообщество
ericmjl
design-driven-dev

Guide for design-driven development with prescribed folder structure. New features use full workflow (HLD → LLD → EARS). Bug fixes skip doc creation but verify intent coherence.

Обзор

Издательericmjl
Репозиторийskills
Название навыкаdesign-driven-dev
Звёзды
41
Форки
5
Встроенные файлы
3
Ссылки
  • Инструкции в формате Markdown

    Файл SKILL.md, который модель загружает по необходимости, поэтому токены расходуются только при подходящем запросе.

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

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

  • Файлы в комплекте: 3

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

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

    Опубликовано на GitHub: ericmjl. Перед установкой изучите исходные материалы.

Установка

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

1

Установка в TypingMind

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

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/ericmjl/skills/tree/main/skills/design-driven-dev
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Новый навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ericmjl/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/design-driven-dev .claude/skills/design-driven-dev
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Design Driven Dev в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Design Driven Dev, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Design Driven Dev не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими API-ключами.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Design-Driven Development

This skill guides a structured design-driven development workflow. The goal is to get alignment on what you're building before writing code, which dramatically reduces rework and misunderstandings.

Critical Rule: Stop and Iterate

STOP after completing each phase. Present the document to the user for review. Incorporate their numbered feedback. Only proceed to the next phase when explicitly approved.

This is the most important part of the workflow. Don't rush through design to get to code.

DOCS_DIR Discovery

Before starting any design work, determine the documentation directory:

  1. Check for user configuration - Has the user specified a DOCS_DIR environment variable or project config?
  2. Default to ./docs/ - This is the canonical location
  3. Discovery scan - If not set, scan for ./docs/ or ./doc/ directories:
    • If exactly one found, confirm with user: "Found docs directory at X. Use this?"
    • If multiple found, ask: "Which docs directory should I use? Options: A, B"
  4. Create if needed - If neither exists, ask: "Create ./docs/ for design documents?"

Once determined, use DOCS_DIR as the root for all design documents.

Folder Structure

DOCS_DIR/
├── high-level-design.md           # Single HLD for entire project
└── designs/
    └── <feature-name>/
        ├── LLD.md                 # Low-level design for feature
        ├── <sub-feature-1>-EARS.md
        ├── <sub-feature-2>-EARS.md
        └── ...

Example:

docs/
├── high-level-design.md
└── designs/
    ├── authentication/
    │   ├── LLD.md
    │   ├── login-EARS.md
    │   ├── logout-EARS.md
    │   └── password-reset-EARS.md
    └── payments/
        ├── LLD.md
        ├── checkout-EARS.md
        └── refunds-EARS.md

Workflow Overview

  1. High-Level Design (HLD) - Project vision and architecture → DOCS_DIR/high-level-design.md
  2. Low-Level Design (LLD) - Feature-specific technical design → DOCS_DIR/designs/<feature>/LLD.md
  3. EARS Specifications - Sub-feature requirements → DOCS_DIR/designs/<feature>/<subfeature>-EARS.md

See hld-template.md for HLD structure guidance.

When to Use This Workflow

Consult this skill for ALL code changes.

Full workflow (create new docs) for:

  • New features
  • Major refactors
  • Significant behavior changes

Coherence check only (skip doc creation) for:

  • Bug fixes
  • Quick changes (<30 minutes)
  • Debugging sessions

Even when skipping doc creation, verify intent coherence: do existing specs, tests, and code align? If not, fix the docs before changing the code.

If unsure, use the full workflow. Over-designing is safer than under-designing.

Phase 1: High-Level Design

File: DOCS_DIR/high-level-design.md

Check if an HLD exists first. For new projects or major features, create an HLD covering:

  • Problem statement and goals
  • Target users and personas
  • System architecture overview
  • Key design decisions and trade-offs
  • Non-goals (what's explicitly out of scope)

Required: Link to LLDs

markdown
## Related Designs

- [Authentication LLD](./designs/authentication/LLD.md)
- [Payments LLD](./designs/payments/LLD.md)

See hld-template.md for full structure with examples.

Stop and get user approval before proceeding.

Phase 2: Low-Level Design

File: DOCS_DIR/designs/<feature>/LLD.md

Create one LLD per major feature. Each LLD should include:

  • Component overview and context
  • Data models and interfaces
  • API contracts (if applicable)
  • Error handling and edge cases
  • Dependencies

Required: Link to HLD and EARS

markdown
## Related Documents

- [High-Level Design](../high-level-design.md)
- [Login EARS](./login-EARS.md)
- [Logout EARS](./logout-EARS.md)

See lld-template.md for structure guidance, including when to use narrative vs. structured format.

Stop and get user approval before proceeding.

Phase 3: EARS Specifications

File: DOCS_DIR/designs/<feature>/<subfeature>-EARS.md

Generate requirements using EARS (Easy Approach to Requirements Syntax). Create one EARS file per sub-feature.

Required: Link to parent LLD

markdown
## Related Documents

- [Authentication LLD](./LLD.md)

See ears-syntax.md for full EARS syntax, semantic ID format, and scope disambiguation guidance.

Stop and get user approval before proceeding.

Cross-Document Linking Rules

HLD → LLD

HLD must link to all LLDs:

markdown
## Related Designs

- [Authentication LLD](./designs/authentication/LLD.md)
- [Payments LLD](./designs/payments/LLD.md)

LLD → HLD

LLD must link back to HLD:

markdown
## Related Documents

- [High-Level Design](../high-level-design.md)

LLD → EARS

LLD must link to all its EARS files:

markdown
## Requirements

- [Login Form EARS](./login-EARS.md)
- [Password Reset EARS](./password-reset-EARS.md)

EARS → LLD

EARS must link back to parent LLD:

markdown
## Related Documents

- [Authentication LLD](./LLD.md)

Maintaining Intent Coherence

The Arrow of Intent

There's a chain of documents that translates intent from vision to working code:

HLD → LLDs → EARS → Tests → Code

Each level translates the previous into more specific terms:

  • HLD says what and why
  • LLDs say how at a feature level
  • EARS says exactly what must be true in testable terms
  • Tests verify those truths
  • Code makes them real

The Principle: Coherence Over History

The arrow of intent must stay coherent. When one level changes, downstream levels must be reviewed and updated to match.

Mutation, not accumulation. Update docs in place. Delete what's wrong. The documentation should always reflect current intent.

The Practice: Cascade Changes Downward

When requirements or understanding change:

  1. Identify the entry point - Where in the chain does this change originate?
  2. Update at that level - Mutate the doc directly
  3. Cascade downward - Review and update each subsequent level:
    • HLD change → review LLDs → review EARS → review tests → review code
    • LLD change → review EARS → review tests → review code
    • EARS change → review tests → review code
  4. Delete what's obsolete - Delete specs that no longer apply

Before Implementation

Before implementing (or resuming implementation), verify coherence:

  • Do the EARS specs trace to the current LLD?
  • Does the LLD link to the current HLD?
  • Do the tests trace to current EARS?
  • If drift is detected, fix the docs first—then implement.

Code Annotation Pattern

Annotate code with @spec comments linking to EARS IDs:

typescript
// @spec AUTH-LOGIN-001, AUTH-LOGIN-002, AUTH-LOGIN-003
export function LoginForm({ ... }) {
  // Implementation
}

Test files also reference specs:

typescript
// @spec AUTH-LOGIN-010
it('validates email format before submission', () => {
  expect(validateEmail('invalid')).toBe(false);
});

This creates traceability from requirements → code → tests.

Why This Works

BenefitWhy It Matters
Forced checkpointsCatches misunderstandings before you've built the wrong thing
Progressive revealSparsity of files makes complex features manageable
Cross-linkingAlways know where to find related context
Traceability@spec annotations link code to requirements
Survives session breaksDocs persist, context doesn't get lost
Testable requirementsEARS format ensures requirements are verifiable

Встроенные файлы

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ Design Driven Dev?

Guide for design-driven development with prescribed folder structure. New features use full workflow (HLD → LLD → EARS). Bug fixes skip doc creation but verify intent coherence.

Зачем использовать Design Driven Dev в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Design Driven Dev — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Design Driven Dev в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/ericmjl/skills/tree/main/skills/design-driven-dev. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Design Driven Dev?

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

Со сколькими моделями ИИ можно использовать Design Driven Dev?

С любым количеством. Если модель поддерживает навыки, вы можете использовать с ней Design Driven Dev: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama и другие — всё в TypingMind с вашими собственными ключами API.

Бесплатен ли навык ИИ Design Driven Dev?

Навык опубликован на GitHub автором ericmjl. Условия лицензии можно найти в репозитории. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это многоразовый набор инструкций, который объясняет модели ИИ, как выполнять конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты для вызова — код, который где-то выполняется и возвращает результат. Навык ИИ вместо этого даёт модели знания и порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте свою рабочую ИИ-среду сейчас

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