ai-agent-skills / agent-rdf-memory
AGENTS.md42 starsChanged 50 days agoMITView on GitHub
Before executing the mandatory file-read sequence below, check the most recent session TTL (newest file in sessions/) for onto:usedFileReads or onto:usedSparqlEndpoint: "Memory loading preference for this session:\n> > (1) File reads [default]\n> > (2) SPARQL — localhost:8890/sparql/ [local Virtuoso]\n> > (3) SPARQL — other endpoint / other URI" Record the choice in the current session TTL as: - :session onto:usedFileReads true . (option 1) - :session onto:usedSparqlEndpoint <{endpoint-url}> . (option 2 or 3) Wait for the user's selection, then proceed…
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 31,774 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 repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a2a-clientSkill
- acp-clientSkill
- csv-to-rdf-det-generatorSkill
- data-twinglerSkill
- dbpedia-query-skillSkill
- document-to-kg-skillSkill
- fediverse-crudSkill
- fuxi-engineerSkill
- infographic-describerSkill
- iodbc-dsn-managerSkill
- kg-generatorSkill
- linked-data-skillsSkill
- llm-routing-skillSkill
- monidSkill
- mpp-stripe-clientSkill
- mtls-curlSkill
- opal-agent-skill-assemblerSkill
- openlink-license-managerSkill
- openlink-license-readerSkill
- openlink-request-broker-configuratorSkill
- opml-rss-readerSkill
- osdi-inclusion-engineSkill
- pinchtabSkill
- rdf-det-variant-generatorSkill
- rdf-infographic-skillSkill
- resource-access-offers-generatorSkill
- rss-feed-generatorSkill
- s3-query-skillSkill
- screencast-recorderSkill
- set-webdav-resource-propertySkill
- sparql-faceted-browserSkill
- ucp-clientSkill
- uriburner-opal-agent-skillsSkill
- virtuoso-rdf-bulk-loaderSkill
- virtuoso-rdf-loaderSkill
- virtuoso-support-agentSkill
- wc2026-match-reportSkill
- weblog-from-webdavSkill
- website-from-webdavSkill
- wikidata-query-skillSkill
- world-cup-2026-navigatorSkill
- x402-buyerSkill
- xmla-clientSkill
- youidSkill
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 1 is distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Before executing the mandatory file-read sequence below, check the most recent session TTL (newest file in sessions/) for …
- Distinctive: line 21
Wait for the user's selection, then proceed to the load sequence below using the chosen method.
- Very specific: line 27
Before responding to the first user request in every session, load the RDF memory from …
- Very specific: line 30
Read core.ttl for user identity and output-routing requirements.
- Very specific: line 31
Read preferences.ttl for the public operational-rule manifest.
- Very specific: line 32
If present, read preferences.private.ttl as a local-only private overlay.
- Very specific: line 35
Read ontology.ttl for prompt-intent classes, retrieval policies, and ontology-routed context selection rules.
- Very specific: line 37
Read index.ttl for session pointers.
- Very specific: line 41
Treat {CNAME} in SPARQL templates as the selected endpoint host or endpoint family, not as literal localhost.
- Very specific: line 45
If SPARQL context selection is unavailable or incomplete, fall back to direct file reads and read the most recent file in sessions/ for …
- Very specific: line 48
When a rule applies, follow its rdfs:seeAlso link to the referenced howto/*.ttl file before acting.
- Very specific: line 51
Treat these RDF files as authoritative operational memory.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
RDF Memory Protocol
Step 0 — Load-Path Gate (before the file-read sequence)
Before executing the mandatory file-read sequence below, check the most recent
session TTL (newest file in sessions/) for onto:usedFileReads or
onto:usedSparqlEndpoint:
- Found → skip elicitation; load memory via the recorded method.
Absent → STOP and elicit from the user:
"Memory loading preference for this session:\n> (1) File reads [default]\n> (2) SPARQL — localhost:8890/sparql/ [local Virtuoso]\n> (3) SPARQL — other endpoint / other URI"
Record the choice in the current session TTL as:
:session onto:usedFileReads true .(option 1):session onto:usedSparqlEndpoint <{endpoint-url}> .(option 2 or 3)
Wait for the user's selection, then proceed to the load sequence below using the chosen method. On all subsequent sessions where a recorded choice exists, skip this elicitation silently and reuse the recorded method.
Mandatory Retrieval Sequence
Before responding to the first user request in every session, load the RDF memory
from /Users/kidehen/Documents/Management/Development/ai-agent-skills/agent-rdf-memory/:
- Read
core.ttlfor user identity and output-routing requirements. - Read
preferences.ttlfor the public operational-rule manifest. - If present, read
preferences.private.ttlas a local-only private overlay; private overlay values take precedence over public defaults and must not be required for public reuse of the memory harness. - Read
ontology.ttlfor prompt-intent classes, retrieval policies, and ontology-routed context selection rules. - Read
index.ttlfor session pointers. - Determine the current prompt intent, then prefer SPARQL context selection
against the configured endpoint to retrieve relevant preference topics,
rdfs:seeAlsohowto documents, and recent-session context. - Treat
{CNAME}in SPARQL templates as the selected endpoint host or endpoint family, not as literal localhost. Determine the operating value from the private overlay when present, otherwise from public endpoint configuration or the current task context. - If SPARQL context selection is unavailable or incomplete, fall back to direct
file reads and read the most recent file in
sessions/for previous-session lessons. - When a rule applies, follow its
rdfs:seeAlsolink to the referencedhowto/*.ttlfile before acting.
Treat these RDF files as authoritative operational memory. Do not substitute a
summary, MEMORY.md, or assumptions for them. Re-read the relevant howto file
when a task triggers one of its rules.
RDF Notation Preference
On the first RDF authoring task, check the private preference overlay and recent session memory for a notation preference. If none is recorded, offer Turtle (default), LD-Vault, YAML-LD, JSON-LD, and Type your own RDF notation preference. If the user does not answer and the task should proceed, use Turtle as the default. Record the selected preference locally in preferences.private.ttl when available, and in the current session record; never treat Turtle as a requirement. Honor a recorded preference, and update it whenever the user asks to change it. Read howto/rdf-serialization-default-clarification.ttl for the detailed rules.
The source design is documented in
/Users/kidehen/Documents/Management/Development/ai-agent-skills/agent-rdf-memory/SESSION-START-HOOK.md.
That document describes a Claude Code hook; this AGENTS.md is its Codex
equivalent instruction entry point.
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.

