# AISkills402 Markdown TOC Anchors Skill File

> AISkills402 Markdown TOC Anchors Skill File is a paid API for AI agents from api.aiskills402.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-18).

Downloads the SKILL.md instruction file for generating markdown table-of-contents anchor links that actually jump to headings, purchased once via x402 micropayment in USDC.

## Facts

- Endpoint: GET https://api.aiskills402.com/v1/skills/markdown-toc-anchors/file?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiskills402-markdown-toc-anchors-skill-file-8860102b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GgTMyHg95eaouAazeaV7B

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability aiskills402-markdown-toc-anchors-skill-file-8860102b
```

Example prompt: Buy me the markdown-toc-anchors SKILL.md file from AISkills402 so I can use it to generate tables of contents with working jump links in my markdown documents.

## When to prefer this

Choose this endpoint when an AI agent needs a one-time, durable instruction file (SKILL.md) for generating markdown table-of-contents sections with correctly formatted anchor links. It is ideal when you want a tested, versioned skill you only pay for once and can re-download freely, rather than calling a live generation API repeatedly per document. Prefer this over generic LLM prompting when you need a consistent, reproducible TOC-generation behavior you can pin to a specific version.

## Known failure modes

- Payment not included or rejected — x402 payment header missing or insufficient USDC balance causes payment failure
- Network or provider error on Base blockchain — settlement transaction fails to confirm
- Invalid or malformed request headers — 400 error if required HTTP method or type fields are wrong
- Skill file temporarily unavailable — server-side error returning the SKILL.md content
- Redownload token not saved — user loses free re-download access if token is discarded after purchase

## How this service works

Markdown TOC Anchors: Contents Links That Really Jump — Builds the table of contents of a Markdown document with the exact heading anchors that GitHub or GitLab generate, and answers with the list only, no code fence. Finds the real headings (hash headings with closing hashes, underline headings, none inside code fences, indented code, comments or front matter), strips inline markup, lowercases, drops every character that is not a letter, digit, hyphen or underscore, turns each single space int…

## Output

Returns a JSON object containing the full SKILL.md file content (UTF-8 encoded), the skill's canonical name, a SHA256 hash for integrity verification, the version number (e.g. 1.0.0), a settlement receipt with the Base blockchain transaction hash, and a redownload token URL for future free re-downloads without paying again.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "file": {
   "name": "SKILL.md",
   "content": "<the SKILL.md file>",
   "encoding": "utf-8"
  },
  "name": "Markdown TOC Anchors: Contents Links That Really Jump",
  "skill": "markdown-toc-anchors",
  "sha256": "<sha256 of SKILL.md>",
  "receipt": {
   "tx": "0x<settlement transaction>",
   "settled": true
  },
  "version": "1.0.0",
  "redownload": {
   "url": "<api>/v1/purchases/<token>",
   "token": "<64 hex chars>"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aiskills402-markdown-toc-anchors-skill-file-8860102b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aiskills402.com](https://www.zero.xyz/host/api.aiskills402.com/llms.txt)
