{"uid":"cap_GgTMyHg95eaouAazeaV7B","slug":"aiskills402-markdown-toc-anchors-skill-file-8860102b","name":"AISkills402 Markdown TOC Anchors Skill File","description":"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…","url":"https://api.aiskills402.com/v1/skills/markdown-toc-anchors/file?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"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>"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jPWge3Wcwux3TSyWhvezl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Auto-generate TOC for documentation site","prompt":"Get me the markdown TOC anchors skill file so I can have you automatically add a clickable table of contents to the top of every markdown doc in my project — the kind where the links actually jump to the right heading."},{"title":"One-time skill purchase for writing assistant","prompt":"I want to set up my writing agent to handle markdown TOC generation properly. Can you buy the markdown-toc-anchors SKILL.md from AISkills402 and save the redownload token so we never have to pay again?"},{"title":"Verify and retrieve latest skill version","prompt":"Download the current version of the markdown-toc-anchors skill from AISkills402 and tell me the version number and SHA256 hash so I can confirm it matches what I have cached."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:57:50.846Z","isFirstParty":false,"canonicalSlug":"aiskills402-markdown-toc-anchors-skill-file-8860102b"}