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 checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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.
- site/llms-full.txtllms.txt
- site/llms.txtllms.txt
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
- Distinctive: line 9
Treat every tracked file as future public material.
- Distinctive: line 10
Do not copy files, fixtures, text, identifiers, prompts, or history from a private product repository.
- Distinctive: line 11
Do not add vendor manuals or complete vendor register maps without documented redistribution rights.
- Distinctive: line 12
Use synthetic fixtures by default.
- Common: line 13
Do not add customer names, hostnames, IP addresses, credentials, local absolute paths, or internal service identifiers.
- Distinctive: line 18
Do not generate write requests, broadcast requests, discovery scans, or unbounded polling.
- Distinctive: line 19
Keep unresolved address conventions, register areas, unit identifiers, datatypes, and byte orders visible as holds.
- Distinctive: line 27
Verify what code and artifacts can prove.
- Distinctive: line 29
Never default to page-by-page, row-by-row, point-by-point, or file-by-file approval.
- Distinctive: line 30
Treat a user's clearly scoped confirmation as applying to the whole stated scope and record it once with hashes, counts, and exceptions.
- Distinctive: line 35
Use Python 3.11 or later and the standard library unless a dependency is approved.
- Very specific: line 36
Put deterministic behavior in plugins/modbus-skills/runtime/modbus_skills/.
- Very specific: line 37
Keep each SKILL.md concise.
- Very specific: line 38
Write each skill description with both what it does and a Use when activation clause.
- Distinctive: line 40
Use composite point identity: route, unit identifier, register area, protocol offset, and logical point identifier.
- Very specific: line 50
Run python3 scripts/verify_repo.py before handoff.
- Distinctive: line 51
Add unit tests for each deterministic change.
- Distinctive: line 52
Add positive, negative, incomplete-input, and unsafe-request cases for each skill.
- Distinctive: line 53
Keep generated output deterministic.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
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.mdconcise. Put detailed contracts and target notes inreferences/. - Write each skill description with both what it does and a
Use whenactivation 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
startcommand. Prove the environment withpython3 scripts/verify_repo.py.
Verification
- Run
python3 scripts/verify_repo.pybefore 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 themodbus_skillsCLI run viapython3 plugins/modbus-skills/scripts/modbus_skills.py <command> ...(or the installedmodbus_skillspackage). SeeREADME.mdandplugins/modbus-skills/runtime/modbus_skills/cli.pyfor the full command list. - Known environment caveat: on the Cloud Agent VM the filesystem timestamp granularity is coarse (~4 ms, overlayfs/
/tmp). The single testtests/test_node_red_live_campaign.py::...test_admin_driver_deploys_once_for_multiple_rounds_and_restores_oncedeterministically fails here withCampaignError: Node-RED read plan did not drain before the timeoutbecause 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) passesverify_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.
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.

