oci-diagram

oci-diagram is a command for Claude Code from frankxai/claude-code-oracle-skills. It costs 6 tokens per session (337 once invoked), scanned A, original, Apache-2.0.

A command for generating an Oracle Cloud Infrastructure architecture diagram in Draw.io, Python, or Mermaid format. It supports common layouts such as web applications, microservices, data platforms, and AI systems.

In plain words
What is it for?
Use it to generate a diagram file or code representation for RAG platforms, three-tier applications, OKE microservices, data lakes, multi-agent systems, or hybrid cloud designs.
Why use it?
It gives a repeatable way to create a labelled diagram with Oracle styling and connected services from a chosen architecture type.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the oracle-diagram-generator plugin — 1 command shipped together

Good fit Use it to generate a diagram file or code representation for RAG platforms, three-tier applications, OKE microservices, data lakes, multi-agent systems, or hybrid cloud designs.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/frankxai/claude-code-oracle-skills/oci-diagram
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/frankxai/claude-code-oracle-skills

Made for: Claude Code.

Or install oracle-diagram-generator, the plugin that ships this one along with the rest of its 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for oci-diagram

README.md
[![agentmods](https://agentmods.dev/badge/commands/frankxai/claude-code-oracle-skills/oci-diagram/github.svg)](https://agentmods.dev/commands/frankxai/claude-code-oracle-skills/oci-diagram)
Your own site
<a href="https://agentmods.dev/commands/frankxai/claude-code-oracle-skills/oci-diagram"><img src="https://agentmods.dev/badge/commands/frankxai/claude-code-oracle-skills/oci-diagram/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for oci-diagram

Your own site · 80×15
<a href="https://agentmods.dev/commands/frankxai/claude-code-oracle-skills/oci-diagram"><img src="https://agentmods.dev/badge/commands/frankxai/claude-code-oracle-skills/oci-diagram.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 337 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00006 $0.00337
Opus 5 $0.00003 $0.00169
Sonnet 5 $0.00001 $0.00067
Haiku 4.5 $0.00001 $0.00034

Measured 11d ago against content hash ba15e88e5565, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

oci-diagram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/oracle-diagram-generator/commands/oci-diagram.md · 46 lines

What it actually says

Context

You are generating an OCI architecture diagram. The user wants a professional diagram with correct Oracle styling.

Available architecture types:

  • rag - RAG/AI platform with vector search
  • three-tier - Classic web application
  • microservices - OKE-based microservices
  • data-lake - Analytics and data platform
  • multi-agent - AI agent factory
  • hybrid - On-prem + OCI hybrid

Available output formats:

  • drawio - Draw.io XML file (default)
  • python - Python diagrams library code
  • mermaid - Mermaid.js markdown

Your Task

  1. If no architecture type specified, ask the user what they want to diagram
  2. Read the oracle-diagram-generator skill for templates: plugins/oracle-diagram-generator/skills/SKILL.md
  3. Generate the diagram in the requested format
  4. Save to a file with appropriate extension (.drawio, .py, or .md)
  5. Provide instructions for viewing/running the output

Output Requirements

  • Use Oracle Red (#C74634) for primary OCI services
  • Include cost estimates where applicable
  • Add proper labels and connections
  • Follow Oracle icon naming conventions (mxgraph.oci.*)

Example Invocations

/oci-diagram rag drawio
/oci-diagram three-tier python
/oci-diagram multi-agent mermaid
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 46 lines · 0 tokens per session scan A ba15e88e5565

Subscribe to this mod's changes

oci-diagram is a command published in the GitHub repository frankxai/claude-code-oracle-skills (2 stars, last pushed 14d ago), licensed Apache-2.0. It adds 6 tokens to every session and 337 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.