agentleFS
bemoshiurbemoshiur/OmniRank/skills/geo-artifacts/SKILL.md

geo-artifacts

Skill14 starsChanged 4 days agoMITView on GitHub

Use when asked to generate or fix llms.txt [experimental] (not a ranking or citation lever), llms-full.txt or facts.json, or publish machine-readable site facts for agents and developers (GEO, AEO, schema.org, JSON-LD, robots).

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 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.

  • 2

    Very specific

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

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

    These are physical files: Write them into publicDir at build time.

    line 56
  2. Distinctive:

    Verify the files actually serve — generation succeeding locally proves nothing about production:

    line 79
  3. Very specific:

    All three must return 200.

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
SKILL.md

GEO artifacts

Generate three machine-readable files: llms.txt [experimental] (curated index), llms-full.txt [experimental] (full corpus), and facts.json (structured facts). Each carries an explicit licence statement. llms.txt / llms-full.txt are an agent and developer-convenience interface, NOT a ranking or citation lever: Google has said it does not use them (attributed to the owner's notes; unverified here). Never promise rank or citations from them; a missing one is an info finding that costs no score.

When to use

"Generate llms.txt [experimental]", "publish a facts.json", "update facts.json after publishing". (If the ask is to get cited or ranked, say plainly that these files are not a ranking or citation lever.)

When NOT to use

  • Diagnosing whether the files are already served correctly — that is audit.
  • Page-level JSON-LD or AnswerBlocks — that is aeo-onpage (planned, not in v0.1.0).
  • Submitting URLs to search engines — that is indexing (planned, not in v0.1.0).

Generation only writes the three artifacts. It never verifies they are actually served in production — that is audit, and the "After generating" section below.

Which path to take

Node, when the site's content lives in this repo. It consumes an already-materialized Page[] ({ url, title, description, answer }) that your own prebuild script gathers — e.g. from getPages(): Promise<Page[]> reading your CMS or database directly — so it sees draft flags, DB rows, and unpublished states a crawler cannot.

Python, for any other stack or an external site. It reconstructs the corpus itself by crawling the sitemap and the rendered HTML.

# Python / crawl path
python3 -m omnirank.cli geo --config omnirank.config.json --out public
# flags: url (optional, omit when using --config), --config PATH, --out DIR (default: public)

# Node / in-repo path — call generate(config, pages, outDir) from the site's own
# prebuild script, after gathering pages with your own getPages()

Both paths share the same field logic (licence block, sameAs null-dropping, the published gate on statistics) and were verified to emit byte-identical output for identical input, aside from generatedAt timestamp precision (Python emits microseconds, Node emits milliseconds — both valid RFC 3339 UTC).

Rules

  1. These are physical files. Write them into publicDir at build time. Never serve them from a dynamic route — see references/serving-gotchas.md for the 403 this causes.
  2. Wire generation into prebuild AND the deploy script. OpenNext runs next build, not npm run build, so a prebuild hook alone silently does nothing in production.
  3. Never invent a statistic. facts.statistics carries only entries explicitly marked published: true. No published entries means the key is omitted entirely, not emitted empty.
  4. Null sameAs values are dropped, not emitted as null. A null is an entity gap to fill, and offsite-entity (planned, not in v0.1.0) reports on it.
  5. Never infer a content licence — but never refuse to generate either. geo.license has no default. These files are written into publicDir and published on the open web, so the licence text inside them is a real, standing grant of reuse rights over the site owner's content — not a suggestion OmniRank can guess. If geo.license is unset, generation treats it exactly like the explicit "none" opt-out: it proceeds and grants nothing, and (Python CLI only) omnirank geo prints a one-line notice to stderr naming the config key, so the "no rights" default isn't chosen silently. Set geo.license to a licence you have actually chosen (e.g. "CC-BY-4.0") to grant reuse rights, or to the explicit opt-out "none" (or JSON null) for sites that grant no reuse rights at all and to silence the notice — the citation block states plainly that no licence is granted instead of inventing one.

After generating

Verify the files actually serve — generation succeeding locally proves nothing about production:

# llms.txt / llms-full.txt are [experimental] (not a ranking or citation lever); same check for every artifact
curl -sI https://<site>/llms.txt      | head -1
curl -sI https://<site>/llms-full.txt | head -1
curl -sI https://<site>/facts.json    | head -1

All three must return 200. See references/facts-json.md for the schema and references/serving-gotchas.md for what a non-200 usually means.

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.