Command Palette

Search for a command to run...

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

arch-view

БесплатноЗапускает вложенные скриптыНе проверен

This skill should be used when the user asks to "generate architecture view", "show service dependency graph", "map request flows", "show event topology"…

aiskillstoreот aiskillstore★ 509 звёзд на GitHub

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

Architecture View

Generate cross-repository architectural views by aggregating catalog-info.yaml metadata from all repositories using parallel subagents.

Purpose

Create visual architectural representations (Mermaid diagrams, markdown tables) that show how services fit together, how requests flow through gateways, how events propagate, and how services group by domain/team.

When to Use

Trigger this skill when:

  • User asks to "show service dependency graph" or "map the architecture"
  • User wants to understand "how services connect"
  • User asks about "request flows" or "event topology"
  • User wants to "group services by domain/team"
  • User mentions "cross-repo architecture" or "system architecture"

Workflow

Phase 1: Discover Repositories

Find all repositories to analyze:

  1. Check repos/ directory - Local cloned repositories
  2. Optionally fetch from GitHub - Use gh repo list Astrabit-CPT for full list
  3. Filter for active repos - Skip archived or template repos

Phase 2: Parallel Metadata Collection

Use subagents IN PARALLEL to read each repository's catalog-info.yaml:

For each repo:
  Launch subagent with: "Read catalog-info.yaml from [repo_path] and return the parsed content"

Parallel processing strategy:

  • Launch 5-10 subagents simultaneously
  • Collect all results
  • Handle missing metadata gracefully (skip or note as missing)

Phase 3: Aggregate and Build Model

Combine all metadata into a unified model:

aggregated = {
    "components": {},  # name -> catalog info
    "dependencies": set(),  # (from, to) tuples
    "gateways": [],
    "services": [],
    "workers": [],
    "domains": {},  # domain -> [components]
    "events": {
        "producers": {},  # topic -> [producers]
        "consumers": {},  # topic -> [consumers]
    },
    "routes": [],  # gateway routes
}

Phase 4: Generate Requested View

Based on user request, generate the appropriate view:

View Command/Trigger Output
Service Dependency Graph "dependency graph", "show dependencies" Mermaid graph
Request Flow Maps "request flows", "how requests flow" Mermaid flowchart
Event Topology "event topology", "event map" Mermaid graph
Service Groupings "group services", "services by domain" Markdown tables
Full Architecture "architecture view", "full architecture" All views combined

View Templates

Service Dependency Graph

graph TD
    Gateway[api-gateway<br/>type: gateway] --> Auth[auth-service<br/>type: service]
    Gateway --> Users[user-service<br/>type: service]
    Gateway --> Orders[order-service<br/>type: service]
    Users --> DB[(user-db<br/>type: database)]
    Auth --> Redis[(redis<br/>type: cache)]
    Orders --> OrdersDB[(order-db<br/>type: database)]
    Orders --> Worker[order-processor<br/>type: worker]

Generation logic:

  • Nodes: All components from catalog-info.yaml
  • Edges: From dependsOn relationships
  • Shape: Database nodes use [(name)], others use [name]
  • Labels: Include name and type

Request Flow Map

flowchart LR
    Client[Client] --> Gateway[api-gateway]
    Gateway -->|/api/users/*| Users[user-service]
    Gateway -->|/api/auth/*| Auth[auth-service]
    Gateway -->|/api/orders/*| Orders[order-service]
    Users --> DB[(user-db)]
    Auth --> Redis[(redis)]

Generation logic:

  • Start from gateway components (type: gateway)
  • Follow routes to find downstream services
  • Include route paths as edge labels
  • Follow service dependencies to databases

Event Topology

graph LR
    Orders[order-service] -->|order.placed| Kafka1[Kafka: order-placed]
    Orders -->|order.cancelled| Kafka2[Kafka: order-cancelled]
    Kafka1 --> User[user-service]
    Kafka1 --> Notif[notification-service]
    Kafka2 --> User
    Worker[order-processor] -->|order.processed| Kafka3[Kafka: order-processed]
    Kafka1 --> Worker

Generation logic:

  • Nodes: Services (from eventProducers) and Kafka topics (from topic field)
  • Edges: Producer → Topic, Topic → Consumer
  • Labels: Topic names on edges

Service Groupings

By Domain:

Domain Services Owner
trading order-service, trade-service, order-processor trading-team
platform api-gateway, user-service, auth-service platform-team
shared shared-utils, shared-types platform-team

By Type:

Type Services
gateway api-gateway
service user-service, auth-service, order-service
worker order-processor, notification-worker
library shared-utils, shared-types

Generation logic:

  • Group by spec.domain field
  • Show owner for each domain
  • Count services per grouping

Scripts

aggregate-metadata.py

Collect all catalog-info.yaml files from repositories:

# Aggregate from repos directory
python skills/arch-view/scripts/aggre
Полный SKILL.md на GitHub

Установить arch-view в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/view-templates.mdscripts/aggregate-metadata.pyscripts/generate-mermaid.pyskill-report.json

FAQ

Что делает скилл arch-view?

This skill should be used when the user asks to "generate architecture view", "show service dependency graph", "map request flows", "show event topology", "group services by domain", "visualize architecture", or mentions cross-repository architecture analysis, service mapping, or architectural visualization.

Как установить скилл arch-view?

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

Скилл arch-view запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить arch-view с