{
  "schemaVersion": "1.0",
  "product": "dev.skillfiles/library",
  "version": "1.4.1",
  "connection": {
    "protocol": "mcp",
    "transport": "streamable-http",
    "url": "https://app.skillfiles.dev/mcp",
    "authentication": "oauth",
    "scopes": [
      "skillfiles",
      "offline_access"
    ]
  },
  "sessionId": "Every tool requires session_id: one non-secret ID per chat, passed on every call, so the owner can see a chat's calls together.",
  "commonErrors": {
    "invalid_session_id": "session_id is missing, empty, longer than 200 characters or disagrees with the deprecated trace argument. Pass one non-secret ID and repeat the call.",
    "invalid_arguments": "Another argument is missing or the wrong type or shape. The message names the field; fix it and repeat the call.",
    "library_unavailable": "The library could not be reached. Carry on without it and try again later."
  },
  "errorShape": "A refused call returns isError: true with a JSON text content {\"error\": \"<code>\", \"message\": \"<what to do>\"}.",
  "httpErrors": {
    "description": "Some refusals happen before a tool runs, so they are HTTP responses and not tool results. They have the shapes below, which differ from the tool-error shape: the body is not always {error, message}, and a client should read the status first.",
    "responses": [
      {
        "status": 401,
        "code": null,
        "body": "{\"jsonrpc\": \"2.0\", \"error\": {\"code\": -32000, \"message\": \"<why>\"}, \"id\": null}",
        "headers": "WWW-Authenticate: a Bearer or DPoP challenge with resource_metadata (the protected-resource document URL) and scope.",
        "meaning": "The access token is missing, expired, revoked or invalid, or the owner has ended this agent's connection.",
        "action": "Start the OAuth flow again, following the challenge. A refresh will not help once the connection has ended: the owner has to approve the agent again."
      },
      {
        "status": 403,
        "code": "account_unavailable",
        "body": "{\"error\": {\"code\": \"account_unavailable\", \"message\": \"<why>\"}}",
        "headers": null,
        "meaning": "The account is suspended, waiting to be deleted or already deleted, so its library cannot be used.",
        "action": "Stop calling. Retrying will not help; the owner has to resolve it in the dashboard."
      },
      {
        "status": 403,
        "code": "library_unavailable",
        "body": "{\"error\": {\"code\": \"library_unavailable\", \"message\": \"<why>\"}}",
        "headers": null,
        "meaning": "The token is for a library this endpoint cannot serve, or the library is not ready.",
        "action": "Connect the agent again so it gets a token for the right library. Do not retry with the same token."
      },
      {
        "status": 403,
        "code": "not_owner",
        "body": "{\"error\": {\"code\": \"not_owner\", \"message\": \"<why>\"}}",
        "headers": null,
        "meaning": "The token's account is not the owner of the library it names.",
        "action": "Connect the agent again with the owner's account."
      },
      {
        "status": 413,
        "code": "too_large",
        "body": "{\"error\": \"too_large\", \"message\": \"<why>\"}",
        "headers": null,
        "meaning": "The request body is over the limit for one MCP request.",
        "action": "Send less in one call. A write_skill call can carry up to 4 MiB of files."
      },
      {
        "status": 429,
        "code": "rate_limited",
        "body": "{\"error\": \"rate_limited\", \"message\": \"<why>\", \"retry_after_seconds\": <n>}",
        "headers": "Retry-After: the same number of seconds.",
        "meaning": "The plan's requests a minute are used up.",
        "action": "Wait retry_after_seconds, then send the same request again. Nothing from the refused request was run."
      },
      {
        "status": 429,
        "code": "call_allowance",
        "body": "{\"error\": \"call_allowance\", \"message\": \"<why, with the reset date>\", \"retry_after_seconds\": <n>}",
        "headers": "Retry-After: seconds until the usage window resets.",
        "meaning": "The usage window's MCP calls are used up.",
        "action": "Stop until the window resets (the message gives the date), or ask the owner to upgrade the plan."
      },
      {
        "status": 503,
        "code": null,
        "body": "{\"jsonrpc\": \"2.0\", \"error\": {\"code\": -32000, \"message\": \"The library is briefly unavailable. Try again in a moment.\"}, \"id\": null}",
        "headers": "Retry-After: 2.",
        "meaning": "The library could not be reached, usually for a moment during a deploy.",
        "action": "Wait the Retry-After seconds and retry the same request."
      }
    ]
  },
  "tools": [
    {
      "name": "list_skills",
      "title": "List skills",
      "description": "List the skills at a library Git commit. Omit revision to get the current commit, including for an empty library.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "revision": {
            "type": "string",
            "pattern": "^[0-9a-f]{40}$"
          },
          "session_id": {
            "description": "Required. Pass the same session ID on every Skillfiles tool call, starting with the first search or list. Use the ID for your current chat if your client provides one, or generate one random ID at the start. Never use a token, key or other secret.",
            "type": "string"
          }
        },
        "required": [
          "session_id"
        ]
      },
      "annotations": {
        "title": "List skills",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "useWhen": "Getting the library's current commit before a write, or seeing every skill it holds.",
      "effects": {
        "changesLibrary": false,
        "uses": [
          "mcpCallsPerMonth",
          "mcpCallsPerMinute"
        ]
      },
      "errors": [
        "invalid_session_id",
        "invalid_arguments",
        "library_unavailable",
        "revision_not_found"
      ],
      "example": {
        "name": "list_skills",
        "arguments": {
          "session_id": "chat-5d1e8a"
        }
      }
    },
    {
      "name": "list_changes",
      "title": "List library changes",
      "description": "Compare two library commits and list the net additions, modifications and removals. Omit revision to compare with the current library.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "since": {
            "type": "string",
            "pattern": "^[0-9a-f]{40}$"
          },
          "revision": {
            "type": "string",
            "pattern": "^[0-9a-f]{40}$"
          },
          "session_id": {
            "description": "Required. Pass the same session ID on every Skillfiles tool call, starting with the first search or list. Use the ID for your current chat if your client provides one, or generate one random ID at the start. Never use a token, key or other secret.",
            "type": "string"
          }
        },
        "required": [
          "since",
          "session_id"
        ]
      },
      "annotations": {
        "title": "List library changes",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "useWhen": "Finding what changed since a commit you saw, for example before retrying a write that returned a conflict.",
      "effects": {
        "changesLibrary": false,
        "uses": [
          "mcpCallsPerMonth",
          "mcpCallsPerMinute"
        ]
      },
      "errors": [
        "invalid_session_id",
        "invalid_arguments",
        "library_unavailable",
        "revision_not_found"
      ],
      "example": {
        "name": "list_changes",
        "arguments": {
          "since": "4f2c9e1b7a0d3c5e8f6a1b2c3d4e5f60718293a4",
          "session_id": "chat-5d1e8a"
        }
      }
    },
    {
      "name": "clone_library",
      "title": "Clone the library",
      "description": "Get the private Git remote and a five-minute read-only credential for cloning or fetching this library. Use a Git credential helper and keep the token out of logs.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "session_id": {
            "description": "Required. Pass the same session ID on every Skillfiles tool call, starting with the first search or list. Use the ID for your current chat if your client provides one, or generate one random ID at the start. Never use a token, key or other secret.",
            "type": "string"
          }
        },
        "required": [
          "session_id"
        ]
      },
      "annotations": {
        "title": "Clone the library",
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      },
      "useWhen": "The whole library, with its history, is needed on disk: a backup, a bulk review, or offline use.",
      "notFor": "Reading one skill: use read_skill.",
      "effects": {
        "changesLibrary": false,
        "uses": [
          "mcpCallsPerMonth",
          "mcpCallsPerMinute"
        ]
      },
      "errors": [
        "invalid_session_id",
        "invalid_arguments",
        "library_unavailable",
        "unavailable"
      ],
      "example": {
        "name": "clone_library",
        "arguments": {
          "session_id": "chat-5d1e8a"
        }
      }
    },
    {
      "name": "search_skills",
      "title": "Search skills",
      "description": "Search the owner's skill library for an established procedure for the task at hand. Use it when the task may already have one in the library. Pass intent as well as query: a judge reads your intent against each candidate skill, leaves out the ones that do not fit and orders the rest by fit, so the better you describe the work, the better the results. Each result has a confidence band. Load a result with read_skill only when it clearly fits the task. When no_good_match is true, load nothing and carry on. Pass project to search the named projects and global skills. Other projects are excluded before the judge sees the candidates.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "session_id": {
            "description": "Required. Pass the same session ID on every Skillfiles tool call, starting with the first search or list. Use the ID for your current chat if your client provides one, or generate one random ID at the start. Never use a token, key or other secret.",
            "type": "string"
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500,
            "description": "One line describing the kind of work, worded like a skill description. Example: Review a pull request for problems before merging."
          },
          "intent": {
            "description": "What you are about to do, in plain language and enough detail that someone who has not seen the conversation could tell which methods would apply. Say what you will produce or change (a pull request description, a database migration, a review of a branch), what it applies to, and what the user wants out of it. Include anything that narrows the job, such as \"the user only wants comments, not fixes\" or \"this is a new project, not an existing one\". Use as much text as that takes, and no padding. Describe the work, not the skill you hope to find, and leave out code, file contents and secrets.",
            "type": "string",
            "minLength": 1,
            "maxLength": 8000
          },
          "limit": {
            "default": 5,
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          },
          "revision": {
            "description": "Search this library Git commit. Omit to use the current commit.",
            "type": "string",
            "pattern": "^[0-9a-f]{40}$"
          },
          "project": {
            "description": "One project slug or an array of slugs. Global skills also apply. Omit for global skills.",
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              {
                "minItems": 1,
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 64,
                  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                }
              }
            ]
          }
        },
        "required": [
          "session_id",
          "query"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Search skills",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "useWhen": "Before starting a task that may have an established procedure in the owner's library.",
      "notFor": "General web or document search: it searches only the owner's skills.",
      "effects": {
        "changesLibrary": false,
        "uses": [
          "mcpCallsPerMonth",
          "mcpCallsPerMinute",
          "judgedSearchesPerMonth"
        ]
      },
      "errors": [
        "invalid_session_id",
        "invalid_arguments",
        "library_unavailable",
        "project_not_found",
        "revision_not_found"
      ],
      "example": {
        "name": "search_skills",
        "arguments": {
          "query": "Review a pull request for problems before merging",
          "intent": "Review the open pull request on this branch and leave comments; the user wants comments, not fixes.",
          "session_id": "chat-5d1e8a"
        }
      }
    },
    {
      "name": "read_skill",
      "title": "Read a skill",
      "description": "Read a skill or supporting file by its skill:// URI at the library Git revision you selected. Follow skill URIs exactly as served, including revision and parent. Pass session_id on every read. Set for_use to false when inspecting or editing a skill.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "uri": {
            "type": "string",
            "description": "skill://<project>/<name>/SKILL.md, or skill://<project>/<name>/<path> for a supporting file. Pass URIs exactly as given."
          },
          "revision": {
            "description": "Pass the commit from search_skills or list_skills unless the URI already carries its revision. Built-in Skillfiles instructions can be read before choosing a commit.",
            "type": "string",
            "pattern": "^[0-9a-f]{40}$"
          },
          "for_use": {
            "default": true,
            "description": "Set to false when inspecting a skill, reading it to edit it or reading back your own write. The call stays in the session timeline, and the library leaves the stored links intact.",
            "type": "boolean"
          },
          "session_id": {
            "description": "Required. Pass the same session ID on every Skillfiles tool call, starting with the first search or list. Use the ID for your current chat if your client provides one, or generate one random ID at the start. Never use a token, key or other secret.",
            "type": "string"
          },
          "trace": {
            "deprecated": true,
            "description": "Deprecated alias for session_id.",
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "required": [
          "uri",
          "session_id"
        ]
      },
      "annotations": {
        "title": "Read a skill",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "useWhen": "Loading a skill a search returned, a skill another skill links to, or one of a skill's supporting files.",
      "effects": {
        "changesLibrary": false,
        "uses": [
          "mcpCallsPerMonth",
          "mcpCallsPerMinute"
        ]
      },
      "errors": [
        "invalid_session_id",
        "invalid_arguments",
        "library_unavailable",
        "invalid_uri",
        "revision_required",
        "revision_mismatch",
        "revision_not_found",
        "skill_not_found",
        "file_not_found"
      ],
      "example": {
        "name": "read_skill",
        "arguments": {
          "uri": "skill://global/pr-review/SKILL.md",
          "revision": "4f2c9e1b7a0d3c5e8f6a1b2c3d4e5f60718293a4",
          "session_id": "chat-5d1e8a"
        }
      }
    },
    {
      "name": "list_projects",
      "title": "List projects",
      "description": "List the owner's named projects and their stable slugs.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "session_id": {
            "description": "Required. Pass the same session ID on every Skillfiles tool call, starting with the first search or list. Use the ID for your current chat if your client provides one, or generate one random ID at the start. Never use a token, key or other secret.",
            "type": "string"
          }
        },
        "required": [
          "session_id"
        ]
      },
      "annotations": {
        "title": "List projects",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "useWhen": "Finding the project slugs to pass to search_skills or write_skill.",
      "effects": {
        "changesLibrary": false,
        "uses": [
          "mcpCallsPerMonth",
          "mcpCallsPerMinute"
        ]
      },
      "errors": [
        "invalid_session_id",
        "invalid_arguments",
        "library_unavailable"
      ],
      "example": {
        "name": "list_projects",
        "arguments": {
          "session_id": "chat-5d1e8a"
        }
      }
    },
    {
      "name": "get_project",
      "title": "Read a project",
      "description": "Read a named project by its slug.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "slug": {
            "type": "string",
            "maxLength": 64,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
          },
          "session_id": {
            "description": "Required. Pass the same session ID on every Skillfiles tool call, starting with the first search or list. Use the ID for your current chat if your client provides one, or generate one random ID at the start. Never use a token, key or other secret.",
            "type": "string"
          }
        },
        "required": [
          "slug",
          "session_id"
        ]
      },
      "annotations": {
        "title": "Read a project",
        "readOnlyHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "useWhen": "Checking a project's display name and description.",
      "effects": {
        "changesLibrary": false,
        "uses": [
          "mcpCallsPerMonth",
          "mcpCallsPerMinute"
        ]
      },
      "errors": [
        "invalid_session_id",
        "invalid_arguments",
        "library_unavailable",
        "project_not_found"
      ],
      "example": {
        "name": "get_project",
        "arguments": {
          "slug": "payments-api",
          "session_id": "chat-5d1e8a"
        }
      }
    },
    {
      "name": "create_project",
      "title": "Create a project",
      "description": "Create a named project with a stable slug. Global is available without a project. Creating a project that already exists with the same name and description succeeds and changes nothing; project_exists means the slug is taken by a project with a different name or description.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "description": {
            "default": "",
            "type": "string",
            "maxLength": 1024
          },
          "slug": {
            "type": "string",
            "maxLength": 64,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
          },
          "session_id": {
            "description": "Required. Pass the same session ID on every Skillfiles tool call, starting with the first search or list. Use the ID for your current chat if your client provides one, or generate one random ID at the start. Never use a token, key or other secret.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "slug",
          "session_id"
        ]
      },
      "annotations": {
        "title": "Create a project",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "useWhen": "Grouping skills that belong to one repository or piece of work, so searches can include or leave them out.",
      "effects": {
        "changesLibrary": true,
        "uses": [
          "mcpCallsPerMonth",
          "mcpCallsPerMinute"
        ]
      },
      "errors": [
        "invalid_session_id",
        "invalid_arguments",
        "library_unavailable",
        "invalid_project",
        "project_exists",
        "project_limit"
      ],
      "example": {
        "name": "create_project",
        "arguments": {
          "slug": "payments-api",
          "name": "Payments API",
          "description": "Procedures specific to the payments service.",
          "session_id": "chat-5d1e8a"
        }
      }
    },
    {
      "name": "update_project",
      "title": "Update a project",
      "description": "Change a project's display name or description. The slug stays stable.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "description": {
            "type": "string",
            "maxLength": 1024
          },
          "slug": {
            "type": "string",
            "maxLength": 64,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
          },
          "session_id": {
            "description": "Required. Pass the same session ID on every Skillfiles tool call, starting with the first search or list. Use the ID for your current chat if your client provides one, or generate one random ID at the start. Never use a token, key or other secret.",
            "type": "string"
          }
        },
        "required": [
          "slug",
          "session_id"
        ]
      },
      "annotations": {
        "title": "Update a project",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "useWhen": "Renaming a project or correcting its description.",
      "effects": {
        "changesLibrary": true,
        "uses": [
          "mcpCallsPerMonth",
          "mcpCallsPerMinute"
        ]
      },
      "errors": [
        "invalid_session_id",
        "invalid_arguments",
        "library_unavailable",
        "invalid_project",
        "project_not_found"
      ],
      "example": {
        "name": "update_project",
        "arguments": {
          "slug": "payments-api",
          "description": "Procedures for the payments service and its webhooks.",
          "session_id": "chat-5d1e8a"
        }
      }
    },
    {
      "name": "delete_project",
      "title": "Delete a project",
      "description": "Delete an empty named project. Projects with skills are refused.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "slug": {
            "type": "string",
            "maxLength": 64,
            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
          },
          "session_id": {
            "description": "Required. Pass the same session ID on every Skillfiles tool call, starting with the first search or list. Use the ID for your current chat if your client provides one, or generate one random ID at the start. Never use a token, key or other secret.",
            "type": "string"
          }
        },
        "required": [
          "slug",
          "session_id"
        ]
      },
      "annotations": {
        "title": "Delete a project",
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": false
      },
      "useWhen": "Removing a project that no longer holds any skills.",
      "effects": {
        "changesLibrary": true,
        "uses": [
          "mcpCallsPerMonth",
          "mcpCallsPerMinute"
        ]
      },
      "errors": [
        "invalid_session_id",
        "invalid_arguments",
        "library_unavailable",
        "invalid_project",
        "project_not_found",
        "project_in_use"
      ],
      "example": {
        "name": "delete_project",
        "arguments": {
          "slug": "payments-api",
          "session_id": "chat-5d1e8a"
        }
      }
    },
    {
      "name": "write_skill",
      "title": "Write a skill",
      "description": "Create a skill in the owner's library, or replace one completely. Pass every file, including SKILL.md with name and description frontmatter; a file you leave out is removed. Author cross-skill references as skill://<project>/<name>/SKILL.md without query parameters. Search matches on name and description, so state the scope: broad, or the one situation it is for and what it is not for. Pass session_id. The response lists affected parents and children from followed references. Use the returned revision to inspect any that matter to your change.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "project": {
            "default": "global",
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              {
                "type": "string",
                "const": "global"
              }
            ]
          },
          "name": {
            "type": "string",
            "maxLength": 64,
            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
            "description": "The skill's name. Must equal the name in SKILL.md's frontmatter."
          },
          "files": {
            "minItems": 1,
            "maxItems": 512,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 1024,
                  "description": "Path inside the skill, for example SKILL.md or references/checklist.md."
                },
                "content": {
                  "description": "The file's text. Use this for text files.",
                  "type": "string"
                },
                "content_base64": {
                  "description": "The file's bytes in base64. Use this for binary files such as images.",
                  "type": "string"
                }
              },
              "required": [
                "path"
              ]
            }
          },
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "Why you are writing this, for the owner who may review it: what prompted it, what you changed, and any evidence it rests on."
          },
          "expected_revision": {
            "type": "string",
            "pattern": "^[0-9a-f]{40}$",
            "description": "The current library Git commit you inspected. Required for creation and updates."
          },
          "session_id": {
            "description": "Required. Pass the same session ID on every Skillfiles tool call, starting with the first search or list. Use the ID for your current chat if your client provides one, or generate one random ID at the start. Never use a token, key or other secret.",
            "type": "string"
          },
          "trace": {
            "deprecated": true,
            "description": "Deprecated alias for session_id.",
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "required": [
          "name",
          "files",
          "reason",
          "expected_revision",
          "session_id"
        ]
      },
      "annotations": {
        "title": "Write a skill",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "useWhen": "Saving a procedure worth reusing, or changing an existing skill. The write is live at once. If the owner has review on, it also waits in their review queue and the result carries a review_url; with review off it is approved as it is made and is final.",
      "notFor": "Notes, logs or conversation memory: a skill is instructions an agent follows.",
      "effects": {
        "changesLibrary": true,
        "uses": [
          "mcpCallsPerMonth",
          "mcpCallsPerMinute",
          "skillWritesPerMonth"
        ]
      },
      "errors": [
        "invalid_session_id",
        "invalid_arguments",
        "library_unavailable",
        "conflict",
        "invalid_skill",
        "plan_limit",
        "too_large"
      ],
      "example": {
        "name": "write_skill",
        "arguments": {
          "project": "global",
          "name": "pr-review",
          "files": [
            {
              "path": "SKILL.md",
              "content": "---\nname: pr-review\ndescription: Review a pull request against the owner's checklist before merging.\n---\n\n1. Read the description and the linked issue.\n2. Run the tests.\n3. Check each item in references/checklist.md.\n"
            },
            {
              "path": "references/checklist.md",
              "content": "- Tests cover the change\n- No secrets in the diff\n"
            }
          ],
          "reason": "The owner asked me to save the checklist we used today.",
          "expected_revision": "4f2c9e1b7a0d3c5e8f6a1b2c3d4e5f60718293a4",
          "session_id": "chat-5d1e8a"
        }
      }
    },
    {
      "name": "delete_skill",
      "title": "Delete a skill",
      "description": "Delete a skill from the owner's library, with all its files. Pass the library commit you inspected. Any intervening library edit returns a conflict. The response lists its parents and children from followed links still available at the returned revision.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "project": {
            "default": "global",
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              {
                "type": "string",
                "const": "global"
              }
            ]
          },
          "name": {
            "type": "string",
            "maxLength": 64,
            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
          },
          "expected_revision": {
            "type": "string",
            "pattern": "^[0-9a-f]{40}$",
            "description": "The library Git commit you inspected."
          },
          "session_id": {
            "description": "Required. Pass the same session ID on every Skillfiles tool call, starting with the first search or list. Use the ID for your current chat if your client provides one, or generate one random ID at the start. Never use a token, key or other secret.",
            "type": "string"
          },
          "trace": {
            "deprecated": true,
            "description": "Deprecated alias for session_id.",
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "required": [
          "name",
          "expected_revision",
          "session_id"
        ]
      },
      "annotations": {
        "title": "Delete a skill",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "useWhen": "Removing a skill the owner no longer wants. Its earlier versions stay in Git history.",
      "effects": {
        "changesLibrary": true,
        "uses": [
          "mcpCallsPerMonth",
          "mcpCallsPerMinute"
        ]
      },
      "errors": [
        "invalid_session_id",
        "invalid_arguments",
        "library_unavailable",
        "conflict",
        "skill_not_found"
      ],
      "example": {
        "name": "delete_skill",
        "arguments": {
          "project": "global",
          "name": "pr-review",
          "expected_revision": "4f2c9e1b7a0d3c5e8f6a1b2c3d4e5f60718293a4",
          "session_id": "chat-5d1e8a"
        }
      }
    },
    {
      "name": "revoke_skill",
      "title": "Revoke a write",
      "description": "Take back your own write_skill call before the owner approves it: a new skill is deleted, a changed one returns to its approved version. Use it for a mistaken or unnecessary write. The response includes its parents and children from followed links.",
      "inputSchema": {
        "type": "object",
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "project": {
            "default": "global",
            "anyOf": [
              {
                "type": "string",
                "maxLength": 64,
                "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
              },
              {
                "type": "string",
                "const": "global"
              }
            ]
          },
          "name": {
            "type": "string",
            "maxLength": 64,
            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
          },
          "write_revision": {
            "type": "string",
            "pattern": "^[0-9a-f]{40}$",
            "description": "The Git commit returned by the write you want to revoke."
          },
          "expected_revision": {
            "type": "string",
            "pattern": "^[0-9a-f]{40}$",
            "description": "The current library commit you inspected."
          },
          "session_id": {
            "description": "Required. Pass the same session ID on every Skillfiles tool call, starting with the first search or list. Use the ID for your current chat if your client provides one, or generate one random ID at the start. Never use a token, key or other secret.",
            "type": "string"
          },
          "trace": {
            "deprecated": true,
            "description": "Deprecated alias for session_id.",
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          }
        },
        "required": [
          "name",
          "write_revision",
          "expected_revision",
          "session_id"
        ]
      },
      "annotations": {
        "title": "Revoke a write",
        "readOnlyHint": false,
        "destructiveHint": true,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "useWhen": "Undoing your own mistaken write while it still waits for the owner's review. When the owner has review off, a write is approved as it is made and revoke_skill is refused with already_approved.",
      "notFor": "Removing an approved skill: use delete_skill.",
      "effects": {
        "changesLibrary": true,
        "uses": [
          "mcpCallsPerMonth",
          "mcpCallsPerMinute"
        ]
      },
      "errors": [
        "invalid_session_id",
        "invalid_arguments",
        "library_unavailable",
        "conflict",
        "skill_not_found",
        "not_your_write",
        "write_superseded",
        "already_approved"
      ],
      "example": {
        "name": "revoke_skill",
        "arguments": {
          "project": "global",
          "name": "pr-review",
          "write_revision": "4f2c9e1b7a0d3c5e8f6a1b2c3d4e5f60718293a4",
          "expected_revision": "9a8b7c6d5e4f30211203f4e5d6c7b8a9f0e1d2c3",
          "session_id": "chat-5d1e8a"
        }
      }
    }
  ],
  "links": {
    "docs": "https://skillfiles.dev/docs.md",
    "product": "https://skillfiles.dev/product.json",
    "pricing": "https://skillfiles.dev/pricing.json"
  }
}
