Index of every page on this site: llms.txt
All skills
botkitsdev avatar

/botkits-markdown-twin

@c282a38
by botkitsdevbotkitsdev/botkits10 stars
3
Run it yourself

Use this when adding a clean markdown twin for one HTML page: a .md copy at the same path, a rel=alternate type=text/markdown link, and one line for it in /llms.txt.

  • 2 files
  • 6.3 KB
  • Updated 5 days ago
  • GitHub
Use this Skill: https://skilld.dev/gh/botkitsdev/botkits/botkits-markdown-twin

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈47 tokens for metadata: the name and description. ≈548 when used: this file. ≈1k more on demand in 1 file.

Description uses 2.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈189 characters, or 2.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Markdown twin

For one HTML page, publish a clean markdown copy that an agent can read instead of scraping the rendered page. The twin must carry the same facts as the HTML. Do not cloak.

Three steps

  1. Write a clean .md copy at the same path as the page, using one of the forms from the llms.txt v2 spec: append .md (page.html.md) or replace the extension (page.md). For a URL with no filename, use index.html.md or index.md.

  2. Advertise the twin from the HTML page:

    <link rel="alternate" type="text/markdown" href="/docs/install.md">
  3. Add one line for that twin in /llms.txt (create the file if the site does not have one yet), in the spec's file-list form: a markdown link, optionally a colon, and a short note.

Do this for the one page you were asked to cover. Do not invent a site-wide crawl, a Worker router, or content negotiation unless that work is already in scope.

Example

HTML page at /docs/install/ (or /docs/install.html). Twin at /docs/install.md (or /docs/install/index.md).

<!doctype html>
<html lang="en">
  <head>
    <link rel="alternate" type="text/markdown" href="/docs/install.md">
    <title>Install</title>
  </head>
  <body>
    <h1>Install</h1>
    <p>Run <code>npm install example</code>, then start the app with <code>npm start</code>.</p>
  </body>
</html>

/docs/install.md:

# Install

Run `npm install example`, then start the app with `npm start`.

One new line in /llms.txt:

# Example

> Product docs for agents.

## Docs

- [Install](/docs/install.md): How to install the product

The markdown has the same facts as the HTML, without navigation or other chrome. Point the llms.txt link at the twin, not the HTML page.

Inspired by

Inspired by Jeremy Howard's /llms.txt v2 proposal (clean markdown at the same URL with .md or index.md, and rel="alternate" type="text/markdown"). The spec defines the file forms, the link relation, and the /llms.txt format, but it is not a one-page recipe that does all three together. This skill adds that per-page sequence and a tiny worked example.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at c282a38. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 5 days ago

README badge

README badge for botkitsdev/botkits/botkits-markdown-twin