context7
Fetches up-to-date documentation and code examples for libraries, frameworks, SDKs, CLI tools and cloud services, so an AI agent can answer API questions and generate code against current references.
A Claude Code plugin that reads your codebase and draws its infrastructure and architecture with D2, then keeps those diagrams in step with the code as it changes. Command: /d2:diagram.
Claude Code
> /plugin marketplace add heathdutton/claude-d2-diagrams> /plugin install d2@claude-d2-diagrams
Codex
$ npx skills add heathdutton/claude-d2-diagrams -a codex
Cursor
$ npx skills add heathdutton/claude-d2-diagrams -a cursor
Gemini CLI
$ npx skills add heathdutton/claude-d2-diagrams -a gemini-cli
GitHub Copilot
$ copilot plugin marketplace add heathdutton/claude-d2-diagrams$ copilot plugin install d2@claude-d2-diagrams
OpenCode
$ npx skills add heathdutton/claude-d2-diagrams -a opencode
Windsurf
$ npx skills add heathdutton/claude-d2-diagrams -a windsurf
A Claude Code plugin that reads your codebase and draws its infrastructure and architecture with D2, then keeps those diagrams in step with the code as it changes.
Command: /d2:diagram
Detailed diagrams are generated alongside these.
diagrams/
├── README.md landing page embedding every diagram
├── manifest.json commit the set was built from, and the paths it depends on
├── infrastructure.md / .d2 / -light.svg / -dark.svg
├── infrastructure-simplified.md / .d2 / -light.svg / -dark.svg
├── architecture.md / .d2 / -light.svg / -dark.svg
└── architecture-simplified.md / .d2 / -light.svg / -dark.svg
Your root README.md gets the two simplified diagrams and a link to the rest.
prefers-reduced-motion)diagrams/manifest.json records the commit the diagrams were built from and the source paths they depend on (IaC, service manifests, entrypoints, API specs). Ordinary code changes don't touch it. A new queue in Terraform does.
/d2:diagram refreshes only what the changed files affect, editing docs and D2 sources in place so the diff shows the change in your system rather than a rewrite./d2:diagram --ci installs a GitHub Actions workflow. On each push to the default branch it checks for drift with plain git diff, and only when something drifted does it run Claude and open a PR with the refreshed diagrams.claude plugin marketplace add https://github.com/heathdutton/claude-d2-diagrams
claude plugin install d2@claude-d2-diagrams
Or from a clone: claude --plugin-dir ./claude-d2-diagrams
Requires:
brew install d2, or curl -fsSL https://d2lang.com/install.sh | sh -s --xcode-select --install)./d2:diagram # build, or refresh whatever drifted
/d2:diagram --check # report drift, change nothing
/d2:diagram --full # rebuild everything from scratch
/d2:diagram --infrastructure-only # one family only
/d2:diagram --architecture-only
/d2:diagram --scope=src/ # limit what gets read
/d2:diagram --ci # install the refresh workflow
Create ./diagrams/rules.md. It overrides naming, scope, icons and layout:
## Naming
- Use "API Gateway" not "APIGW"
## Exclude
- test/
- examples/
## Include (even if not in IaC)
- Cloudflare CDN
- Datadog monitoring
## Icons
- MySQL: https://example.com/mysql.svg
## Layout
- elk
To restyle the animations, copy assets/animations.css to ./diagrams/animations.css and edit it.
The first /d2:diagram run detects diagrams made before manifests existed. It refreshes the docs against the code, re-renders every SVG, and stamps a manifest. The re-render fixes two 1.x bugs: icons that came out blank or recolored, and dashed lines whose animation jumped once per loop. The .diagram/ state folder is no longer used and can be deleted.
MIT
Fetches up-to-date documentation and code examples for libraries, frameworks, SDKs, CLI tools and cloud services, so an AI agent can answer API questions and generate code against current references.
Gives Claude Code skills and agents for writing React documentation on react.dev, covering MDX components, voice and style rules, blog post structure, and interactive Sandpack code examples.
An agent skill that turns complex terminal output into styled HTML pages you actually want to read. Ask your agent to explain a system architecture, review a diff, or compare requirements against a plan.
A WYSIWYG markdown editor so you can edit markdown files like a Google Doc or Notion page, with a desktop app and web UI for navigation, search, and wiki-style linking. It also ships skills for working in codebase wiki, personal CRM, and knowledge base projects.
A Claude Code plugin that reads your codebase and draws its infrastructure and architecture with D2, then keeps those diagrams in step with the code as it changes. Command: /d2:diagram. Install it with the command on its page. It includes diagram. Its skills do not fire on their own yet. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it