Borrowing it
Nothing to install: this file belongs to sparklabx/drawio-ai-kit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sparklabx/drawio-ai-kit/main/AGENTS.mdgit clone --depth 1 https://github.com/sparklabx/drawio-ai-kitWrote 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.
[](https://agentmods.dev/instructions/sparklabx/drawio-ai-kit/agents-md)<a href="https://agentmods.dev/instructions/sparklabx/drawio-ai-kit/agents-md"><img src="https://agentmods.dev/badge/instructions/sparklabx/drawio-ai-kit/agents-md/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.
<a href="https://agentmods.dev/instructions/sparklabx/drawio-ai-kit/agents-md"><img src="https://agentmods.dev/badge/instructions/sparklabx/drawio-ai-kit/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01224 | $0.01224 |
| Opus 5.5 | $0.00490 | $0.00490 |
| Sonnet 5.5 | $0.00245 | $0.00245 |
| Haiku 4.5 | $0.00122 | $0.00122 |
Grade A, and why
drawio-ai-kit AGENTS.md 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 39 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repository Guidelines
drawio-ai-kit helps an AI draw correct, beautiful draw.io diagrams.
[!IMPORTANT] Hard rule (see
skills/drawio/SKILL.md): The kit is read-only infrastructure. Write generated.drawio/.xmloutput into the user's cwd, never into the repo folder.
Tech Stack & Runtime
- Node.js ≥20.6 or Bun (ESM,
.nvmrc= 22; running TS tests natively needs ≥22.18) is the user runtime."type": "module"; zero default exports (named exports only). - Dependencies: add libraries as
devDependencies; Bun bundles them intodist/, so users install nothing extra. Add a realdependenciesentry only if the library cannot be bundled (native addon, WASM file, dynamicrequire). Todayminisearchis bundled this way. Never add apostinstallhook. - Bun 1.4+ is the maintainer toolchain:
bun testruns thenode:testsuites.npm testruns the same suites on plain Node, and both must pass.bun run build(scripts/build.mjs,Bun.build) bundlessrc/cli.ts+src/kit.tsinto the minifieddist/, which ships in the npm tarball.dist/is gitignored: CI and the release job build it; never commit it.bun run build:checkrebuilds into a temp dir and fails if the build is non-deterministic.
package-lock.jsonis the only lockfile. Runnpm installafter changing dependencies. Never commitbun.lock.- For the architecture, directories, and files, see docs/developer-guide.md.
Code Conventions & Common Patterns
- Erasable-syntax TypeScript in
src/andtest/(.ts, no enums/namespaces/parameter properties);npm run typecheckmust pass. Bun is the only bundler, and it is used only to builddist/. Import local files with the.tsextension. Useimport typefor types. - Shared types live in
src/model.ts(types only, erased at build). A type used by one module stays in that module. src/must run on Node. NoBun.*APIs insrc/; they are allowed only inscripts/and CI. Sole exception:src/run-hook.tsusesBun.pluginbehind a runtime check (it only runs under Bun).- After any
src/change: runbun run buildbefore tests/benches (they exercisedist/). Do not commitdist/. - One skill:
skills/drawio/(SKILL.md+references/+workflows/). There are no per-domain skills; a new domain is a new reference file (seedocs/adding-a-domain.md). Write skill docs in short, explicit steps that small models (Haiku-class) can follow. - Catalog injection:
loadCatalog()returns the merged catalog; everycore.tsfunction takescatalogas first arg;builder.tsstores it asthis.c. - Declarative layout > coordinates: Build node trees with
layout-engine.tsfactories (group/frame/grid+icon/box) →renderTree(d, root)→Diagram. Hardcoding x/y coordinates violates the design pattern. - Color = Identity: Never recolor AWS icons away from their category color (
colorFor: entry.color →categoryColors[category]→#232F3E). - Nesting Hierarchy: Group nesting order is enforced by
GROUP_LEVEL: Cloud/Account/Region=0 → VPC=2 → AZ=3 → Subnet=4 → SG=5. - Edge Rounding Policy: Tree/fanout roles → sharp (
rounded=0); flow → type'sedgeCorner. - Icon search is
src/search.ts(minisearch, bundled). Curated shorthand and synonyms live indata/aliases.json(entry name → phrases). To fix a bad search, add an alias there. Do not edit scoring code first. - Imports in user scripts: always
import { ... } from "drawio-ai-kit", never a path into the kit. Run scripts withdrawio-ai run build.mjs. Examples andscaffoldoutput follow this rule.
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.
- 9d ago Changed · +19 lines · +797 tokens per session 6e7d072cc5af
- 1mo ago First seen · 20 lines · 427 tokens per session scan A 693157423e42
drawio-ai-kit AGENTS.md is an instructions file published in the GitHub repository sparklabx/drawio-ai-kit (659 stars, last pushed 10d ago), licensed MIT. It adds 1,224 tokens to every session, about $0.0049 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-30.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.