---
title: "Agent Skills index.json digests | Agent Ready Checklist"
description: "How is a skill's digest computed in agent-skills/index.json? It is a sha256: prefix plus 64 lowercase hex characters, hashed over the raw bytes served."
canonical: https://agentreadychecklist.com/guides/build-an-agent-skills-index-with-digests
site: "Agent Ready Checklist"
last_updated: 2026-11-22
date: 2026-11-22
section: "Guides"
---

# Agent Skills index.json digests | Agent Ready Checklist

> How is a skill's digest computed in agent-skills/index.json? It is a sha256: prefix plus 64 lowercase hex characters, hashed over the raw bytes served.

Source: https://agentreadychecklist.com/guides/build-an-agent-skills-index-with-digests
Site: Agent Ready Checklist
Last reviewed: 2026-11-22
Agent endpoints: https://agentreadychecklist.com/llms.txt (index), https://agentreadychecklist.com/openapi.json (API), https://agentreadychecklist.com/mcp (MCP server), https://agentreadychecklist.com/ask (search)
Access: https://agentreadychecklist.com/auth.md (no key). Pricing: https://agentreadychecklist.com/pricing.md (free).

# Each skill's digest is the SHA-256 of the file you serve

Every skill entry in /.well-known/agent-skills/index.json needs a digest written as the prefix sha256: plus 64 lowercase hex characters, hashed over the artifact's raw bytes. Clients must verify each download against it and must not use content that fails. Generate digests from the deployed files and recheck them in CI.

Publishers MUST provide an index at `/.well-known/agent-skills/index.json`, according to the [Agent Skills Discovery RFC](https://raw.githubusercontent.com/cloudflare/agent-skills-discovery-rfc/main/README.md). The document is marked Status: Draft and Version: 0.2.0, with a Published Date of 2026-01-17 and an Updated Date of 2026-03-12. The index must include a top-level `$schema` field, and the current schema URI is `https://schemas.agentskills.io/discovery/0.2.0/schema.json`. Clients treat that URI as an opaque identifier and match it against the schema URIs they know. A client that meets an unrecognized `$schema` should warn the user and should not process the index.

Beside `$schema`, the index holds a `skills` array.

-   `name`: the skill identifier.
-   `type`: must be `"skill-md"` (a single SKILL.md file) or `"archive"` (a bundled archive).
-   `description`: what the skill does and when to use it.
-   `url`: the location of the skill artifact.
-   `digest`: the SHA-256 content digest of the artifact at `url`.

Clients must ignore unrecognized fields. An entry with an unrecognized `type` should be skipped.

Related: [Agent Skills index defined](https://agentreadychecklist.com/glossary/agent-skills-index/)

## Names and descriptions

Skill names must conform to the [Agent Skills specification](https://agentskills.io/specification): 1 to 64 characters, only lowercase `a-z`, `0-9` and hyphens, no hyphen at the start or end, and no consecutive hyphens (`--`). Inside SKILL.md the name must also match the parent directory name. The description field there must be 1 to 1024 characters.

The [discovery draft](https://raw.githubusercontent.com/cloudflare/agent-skills-discovery-rfc/main/README.md) applies the same naming rules to each index entry, caps the entry's description at 1024 characters, and says it SHOULD match the `description` in the skill's SKILL.md frontmatter. Every SKILL.md MUST contain YAML frontmatter with `name` and `description` fields, followed by Markdown instructions. Read both values from that frontmatter when your build writes the index entry, so the entry and the file agree.

## Computing the digest

All digests use SHA-256 and take the form `sha256:{hex}`, where `{hex}` is 64 lowercase hexadecimal characters, per the [draft's integrity section](https://raw.githubusercontent.com/cloudflare/agent-skills-discovery-rfc/main/README.md). The input is the raw bytes of the artifact: for `skill-md`, the SKILL.md file; for `archive`, the archive file. Version 0.2.0 replaced the earlier manifest-derived skill-level digest with this single-artifact digest.

In a Node build script, `crypto.createHash()` returns a Hash object, and `hash.digest()` returns a string when you pass an encoding, as the [Node.js crypto docs](https://nodejs.org/api/crypto.html) describe. The docs' own example for the sha256 sum of a file reads the file as a stream; with the `sha256:` prefix added it looks like this:

```js
import { createReadStream } from 'node:fs';
const { createHash } = await import('node:crypto');

const filename = 'dist/.well-known/agent-skills/scan-site/SKILL.md';
const hash = createHash('sha256');
const input = createReadStream(filename);
input.on('readable', () => {
  const data = input.read();
  if (data) hash.update(data);
  else console.log(`sha256:${hash.digest('hex')}`);
});
```

For data of 5MB or less that is readily available, `crypto.hash()` is a one-shot alternative whose output encoding defaults to `'hex'`. When a string reaches `hash.update()` without an encoding, Node enforces UTF-8. Node ignores the input encoding when the data is a Buffer, TypedArray or DataView.

In a browser or worker, `SubtleCrypto.digest("SHA-256", data)` takes an ArrayBuffer, a TypedArray or a DataView and returns a Promise that fulfills with an ArrayBuffer, as [MDN's digest() page](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest) explains. The method does not support streaming input, so the whole file must be in memory first. In some or all supporting browsers it is available only in secure contexts (HTTPS). To get hex, call `Uint8Array.toHex()` on the result (available since 2025), or map each byte with `b.toString(16).padStart(2, "0")` and join.

## Keeping digests in step with SKILL.md

Clients MUST verify downloaded content against the index digest and MUST NOT use unverified content, per the [draft's verification rules](https://raw.githubusercontent.com/cloudflare/agent-skills-discovery-rfc/main/README.md). Its security section adds that a mismatch indicates the content has been tampered with or is stale. Clients also compare each digest against a locally cached value. When the two match, the client may skip re-downloading, and digests are what clients use to invalidate cached content.

1.  Run the hashing step after every step that rewrites a SKILL.md, such as one that changes line endings or adds frontmatter, and hash the file in the output directory you deploy.
2.  After deploy, fetch each entry's `url`, compute the SHA-256 of the response body and treat any difference from `digest` as a failure. That is the same download check the draft requires of clients: compute the SHA-256 and reject on mismatch. Related: [CF-AGENT-SKILLS](https://agentreadychecklist.com/checklist/cf-agent-skills/)Related: [How to keep a site agent-ready in CI](https://agentreadychecklist.com/guides/keep-a-site-agent-ready-in-ci/)

## Pointing url at the artifact

URLs in the index are resolved per RFC 3986 Section 5, with the index URL as the base URI, according to the [discovery draft](https://raw.githubusercontent.com/cloudflare/agent-skills-discovery-rfc/main/README.md). The [discovery draft](https://raw.githubusercontent.com/cloudflare/agent-skills-discovery-rfc/main/README.md) lets the `url` field point to any location, such as a CDN or a versioned path, and gives these forms:

-   Path-absolute, resolved against the index origin: `/.well-known/agent-skills/code-review/SKILL.md`
-   Absolute, for a CDN or versioned path: `https://cdn.example.com/v2/skills/code-review/SKILL.md`
-   Relative, resolved against the index URL directory: `code-review/SKILL.md`

For `skill-md`, the conventional pattern is `/.well-known/agent-skills/{name}/SKILL.md`, though publishers MAY use any URL. Clients must handle 3xx redirects. Under [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986.html), when a retrieval was the result of a redirected request, the last URI used becomes the base URI. A relative-path reference is merged with all but the last segment of the base path. Check where relative `url` values land if your index URL redirects.

## Choosing skill-md or archive

Simple skills, those with only SKILL.md, SHOULD use `type: "skill-md"`, the [draft's distribution guidance](https://raw.githubusercontent.com/cloudflare/agent-skills-discovery-rfc/main/README.md) says. Archives are meant for skills with supporting files such as scripts, references and assets. Archives SHOULD be `.tar.gz` or `.zip`, and clients MUST support at least those two.

Build the archive from the skill directory itself. Files sit at the archive root rather than inside a wrapper directory, the archive MUST contain SKILL.md at the root, and it MUST NOT contain path traversal sequences (two dots in a row) or absolute paths. Clients reject archives with those paths, or with symlinks or hard links that resolve outside the skill directory, after checking the archive's digest. Compute that digest over the finished archive file.

## Serving the files

The draft's HTTP Considerations section sets these server requirements:

-   Serve the index with `application/json`.
-   Serve SKILL.md files with `text/markdown` or `text/plain`.
-   Serve `.tar.gz` archives with `application/gzip` and `.zip` archives with `application/zip`.
-   Support `GET` and `HEAD`.
-   Return `404 Not Found` for skills or files that do not exist.

Servers SHOULD also set appropriate `Cache-Control` headers and include CORS headers such as `Access-Control-Allow-Origin` if browser-based clients are meant to use the skills. For archives, clients should read the format from `Content-Type` and fall back to the file extension only if the header is absent or generic, such as `application/octet-stream`.

The repository describes the mechanism as using the `.well-known` URI path prefix specified in [RFC 8615](https://www.rfc-editor.org/rfc/rfc8615.html), per its [GitHub page](https://github.com/cloudflare/agent-skills-discovery-rfc). Under RFC 8615, well-known URIs are rooted at the top of the path: `/.well-known/example` is one, while `/foo/.well-known/example` is not. Because well-known locations effectively represent the entire origin, server operators should control who can write to them.

Related: [.well-known defined](https://agentreadychecklist.com/glossary/well-known/)

## A live index to compare against

The [isitagentready.com index](https://isitagentready.com/.well-known/agent-skills/index.json) declares the 0.2.0 schema URI.

```json
{
  "name": "agent-skills",
  "type": "skill-md",
  "description": "Publish an agent skills discovery index at /.well-known/agent-skills/index.json.",
  "url": "/.well-known/agent-skills/agent-skills/SKILL.md",
  "digest": "sha256:2cdda60ea052eb8af4ae8a4d96dc0d173151d5386ee724a4e98f93ed21adbae5"
}
```

## Sources

-   [Agent Skills Discovery via Well-Known URIs (README, raw)](https://raw.githubusercontent.com/cloudflare/agent-skills-discovery-rfc/main/README.md)Cloudflare (agent-skills-discovery-rfc repository), read 2026-11-22
-   [cloudflare/agent-skills-discovery-rfc](https://github.com/cloudflare/agent-skills-discovery-rfc)Cloudflare (GitHub), read 2026-11-22
-   [Agent Skills specification](https://agentskills.io/specification)Agent Skills, read 2026-11-22
-   [isitagentready.com Agent Skills index](https://isitagentready.com/.well-known/agent-skills/index.json)isitagentready.com (Cloudflare), read 2026-11-22
-   [RFC 8615: Well-Known Uniform Resource Identifiers (URIs)](https://www.rfc-editor.org/rfc/rfc8615.html)IETF / RFC Editor, read 2026-11-22
-   [RFC 3986: URI Generic Syntax](https://www.rfc-editor.org/rfc/rfc3986.html)IETF / RFC Editor, read 2026-11-22
-   [Crypto (Node.js documentation)](https://nodejs.org/api/crypto.html)Node.js, read 2026-11-22
-   [SubtleCrypto: digest() method](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)MDN, read 2026-11-22

Edition

Data

2026-11-04

Reviewed

2026-11-22

Spec

AgentReady v2.0.1, db79f10

Crawl

13,071 rows, 2026-11-04

Ora

132 checks, contract 1.38.0, 2026-11-05

Verify with Ora

The scanner this site recommends for the whole checklist. 132 checks, a score out of 100, no account.

`npx ax@0.10 audit <url> --min-score <n>`

[Why Ora, and its limits](https://agentreadychecklist.com/verify-with-ora/)

Method

-   [How rows, commands and rates are made](https://agentreadychecklist.com/method/)
-   [How an Ora check is matched to a row](https://agentreadychecklist.com/checklist/ora-checks/)
-   [Pass rates by rank band](https://agentreadychecklist.com/data/by-rank/)

Sources and read dates sit at the foot of the page.

Last reviewed 2026-11-22. AgentReady v2.0.1, read 2026-11-24.
