{
  "schema": "snappy-card/1",
  "skill": "snappy-api-sniffer",
  "tier": "public",
  "origin_tier": "base",
  "purpose": "You are the network cartographer. Given a URL that gates its internal API behind JS challenges or Next.js middleware (where cookie-curl returns 202/empty), you capture the real XHR/fetch calls using a Playwright session and emit a replay recipe that any consumer skill can call with plain `fetch()`.",
  "verbs": [
    {
      "name": "capture",
      "args": [
        "url",
        "filter",
        "name",
        "state-path?"
      ],
      "effect": "write-reversible",
      "firstCall": "npx tsx ~/.claude/skills/snappy-api-sniffer/api.ts capture <url> <filter> \"<name>\""
    },
    {
      "name": "list",
      "args": [
        "recipe-name?"
      ],
      "effect": "read",
      "firstCall": "npx tsx ~/.claude/skills/snappy-api-sniffer/api.ts list"
    },
    {
      "name": "replay",
      "args": [
        "name",
        "index?"
      ],
      "effect": "write-reversible",
      "firstCall": "npx tsx ~/.claude/skills/snappy-api-sniffer/api.ts replay \"<name>\""
    }
  ],
  "faces": [],
  "agents": [],
  "uses": [],
  "used_by": [],
  "checks": {
    "pass": 44,
    "fail": 3,
    "defer": 14,
    "line": "44 of 47 checks pass",
    "failing": [
      {
        "id": 10,
        "rule": "One term names each concept",
        "says": "mixed synonym sets: endpoint/url/route/path"
      },
      {
        "id": 55,
        "rule": "Eval scenarios are multi-call with ground truth",
        "says": "eval manifest missing"
      },
      {
        "id": 57,
        "rule": "Eval manifest contains a disjoint holdout",
        "says": "0 disjoint holdout scenario(s)"
      }
    ]
  },
  "coverage": null,
  "spec": null,
  "evals": null,
  "files": [
    "AGENTS.md",
    "SKILL.md",
    "api.ts",
    "contract.test.ts",
    "recipes/skool-feed.json"
  ],
  "total_size": 27314,
  "checksum": "sha256:52c698bc93ccb0ca42930abe64f23f65bd8615c3412ea5fb96d6f420737731e2",
  "built_at": "2026-09-09T22:08:07.135Z",
  "openapi": {
    "openapi": "3.1.0",
    "info": {
      "title": "snappy-api-sniffer",
      "version": "0.0.0",
      "description": "Capture XHR/fetch traffic from a real Playwright session and emit replayable recipes that any consumer skill can call with plain fetch(). Exists because many surfaces (Skool, LinkedIn feeds, gated Next.js pages) reject cookie-curl but return real data to a logged-in browser. This is the network analog of snappy-dom-cartographer. Triggers on: intercept api, xhr capture, network recipe, replay api, reverse engineer api, middleware gated api, 202 empty body, cloudflare challenge."
    },
    "x-snappy-transport": "cli",
    "servers": [
      {
        "url": "npx tsx ~/.claude/skills/snappy-api-sniffer/api.ts",
        "description": "The hand itself. Every path is a verb word, every query or body key an argument."
      }
    ],
    "paths": {
      "/capture": {
        "post": {
          "operationId": "snappy_api_sniffer_capture",
          "summary": "snappy-api-sniffer capture",
          "x-snappy-effect": "write-reversible",
          "x-snappy-annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": true
          },
          "requestBody": {
            "required": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "description": "Page to open while XHR/fetch traffic is recorded",
                      "x-snappy-position": 0
                    },
                    "filter": {
                      "type": "string",
                      "description": "Substring every recorded request URL must contain",
                      "x-snappy-position": 1
                    },
                    "name": {
                      "type": "string",
                      "description": "Name the captured recipe is filed under",
                      "x-snappy-position": 2
                    },
                    "state-path": {
                      "type": "string",
                      "description": "Browser storage-state file that reuses a logged-in session",
                      "x-snappy-position": 3
                    }
                  },
                  "required": [
                    "url",
                    "filter",
                    "name"
                  ]
                }
              }
            }
          },
          "responses": {
            "200": {
              "description": "The verb's own answer, as printed by `--json`."
            }
          }
        }
      },
      "/list": {
        "get": {
          "operationId": "snappy_api_sniffer_list",
          "summary": "snappy-api-sniffer list",
          "x-snappy-effect": "read",
          "x-snappy-annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          },
          "parameters": [
            {
              "name": "recipe-name",
              "in": "query",
              "required": false,
              "schema": {
                "type": "string",
                "description": "Recipe whose requests are listed; omit to list every recipe name",
                "x-snappy-position": 0
              }
            },
            {
              "name": "limit",
              "in": "query",
              "required": false,
              "schema": {
                "type": "integer",
                "description": "How many recorded requests to return, newest first. The count is the FLAG --limit, never a positional word; default 20, ceiling 200",
                "default": 20,
                "minimum": 1,
                "maximum": 200,
                "x-snappy-flag": "--limit"
              }
            }
          ],
          "responses": {
            "200": {
              "description": "The verb's own answer, as printed by `--json`."
            }
          }
        }
      },
      "/replay": {
        "post": {
          "operationId": "snappy_api_sniffer_replay",
          "summary": "snappy-api-sniffer replay",
          "x-snappy-effect": "write-reversible",
          "x-snappy-annotations": {
            "readOnlyHint": false,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": true
          },
          "requestBody": {
            "required": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "Recipe to replay",
                      "x-snappy-position": 0
                    },
                    "index": {
                      "type": "integer",
                      "description": "Which request in the recipe to replay, zero-based; omit for all",
                      "x-snappy-position": 1
                    }
                  },
                  "required": [
                    "name"
                  ]
                }
              }
            }
          },
          "responses": {
            "200": {
              "description": "The verb's own answer, as printed by `--json`."
            }
          }
        }
      }
    },
    "components": {
      "schemas": {
        "SnappyRefusal": {
          "type": "object",
          "required": [
            "outcome",
            "code",
            "message"
          ],
          "properties": {
            "outcome": {
              "type": "string",
              "const": "refused"
            },
            "code": {
              "type": "string",
              "description": "A row of the closed refusal table."
            },
            "message": {
              "type": "string"
            },
            "fix": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}