drawio-skills
AGENTS.md285 starsChanged 5 months agoMITView on GitHub
skills/drawio-academic-skills/ is the publication overlay: it carries only academic policy (SKILL.md, references/docs/publication-overlay.md) and academic evals, and depends on the sibling base at ../drawio for shared CLI, references, themes, schemas, examples, and workflows. docs/ hosts the VitePress site (with docs/zh/ for Chinese content). tests/ holds repo-level Node tests, while module-level tests also live next to source as *.test.js. examples/ and imgs/ provide demo artifacts for docs and validation. GitHub Actions use Node 20; keep local Node aligned when possible. PRs should…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- drawio-academic-skillsSkill
- drawioSkill
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 2 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Use ESM JavaScript with 2-space indentation, single quotes, and existing project style (minimal semicolons).
- Very specific: line 30
Prefer small, composable functions for parsing and transformation logic.
- Very specific: line 31
Do not hide failures with silent fallbacks.
- Very specific: line 32
Use kebab-case filenames (for example, spec-to-drawio.js) and *.test.js for tests.
- Very specific: line 35
Use Node’s built-in testing stack: node:test and node:assert/strict.
- Very specific: line 36
Add or update tests for every behavior change in DSL parsing, math typesetting, and XML/SVG conversion paths.
- Very specific: line 37
Keep tests deterministic; store fixtures close to the related module or in tests/.
- Very specific: line 40
Follow Conventional Commits as seen in history: feat, fix, docs, refactor, test, chore, build, with optional scope and emoji.
- Very specific: line 61
If a Trellis command is available on your platform (e.g.
- Distinctive: line 63
If you're using Codex or another agent-capable tool, additional project-scoped helpers may live in:
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repository Guidelines
Project Structure & Module Organization
skills/drawio/ is the core skill package:
scripts/contains conversion and CLI logic (dsl/,math/,svg/).references/stores format specs and YAML examples used as source-of-truth docs.assets/includes theme JSON files and sample.drawiodiagrams.references/workflows/defines create/edit/replicate operating guides.
skills/drawio-academic-skills/ is the publication overlay: it carries only academic policy (SKILL.md, references/docs/publication-overlay.md) and academic evals, and depends on the sibling base at ../drawio for shared CLI, references, themes, schemas, examples, and workflows.
docs/ hosts the VitePress site (with docs/zh/ for Chinese content).tests/ holds repo-level Node tests, while module-level tests also live next to source as *.test.js.examples/ and imgs/ provide demo artifacts for docs and validation.
Build, Test, and Development Commands
npm installorjust install: install dependencies.npm run docs:devorjust docs: start local docs server with hot reload.npm run docs:buildorjust docs-build: generate production documentation.npm run docs:previeworjust docs-preview: preview built docs locally.npm testorjust test: run the test suite vianode --test.just lint: lint Markdown (markdownlint-cli).just format: format Markdown (prettier).just ci: run lint + tests (closest local CI check).
GitHub Actions use Node 20; keep local Node aligned when possible.
Coding Style & Naming Conventions
Use ESM JavaScript with 2-space indentation, single quotes, and existing project style (minimal semicolons).
Prefer small, composable functions for parsing and transformation logic.
Do not hide failures with silent fallbacks; throw explicit errors for invalid input.
Use kebab-case filenames (for example, spec-to-drawio.js) and *.test.js for tests.
Testing Guidelines
Use Node’s built-in testing stack: node:test and node:assert/strict.
Add or update tests for every behavior change in DSL parsing, math typesetting, and XML/SVG conversion paths.
Keep tests deterministic; store fixtures close to the related module or in tests/.
Commit & Pull Request Guidelines
Follow Conventional Commits as seen in history: feat, fix, docs, refactor, test, chore, build, with optional scope and emoji.
Examples: feat(cli): ✨ add SVG export, fix(docs): restore base path.
PRs should include:
- a concise summary of problem and solution,
- linked issue (if applicable),
- affected paths/modules,
- verification commands and outputs (
just ci,npm run docs:build), - screenshots for documentation UI changes.
<!-- TRELLIS:START -->Trellis Instructions
These instructions are for AI assistants working in this project.
This project is managed by Trellis. The working knowledge you need lives under .trellis/:
.trellis/workflow.md— development phases, when to create tasks, skill routing.trellis/spec/— package- and layer-scoped coding guidelines (read before writing code in a given layer).trellis/workspace/— per-developer journals and session traces.trellis/tasks/— active and archived tasks (PRDs, research, jsonl context)
If a Trellis command is available on your platform (e.g. /trellis:finish-work, /trellis:continue), prefer it over manual steps. Not every platform exposes every command.
If you're using Codex or another agent-capable tool, additional project-scoped helpers may live in:
.agents/skills/— reusable Trellis skills.codex/agents/— optional custom subagents
Managed by Trellis. Edits outside this block are preserved; edits inside may be overwritten by a future trellis update.
<!-- TRELLIS:END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

