agentleFS
bahayonghangbahayonghang/drawio-skills/AGENTS.md

drawio-skills

AGENTS.md279 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 code style.

    Of the AGENTS.md files we read, the 35,266 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.

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
  1. Distinctive:

    Use ESM JavaScript with 2-space indentation, single quotes, and existing project style (minimal semicolons).

    line 29
  2. Very specific:

    Prefer small, composable functions for parsing and transformation logic.

    line 30
  3. Very specific:

    Do not hide failures with silent fallbacks.

    line 31
  4. Very specific:

    Use kebab-case filenames (for example, spec-to-drawio.js) and *.test.js for tests.

    line 32
  5. Very specific:

    Use Node’s built-in testing stack: node:test and node:assert/strict.

    line 35
  6. Very specific:

    Add or update tests for every behavior change in DSL parsing, math typesetting, and XML/SVG conversion paths.

    line 36
  7. Very specific:

    Keep tests deterministic; store fixtures close to the related module or in tests/.

    line 37
  8. Very specific:

    Follow Conventional Commits as seen in history: feat, fix, docs, refactor, test, chore, build, with optional scope and emoji.

    line 40
  9. Very specific:

    If a Trellis command is available on your platform (e.g.

    line 61
  10. Distinctive:

    If you're using Codex or another agent-capable tool, additional project-scoped helpers may live in:

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 .drawio diagrams.
  • 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 install or just install: install dependencies.
  • npm run docs:dev or just docs: start local docs server with hot reload.
  • npm run docs:build or just docs-build: generate production documentation.
  • npm run docs:preview or just docs-preview: preview built docs locally.
  • npm test or just test: run the test suite via node --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 -->

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.