Skip to content
  1. Reference
  2. The SkillCDN Format

Reference

The SkillCDN Format

  • Status: Draft.
  • Implemented by: packages/core (parseSkillManifest, parseRepoManifest, classifyRepoFile, isServedPath, summarizeMarkdown). Fixtures live in apps/server/fixtures/.repositories/; the reference pack, written in the format and served live, is skillcdn/skills.

A pack is what SkillCDN serves as one unit: a git repository, or a folder of one, that holds skills, the documents beside them (a team's playbooks, references and guides) and the rules that hold for all of them. An organization has its pack, and so can a brand or a person; one address serves one pack, and an agent that connects receives the whole of it. The word names the unit, not a file or a field: a pack is written as the files below, and nothing in it is called a pack.

This specification says how SkillCDN reads a pack, and how one is written so that an agent uses it well. The layout is the Agent Skills layout: a repository that already works as a skills folder works here unchanged. That layout, together with the conventions that grow around it (what sits next to SKILL.md, what the repository root says, how plain documents are written), is the SkillCDN Format. User documentation is rendered from this file.

repo/
  SKILLCDN.md               the repository manifest: the pack's name, description, which directories
                            hold documents, and the rules that hold for every skill
  README.md                 optional introduction, summarized for discovery and read on demand
  SKILL.md                  a pack of one skill, or
  skills/
    <name>/SKILL.md         a pack of several skills; front-matter carries name, description, ...
    <name>/references/      documents the body points to
    <name>/assets/          small data files the skill reads
    <name>/scripts/         optional helpers; served as text, never run
  <area>/                   or one folder per area of work (marketing/, engineering/, ...)
    SKILLCDN.md             the area's manifest: who its skills are for, the rules they add
    README.md               the area's optional introduction
    skills/<name>/SKILL.md  the area's skills, laid out as above
    docs/                   the area's documents, discovered next to its manifest
  docs/                     plain documents: listed, searched and read without a skill;
                            other directories may be declared or individual Markdown files linked
  .agents/skills/<name>/    hidden ancestors do not hide an explicitly declared SKILL.md

Reading rules

What the indexer does with a repository. These hold for every pack, whether or not it follows the rest of the format.

  • A skill is a directory that holds a valid file named exactly SKILL.md, at any depth, including under hidden ancestors. The exact file declares the skill; no repository-specific folder names or allowlists are needed. A file belongs to the nearest skill directory above it, so a nested skill owns its own files. A root SKILL.md declares a root skill without suppressing nested skills.
  • SKILL.md is YAML front-matter followed by a Markdown body. Everything else in the skill directory is a supporting file the body may point to.
  • Documents are discovered in docs, at the repository root or next to the nearest governing manifest; a manifest can declare different directories (the repository manifest). These are bulk discovery roots, not a denylist. Linked Markdown files outside them can also be read (references).
  • READMEs introduce visible folders. The repository root and folders already exposed through skills or documents can supply an optional README overview, even without SKILLCDN.md. Discovery carries a short summary and canonical path; the full text is read only when needed. Overview eligibility alone does not add a searchable document or increase document counts (introductions).
  • A pack without any skill still works as a document endpoint through browse_repo, search_repo and read_repo_file.
  • Hidden paths require a declaration. A valid SKILL.md declares its skill even under hidden ancestors. Ordinary supporting descendants are eligible, but additional hidden children require skillcdn.include, an explicit document-directory declaration or a Markdown link. A file link exposes that file, never its siblings. Unrelated hidden files remain excluded.
  • Explicit exclusions take precedence. A manifest's exclude removes the named files or subtrees from every discovery and reading route, including valid skills, README overviews, includes and references. Descendant declarations cannot reopen excluded paths (exclusions).
  • Folders retain their real paths. browse_repo shows the same hierarchy whether or not manifests exist. A SKILLCDN.md adds metadata and rules to its folder. A skill belongs directly to the nearest manifest folder; ancestor counts include descendants without duplicating their identities.
  • Repositories declare; they never ship code that we execute. Composition ("take this input, call these tools in this order") will be declared in Markdown or YAML. Scripts in a repo are files like any other: readable, never run. allowed-tools is passed through as text and grants nothing.
  • Indexed content: skill manifests, Markdown (.md, .markdown, .mdx) and small JSON. Every other file is listed and can be read, but is not searched. A Markdown or JSON file over the per-file indexing limit is listed and readable like them, but not searched or summarized; check names such files. A file over the read limit is not served at all: it is named with its size and where its bytes are at the host (what the extension serves). Binary files are listed, never searched. Limits are configuration with safe defaults; the index is partial, and says so, only when the tree, file-count or total-size limits leave entries out.
  • A plain Markdown document is listed under its front-matter title and description when it has them; otherwise its title is its first level-one heading, and its description is the first paragraph after that heading (or the first paragraph of the document when there is no heading), shortened to 200 characters. Links become their text; badges, images, lists, quotes, tables, code and HTML blocks (to the blank line that ends them, however their lines are indented) are skipped on the way.
  • A document's headings are its outline. Every heading outside a fenced code or HTML block, written with # marks or underlined, opens a section that runs to the next heading of any level; browse_repo lists them with the offset and length that read each, and a search result names the sections that matched (tools). check prints how many sections each document has.
  • A manifest that cannot be read is reported, never dropped in silence. Its path, code and reason appear in diagnostics in the REST API, the page of the address and the tools. Its boundary survives parsing, size and indexing failures: a failure must not restore broader default discovery. A commit whose tree listing may be missing a manifest, because the git host cut it short or it holds more manifests than the tree limit admits, is not published at all: it fails to index with indexer.tree_truncated. Before pushing, check reads a working tree with the same indexer and prints the findings (the check role).
  • Repos whose owner has verified them with the service are verified; until owners can, the operator of a deployment lists the repositories it vouches for. Responses from every other public repository carry a provenance notice (tools); a private repository carries none (ADR-0061).

Front-matter

FieldRequiredRule
nameyes1 to 64 characters on one line.
descriptionyesNonempty text. Authors follow the Agent Skills limit of 1024 characters; the reader preserves longer descriptions with a warning within the front-matter size bound. What the skill does and when to use it; this is what search_repo ranks first.
licensenoShort text.
compatibilityno1 to 500 characters.
allowed-toolsnoText, passed through.
metadatanoMapping from short text keys to short text values.
skillcdnnoA mapping with what SkillCDN adds to the layout, so that the top level stays the specification's: include and translations, below.
skillcdn.includenoA sequence of at most 20 paths of Markdown or JSON files the skill needs on every run, written as a link destination is: relative to the skill directory, or from the repository root with a leading /. load_skill and the skills extension return their text with the skill (tools). The skillcdn key stays in the source and is left out of the served document. A path inside the skill directory names any of its files, hidden ones included. A path outside it names a shared page: a document served under a document directory that a manifest at or above the skill declares (shared pages). Anything else is dropped and reported.
skillcdn.translationsnoA mapping from a language tag (ko, pt-BR) to a mapping with title (1 to 200 characters on one line) and description (1 to 1024 characters), for people who read the page of the address in that language, and for a query written in that language, which finds the skill by them (a query in another language). At most 32 languages; an entry that translates nothing usable is dropped and reported. These are not agent context: agents read the original name, description and body.
  • A manifest that breaks a rule for a required field, has no front-matter, or has front-matter that is not valid YAML is skipped and reported. It never fails the whole repo. The file stays readable, so that the author can see what was found; it is listed and searched only where a document would be.
  • A name that ignores the naming convention (lowercase letters, digits and single hyphens) or differs from its directory name is served with a warning. The directory rule does not apply to a manifest at the mounted root.
  • An optional field that cannot be used is ignored with a warning. Unknown fields are ignored silently, so the convention can grow.
  • Two skills may share a name; the exact repository-root SKILL.md path identifies a skill.

Writing the values

The front-matter is YAML, and a sentence written as a plain (unquoted) value can mean something else to YAML than to its author. The three mistakes that matter, and what the report says about them:

WrittenWhat YAML readsThe report
description: Makes a video: fast and cheap.A nested mapping: a colon followed by a space splits a plain value. The front-matter is invalid and the skill is skipped.invalid_front_matter, with the hint that the value of description contains : .
description: Greets people # by nameGreets people: a space followed by a hash starts a comment. The skill is served with half its description.The warning commented_value.
description: [x] Marks the task done.A sequence, or an error: [, {, &, *, !, %, @ and ` mean something at the start of a value.invalid_front_matter, with the hint that the value starts with that character.

Quote such a value (description: "Makes a video: fast and cheap.") or write it as a block scalar, which takes any text:

description: >
  Makes a video: fast and cheap. Use when the user wants a promo
  short for their product.

The format

The reading rules say what is served. The format says how to make it useful: an agent browses folders or searches descriptions, loads an exact skill with load_skill, follows its continuation until complete, and reads optional references with read_repo_file; a host that implements the MCP skills extension receives the skills through it. A person opens the page of the address and browses the same structure.

Required

A pack is in the SkillCDN Format when all of these hold. The explorer and check verify points 1 and 2 from the files, and report as index diagnostics a local link that names no file of the repository, a link whose fragment names no section of its file, a quotation of a derived document that is not in the section it names, a picture without alternative text, a picture or an original that is not there, and a skill's reference to a file that is not text (ADR-0076); a document's link to its original or its picture is what the format asks for, and is not reported. The rest is what a reviewer of the pack reads for.

  1. Every skill directory has a SKILL.md whose front-matter passes the table above, whose name follows the naming convention and equals the directory name, and whose body starts with a level-one heading.
  2. The description says what the skill does and when to use it, in the words a user would say. It is what search_repo ranks first. Say when another skill is a better choice when their purposes overlap.
  3. References make dependencies explicit. Use Markdown links for repository files needed by the workflow. Shared .md references outside the skill work through a repository-root connection. A sub-path connection cannot read references outside its mount; keep a skill self-contained when it must also work alone, and include a shared page every run needs, so that it travels with the skill (shared pages).
  4. Everything an agent must read is Markdown or small JSON. Other files are listed and readable, never searched; rendered media and binaries are not part of a skill. The originals and the pictures of a document pack are such files: listed, never searched, and reached through the link a result gives for each (document packs, ADR-0077).
  5. Nothing has to run. A skill works from its SKILL.md and the documents it points to. Scripts may be shipped as help for agents that run locally, and are served as text.
  6. Shared rules have a SKILLCDN.md at their scope. A root manifest states the rules of the whole pack; nested manifests add rules for their descendants. A manifest is optional when the repository needs no extra metadata, rules, document roots or exclusions. README introductions are available separately and do not become shared rules.
  7. Nothing in a public repository that is not for everyone. A pack is served to whoever the git host lets see its repository: everyone, for a public one. The repository's visibility is what decides who reads a pack, not what is left out of its files: material that is not for everyone, a secret, a private hostname, personal data, the originals they came in, goes in a private repository, whole (ADR-0076, permissions).

The layout of a skill:

skills/<name>/
  SKILL.md              front-matter and the instructions; kept to a few hundred lines
  references/           documents the body points to from the phase that needs them
  assets/               small data files the skill reads: example JSON, schemas
  scripts/              optional helpers for agents that run locally

The body of a SKILL.md, in this order, so that an agent that has read one knows where to look in the next: a title and a one-paragraph summary of what comes out from what; the requirements, that is the tools the skill calls and what to do when one is missing; the inputs, what the user must supply and the questions to ask for gaps; the workflow, as numbered phases that name what each consumes and produces and where the user is consulted; the hard rules an agent must never break; and the terms the skill uses with a fixed meaning. A skill that needs a file of the user's says so among its inputs; the agent reads the file from its own environment, since SkillCDN never receives files.

A file that every run needs is declared in skillcdn.include, so that it arrives through the skill's context pages; a file that only some phase needs is linked from that phase and read when the phase comes. A page the skills of one tool family share is declared the same way, from a document set above the skill (shared pages).

Keep the skill body and always-required includes modest: about 16 KiB of UTF-8 text combined is a useful authoring target before inherited rules. This is guidance, not an admission limit. Larger context is paged; inherited rules and response metadata also take space. An agent reads every page before it starts: load_skill carries 16 KiB of the context on a page, and skillcdn skill prints up to 28,000 bytes in a part, which is a run of those pages. skillcdn check says for each skill how large its context is and in how many pages it is read, for one over the target what the included files weigh, the largest first, and of a page that ends inside a table, a code block or a line, the file and the line the next page begins at. A host of the skills extension is handed the same text as one document and not in pages, so what a skill includes weighs there at once (what the skills extension serves). Link optional material from the phase that needs it so agents can read it on demand (loading a skill).

Write the canonical name, description, body and shared rules in English by default, so agents use the same original across UI languages. Other original languages are supported; declare the language in the nearest applicable manifest. SkillCDN preserves the author's original and never chooses an agent's skill language from the visitor's UI language. Search matches words: stemmed where the pack's language has a stemmer, and by pairs of characters in the scripts that have no word stems, so that an inflected word is found by its stem (the words that match); where a deployment or the command has a model, it matches by meaning too, fused with the words (words and meaning).

Use skillcdn.translations (a title and description) and the manifest's translations for people reading the page in another language. The explorer marks translated skill summaries, and the words of the index are those of the original metadata and body text, not of the translation fields. A search reads a skill's translations for two things, and shows nothing of them: a query in another language than the pack's finds the skill by them (a query in another language), and a skill that was found is judged by them as by its original name and description (how a result matches). A translation that says the job in the words a user asks in is how a skill is found in that language. The manifest's translations are display text alone. The original name remains visible beside a translated skill title. MCP discovery and skill context use the original fields and body; reading an exact source file can still show its translation declarations as written.

Connect the repository root by default, so one connection can reach shared references and different areas of work. Both <area>/skills/<name>/ and skills/<area>/<name>/ are supported without hiding the skills segment. Put a SKILLCDN.md where common descriptions and rules belong. Describe who should use that folder's skills and for which tasks. Users may express a preferred area in their client instructions or request; SkillCDN does not remember a selected role.

Plain documents (a document set is a directory of Markdown without a SKILL.md) carry a front-matter title and description, or start with a level-one heading followed by one summary paragraph, because that is what search shows. Their headings are their structure: browse_repo answers a document's outline, and a search result names the sections that matched, each with what reads it (tools), so a document whose headings name its parts is a document an agent walks and quotes well.

Document packs

A pack that is mostly documents is a document pack (ADR-0063): a team's handbook, the manual of a product, a body of reports. The word names a use of a pack, not a kind: the format, the address and the tools are the same, and a document pack may hold skills that say how its documents are worked. What makes one workable for an agent at thousands of pages:

  • One file per document or chapter, never per page. A chapter of a few thousand words is one file; a page is too small to carry a title and a summary, and a whole book too large to read by sections. A deployment indexes a file up to its per-file limit and serves it up to its read limit, both configuration (deploy); a file over the indexing limit is listed and read but not searched, and check names such files, so a chapter stays well under it.

  • A chapter too long for one file is a folder (ADR-0081): a folder of its sections with a map of its own, the files in the order of the original, each named by a number that keeps that order and by the first section it holds (030-4.2.6-link-resumption.md), each line of the map saying which sections, which rows of a long table and which pages of the original the file holds. A section is never cut in two unless it alone is longer than a file; then it is cut between its paragraphs and between the rows of a table, the header repeated, each part saying the rows it holds.

  • A heading carries the number and the name the original gives the section, 4.2.7 Detection of carrier loss or TABLE C-2 Modifier codes: a reference in the text names a section by its number, a search for the number finds the heading, and a query that is a number or a name is answered by the file whose heading names it (words and meaning). What the original sets in a fixed-width font stays code: fenced, with its indentation and its alignment, every character at the column it stands in and a blank cell a run of spaces, one block across a page break, so that a definition, or a table drawn with characters, is read as it was written and had as data (the outline of a file).

  • A section is what an agent reads at once, so it is kept to a few thousand characters. A table has no headings inside it: a table of several hundred rows is one section, and to read one row all of it is read. A long table therefore stands in sections of a few dozen rows, each under a heading that names the table and its first and its last row (TABLE C-2 Modifier codes: AA to BZ), the header row repeated; to a program it is still one table (ADR-0080). A title the original sets inside a section, the caption of a table of field descriptions, is a heading one level below. check notes a section longer than one read carries (section_large).

  • A reference to a section, a table or an annex of the same pack is a link to the file that holds it, with the section as its fragment, [4.2.7](040-4.2.7-to-4.2.8-carrier-loss.md#4.2.7) or #table-c-2 (Markdown references, ADR-0082); a reference to a document the pack does not hold stays text. A read of the page then lists the section with what reads it, and the agent follows the reference into the clause, not into the file. A reference to a section of the same file is written with the file's name as well.

  • An index is a lookup table from a name to the file and the section that hold it: the definitions of the code blocks, the tables and the figures by their number, the sections that refer to a section. It is made mechanically from the chapters, stands in a folder of its own in sections of a few dozen rows headed by the names they hold, and is found by its words alone (search: { meaning: false } in the manifest of its folder), so that it never stands before the text it points to in a search by meaning.

  • A title and a description on every document, in the front-matter or as the first heading and paragraph, and headings that name the parts of the document, since sections are what search names and what browse_repo outlines.

  • A map in every document set: a README.md with one line per document, saying what each holds, as the introductions do; an agent reads the map before it searches, and a document set without a map is a pile.

  • The manifest declares the document roots and the language, so that the words of a document are read with the right rules and the map of the pack says what language to search in; a folder written in another language gets a manifest of its own that declares it.

  • The originals travel in the pack, in sources/ inside the document set they belong to (ADR-0076): the PDF, the office document, the scan a chapter was made from, committed like any other file, listed and never searched. A document names its originals in the front-matter source, the path of the original written as a link destination is, relative to the document or from the repository root, or a list of them; any other value, a title or a URL, stays text. A result names the original with the document, browse_repo in the header of the outline and read_repo_file on the first page, each with where its bytes are: at the git host, at the deployment's own route for a pack of its directory, on the machine for a directory the command reads (tools, ADR-0077). An original over what the host takes as it is, 100 MB at GitHub, goes through Git LFS; a read of its pointer sends the reader to where the host serves the file. A page of an original is said in words, "page 12 of the original": the hosts send originals as downloads, where an anchor into a page does nothing.

  • A chapter says where it stands. A document cut from a larger original carries the heading path above it, its part and chapter, at its top, so that a section read alone still says what it belongs to; the chapters of one original share a sources/ entry.

  • The pictures are part of the document. A picture is kept beside the document, in images/ by convention, and linked from where it belongs with the words an agent reads it by: alternative text that says what the picture shows, or a caption under it, written by the agent at conversion from what it sees (ADR-0063). The index searches those words like any text and embeds no picture; the outline of a document names its pictures with their words, and check reports a picture without any.

  • A map is a list of the documents, one line per document in the order they are read, each line the document's title linked to its file with what it holds; for a set cut from one original, the chapters in the order of the original.

  • Conversion is the agent's, outside the server, and keeps what the original says. Documents become a pack by a skill of the reference pack: converted to Markdown with the tools the agent has, laid out as above, committed with their originals to a repository the person owns. SkillCDN never receives a file: it indexes what the git host, or the directory, holds. Nothing is left out of the text for being personal or secret: who reads the pack is decided by the visibility of its repository (required point 7). What looks secret or personal is pointed out to the person at conversion, with the visibility of the repository, and the person decides whether to keep it, to leave it out of the text, which leaves it in the original, or to make the repository private.

  • What an agent learns stays in the pack: notes committed to the repository through the agent's own access to git, as documents in a document set of their own, so that the next run finds them.

  • A document made from the pack's documents says so, and points (ADR-0083). A note of what a run learned, a glossary, a list of open questions: such a document carries derived in its front-matter, a mapping with kind, from (the documents or folders it was made from, written as a link destination is), by and at, each optional. What it quotes it quotes exactly, in a block quote whose last line links to the section quoted, with … for words left out:

    > At the count maxSilentWindows the carrier is lost.
    >
    > — [4.2.7](/docs/link-protocol/04-link-control/040-4.2.7-to-4.2.8-carrier-loss.md#4.2.7)
    

    The index holds every quotation against the section its link names, word for word once links are folded to their words and markup and blanks are folded away, and reports one that is not there (quote_not_in_source), a block quote with no such link (quote_without_link) and a from that names nothing (derived_from_missing); a source changed after the note was written is found the same way. A search result marks such a document, and an agent quotes the section, never the document made from it. The format asks for no such document: this is what the ones a pack holds owe the text they rest on.

The method, the steps an agent follows to make such a pack and to work one, is the reference pack's: skillcdn-document-pack, skillcdn-document-research and skillcdn-document-answer in skillcdn/skills, served at skillcdn.ai/gh/skillcdn/skills, and readable without a connection with npx @skillcdn/cli@latest skill gh/skillcdn/skills engineering/skills/skillcdn-document-pack/SKILL.md. They follow this format and define nothing of it.

A repository without a manifest

A client is told the repository, commit and mounted path, with a bounded folder overview (tools). README summaries provide orientation without loading the introduction; the git-host description is the fallback when no local description is available. Valid skills are discovered at any depth, documents in root docs are independently discoverable, and local Markdown references can add readable files. The folder tree needs no inferred aliases. A repository adds manifests only where metadata, common rules, other document roots or exclusions are useful.

README introductions

A README at the repository root or in a directory already exposed through skills, documents or their ancestors can be read with read_repo_file. A README alone does not expose an unrelated hidden folder or make every folder in a repository discoverable. The same size, text, symlink, mount and exclusion rules apply as for other files.

The basename is README without a language suffix, matched case-insensitively, and the extension is .md, .markdown or .mdx. Choose one overview per directory: exact README.md, then readme.md, then other .md spellings, .markdown, and .mdx, with lexical order breaking ties. The canonical path preserves the file's actual spelling.

browse_repo returns the current folder's optional overview with its canonical path, title and short description, and can identify a child folder's overviewPath. Titles and summaries use the normal Markdown summary parser. The manifest's explicit name and description take precedence when describing its folder; a README summary fills a missing introduction, followed by the git-host description for the repository root. Reading the overview remains optional: its body is never appended to connection instructions, inherited rules or a skill's required context.

The selected README is the original, without choosing a language variant from the UI language. Authors should write this original in English by default and link human-facing translations themselves. Reading an exact eligible translation path still returns that file as written.

Overview-only files stay out of independent search and document counts. A README independently eligible as a document or supporting file keeps that eligibility. Its local Markdown links follow the ordinary bounded reference rules below, allowing an agent to read a relevant linked guide on demand.

The repository manifest: SKILLCDN.md

A file named exactly SKILLCDN.md supplies metadata for its folder and a Markdown body with rules for descendant skills. Manifests may be nested; they do not make isolated projects (ADR-0022). They use the same safe front-matter parser and limits as SKILL.md. The root manifest of the reference pack, as an example:

---
name: SkillCDN Pack
description: Your marketer, designer and developer in the AI you already use, making the short ad, the card news, the deck, the web app and the meeting minutes, checked before you see them. Before a job, find its skill (docs/pack/finding-a-skill.md).
image: assets/banner.webp
documents:
  - docs
language: en
translations:
  ko:
    name: SkillCDN 팩
    description: 이미 쓰는 AI 안의 마케터, 디자이너, 개발자. 숏폼 광고, 카드뉴스, 발표 덱, 웹 앱, 회의록을 직접 만들고, 보여 드리기 전에 검토합니다. 일을 하기 전에 맞는 스킬을 찾으세요. 찾는 법은 docs/pack/finding-a-skill.md에 있습니다.
license: MIT
metadata:
  author: skillcdn
---
# Rules for every skill in this repository

**Ask only what cannot be derived.** A skill asks for the inputs it cannot get from the request, in one short message, and derives everything else from those inputs and sensible defaults.

**Spend only with consent.** Anything that costs the user money or credits is estimated first and started only after they agree.

...
FieldRequiredRule
nameno1 to 100 characters on one line. Default: the repository's name on the git host.
descriptionyes1 to 1024 characters. Who should use the skills in this folder and for which tasks. Shown with the folder and in connection context when space permits. Its first sentence is the folder's line where the kinds of work are read (tools): it says the jobs the folder's skills do.
imagenoThe picture that stands for the folder (ADR-0031): the path of a file of the repository, relative to the manifest (assets/banner.png), or an https URL. Any picture, of any size and shape; the explorer's card shows its middle at two to one, the page of the address shows it wider. A path that is not a file of the repository, or anything else, is reported and ignored. A folder without one inherits the nearest ancestor's. The pages load it from where it is, the host's raw copy of the file at the commit shown or the URL as written, and never store it.
startnoThe page an agent reads before it does anything with the folder (ADR-0119): the path of a Markdown document of the repository, relative to the manifest (docs/finding-a-skill.md). It is where a pack says how it is used: how the skill for a task is found, which documents answer what. A client is told of it on connect, in the place of the README, by every mount that can read it (tools). The page is served as a document wherever it stands, as a file a document links to is. A path that names no Markdown document, or one that is excluded, is an index diagnostic (start_missing), and nothing is told.
documentsnoAt most 20 directories relative to the manifest (docs, docs/ or . for its own directory), no ..; invalid entries are dropped and reported. Their Markdown and JSON are discoverable, and their eligible text files can be read. Default: docs next to the manifest. An empty sequence disables bulk document discovery; it does not block explicit file references. An explicitly named hidden directory is allowed.
excludenoAt most 100 exact file or subtree paths relative to this manifest; . excludes its entire scope. Omitted or empty: no exclusions. A trailing / is allowed. No globs, negation, absolute paths or ... Ancestor exclusions accumulate and cannot be overridden. Any invalid entry fails the manifest closed rather than silently dropping the policy.
languagenoThe tag of the language the original content is written in (en, ko, pt-BR); English is the recommended authoring default. Told to the client on connect, so that a model searches in that language; on the page, text shown as the author wrote it is marked as being in it; and it chooses the stemmer the words of the folder are read with, when the commit is indexed and when it is searched (the words that match). It does not select a translation. A tag that is not one is ignored and reported.
translationsnoA mapping from a language tag to a mapping with name (1 to 100 characters on one line) and description (1 to 1024 characters): display text for people reading the page in that language. At most 32 languages. These are not search aliases or agent context; agents read the original name, description and rules.
searchnoA mapping with meaning: false keeps the documents this manifest governs out of the search by meaning (words and meaning): they are searched by their words alone, and their text is not sent to the embedding model a deployment runs (ADR-0064). A nearer manifest decides for its own directory. With hub: false in the root manifest, the repository stays out of the search across every pack of a deployment (across every pack, ADR-0070) and is found at its own address alone. Default: by meaning too, where the deployment offers it, and found across packs. Anything else is ignored and reported.
licensenoShort text, as in SKILL.md.
metadatanoMapping from short text keys to short text values, as in SKILL.md.

The values are YAML, with the same pitfalls as in SKILL.md (writing the values).

The nearest manifest determines bulk document discovery for a file outside skills. Its documents declaration replaces the default at that scope; document directories are not accumulated from ancestors. A manifest itself is readable but not an independent search result.

Rules are different: load_skill and the skills extension return every ancestor manifest's body in root-to-nearest order, labeled by canonical source path, before the skill body. Only language and image automatically inherit among metadata fields, with a nearer declaration overriding them; a start page is told to a mount below its manifest only where it lies inside that mount, and a nearer manifest's comes first. Names, descriptions, translations, licenses and metadata remain attached to the manifest that declares them.

A failed manifest retains its boundary and is reported. Its descendant scope is closed to discovery and reads because its publication policy could not be established. Neither nested declarations, includes, README overviews nor links reopen it. The policy's diagnostic identifies the problem without exposing descendants. Manifests are considered even under hidden ancestors so exclusions can govern hidden skills. While indexing is incomplete, reads report indexing rather than guessing the policy.

A sub-path connection retains applicable ancestor rules through load_skill continuation, but ordinary read_repo_file cannot read outside the mount. All source paths remain repository-root paths.

Excluding files and subtrees

Place the policy at the narrowest relevant scope. For example, to keep test repositories out of a repository's served skills, add this SKILLCDN.md inside the directory that contains those fixtures:

---
description: Internal test repositories.
exclude:
  - .
---

To omit only some descendants, name their paths instead, such as templates or references/draft.md. Exclusions match complete path segments, so templates does not exclude templates-public. They use repository path spelling and never escape the manifest directory. A sub-path connection inside an excluded subtree does not bypass an ancestor's policy.

A manifest cannot be excluded on its own: a policy stays with the files it governs, so excluding a SKILLCDN.md, from an ancestor or from itself, withholds its whole directory. Excluding the directory says the same thing on purpose; excluding only the manifest is reported as excluded_policy.

Exclusions govern the served set before parsing descendant skills and walking references. Intentionally excluded fixtures therefore produce neither skills nor irrelevant manifest diagnostics. This is publication control within SkillCDN, not confidentiality: files in a public git repository remain public on the git host.

Markdown references

The index resolves local Markdown links from valid skills, applicable rules, README overviews and served Markdown documents, recursively following targets ending in .md. Inline and reference-style links are supported. Relative links are resolved against their source file; a leading / means the repository root. A fragment plays no part in which file a link names; it names a section of that file (ADR-0082): the first heading whose words, in lower case, each without the marks around it and joined by hyphens, are the fragment or begin with it where a word of the heading ends, so that #4.2.7 names 4.2.7 Detection of carrier loss and #table-c-2 names TABLE C-2 Modifier codes: AA to BZ; the slug a git host's renderer makes of the heading names it too, and so does an explicit anchor in the file, which names the section it stands in. The section is the heading with every section under it, and the index keeps with the reference the offset and the length that read it, for a file that is served (reading a file). A fragment that names no section of a served file is reported (fragment_not_found). External URLs, directory links and anchor-only links are not repository file references. A filename mentioned only in prose or code is not a declaration.

Every resolved target remains inside the repository and refers to the same commit. Normalized paths prevent traversal; symlinks and submodules are not followed. A visited set prevents cycles, and file, byte and traversal limits bound the work. Excluded paths and failed manifest scopes block expansion. A link to another skill or manifest preserves that file's identity and does not make its rules apply to the source skill.

Reference inspection reads at most 262,144 characters and records, per source file, links to at most 200 Markdown files and at most 2,000 links to them, so that an index whose rows each name another section of one chapter names one file; pictures and other files are bounded at 200 each. Expansion follows at most eight edges beyond already served content, within the repository's file and byte budgets. Hitting these limits marks the index partial; per-file inspection limits also produce a diagnostic.

An otherwise undiscovered target becomes readable, including a hidden file explicitly named by a link. It does not become an independent searchable document, expose siblings or declare another folder's content. Canonical reference paths are returned with the skill for reading when needed.

A link whose destination is a skill URI, skill://gh/<owner>/<repo>/<path> (address), names a file of another pack: a skill a skill extends, a page another pack keeps (ADR-0120). The URI carries no ref, and names the file at whatever commit its reader's connection to that pack serves. The index keeps such a link with the file that holds it, at most 50 a file, and looks into no other repository: nothing of the other pack is fetched, included or digested, and its rules travel with its own skills. A read of the file or the skill lists what it links to in other packs, with how each is read there (loading a skill). A destination under the scheme that is no skill URI, one with a ref or without a path, is reported (pack_link_invalid). A link to a picture is not such a reference, whatever its destination.

The served set and reference graph are computed once per repository and commit. A sub-path mount clips the result to its path; it does not recompute graph reachability from local sources. References outside that mount cannot be read there. Repository-root connections can use shared reference directories without copying their contents into every skill; a page every run needs travels with the skill instead, as a shared include.

Shared pages

The skills of one tool family repeat what they know about the tool unless it lives in one place. Put it in a document set that the manifest above the skills declares (docs/<family>/ at the repository root, or an area's docs/ when one area holds every skill of the family), one file per topic, and let each skill declare in skillcdn.include the pages every run needs, with a root-relative path (/docs/<family>/models.md); the rest are linked from the phase that reads them (ADR-0044).

A page a skill includes this way is a shared page: a Markdown or JSON document served under a document directory that the manifest governing it declares (the root's docs where no manifest governs), where that manifest is at or above the skill, as the manifests whose rules the skill carries are. A file of another skill, a page of a sibling area, an excluded or hidden file and a file only a link reaches are not shared pages: such an include is dropped and reported, and it declares nothing, since an include never publishes a file outside the skill directory.

A shared page is served with the skill as a local include is: inlined in the assembled SKILL.md and in load_skill in declaration order with the skill's own includes, under its repository-root path, and counted in the skill's digest, so that a change to the page changes the digest of every skill that includes it, as a change to a manifest does. It arrives on every route the skill does, a sub-path mount included, as the ancestor rules do; read_repo_file still cannot read it there by its path. The page stays a document of the repository in its own right, listed, searched and read where it is, and it is not among the skill's resources in the skills extension. A copy of the skill taken from the git host has the page's path in its source and must fetch it; check prints the shared pages of each skill apart from its own files for that reason.

The 16 KiB authoring target covers the skill body and every include, shared pages among them: what every run needs is included, the rest is linked.

Licenses

What a deployment may pass on follows the license it finds (ADR-0026). For each skill the reader takes the first of these that says something:

  1. A license file in the skill's directory: LICENSE, LICENSE.md, LICENSE-MIT, LICENCE, COPYING, UNLICENSE and the like, the plainest name when there are several.
  2. The skill's license field. MIT, Apache-2.0, CC-BY-4.0, GPL-3.0-or-later and the usual ways of writing them are recognized; MIT OR Apache-2.0 is as closed as its most closed part; a field that only points elsewhere (See LICENSE) is skipped.
  3. The license field of each manifest between the skill and the repository root, nearest first.
  4. The repository's license file.
  5. The root manifest's license field.

Files outside the skills follow the same list from step 3. A license is permissive when it allows copies to be passed on with its notice: the usual open-source licenses, public-domain dedications and Creative Commons Attribution, ShareAlike included; copyleft conditions bind what the reader does next, not the serving. It is restrictive when it reserves all rights, forbids redistribution or derivatives, allows non-commercial use only, or is a text the reader does not know, which is the safe mistake; a license file that cannot be read, or is over 64 KiB, counts as unrecognized. A text is read as the license it names itself, not as one it quotes: a source-available license that turns into a permissive one later (the Functional Source License, the Business Source License) and a permissive text with a condition added to it (the Commons Clause) are restrictive. A repository that says nothing has no license.

  • A permissive skill is served in full, and results name the license and where it was found: License: MIT (LICENSE).
  • A restrictive skill is described only: browse_repo and search_repo list it and say so, load_skill returns its name, description, license and a link to its source and nothing else, read_repo_file refuses the files of its directory, and the skills extension does not list it. A verified repository is served in full on its default branch: the owner, once owners can verify, or the operator lifts the restriction by vouching for it (tools). A private repository is served in full on every ref (ADR-0062), since the people it is served to have it at the host already.
  • Files outside the skills under a restrictive license are listed and refused the same way.
  • A skill without a license is served in full with its provenance notice, and a repository without one is never featured.

check prints the repository's license and each skill's, with (described only, unless the repository is verified) where that applies.

What the skills extension serves

A host that implements the MCP skills extension receives the skills of a mount as skills, with every file digested (tools). What it lists is decided when the commit is indexed (ADR-0024, ADR-0025, ADR-0033):

  • A skill is listed when a host can hold it whole: its directory is named after it (or it is the root skill), every served file inside its directory within READ_MAX_FILE_BYTES is stored, there are at most 512 of them, and they total at most 16 MiB. The files of nested skills count as the enclosing skill's. A root skill whose name is also a directory of the repository is not listed, because its URI would be ambiguous.
  • A file over READ_MAX_FILE_BYTES is left out, and named. The skill is listed without it; its served SKILL.md names the file with its size and where its bytes are at the host, so that a host that installed the skill knows what is missing and can fetch it. The address in the document is the one of the file's git object, which stays while the file does, with the header to send where the host needs one (ADR-0117). The skill carries a warning for the author, load_skill lists the file with its raw address in the commit read, and read_repo_file refuses it with the same link. The file does not count toward the bounds above.
  • Identical copies are listed once, at the visible or else the shortest path: a skill under a per-agent hidden directory that repeats a visible one, file for file, is neither listed nor searched.
  • A skill under a hidden directory is listed and searched only when the repository has no visible skill. Its files leave search with it, so that a copy does not come back through its reference files; the copy and its files stay browsable and readable by path, and counts cover only what can be discovered.
  • A skill that is not listed stays loadable and readable through the tools. Its warnings say why it is not listed, and check prints extension: not listed (<reason>) for it: name_directory_mismatch, too_many_files, too_large, file_unavailable (a file within the limit, or a shared page the skill includes, could not be stored), duplicate, hidden or uri_collision.

The SKILL.md a listed skill is served as is assembled from its sources, and its digest is computed over that document: the front matter of the source, re-serialized with every value quoted and without the skillcdn key; a line that names the files it was assembled from; one line per file left out for its size, with the size and where to fetch it; the bodies of the repository manifests from the repository root to the nearest, each under --- applicable rules: <path> ---; the skill's own body under --- instructions ---; and the files it includes, each under --- included file: <path> ---, the shared pages outside its directory among them (shared pages). Every other file of the skill is served as it is in the repository; a shared page is not among its resources. read_repo_file still returns the source SKILL.md as written.

The document is served whole, however long it is: the pages a skill is read in are the tools' (loading a skill), and a host of the extension is handed one SKILL.md with the rules, the instructions and every included file in it. It is not bounded: the host of the extension that was run gives its model the document whole (what one host does, ADR-0143). What a host gives its model of a long document is the host's to decide, and a client that reads one with a tool of its own cuts what is more than it gives its model of one read (results and continuations). check says so for a listed skill whose document is more than the 24 KiB a tool result is kept within, extension: listed, 61390 bytes as served, in one piece: over the 24576 bytes a tool result is kept within, and counts such skills in a note, served_large. The bound compared with is this server's own: a client's differs with its version and its model, and none is in the report (ADR-0125).

Nothing in that document moves with the commit: the same sources are the same bytes. The digest of a skill changes when its SKILL.md, a file it includes, a manifest above it or a file it is served without changes, and a host that verified the skill asks its user again then; a push that touches none of them leaves every digest as it was (ADR-0117). The commit is named by the listing and by every result.

Checking a repository before pushing

The skillcdn check command (@skillcdn/cli on npm) reads a directory as the indexer reads a commit, with the same code, the same parsers and the same limits, and prints what an agent would get, headed by the command's version and the version of the reading rules it applied: the manifest, the repository's license, every skill with its files, warnings, its license, whether the skills extension lists it and whether the document it serves is more than a tool result holds (ADR-0125), in how many pages its context is read and where a page ends inside a table, a code block or a line (ADR-0123), the documents outside the skills with how many sections each has, linked references, what is not served, index diagnostics, and the instructions a client is told on connect. It lists the files of other packs the directory links to, and with --references asks a deployment (--url, else SKILLCDN_URL, else the hosted service) whether each is there, as a read of the file would: a file its pack does not have fails the check, and one that could not be asked about is said to be not known. It needs no database and no git host, executes nothing from the directory, and exits with 1 when index diagnostics are present, so it can gate a push. The server image has the same code as its check role.

npx @skillcdn/cli@latest check                                 # the current directory
pnpm dlx @skillcdn/cli@latest check /path/to/repository
node packages/cli/dist/bin.js check ../skills                  # from a checkout of this repository, after pnpm build
docker run --rm -v "$PWD:/repo:ro" skillcdn check /repo        # from the image

The commands name @latest because a runner goes on using the version it fetched first, and a command applies the reading rules it was built with: an older one reads a pack by older rules, and its first line is where that shows. When the npm registry has a later release of the command, check says so in a line on standard error, beside the report. That request is the only one it makes, never changes its exit code, and is left out with --offline or SKILLCDN_OFFLINE=1.

The working-tree reader does not follow symbolic links and excludes repository administration and dependency directories. Hidden content otherwise follows the same declarations as indexing. It reads a working directory rather than a commit, so untracked or ignored files can make its report differ from what was pushed. Of the variables a deployment takes, only the limits are read from the environment, the INDEX_* ones and READ_MAX_FILE_BYTES (deploy).

Parsing requirements

Everything in a repo is untrusted input:

  • YAML is parsed with the failsafe schema: strings, mappings and sequences only, so 1.0 and no stay the text the author typed. Explicit tags, aliases, duplicate keys, non-string keys and a second document are errors. Front-matter is at most 16,384 characters and a manifest at most 262,144.
  • Front-matter fields are validated against the table above. Text that carries control or invisible characters is rejected, never cleaned up.
  • Paths from manifests must stay within their declared repository scope. Canonical paths returned to clients are repository-root paths. Symlinks are not followed.
  • Markdown links are parsed as data, normalized and checked before bounded local reference expansion. They never cause a network fetch to a linked URL or execute repository code.

Open questions

  • The exact rules for verified once owners can verify a repository themselves; the operator's list is a stand-in.