cocoindex-diagrams
Skill by cocoindex-io
Creates, edits and reviews inline SVG diagrams for the CocoIndex docs site. It is for contributors who write or update docs pages under docs/src/content/docs/.
Install cocoindex-diagrams
Built from the published package, never by AI.
git clone --depth 1 https://github.com/cocoindex-io/cocoindex /tmp/cocoindex && mkdir -p ~/.claude/skills && cp -r /tmp/cocoindex/dev/agent-skills/cocoindex-diagrams ~/.claude/skills/cocoindex-diagramsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/cocoindex-io/cocoindex /tmp/cocoindex && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/cocoindex/dev/agent-skills/cocoindex-diagrams ~/.gemini/antigravity-cli/skills/cocoindex-diagramsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill guides the authoring of inline SVG diagrams for the CocoIndex docs site. Diagrams are built as Astro components under docs/src/components/diagrams/ from shape-semantic primitives that share a palette and styling. The skill tells the assistant to read the project README first, design the layout with concrete coordinates, and compose from primitives such as DataBox, LogicBox, ProcessingComponent, AppContainer, TargetBullet, FlowArrow and Connector.
The skill also describes a preview loop. A bundled script builds the Astro site, mirrors the output to a path matching the /docs base URL, serves it locally and takes screenshots with headless Chrome. The skill says diagrams should be rendered and checked before they are reported done. It is aimed at contributors to the CocoIndex docs. It does not apply to marketing-site diagrams.
Written from the project's SKILL.md and checked against it.
What it can do
- DataBoxDraws sharp rectangles for data such as a file, chunk or row.
- LogicBoxDraws round-cornered rectangles for subsystems and logic.
- ProcessingComponentDraws a cream container with a header for a Processing Component.
- AppContainerDraws a peach container with a header for a CocoIndex App.
- TargetBulletDraws a bullet shape for target state.
- FlowArrowDraws an animated dashed arrow with a head for flow or causation.
- ConnectorDraws a static dashed line with no head for bindings or identity.
- scripts/preview.shBuilds the docs, serves them on a free port and screenshots the diagram with headless Chrome.
What you need
- Astro for building the docs site
- Headless Chrome for the preview screenshots
Try asking
- Add a diagram to the docs for processing_component
- Replace the SVG in core_concepts with the diagram primitives
- Check how the diagram looks in the docs preview
Good to know
- Static .svg files from design tools are legacy and should not be used for new diagrams.
- Does not apply to marketing-site diagrams under cocoindex.github.io/.
- Expect two to four preview cycles for a non-trivial diagram.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: dev/agent-skills/cocoindex-diagrams/SKILL.md, dev/agent-skills/cocoindex-diagrams/scripts/preview.sh. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
assets/starter.astro3 KB -
references/layout-patterns.md9 KB -
references/pitfalls.md8 KB -
references/workflow.md3 KB
Show all 6 files
-
scripts/preview.sh3 KB
Alternatives to cocoindex-diagrams
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
cocoindex-diagrams: common questions
What is the cocoindex-diagrams skill used for?
It helps create, edit and review inline SVG diagrams for the CocoIndex docs site using a set of Astro component primitives. The source says it covers the palette, shape semantics and a preview loop.
Where do the diagram components live?
The source says they are under docs/src/components/diagrams/. The skill tells the assistant to read the README in that folder first.
Why does the preview need the /docs base path?
The skill says the preview script mirrors the build into a path that matches the site's /docs base URL. Without this, boxes can render black in the preview.
How do I install cocoindex-diagrams?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cocoindex-diagrams free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is cocoindex-diagrams safe to use?
It scores 93 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 cocoindex-diagrams?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
