snowflake-architecture-diagram-connected-cli

snowflake-architecture-diagram-connected-cli is a skill for Claude Code, Codex from sfc-gh-abannerjee/SnowGram. It costs 40 tokens per session (1,320 once invoked), scanned A, original, MIT.

A command-line mode for generating Snowflake architecture diagrams through a deployed SnowGram agent. Snowflake is a cloud data platform, and the command line is a text-based way to run tools.

In plain words
What is it for?
Use it to call the deployed SnowGram agent, extract its Mermaid diagram, and render the result in a local viewer.
Why use it?
It lets developers create and view diagrams from a terminal without running the web frontend, provided the required Snowflake connection and agent are available.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/sfc-gh-abannerjee/snowgram/connected-cli
Any agent
npx skills add sfc-gh-abannerjee/SnowGram --skill connected-cli
Clone the repo
git clone --depth 1 https://github.com/sfc-gh-abannerjee/SnowGram

Made for: Claude Code, Codex.

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 snowflake-architecture-diagram-connected-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/sfc-gh-abannerjee/snowgram/connected-cli.svg)](https://agentmods.dev/skills/sfc-gh-abannerjee/snowgram/connected-cli)
Your own site
<a href="https://agentmods.dev/skills/sfc-gh-abannerjee/snowgram/connected-cli"><img src="https://agentmods.dev/badge/skills/sfc-gh-abannerjee/snowgram/connected-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,320 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00040 $0.01320
Opus 5 $0.00020 $0.00660
Sonnet 5 $0.00008 $0.00264
Haiku 4.5 $0.00004 $0.00132

Measured 4d ago against content hash bcbc4a1d5349, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

snowflake-architecture-diagram-connected-cli 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 4d 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.

skills/snowflake-architecture-diagram/modes/connected-cli/SKILL.md · 134 lines

How it starts

The opening of the file, as written. The whole thing — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Connected-CLI mode

Calls the deployed SnowGram agent directly via the Cortex Agents API and renders the response in the bundled lightweight viewer. No Next.js frontend needed.

Prerequisites

  • Active cortex connection (set via cortex connections set <name>)
  • Agent SNOWGRAM_DB.AGENTS.SNOWGRAM_AGENT deployed and reachable from the active role
  • Function grants verified during the parent skill's mode-detection probe

Path resolution (do this once)

This sub-skill uses $SKILL_DIR/... paths. Resolve them by sourcing the canonical helper. The absolute path to that helper is <SKILL_BASE_DIR>/assets/scripts/skill_paths.sh, where <SKILL_BASE_DIR> is the path the skill loader prints as Base directory for this skill: when this skill is loaded (or the path returned by cortex skill list for snowflake-architecture-diagram).

source "<SKILL_BASE_DIR>/assets/scripts/skill_paths.sh"
# Now: $SKILL_DIR, $TEMPLATES_DIR, $COMPOSER_DIR, $VIEWER_DIR, $SCRIPTS_DIR,
#      $STATE_FILE are all set. See the parent SKILL.md for the full table.

For Python helpers, import assets/scripts/skill_paths.py analogously. The parent SKILL.md shows the importlib pattern.

Workflow

Step 1: Invoke the agent

cortex agents run SNOWGRAM_DB.AGENTS.SNOWGRAM_AGENT "<user's prompt>"

Capture stdout. The agent typically returns:

  1. A short overview paragraph
  2. A Mermaid code block (delimited by ```mermaid / ```)
  3. Optionally a JSON block with components / connections (also fenced)
  4. Best-practice bullets and citations

Step 2: Extract Mermaid

Use a regex to extract the first fenced Mermaid block:

import re
m = re.search(r'```mermaid\s*\n(.*?)\n```', agent_output, re.DOTALL)
mermaid = m.group(1) if m else None

If Mermaid is present: continue to Step 3.

If Mermaid is missing (agent answered in prose only):

  • The agent's tool description may not be enforcing Mermaid output (see snowgram-agent skill for the fix)
  • Fall through to standalone mode using the agent's textual response as a hint:
    • Pass the agent's response to a freeform composer call: extract any component names mentioned, look them up in $SKILL_DIR/assets/component_synonyms.json, and feed BLOCK_IDs to composer.py
    • Tag the result source: "connected-cli:fallback-to-standalone"

Read the full file on GitHub · 134 lines

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. 4d ago First seen · 134 lines · 40 tokens per session scan A bcbc4a1d5349

Subscribe to this mod's changes

snowflake-architecture-diagram-connected-cli is a skill published in the GitHub repository sfc-gh-abannerjee/SnowGram (2 stars, last pushed 2mo ago), licensed MIT. It adds 40 tokens to every session and 1,320 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

studio-ui-patterns

Design system UI patterns for Supabase Studio. Use when building or updating pages, forms, tables, charts, empty states, navigation, cards, alerts, or side panels (sheets). Covers layout selection, component choice, and placement conventions.

supabase/supabase · 54 tokens

ui-ux-pro-max

UI/UX design intelligence with 50+ styles, 161 palettes, 57 font pairings, 99 UX guidelines, and 25 chart types. Searchable database with priority-based recommendations for web and mobile.

assafkip/kipi-system · 50 tokens

run402

Provision Postgres + REST API + auth + content-addressed storage + serverless functions + email — paid with x402 USDC on Base. Prototype tier is free on testnet. Use when the user asks to build a webapp, deploy a site, create a database, generate images, or mentions Run402.

kychee-com/run402 · 67 tokens

er-diagrams

Create animated entity-relationship and database schema diagrams using the Excalimate MCP server. Use when asked to visualize database schemas, data models, table relationships, foreign keys, entity relationships, or any structured data design with tables and their connections.

excalimate/excalimate · 52 tokens

ui-ux-pro-max

UI/UX design intelligence for web and mobile. Searchable local database with 84 styles, 192 color palettes, 74 font pairings, 192 product types, 98 UX guidelines, 104 icon entries, 16 GSAP motion presets, and 25 chart types across 22 stacks (React, Next.js, Vue, Nuxt, Svelte, Astro, SwiftUI, React Native, Flutter…

rylsherdamz-rgb/stellar-forge · 162 tokens

design-entity

基于已定义的功能识别并调整逻辑实体,输出实体责任边界、协作关系与关键数据结构,并生成数据模型文档.

ZTE-AICloud/Co-OmniSpec · 37 tokens