AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Docs Diagram

skill-mgiovani-cc-arsenal-docs-diagram · by mgiovani

Generate a Mermaid diagram (ER, architecture, deployment, or security)

No reviews yet
0 installs
46 views
0.0% view→install

Install

$ agentstack add skill-mgiovani-cc-arsenal-docs-diagram

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-mgiovani-cc-arsenal-docs-diagram)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Docs Diagram? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Generate System Diagrams

Generate a Mermaid diagram — ER, architecture, deployment, or security — from the real codebase and write it to docs/.

Supported Diagram Types

| Type | Output File | Description | |------|------------|-------------| | er | docs/data-model.md | Entity-Relationship diagram from database models | | arch | docs/architecture.md | System architecture and component relationships | | deployment | docs/deployment.md | Deployment infrastructure and CI/CD | | security | docs/security.md | Security architecture and data flow |

Workflow

1. Parse the request

Extract the diagram type (er, arch, deployment, security) and any optional scope context (e.g. "for the user and order tables"). If the type is missing or invalid, don't guess — stop, and end your response with a direct question naming the supported types, e.g. "Which diagram type do you want: architecture, er, deployment, or security?". Listing the types without asking, or asking without listing them, is not enough — go no further until the user answers.

2. Analyze the codebase

  • Scoped request (e.g. "er diagram for the user and order tables"): Read/Grep

the named files directly.

  • Broad or ambiguous request (e.g. "show me the architecture" on an unfamiliar

codebase): when a Task tool is available, spawn one Explore subagent per aspect that matters for the diagram type (e.g. for arch: services, databases, external integrations, data flow). Without a Task tool, run the same per-aspect checks sequentially inline with Read/Grep/Glob instead — same checks, no parallelism, just slower.

See [references/detection-patterns.md](references/detection-patterns.md) for detection commands per diagram type.

3. Verify before adding anything

Diagrams must represent real, existing components — never a plausible guess.

  • Read the file that defines a component before adding it; don't add it from

memory or inference.

  • Confirm a relationship by finding the actual import/reference/FK in code, not

by assuming two similarly-named things are connected.

  • Get counts by running a command (e.g. find . -name "*service*" | wc -l), then

use that number — never estimate "about 5 services".

  • Drop anything that can't be verified this way. An empty directory or an unused

stub file is not a component.

4. Generate the Mermaid diagram

Use the syntax for the diagram type from [references/mermaid-patterns.md](references/mermaid-patterns.md). Keep it readable — if a system has too many pieces for one clear diagram, split it into multiple focused views rather than cramming everything into one.

5. Populate the template

Load assets/templates/.md (erdata-model.md, archarchitecture.md, deploymentdeployment.md, securitysecurity.md). Replace {{PROJECT_NAME}}, {{DATE}}, the diagram placeholder, and the entity/component list placeholders with the verified content from steps 3-4.

6. Write the output

Write to the file in docs/ named in the table above. If it already exists, ask before overwriting, and preserve any hand-written sections you can identify (anything outside the placeholder fields).

7. Report results

State the diagram type, the output file, and the actual counts detected (e.g. "4 entities, 6 relationships") — these must be the numbers from step 3's commands, not a summary written from memory. Suggest regenerating when the diagrammed subsystem changes.

Worked Examples

Scoped ER requestdocs-diagram er for the user and order tables: Grep for class User / class Order in the ORM models directory, read both files, extract columns and FKs, confirm the Order.user_id FK by checking it's actually declared in the model, then write docs/data-model.md with an erDiagram block containing only USER and ORDER.

Broad architecture requestdocs-diagram arch: with a Task tool, spawn Explore agents for services, databases, and external integrations; without one, run find . -name "*service*", find . -name "*.config.*", and a grep for known client SDKs sequentially. Merge only the components every check confirms into one graph TB diagram.

Missing/invalid typedocs-diagram: do not guess a type or generate anything; end the response with "Which diagram type do you want: architecture, er, deployment, or security?" alongside their output files.

Notes

  • Regenerate after the diagrammed subsystem changes (schema migration, new

service, new deploy target, new auth flow) — this skill is meant to be re-run, not written once and left stale.

  • Additional context on codebase detection commands and Mermaid syntax lives in

[references/detection-patterns.md](references/detection-patterns.md) and [references/mermaid-patterns.md](references/mermaid-patterns.md) — load them when doing the actual detection/generation work, not before.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.