agentleFS
studioxviistudioxvii/modbus-skills/AGENTS.md

modbus-skills

AGENTS.md1 starsChanged 4 months agoApache-2.0View on GitHub

Build public, read-only Modbus engineering skills and deterministic workflows. - Support Modbus reads only. Permit function codes 01, 02, 03, and 04. - Do not generate write requests, broadcast requests, discovery scans, or unbounded polling. - Keep unresolved address conventions, register areas, unit identifiers, datatypes, and byte orders visible as holds. - Require one scoped human confirmation before live device use or when unresolved engineering evidence could materially change a final artifact. - Optimize for minutes of human attention, not…

  • Installs packages
  • 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,337 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

Show its rules and text

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

19 rules. About 1 is common, 14 are distinctive, and 4 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Treat every tracked file as future public material.

    line 9
  2. Distinctive:

    Do not copy files, fixtures, text, identifiers, prompts, or history from a private product repository.

    line 10
  3. Distinctive:

    Do not add vendor manuals or complete vendor register maps without documented redistribution rights.

    line 11
  4. Distinctive:

    Use synthetic fixtures by default.

    line 12
  5. Common:

    Do not add customer names, hostnames, IP addresses, credentials, local absolute paths, or internal service identifiers.

    line 13
  6. Distinctive:

    Do not generate write requests, broadcast requests, discovery scans, or unbounded polling.

    line 18
  7. Distinctive:

    Keep unresolved address conventions, register areas, unit identifiers, datatypes, and byte orders visible as holds.

    line 19
  8. Distinctive:

    Verify what code and artifacts can prove.

    line 27
  9. Distinctive:

    Never default to page-by-page, row-by-row, point-by-point, or file-by-file approval.

    line 29
  10. Distinctive:

    Treat a user's clearly scoped confirmation as applying to the whole stated scope and record it once with hashes, counts, and exceptions.

    line 30
  11. Distinctive:

    Use Python 3.11 or later and the standard library unless a dependency is approved.

    line 35
  12. Very specific:

    Put deterministic behavior in plugins/modbus-skills/runtime/modbus_skills/.

    line 36
  13. Very specific:

    Keep each SKILL.md concise.

    line 37
  14. Very specific:

    Write each skill description with both what it does and a Use when activation clause.

    line 38
  15. Distinctive:

    Use composite point identity: route, unit identifier, register area, protocol offset, and logical point identifier.

    line 40
  16. Very specific:

    Run python3 scripts/verify_repo.py before handoff.

    line 50
  17. Distinctive:

    Add unit tests for each deterministic change.

    line 51
  18. Distinctive:

    Add positive, negative, incomplete-input, and unsafe-request cases for each skill.

    line 52
  19. Distinctive:

    Keep generated output deterministic.

    line 53

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

Modbus Skills Repository Guidance

Purpose

Build public, read-only Modbus engineering skills and deterministic workflows.

Public Boundary

  • Treat every tracked file as future public material.
  • Do not copy files, fixtures, text, identifiers, prompts, or history from a private product repository.
  • Do not add vendor manuals or complete vendor register maps without documented redistribution rights.
  • Use synthetic fixtures by default.
  • Do not add customer names, hostnames, IP addresses, credentials, local absolute paths, or internal service identifiers.

Safety

  • Support Modbus reads only. Permit function codes 01, 02, 03, and 04.
  • Do not generate write requests, broadcast requests, discovery scans, or unbounded polling.
  • Keep unresolved address conventions, register areas, unit identifiers, datatypes, and byte orders visible as holds.
  • Require one scoped human confirmation before live device use or when unresolved engineering evidence could materially change a final artifact.

Human-Time Budget

  • Optimize for minutes of human attention, not maximum approval ceremony.
  • Complete safe, local, deterministic work without intermediate check-ins.
  • Verify what code and artifacts can prove; never ask a person to repeat that work.
  • Group unresolved items by root cause and ask for all necessary choices together.
  • Never default to page-by-page, row-by-row, point-by-point, or file-by-file approval.
  • Treat a user's clearly scoped confirmation as applying to the whole stated scope and record it once with hashes, counts, and exceptions.

Implementation

  • Use Python 3.11 or later and the standard library unless a dependency is approved.
  • Put deterministic behavior in plugins/modbus-skills/runtime/modbus_skills/.
  • Keep each SKILL.md concise. Put detailed contracts and target notes in references/.
  • Write each skill description with both what it does and a Use when activation clause.
  • Preserve canonical artifact contracts across skills.
  • Use composite point identity: route, unit identifier, register area, protocol offset, and logical point identifier.

Cloud Agent environment

  • Repo-managed config lives in .cursor/environment.json.
  • Install is python3 -m pip install -e . (Python 3.11+; no secrets or long-running server).
  • There is no start command. Prove the environment with python3 scripts/verify_repo.py.

Verification

  • Run python3 scripts/verify_repo.py before handoff.
  • Add unit tests for each deterministic change.
  • Add positive, negative, incomplete-input, and unsafe-request cases for each skill.
  • Keep generated output deterministic.

Cursor Cloud specific instructions

  • This is a Python-only, dependency-light CLI project (single runtime dependency pdfplumber). There is no server, database, or long-running process; the "application" is the modbus_skills CLI run via python3 plugins/modbus-skills/scripts/modbus_skills.py <command> ... (or the installed modbus_skills package). See README.md and plugins/modbus-skills/runtime/modbus_skills/cli.py for the full command list.
  • Known environment caveat: on the Cloud Agent VM the filesystem timestamp granularity is coarse (~4 ms, overlayfs//tmp). The single test tests/test_node_red_live_campaign.py::...test_admin_driver_deploys_once_for_multiple_rounds_and_restores_once deterministically fails here with CampaignError: Node-RED read plan did not drain before the timeout because it detects a fresh capture via an mtime change between two rapid identical writes that collapse to the same mtime. This is not a code regression: GitHub CI (ubuntu-latest, ext4 with nanosecond mtime) passes verify_repo.py, and the other 462 tests pass here. Do not "fix" it by editing runtime code for this env; treat that one failure as an expected VM artifact.

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.