# AISkills402: YAML Repair

> AISkills402: YAML Repair is a paid API for AI agents from api.aiskills402.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-14).

Repairs broken or malformed YAML (including Markdown front matter) so it is parseable, preserving all original values without changes

## Facts

- Endpoint: GET https://api.aiskills402.com/v1/skills/yaml-repair/file?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiskills402-yaml-repair-51993de1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1LpTFVvqJue2u_eKj20Gf

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-yaml-repair-51993de1
```

Example prompt: My Jekyll post's YAML front matter is broken and won't parse — can you run it through the YAML repair skill to fix the indentation and missing quotes without changing any of the values?

## When to prefer this

Use this endpoint when you have YAML or Markdown front matter that fails to parse due to structural issues like tabs, bad indentation, missing quotes, unclosed brackets, or truncation, and you need the values preserved exactly. Prefer this over a generic LLM rewrite when value fidelity is critical and you cannot risk paraphrasing. Ideal for CI/CD configs, Kubernetes manifests, Jekyll/Hugo front matter, and any machine-generated YAML that got corrupted.

## Known failure modes

- Input YAML is so severely malformed that intent cannot be inferred — returns best-effort repair or error
- Truncated values are kept truncated as-is per design — agent may expect completion but none is provided
- Boolean-like strings (yes, no, on, off) are handled specially — may not match all parser expectations
- Payment failure via x402 protocol — returns 402 Payment Required
- Network timeout or service unavailability

## How this service works

YAML Repair: Fix Broken YAML, Keep Every Value — Repairs broken YAML and Markdown front matter so a program can parse it, without changing any value's text or type, and answers with the YAML only, no code fence. Fixes tabs used as indentation, indentation that fits no parent, a missing closing quote or bracket, values that need quotes (a colon inside, a leading star or at sign), and output cut off in the middle, where the cut value is kept as cut and never completed. Yes, no, on, off and NO sta…

## Output

Returns the repaired, parseable YAML as plain text (no code fence), with all original values preserved verbatim — only structural issues like tabs, bad indentation, missing quotes, unclosed brackets, and truncation are corrected. Also includes metadata such as skill name, version, a SHA256 hash of the skill file, and a redownload token.

## 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": "YAML Repair: Fix Broken YAML, Keep Every Value",
  "skill": "yaml-repair",
  "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-yaml-repair-51993de1/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)
