agentleFS
pingwurthpingwurth/code-to-uml/AGENTS.md

code-to-uml

AGENTS.md0 starsChanged 6 months agoMITView on GitHub

Code-To-UML is a zero-dependency static frontend with a lightweight Node server. Node.js 18+ is required. Java is required only for server-side PlantUML rendering through plantuml.jar. Use vanilla ES6+ JavaScript with "use strict" and semicolons. Follow existing indentation and formatting in the touched file. Prefer camelCase for variables/functions and UPPER_SNAKE_CASE for constants. Keep browser logic in demo.js or component/; do not modify js/*.min.js vendor assets. Use semantic HTML, data-* hooks for runtime behavior, and CSS custom properties for themeable styles. Tests…

  • 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,040 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.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use short conventional-style commits seen in history, for example feat(template): enhance page introduction or docs(readme): add demo image …

    line 38

≈ “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

Code-To-UML is a zero-dependency static frontend with a lightweight Node server.

  • index.html, demo.html, demo.js, main.css: main browser UI, demo runtime, and global styling.
  • serve.js, serve.sh, serve.bat: local static server and PlantUML rendering fallback.
  • component/: reusable browser modules such as TOC, report cards, sorting, and failure handling.
  • data/: .ctu report/example data; data/_TEMPLATE.ctu defines the data format.
  • cache/: generated HTML reports and cache/_TEMPLATE.html.
  • i18n/ and i18n-config.js: English/Chinese localization.
  • js/: bundled third-party PlantUML and diagram libraries; avoid editing minified vendor files.
  • test/: Node-based unit/static tests, run through test/run-all.js.
  • skills/: AI-agent skill definitions and validators for Code-To-UML report generation.

Build, Test, and Development Commands

  • npm start or node serve.js: start the local server on the default port.
  • npm run serve or node serve.js 5401: start the server on port 5401.
  • ./serve.sh 5401 / serve.bat 5401: platform launchers for local development.
  • npm test: run all tests via node test/run-all.js.
  • npm run lint: syntax-check core JavaScript files with node --check.
  • npm run prepublishOnly: run lint and tests before publishing.

Node.js 18+ is required. Java is required only for server-side PlantUML rendering through plantuml.jar.

Coding Style & Naming Conventions

Use vanilla ES6+ JavaScript with "use strict" and semicolons. Follow existing indentation and formatting in the touched file. Prefer camelCase for variables/functions and UPPER_SNAKE_CASE for constants. Keep browser logic in demo.js or component/; do not modify js/*.min.js vendor assets. Use semantic HTML, data-* hooks for runtime behavior, and CSS custom properties for themeable styles.

Testing Guidelines

Tests are plain Node scripts under test/, generally named <feature>.test.js or <feature>-static.test.js. Add focused tests for changed parser, server, template, rendering, install, or static-contract behavior. Run npm test before submitting changes; run npm run lint when JavaScript files change. For visual/report changes, also start the server and verify http://localhost:5401.

Commit & Pull Request Guidelines

Use short conventional-style commits seen in history, for example feat(template): enhance page introduction or docs(readme): add demo image sections. Keep related changes together.

Pull requests should include a clear description, linked issue when relevant, change type, test steps, and screenshots for UI/report visual changes. Confirm local server testing, diagram rendering, and mobile responsiveness when applicable.

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.