---
name: generate-interactive-architecture-diagrams-from-code-or
description: "Generates interactive architecture diagrams from system descriptions or repository code. Use when an agent needs to map components, relationships, and message paths for documentation, planning, or onboarding."
license: CC-BY-4.0
compatibility: "Needs access to: Chat, GitHub, Terminal."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/generate-interactive-architecture-diagrams-from-code-or/"
  kind: skill
  hermes:
    tags: ["architecture", "diagrams", "visualization", "system-design", "codebase"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Generate architecture diagrams from code or prompts

Turn system descriptions or repositories into interactive visual architecture diagrams

## When to use

Turn system design ideas or repository code into interactive visual diagrams. Describe a request lifecycle, service boundary, or workflow, or have the agent inspect repository structures to construct navigable diagrams for technical documentation, planning, and onboarding.

## Inputs

- `system_description`: Description of the system, request lifecycle, service boundary, or workflow to diagram.
- `repository_location` (optional): Repository location or files the agent should inspect when mapping a codebase.

## Steps

1. When you ask: Describe system or codebase (A request for an architecture diagram or to map a repository.)
2. Parse components and data flow
3. Produce interactive visual diagram

## Instructions

When the user requests an architectural diagram or asks to map a repository, inspect the relevant files or parse the provided component descriptions. Identify key entities, relationships, and message paths, then compile them into an interactive visual format. Present the generated diagram structure to the user, and wait for confirmation before writing or updating files in the repository.

## Approvals

- Writes or updates repository files only after the user confirms the generated diagram structure.

## Output

Interactive visual architecture diagram showing components, relationships, and message paths. (format: file)

## Harness notes

- Claude Code: Save this file as ~/.claude/skills/generate-interactive-architecture-diagrams-from-code-or/SKILL.md (or .claude/skills/generate-interactive-architecture-diagrams-from-code-or/SKILL.md in the repo). Claude Code loads it when the task matches; run /generate-interactive-architecture-diagrams-from-code-or to start it directly.
- Codex: Save this file as ~/.agents/skills/generate-interactive-architecture-diagrams-from-code-or/SKILL.md (or .agents/skills/generate-interactive-architecture-diagrams-from-code-or/SKILL.md in the repo). Codex picks it up when the task matches; mention $generate-interactive-architecture-diagrams-from-code-or or choose it from /skills to run it directly.

## Source

Summarized in our own words from [archify: Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.](https://github.com/tt-a1i/archify) (GitHub, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/generate-interactive-architecture-diagrams-from-code-or/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
