jsn
AGENTS.md17 starsChanged 11 days agoMITView on GitHub
These instructions are for building jsn. For using it against ServiceNow, see cli/README.md or jsn skill show. Only .github/, cli/ and site/ belong at the repository root. Do not recreate a root docs/ directory. - cli/: published Node.js 24+ ESM package, no build step or TypeScript. Entry: cli/bin/jsn.js → cli/src/cli.js. - site/: Rails website, Markdown in site/docs/, assets in site/static/. Docker builds use the repository root and site/Dockerfile. - .github/: CI workflows and repository-only automation. Read the owning code and…
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.
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 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.
5
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
- Very specific: line 8
Only .github/, cli/ and site/ belong at the repository root.
- Very specific: line 9
Do not recreate a root docs/ directory.
- Distinctive: line 17
Read the owning code and package manifest before changing a feature or dependency.
- Very specific: line 48
Run focused tests first, then the full suite and lint before pushing.
- Very specific: line 50
Use node:test and test observable behavior at the lowest useful layer.
- Distinctive: line 54
Do not delete coverage to meet a numeric test-count or size target.
- Very specific: line 66
Use a feature branch and a PR against main at github.com/jacebenson/jsn.
≈ “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.
Files
Working on jsn
These instructions are for building jsn. For using it against ServiceNow,
see cli/README.md or jsn skill show.
Ownership and entry points
Only .github/, cli/ and site/ belong at the repository root.
Do not recreate a root docs/ directory.
cli/: published Node.js 24+ ESM package, no build step or TypeScript. Entry:cli/bin/jsn.js→cli/src/cli.js.site/: Rails website, Markdown insite/docs/, assets insite/static/. Docker builds use the repository root andsite/Dockerfile..github/: CI workflows and repository-only automation.
Read the owning code and package manifest before changing a feature or dependency. Maintainer references are architecture, domain contracts, and testing. Consult relevant sections on demand; keep documentation consistent with verified code and tests.
CLI rules
Paths below are relative to cli/.
- Register command modules in
src/cli.js; route handlers throughwrap(handler). Reuse_simple.jsand_ticket.jsfactories for table and ticket CRUD. - Declare capabilities in
src/capabilities.jsthrough the command definition. Instance requirements, daily checks and mutation guards derive from that registry; do not maintain parallel command-name or mutation-path lists. - Preserve strict argument validation, aliases, help and machine discovery.
- Preserve instance, read-only, confirmation and capture-context safeguards. Rejected operations must not write. Never weaken a guard to make tests pass.
- Emit command data through
app.output, notconsole.log. Preserve JSON envelopes,--getextraction and existing human output formats.
Verification
From the repository root:
npm --prefix cli ci
npm test
npm run lintRun focused tests first, then the full suite and lint before pushing. Keep the
actual exit status; do not hide failures behind output-filtering pipelines.
Use node:test and test observable behavior at the lowest useful layer.
Inject fixture credentials/transports rather than using personal profiles or
keyrings. Test failure paths and zero writes on rejection. Structural assertions
need an explicit architectural rationale, not an incidental implementation detail.
Do not delete coverage to meet a numeric test-count or size target.
Live integration tests can create and delete instance records. They require
explicit opt-in and a suitable target; the ordinary suite needs no instance.
Set JSN_NO_VERSION_CHECK=1 and JSN_NO_SKILL_CHECK=1 in CLI fixtures.
Website asset preparation and preview are npm run docs and
npm run docs:serve at the root. Website changes also need the relevant site
checks documented in site/README.md and the maintainer testing guide.
Delivery
Use a feature branch and a PR against main at github.com/jacebenson/jsn.
Preserve unrelated working-tree changes. Report failed, skipped and unrun checks
honestly; a local pass does not replace CI on the exact PR revision.
Production releases use GitHub Actions. Let the release workflow update the package version and lockfile; do not bump versions per change or push release tags manually. Merging and releases require explicit authorization.
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.

