Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

cocosketch

Skill by Snowflake-Labs

Generates draw.io diagrams of CocoPlus schemas, flows, dependency graphs and diffs through a validated seven-step pipeline. Built for developers who map large Snowflake schemas and pipelines.

  • Score 72
  • 729 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install cocosketch

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Snowflake-Labs/cocoplus /tmp/cocoplus && mkdir -p ~/.claude/skills && cp -r /tmp/cocoplus/.cortex/skills/cocosketch ~/.claude/skills/cocosketch

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install cocosketch in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

CocoSketch is an agent skill that generates draw.io diagrams from CocoPlus artifacts. It provides five commands: schema, flow, deps, diff and view. Schema mode queries Snowflake for tables, columns and relationships. Flow mode reads a flow.json file, and deps mode reads a coco-map dependency view.

Each diagram follows a seven-step pipeline. The AI writes draw.io XML, and deterministic scripts validate and repair it. The pipeline exports a preview PNG, checks it with vision for overlaps and clipped labels, then exports a final PNG with embedded XML. Outputs are written to .cocoplus/diagrams/. The source says it is best for multi-table schemas, full pipeline flows and dependency graphs with more than 10 nodes.

Written from the project's SKILL.md and checked against it.

What it can do

  • $sketch schemaDiagrams Snowflake tables with FK, shared-key and view dependency edges.
  • $sketch flowMaps flow.json stages to nodes, with HITL gates and mandatory checkpoints marked.
  • $sketch depsBuilds a dependency graph and reports node and edge reduction metrics.
  • $sketch diffCompares two snapshots or git refs and lists added, removed and changed objects.
  • $sketch viewWrites a self-contained HTML viewer with pan, zoom, filtering and metadata.
  • Seven-step pipelineValidates XML, exports and self-checks a preview, then exports and repairs the final PNG.
  • Style presetsApplies built-in default, corporate or handdrawn styles, or user styles from ~/.cocoplus.

What you need

  • draw.io CLI for PNG export
  • Snowflake access for schema mode
  • CocoPlus artifacts such as flow.json or coco-map.json

Try asking

  • $sketch schema --tables orders,customers,payments
  • $sketch flow .cocoplus/flow.json
  • $sketch deps --reduce off

Good to know

  • Falls back to Mermaid or raw .drawio XML when the draw.io CLI is unavailable
  • Deps mode applies transitive reduction by default; --reduce off skips it
  • Vision self-check runs at most two correction rounds
  • Diff stops with a missing-ref message if either side cannot be resolved

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .cortex/skills/cocosketch/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to cocosketch

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

cocosketch: common questions

What does the CocoSketch pipeline check?

Step 4 runs cocosketch/sketch-validate and stops on FAIL. The source says validation and repair steps must not be skipped.

Where are the generated diagrams saved?

The source says outputs go to .cocoplus/diagrams/, including a PNG and a .drawio file for flow and schema diagrams.

Can CocoSketch work without draw.io installed?

Yes, the source describes a fallback chain. It generates Mermaid markup as a .mmd file, or delivers raw .drawio XML with open-in-browser instructions.

How do I install cocosketch?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is cocosketch free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is cocosketch safe to use?

It scores 72 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to cocosketch?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

cocosketch Install

Add to stack

Loading.