Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

flow-architect

БесплатноБез исполняемых скриптовНе проверен

Guide architectural decisions and PLAN.md updates using Flow framework. Use when user discusses "architecture", "how should we architect", "design patterns"…

khgs2411от khgs2411★ 39 звёзд на GitHub17 установок в других каталогах

Об этом скилле

Flow Architect

Help users make and document architectural decisions using Flow framework projects. This Skill activates during brainstorming when design patterns, technology choices, or system structure need to be captured in PLAN.md.

When to Use This Skill

Activate when the user discusses architecture:

  • "How should we architect this?"
  • "What's the best structure for..."
  • "Should we use [pattern/library/approach]?"
  • "Update the architecture section"
  • "Add a DO/DON'T rule"
  • "What technology should we choose?"
  • "Document this design decision"
  • "Define the scope boundaries"

Architecture Philosophy

Flow's Core Principle: Document architectural decisions during brainstorming, not during implementation. PLAN.md preserves design rationale for future reference.

Key Sections in PLAN.md:

  • Architecture: High-level system structure, component boundaries, data flow
  • DO/DON'T Guidelines: Discovered patterns and anti-patterns with rationale
  • Scope: What's in V1 vs future versions, boundaries and constraints

When to Update:

  • Major architectural decision made
  • Pattern discovered that should be followed consistently
  • Technology choice finalized
  • Scope boundary clarified
  • Anti-pattern identified

PLAN.md Architecture Section

What Goes in Architecture

High-level Structure:

  • System components and their relationships
  • Module boundaries and responsibilities
  • Data flow between components
  • Integration points (external APIs, services, databases)
  • Key design patterns being used

Example Architecture Section:

## Architecture

### System Structure

**Core Components**:
- **PaymentProcessor**: Orchestrates payment flow, handles retries
- **StripeClient**: Wrapper around Stripe SDK, manages API calls
- **ErrorMapper**: Translates Stripe errors to domain errors
- **RetryPolicy**: Configurable backoff and retry logic

**Data Flow**:

User → PaymentProcessor → StripeClient → Stripe API ↓ (on error) ErrorMapper → RetryPolicy → StripeClient (retry)


**Integration Points**:
- Stripe API v2024-10 (payment processing)
- Webhook endpoint (payment status updates)
- Database (transaction log)

What Doesn't Go in Architecture

Avoid These:

  • ❌ Implementation details (specific line numbers, code snippets)
  • ❌ Completed work (belongs in task notes)
  • ❌ Bugs and fixes (belongs in iteration notes)
  • ❌ Speculation about future features (keep focused on V1)

DO/DON'T Guidelines

When to Add Guidelines

Add a guideline when you discover:

  • A pattern that should be followed consistently
  • An anti-pattern that should be avoided
  • A constraint from the technology/platform
  • A design decision with specific rationale

DO NOT add guidelines for:

  • Obvious best practices (don't state "write tests")
  • One-off decisions (not patterns)
  • Implementation details (belongs in code comments)
  • Preferences without rationale

Guideline Structure

Format:

### DO: [Action]

**Rationale**: [Why this pattern works]

**Example**:
```[language]
// Good approach

Anti-pattern:

// What to avoid

**Real Example**:
```markdown
### DO: Use RetryPolicy for all Stripe API calls

**Rationale**: Stripe API has transient failures (rate limits, network issues). Retry logic with exponential backoff prevents user-facing errors.

**Example**:
```typescript
const result = await retryPolicy.execute(() =>
  stripe.createCharge({ amount, currency })
);

Anti-pattern:

// Don't call Stripe directly without retry
const result = await stripe.createCharge({ amount, currency });

### DON'T: [Anti-pattern]

**Rationale**: [Why this causes problems]

**Impact**: [Consequences of ignoring this]

**Example**:
```markdown
### DON'T: Retry permanently failed payments

**Rationale**: Permanent failures (invalid card, insufficient funds) will never succeed. Retrying wastes resources and delays error feedback to user.

**Impact**:
- User waits longer for error message
- Unnecessary load on Stripe API
- Potential rate limit violations

**How to Identify Permanent Failures**:
- Stripe error codes: `card_declined`, `insufficient_funds`, `invalid_card`
- Use ErrorMapper to classify errors

Technology Choices

When to Document Technology Decisions

Document when you choose:

  • External library or framework
  • Design pattern (e.g., Repository pattern, Strategy pattern)
  • Architecture style (e.g., layered, hexagonal, microservices)
  • Third-party service (e.g., Stripe, Twilio, SendGrid)

Technology Choice Format

## Technology Choices

### [Component/Area]: [Technology]

**Decision**: Using [technology/pattern] for [purpose]

**Rationale**:
- [Reason 1: why this choice]
- [Reason 2: advantage over alternatives]
- [Reason 3: fits project constraints]

**Alternatives Considered**:
- [Alternative 1]: [Why not chosen]
- [Alternative 2]: [Why not chosen]

**Trade-offs**:
- ✅ Pros: [a
Полный SKILL.md на GitHub

Установить flow-architect в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

PLAN_UPDATES.md

FAQ

Что делает скилл flow-architect?

Guide architectural decisions and PLAN.md updates using Flow framework. Use when user discusses "architecture", "how should we architect", "design patterns", "how should we structure", "how do we structure", "technology choice", "should we use", "DO/DON'T rules", "update architecture", or wants to update Architecture section in PLAN.md. Helps document architectural decisions, update DO/DON'T guidelines, define scope boundaries, and record technology choices during brainstorming.

Как установить скилл flow-architect?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл flow-architect запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить flow-architect с