{
  "name": "Setoku",
  "description": "Skills for connecting an AI agent to the data one operator owns (a company's, a household's, or one person's) and keeping the knowledge behind it correct. They ship in the Setoku Claude Code plugin and run against a Setoku box.",
  "version": "0.22.0",
  "license": "Apache-2.0",
  "homepage": "https://setoku.com",
  "documentation": "https://setoku.com/docs",
  "when_to_use": {
    "summary": "Reach for Setoku when the answer lives in data its operator connected (a company's, a household's, or one person's) and depends on their own definitions, not public knowledge.",
    "who_its_for": [
      "Companies: give agents team-by-team access to revenue, logs, and deploys, for debugging and analysis. Definitions like “active customer” get written down once.",
      "Families: shared accounts and calendars, so the partner who doesn’t write SQL gets the same answers.",
      "Just you: your own accounts and repos, queryable from your phone and the web as well as your desktop."
    ],
    "use_when": [
      "The question is about the operator's own revenue, deploys, spending, mail, or repos. The data lives in their database, Slack, GitHub, email, or bank.",
      "The data keeps changing (a bank, an inbox, an issue tracker), so an export is stale on arrival.",
      "You need the operator's definition of a term first: what counts as an active customer, which account is the joint one, which charges were reimbursed.",
      "A naive query would be wrong in a way only an insider knows: soft-deleted rows, a test tenant, a transfer between your own accounts counted as income. You want that caveat before you run SQL.",
      "You want a dashboard on a link someone else can open, on live data, not a screenshot.",
      "An agent will read untrusted text (mail, logs, chat) in the same session. That session can't rewrite what Setoku knows, so an injected instruction can't become a remembered fact.",
      "You want the answer to be auditable later: every query and knowledge change is logged on your box."
    ],
    "do_not_use_when": [
      "The question is general knowledge or public data. Setoku only knows the data its operator connected.",
      "The data is a static file on your disk. Query it locally. Setoku is for data that lives in other services and keeps changing.",
      "You need to write to the operator's database. Every data path is read-only, enforced by database role. There is no write tool and no escape hatch.",
      "You want a hosted API to sign up for. There is none. Setoku is self-hosted, and the endpoint you call is the operator's own box.",
      "You want a model to run server-side. Setoku runs no inference."
    ],
    "how_to_call": [
      "Connect to the box's MCP endpoint (Streamable HTTP) at `https://<their-box>/mcp` with the person's bearer token, or paste `https://<their-box>/mcp/<token>` into a connector dialog that has no header field.",
      "Call find_context FIRST, every time. It returns the curated notes for the question, including which tables to trust and which to avoid.",
      "Then get_schema, then run_query.",
      "If the context is wrong, call report_correction. It lands as a proposal for a human to accept. An agent session can't commit knowledge by itself."
    ]
  },
  "install": [
    "/plugin marketplace add Hedgy-Labs/setoku",
    "/plugin install setoku@setoku"
  ],
  "skills": [
    {
      "name": "compact-knowledge",
      "id": "setoku:compact-knowledge",
      "description": "Periodically tidy the Setoku knowledge store in a curator session — merge duplicate facts, resolve contradictions, tighten verbose docs, and flag stale knowledge. Use when the user asks to compact / clean up / dedupe / tidy knowledge, or when /admin/knowledge shows merge / contradiction / verbose flags.",
      "command": "/setoku:compact-knowledge",
      "source": "https://github.com/Hedgy-Labs/setoku/blob/main/plugin/skills/compact-knowledge/SKILL.md"
    },
    {
      "name": "connect",
      "id": "setoku:connect",
      "description": "Connect a data source to Setoku end-to-end — ensure a box exists, wire the source up (read-only), verify the agent actually understands the data, and write what it learns back as knowledge. Use when the user says \"connect <source>\", \"hook up <source>\", \"add a data source\", \"set up Setoku\", or \"/setoku:connect\".",
      "command": "/setoku:connect",
      "source": "https://github.com/Hedgy-Labs/setoku/blob/main/plugin/skills/connect/SKILL.md"
    },
    {
      "name": "curate",
      "id": "setoku:curate",
      "description": "Review pending Setoku knowledge candidates and promote, edit, or reject them — conversationally, no git or dev skills required. Use when the user asks to curate/review setoku knowledge, or when list_entities reports pending corrections.",
      "command": "/setoku:curate",
      "source": "https://github.com/Hedgy-Labs/setoku/blob/main/plugin/skills/curate/SKILL.md"
    },
    {
      "name": "eval",
      "id": "setoku:eval",
      "description": "Run the Setoku golden-question eval for this repository and report a scorecard. Use when the user asks to eval/test setoku answer quality, or after significant context-artifact changes.",
      "command": "/setoku:eval",
      "source": "https://github.com/Hedgy-Labs/setoku/blob/main/plugin/skills/eval/SKILL.md"
    },
    {
      "name": "generate",
      "id": "setoku:generate",
      "description": "Generate or refresh Setoku's business-context knowledge by reading this repository's code — ORM schemas, business logic, migrations, existing docs — and saving it to the knowledge store (commits directly on a curator connector, or proposes for human approval on the everyday analyst connector — no SSH needed). Use when the user asks to generate/update/refresh business context, when setoku tools report an empty knowledge store, or when schema drift is detected.",
      "command": "/setoku:generate",
      "source": "https://github.com/Hedgy-Labs/setoku/blob/main/plugin/skills/generate/SKILL.md"
    },
    {
      "name": "onboard",
      "id": "setoku:onboard",
      "description": "First-run setup for Setoku in a repo — connect the business database, generate context from the code, and answer a first question end-to-end. Use when the user says \"set up setoku\" or \"onboard\", or when setoku tools report missing config. (Thin wrapper over /setoku:connect.)",
      "command": "/setoku:onboard",
      "source": "https://github.com/Hedgy-Labs/setoku/blob/main/plugin/skills/onboard/SKILL.md"
    }
  ],
  "note": "Generated by scripts/build-site-api.ts from the Setoku source tree — do not edit by hand."
}
