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

Written for no agent in particular: nothing here depends on one.

Good fit Use it to call the deployed SnowGram agent, extract its Mermaid diagram, and render the result in a local viewer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sfc-gh-abannerjee/snowgram/connected-cli
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.

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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00040 $0.01320
Opus 5.5 $0.00016 $0.00528
Sonnet 5.5 $0.00008 $0.00264
Haiku 4.5 $0.00004 $0.00132

Measured 2mo ago against content hash bcbc4a1d5349, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 1mo ago), licensed MIT. It adds 40 tokens to every session and 1,320 once invoked, about $0.0002 per session on Opus 5.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

snowflake-architecture-diagram-connected-cli compared with skills from other repositories

snowflake-architecture-diagram-connected-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
snowflake-architecture-diagram-connected-clisfc-gh-abannerjee/SnowGramSkill21mo agoMITA40Claude Code, Codex
slidesgridaco/gridaSkill2.7kyesterdayApache-2.0A46Claude Code, Codex
dotcanvasgridaco/gridaSkill2.7kyesterdayApache-2.0A69Claude Code, Codex
datamodellmnimbalyst/nimbalystSkill2.0k2d agoMITA45Claude Code, Codex
svggridaco/gridaSkill2.7kyesterdayApache-2.0A39Claude Code, Codex
er-diagramsexcalimate/excalimateSkill1005d agoMITA52Claude Code, Codex
dashboard-designDeepSQLAI/deepsqlSkill405d agoApache-2.0A43Claude Code, Codex