feature-diagram

Generate per-feature Mermaid flowcharts linking routes, models, jobs, and screens.

489|254|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/me2resh/apexyard --skill feature-diagram
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-diagram
Source: https://github.com/me2resh/apexyard/tree/main/.claude/skills/feature-diagram
Command: npx skills add https://github.com/me2resh/apexyard --skill feature-diagram

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It turns a feature inventory row into a clear architectural slice so teams can quickly see which HTTP routes, data models, async jobs, and UI screens participate in one feature.

Core Features & Use Cases

  • Per-feature Mermaid diagrams: Produces a four-quadrant flowchart (Screens, Routes, Models, Jobs) for one feature slug.
  • Inventory-grounded architectural slicing: Reads projects/<name>/feature-inventory.md (generated by extract-features) and links back by updating the matched row with the diagram target.
  • Deterministic helper + linting: Includes a grep-based generate.sh helper and runs a Mermaid validation flow via lint.sh.

Quick Start

Run feature-diagram with an existing inventory to generate one diagram, for example: /feature-diagram create-order curios-dog.

Frequently Asked Questions about feature-diagram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate per-feature architecture diagrams for my codebase?

To generate per-feature architecture diagrams, this Skill extracts HTTP routes, data models, async jobs, and UI screens from a feature inventory row and writes a Mermaid flowchart slice. It connects architectural surfaces by matching a feature slug to a matrix row in feature-inventory.md.

What is a feature slice in architecture documentation?

A feature slice is a focused architectural view that isolates the HTTP routes, data models, async jobs, and UI screens participating in one specific feature. It renders as a four-quadrant Mermaid flowchart to aid architecture onboarding and refactor planning.

How do I create a Mermaid flowchart from a feature inventory?

You create a Mermaid flowchart by running the generate command with a feature slug, such as '/feature-diagram create-order project-name'. The tool reads the inventory, extracts corroborated axis findings, writes the diagram to a features directory, and lints the Mermaid block.

Do I need a feature inventory file before generating architecture diagrams?

Yes, you need an existing feature-inventory.md file generated by extract-features before generating architecture diagrams. The tool matches a feature slug to a matrix row within this inventory to extract corroborated findings and update the inventory backlink with the diagram target.

Can I validate Mermaid diagrams generated from feature slicing workflows?

Yes, you can validate Mermaid diagrams generated from feature slicing using the included lint.sh script. It runs a Mermaid validation flow on the generated block, and a deterministic grep-based generate.sh helper ensures the output matches expected architectural documentation formats.

What's the best way to document HTTP routes and data models for a single feature?

The best way to document HTTP routes and data models for a single feature is generating an isolated Mermaid flowchart slice. This approach grounds the documentation in a consolidated feature inventory, ensuring all participating surfaces are accurately mapped and validated for architecture onboarding.