{
  "schema": "snappy-card/1",
  "skill": "snappy-imessage",
  "tier": "public",
  "origin_tier": "base",
  "purpose": "You handle Snappy's iMessage channel on **this** Mac -- the one holding Messages.app. Blue-bubble",
  "verbs": [
    {
      "name": "recent",
      "args": [
        "contact?"
      ],
      "effect": "read",
      "firstCall": "npx tsx ~/.claude/skills/snappy-imessage/api.ts recent"
    },
    {
      "name": "thread",
      "args": [
        "contact"
      ],
      "effect": "read",
      "firstCall": "npx tsx ~/.claude/skills/snappy-imessage/api.ts thread <contact>"
    },
    {
      "name": "search",
      "args": [
        "text"
      ],
      "effect": "read",
      "firstCall": "npx tsx ~/.claude/skills/snappy-imessage/api.ts search \"<text>\""
    },
    {
      "name": "contacts",
      "args": [],
      "effect": "read",
      "firstCall": "npx tsx ~/.claude/skills/snappy-imessage/api.ts contacts"
    },
    {
      "name": "attachments",
      "args": [
        "contact"
      ],
      "effect": "read",
      "firstCall": "npx tsx ~/.claude/skills/snappy-imessage/api.ts attachments <contact>"
    },
    {
      "name": "send",
      "args": [
        "phone",
        "text"
      ],
      "effect": "send",
      "firstCall": "npx tsx ~/.claude/skills/snappy-imessage/api.ts send <phone> \"<text>\""
    }
  ],
  "faces": [],
  "agents": [],
  "uses": [
    "snappy-knowledge",
    "snappy-clients",
    "snappy-calendar",
    "snappy-ops",
    "snappy-whatsapp",
    "snappy-infra"
  ],
  "used_by": [
    "snappy-slack"
  ],
  "checks": {
    "pass": 49,
    "fail": 4,
    "defer": 8,
    "line": "49 of 53 checks pass",
    "failing": [
      {
        "id": 4,
        "rule": "Near-neighbour descriptions cross-reference each other",
        "says": "near neighbours not named: snappy-runner"
      },
      {
        "id": 15,
        "rule": "Near-miss keys refuse with the correct contract key",
        "says": "0 refusal(s) omit the correcting key; 1 uncovered; 1 case(s) left unfuzzed because the verb has an outside effect"
      },
      {
        "id": 31,
        "rule": "Refusals have outcome, code, message, and fix",
        "says": "refusals schema-checked for outcome/code/message/fix"
      },
      {
        "id": 32,
        "rule": "Refusals name a literal from the valid domain",
        "says": "refusals checked against contract literals"
      }
    ]
  },
  "coverage": null,
  "spec": null,
  "evals": {
    "scenarios": 5,
    "holdout": 2,
    "line": "5 eval scenarios, 2 held out"
  },
  "files": [
    "AGENTS.md",
    "SKILL.md",
    "adapter.ts",
    "api.test.ts",
    "api.ts",
    "chat-db.ts",
    "evals.json",
    "face.test.ts",
    "faces/components/imessage-chat.tsx",
    "faces/family.tsx",
    "faces/fixtures/imessage-compose.json",
    "faces/fixtures/imessage-decision.json",
    "faces/fixtures/imessage-message.json",
    "faces/fixtures/imessage-thread.json",
    "fixtures/build-chat-db.ts",
    "imsg-cli-reference.md"
  ],
  "total_size": 140386,
  "checksum": "sha256:02ade730974bffbefb9ec0a709645027cf113786b5d5a62c6db3fbf3e0060512",
  "built_at": "2026-09-09T22:09:34.570Z",
  "openapi": {
    "openapi": "3.1.0",
    "info": {
      "title": "snappy-imessage",
      "version": "0.0.0",
      "description": "Reads and sends iMessage and SMS on the Mac signed in to Messages, straight out of chat.db with node's own SQLite: recent messages, one person's thread, a phrase search, the handles seen, and attachment paths. A send to anyone but the owner stages for his decision. Needs macOS Full Disk Access rather than a credential, unlike snappy-whatsapp and snappy-telegram. Use when asked what someone texted, to search the message archive, or to text a phone number. Triggers on: imessage, text message, sms, Messages app, chat.db, text someone, what did they text."
    },
    "x-snappy-transport": "cli",
    "servers": [
      {
        "url": "npx tsx ~/.claude/skills/snappy-imessage/api.ts",
        "description": "The hand itself. Every path is a verb word, every query or body key an argument."
      }
    ],
    "paths": {
      "/recent": {
        "get": {
          "operationId": "snappy_imessage_recent",
          "summary": "snappy-imessage recent",
          "x-snappy-effect": "read",
          "x-snappy-annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          },
          "parameters": [
            {
              "name": "contact",
              "in": "query",
              "required": false,
              "schema": {
                "type": "string",
                "description": "Optional phone in E.164, Apple ID email, or part of a conversation's name; omit for the newest messages across every conversation",
                "x-snappy-position": 0
              }
            },
            {
              "name": "limit",
              "in": "query",
              "required": false,
              "schema": {
                "type": "integer",
                "description": "How many messages to answer, newest first",
                "default": 20,
                "maximum": 200,
                "x-snappy-flag": "--limit"
              }
            },
            {
              "name": "json",
              "in": "query",
              "required": false,
              "schema": {
                "x-snappy-flag": "--json"
              }
            }
          ],
          "responses": {
            "200": {
              "description": "The verb's own answer, as printed by `--json`."
            }
          }
        }
      },
      "/thread": {
        "get": {
          "operationId": "snappy_imessage_thread",
          "summary": "snappy-imessage thread",
          "x-snappy-effect": "read",
          "x-snappy-annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          },
          "parameters": [
            {
              "name": "contact",
              "in": "query",
              "required": true,
              "schema": {
                "type": "string",
                "description": "The person: a phone in E.164, an Apple ID email, or part of the conversation's name",
                "x-snappy-position": 0
              }
            },
            {
              "name": "limit",
              "in": "query",
              "required": false,
              "schema": {
                "type": "integer",
                "description": "How many of that conversation's messages to answer, newest first",
                "default": 20,
                "maximum": 200,
                "x-snappy-flag": "--limit"
              }
            },
            {
              "name": "json",
              "in": "query",
              "required": false,
              "schema": {
                "x-snappy-flag": "--json"
              }
            }
          ],
          "responses": {
            "200": {
              "description": "The verb's own answer, as printed by `--json`."
            }
          }
        }
      },
      "/search": {
        "get": {
          "operationId": "snappy_imessage_search",
          "summary": "snappy-imessage search",
          "x-snappy-effect": "read",
          "x-snappy-annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          },
          "parameters": [
            {
              "name": "text",
              "in": "query",
              "required": true,
              "schema": {
                "type": "string",
                "description": "The phrase to find in message bodies, matched case-insensitively",
                "x-snappy-position": 0
              }
            },
            {
              "name": "limit",
              "in": "query",
              "required": false,
              "schema": {
                "type": "integer",
                "description": "How many matches to answer, newest first",
                "default": 20,
                "maximum": 200,
                "x-snappy-flag": "--limit"
              }
            },
            {
              "name": "json",
              "in": "query",
              "required": false,
              "schema": {
                "x-snappy-flag": "--json"
              }
            }
          ],
          "responses": {
            "200": {
              "description": "The verb's own answer, as printed by `--json`."
            }
          }
        }
      },
      "/contacts": {
        "get": {
          "operationId": "snappy_imessage_contacts",
          "summary": "snappy-imessage contacts",
          "x-snappy-effect": "read",
          "x-snappy-annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          },
          "parameters": [
            {
              "name": "limit",
              "in": "query",
              "required": false,
              "schema": {
                "type": "integer",
                "description": "How many correspondents to answer, most recently active first",
                "default": 20,
                "maximum": 200,
                "x-snappy-flag": "--limit"
              }
            },
            {
              "name": "json",
              "in": "query",
              "required": false,
              "schema": {
                "x-snappy-flag": "--json"
              }
            }
          ],
          "responses": {
            "200": {
              "description": "The verb's own answer, as printed by `--json`."
            }
          }
        }
      },
      "/attachments": {
        "get": {
          "operationId": "snappy_imessage_attachments",
          "summary": "snappy-imessage attachments",
          "x-snappy-effect": "read",
          "x-snappy-annotations": {
            "readOnlyHint": true,
            "destructiveHint": false,
            "idempotentHint": false,
            "openWorldHint": false
          },
          "parameters": [
            {
              "name": "contact",
              "in": "query",
              "required": true,
              "schema": {
                "type": "string",
                "description": "Whose conversation's files to list: a phone in E.164, an Apple ID email, or part of the conversation's name",
                "x-snappy-position": 0
              }
            },
            {
              "name": "limit",
              "in": "query",
              "required": false,
              "schema": {
                "type": "integer",
                "description": "How many files to answer, newest first",
                "default": 20,
                "maximum": 200,
                "x-snappy-flag": "--limit"
              }
            },
            {
              "name": "json",
              "in": "query",
              "required": false,
              "schema": {
                "x-snappy-flag": "--json"
              }
            }
          ],
          "responses": {
            "200": {
              "description": "The verb's own answer, as printed by `--json`."
            }
          }
        }
      },
      "/send": {
        "post": {
          "operationId": "snappy_imessage_send",
          "summary": "snappy-imessage send",
          "x-snappy-effect": "send",
          "x-snappy-annotations": {
            "readOnlyHint": false,
            "destructiveHint": true,
            "idempotentHint": false,
            "openWorldHint": true
          },
          "requestBody": {
            "required": true,
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "phone": {
                      "type": "string",
                      "description": "Who receives it, in E.164, for example +14155551212",
                      "x-snappy-position": 0
                    },
                    "text": {
                      "type": "string",
                      "description": "The message body, sent exactly as written",
                      "x-snappy-position": 1
                    },
                    "json": {
                      "x-snappy-flag": "--json"
                    }
                  },
                  "required": [
                    "phone",
                    "text"
                  ]
                }
              }
            }
          },
          "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"
            }
          }
        }
      }
    }
  }
}