:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(skills): say that allowed_tools is ignored over MCP (#99961)
posthog[bot]dd15a3010593
diff --git a/docs/internal/skills/skills-over-mcp.md b/docs/internal/skills/skills-over-mcp.mdnew file mode 100644index 000000000000..bceb042e77c7--- /dev/null+++ b/docs/internal/skills/skills-over-mcp.md@@ -0,0 +1,74 @@+# `allowed_tools` and MCP delivery++A stored skill carries an `allowed_tools` list.+`render_frontmatter` in `products/skills/backend/marketplace/packaging.py` writes it into `SKILL.md` as the Agent Skills spec's `allowed-tools` string.++The list means different things on different delivery paths.+A harness that reads a skill from a file treats the list as pre-approved tools.+The Agent Skills spec marks `allowed-tools` experimental and says support may vary between agent implementations, so a file harness without support for the field ignores it.+A host that loads a skill over MCP must ignore the list until the user approves that grant.+So `allowed_tools` is a request for access, not a grant of it.++## The delivery paths++| Path | Skill reaches the harness as | `allowed_tools` effect |+| --------------------------------------------------- | -------------------------------- | ------------------------------------------------------------ |+| Zip export (`…/export`) | A file on disk | Pre-approved, as the Agent Skills spec says |+| Git marketplace (`…/marketplace.git`) | A file on disk after `git clone` | Pre-approved |+| Skill bundle, `content=full` (`…/bundle`) | A file on disk | Pre-approved |+| Skill bundle, `content=stub`, and sandbox run state | A pointer file, then MCP | No grant. The stub omits the list, then `skill-get` sends it |+| MCP `skill-get` | An MCP response | No grant. The list arrives as data |+| `learn project:<skill>` | An MCP response | No grant. The list never reaches the client |+| PostHog AI `get_llm_skill` | Text in the model's context | No grant. The list is printed as text |++Watch the stub path.+`render_skill_stub_md` writes only the name, the description, and `metadata`, so the pointer file never carries `allowed-tools`.+The agent then fetches the real skill with `skill-get`, which makes the skill MCP-origin content.++`learn project:<skill>` carries less again.+`formatLearnDocument` in `services/mcp/src/skills/skill-catalog.ts` strips the frontmatter and prints the description, the file manifest, and the body, so the list never reaches the client.++The PostHog AI path is different again.+`_format_skill_detail` in `products/skills/backend/tools/skills.py` prints `Allowed tools:` into the text the model reads.+The tool description tells the model to treat the body as instructions, but nothing acts on the tool list.++## Why the MCP path ignores the list++[SEP-2640](https://modelcontextprotocol.io/seps/2640-skills-extension), the MCP Skills extension, binds skills to the MCP transport.+Under "No implicit permission grants", a host must not honor frontmatter that widens the model's tool or filesystem reach when the skill arrives over MCP.+The spec names `allowed-tools` directly: a host must ignore it for an MCP-origin skill unless the user approved that grant for that skill.+A remote server that sets the field asks for access on the host.+It does not describe its own environment.++Our MCP server does not advertise the extension yet.+`SERVER_CAPABILITIES` in `services/mcp/src/hono/dispatcher.ts` declares `tools`, `resources`, and `prompts`, and the server implements no `skills/list` or `skills/get`.+A host reads a skill as an ordinary tool result, so it cannot bind an approval to it.+The rule still sets the posture we hold: no MCP path grants a tool today, and the list stays a request on all of them.++Two further rules matter once we expose the extension:++- Approval is per skill. Approval of one skill never covers a skill nested in its file space.+- Approval is content-bound. A host binds it to every file URI and digest it saw, so an edit to a file revokes it just as an added or removed file does.+ A body edit is enough, because the set covers the `SKILL.md` digest. The host then asks again.++## What this means for us++- Never treat `allowed_tools` as a security boundary for skill delivery.+ It is author intent there, and no code in the skills product enforces it.+- Signals is the one exception, because it enforces the list itself.+ `emit_report` / `edit_report` in `allowed_tools` is a scout's opt-in to the report channel.+ The runner grants the report scope only to an opted-in skill, and `_assert_report_tool_opted_in` in `products/signals/backend/scout_harness/views.py` fail-closes each write against the skill version the run snapshotted.+ Keep both layers: `products/tasks/backend/temporal/client.py` over-grants the report scope on a fallback path, and is safe only because that write gate exists.+- Keep the field. The file delivery paths still read it, so the list does its job there.+- Say so in author-facing copy. A skill author who relies on the list needs to know that the MCP path drops it.++## Where the copy lives++Keep these in step when the wording changes:++- `products/skills/backend/api/skill_serializers.py`: the `allowed_tools` help text on `LLMSkillSerializer` and `LLMSkillPublishSerializer`.+- `products/skills/backend/api/community_skill_serializers.py`: the `allowed_tools` help text on `CommunitySkillSerializer`.+- `products/skills/backend/tools/skills.py`: the `allowed_tools` field descriptions on `CreateSkillArgs` and `UpdateSkillArgs`.+- `products/skills/mcp/tools.yaml`: the `skill-create` and `skill-update` descriptions. Run `hogli build:openapi` after an edit.+- `products/skills/skills/skills-store/SKILL.md`: the store skill that tells an agent how to create a skill.+- `products/skills/skills/working-with-skills/SKILL.md`: the playbook skill that pairs with `skills-store`.diff --git a/products/skills/backend/api/community_skill_serializers.py b/products/skills/backend/api/community_skill_serializers.pyindex ab19067c7547..194d45339e7e 100644--- a/products/skills/backend/api/community_skill_serializers.py+++ b/products/skills/backend/api/community_skill_serializers.py@@ -56,7 +56,8 @@ class CommunitySkillSerializer(serializers.ModelSerializer):child=serializers.CharField(),required=False,default=list,- help_text="Tools the skill declares it may use. Surface these to the user before install.",+ help_text="Tools the skill asks to use. Surface these to the user before install. The list is a request, "+ "not a grant: a harness that loads the installed skill over MCP ignores it until the user approves that grant.",)metadata = serializers.DictField(required=False,diff --git a/products/skills/backend/api/skill_serializers.py b/products/skills/backend/api/skill_serializers.pyindex 77bbeccfa26e..3577d48b9d43 100644--- a/products/skills/backend/api/skill_serializers.py+++ b/products/skills/backend/api/skill_serializers.py@@ -403,7 +403,10 @@ class LLMSkillPublishSerializer(serializers.Serializer):allowed_tools = serializers.ListField(child=serializers.CharField(validators=[validate_allowed_tool]),required=False,- help_text="List of pre-approved tools the skill may use. Tool names cannot contain whitespace.",+ help_text="Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the "+ "skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. "+ "A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list "+ "until the user approves that grant.",)metadata = serializers.DictField(required=False,@@ -498,7 +501,10 @@ class LLMSkillSerializer(serializers.ModelSerializer):child=serializers.CharField(validators=[validate_allowed_tool]),required=False,default=list,- help_text="List of pre-approved tools the skill may use. Tool names cannot contain whitespace.",+ help_text="Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the "+ "skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. "+ "A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list "+ "until the user approves that grant.",)metadata = serializers.DictField(required=False,diff --git a/products/skills/backend/marketplace/README.md b/products/skills/backend/marketplace/README.mdindex 70d2c44bec6c..4b407e2b1907 100644--- a/products/skills/backend/marketplace/README.md+++ b/products/skills/backend/marketplace/README.md@@ -64,7 +64,9 @@ unit-testable against the real `git` binary without booting the app## Spec mapping (storage → SKILL.md)-- `allowed_tools` (stored list) → `allowed-tools` (spec's hyphenated, space-separated string)+- `allowed_tools` (stored list) → `allowed-tools` (spec's hyphenated, space-separated string). A harness that+ reads the file treats it as pre-approved; a host that loads the skill over MCP ignores it until the user+ approves the grant. See `docs/internal/skills/skills-over-mcp.md`.- platform `version` → `metadata.version` (the spec defines no top-level version field)- `description` is validated against the spec's 1024 limit on export (`validate_for_export`)diff --git a/products/skills/backend/tools/skills.py b/products/skills/backend/tools/skills.pyindex 44775dd4a3f8..1963bb354ed3 100644--- a/products/skills/backend/tools/skills.py+++ b/products/skills/backend/tools/skills.py@@ -158,7 +158,8 @@ class CreateSkillArgs(BaseModel):)allowed_tools: list[str] | None = Field(default=None,- description="Optional list of tool names the skill is permitted to invoke.",+ description="Optional list of tool names the skill asks to use. A harness that loads the skill over MCP "+ "ignores the list until the user approves that grant.",)metadata: dict[str, Any] | None = Field(default=None,@@ -193,7 +194,11 @@ class UpdateSkillArgs(BaseModel):)license: str | None = Field(default=None, description="Optional new license.")compatibility: str | None = Field(default=None, description="Optional new compatibility string.")- allowed_tools: list[str] | None = Field(default=None, description="Optional replacement for allowed_tools.")+ allowed_tools: list[str] | None = Field(+ default=None,+ description="Optional replacement for allowed_tools. The list is a request, not a grant, for a harness that "+ "loads the skill over MCP.",+ )metadata: dict[str, Any] | None = Field(default=None, description="Optional replacement for metadata.")file_edits: list[dict[str, Any]] | None = Field(default=None,diff --git a/products/skills/frontend/generated/api.schemas.ts b/products/skills/frontend/generated/api.schemas.tsindex 0396dd252f02..54280eabbcdc 100644--- a/products/skills/frontend/generated/api.schemas.ts+++ b/products/skills/frontend/generated/api.schemas.ts@@ -55,7 +55,7 @@ export interface CommunitySkillListApi {readonly license: string/** Environment requirements declared by the skill. */readonly compatibility: string- /** Tools the skill declares it may use. Surface these to the user before install. */+ /** Tools the skill asks to use. Surface these to the user before install. The list is a request, not a grant: a harness that loads the installed skill over MCP ignores it until the user approves that grant. */allowed_tools?: string[]/** Arbitrary key-value metadata carried from the skill's frontmatter. */metadata?: CommunitySkillListApiMetadata@@ -123,7 +123,7 @@ export interface CommunitySkillApi {readonly license: string/** Environment requirements declared by the skill. */readonly compatibility: string- /** Tools the skill declares it may use. Surface these to the user before install. */+ /** Tools the skill asks to use. Surface these to the user before install. The list is a request, not a grant: a harness that loads the installed skill over MCP ignores it until the user approves that grant. */allowed_tools?: string[]/** Arbitrary key-value metadata carried from the skill's frontmatter. */metadata?: CommunitySkillApiMetadata@@ -298,7 +298,7 @@ export interface LLMSkillApi {* @maxLength 500*/compatibility?: string- /** List of pre-approved tools the skill may use. Tool names cannot contain whitespace. */+ /** Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant. */allowed_tools?: string[]/** Arbitrary key-value metadata. */metadata?: LLMSkillApiMetadata@@ -363,7 +363,7 @@ export interface LLMSkillListApi {* @maxLength 500*/compatibility?: string- /** List of pre-approved tools the skill may use. Tool names cannot contain whitespace. */+ /** Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant. */allowed_tools?: string[]/** Arbitrary key-value metadata. */metadata?: LLMSkillListApiMetadata@@ -452,7 +452,7 @@ export interface LLMSkillCreateApi {* @maxLength 500*/compatibility?: string- /** List of pre-approved tools the skill may use. Tool names cannot contain whitespace. */+ /** Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant. */allowed_tools?: string[]/** Arbitrary key-value metadata. */metadata?: LLMSkillCreateApiMetadata@@ -605,7 +605,7 @@ export interface PatchedLLMSkillPublishApi {* @maxLength 500*/compatibility?: string- /** List of pre-approved tools the skill may use. Tool names cannot contain whitespace. */+ /** Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant. */allowed_tools?: string[]/** Arbitrary key-value metadata. */metadata?: PatchedLLMSkillPublishApiMetadatadiff --git a/products/skills/frontend/generated/api.zod.ts b/products/skills/frontend/generated/api.zod.tsindex 33dab738ff51..a5dff191ec5b 100644--- a/products/skills/frontend/generated/api.zod.ts+++ b/products/skills/frontend/generated/api.zod.ts@@ -64,7 +64,9 @@ export const LlmSkillsCreateBody = /* @__PURE__ */ zodallowed_tools: zod.array(zod.string()).optional()- .describe('List of pre-approved tools the skill may use. Tool names cannot contain whitespace.'),+ .describe(+ 'Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant.'+ ),metadata: zod.record(zod.string(), zod.unknown()).optional().describe('Arbitrary key-value metadata.'),owners: zod.array(zod.uuid())@@ -172,7 +174,9 @@ export const LlmSkillsNamePartialUpdateBody = /* @__PURE__ */ zod.object({allowed_tools: zod.array(zod.string()).optional()- .describe('List of pre-approved tools the skill may use. Tool names cannot contain whitespace.'),+ .describe(+ 'Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant.'+ ),metadata: zod.record(zod.string(), zod.unknown()).optional().describe('Arbitrary key-value metadata.'),files: zod.array(diff --git a/products/skills/mcp/tools.yaml b/products/skills/mcp/tools.yamlindex 7a4e9e6de637..01d56deae801 100644--- a/products/skills/mcp/tools.yaml+++ b/products/skills/mcp/tools.yaml@@ -70,7 +70,8 @@ tools:description explaining when to use it, and the skill body (SKILL.md instruction content as markdown).Optionally include license, compatibility, allowed_tools, metadata, bundled files, and owners. Owners (alist of project-member user UUIDs) default to the creating user; set them to route reviews or questions- about this skill to specific people.+ about this skill to specific people. allowed_tools is a request, not a grant: a harness that loads the skill+ over MCP ignores it until the user approves that grant.include_params:- name- description@@ -276,6 +277,9 @@ tools:Pass 'version_description' with a short note on what changed and why — it is shown inthe skill's version history.++ 'allowed_tools' is a request, not a grant: a harness that loads the skill over MCP+ ignores it until the user approves that grant.include_params:- body- editsdiff --git a/products/skills/skills/skills-store/SKILL.md b/products/skills/skills/skills-store/SKILL.mdindex 2491feff18c7..2fbaf4ae9f19 100644--- a/products/skills/skills/skills-store/SKILL.md+++ b/products/skills/skills/skills-store/SKILL.md@@ -76,7 +76,7 @@ posthog:skill-getThe response contains:- `body` — the full SKILL.md instructions (read these like system instructions for the task)-- `license`, `compatibility`, `allowed_tools`, `metadata` — spec fields+- `license`, `compatibility`, `allowed_tools`, `metadata` — spec fields (see `allowed_tools` below)- `files[]` — manifest of bundled files (path + content_type only, not content)### Step 2 — Follow the body@@ -102,6 +102,7 @@ Follow the [Agent Skills specification](https://agentskills.io/specification) wh- **`description`** — explain what it does AND when to use it. Include keywords agents will search for. This is the only thing visible at discovery time — make it count.- **`body`** — keep under ~500 lines. Move detailed reference material, SQL, scripts, and long examples into bundled `files` so the body stays scannable.- **Files** — use `scripts/` for executable code, `references/` for docs, `assets/` for templates/data. Agents pull these on demand via `skill-file-get`, so splitting keeps context lean.+- **`allowed_tools`** — the tools the skill asks to use. A harness that reads the skill from a file (zip export, git marketplace, a `content=full` bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default `content=stub` bundle, ignores the list until the user approves that grant, so do not rely on it to widen access.Bundled files are optional and can be included in a single create call:diff --git a/products/skills/skills/working-with-skills/SKILL.md b/products/skills/skills/working-with-skills/SKILL.mdindex 541cb2561f00..898eeddc0d41 100644--- a/products/skills/skills/working-with-skills/SKILL.md+++ b/products/skills/skills/working-with-skills/SKILL.md@@ -142,9 +142,10 @@ posthog:skill-create- **File layout convention** — `scripts/` for executable code, `references/`for prose docs and examples, `assets/` for templates / data. Agents can relyon this for orientation when they only have the manifest.-- **`allowed_tools`** lists the MCP / built-in tools the skill expects to be- callable. Be honest — under-declaring causes silent failures, over-declaring- is a security smell.+- **`allowed_tools`** lists the tools the skill asks to use. It is a request, not a grant: a harness that reads the skill from a file treats the list as pre-approved, and a harness that loads the skill over MCP ignores it until the user approves that grant.+ List only the tools the skill really uses, because padding the list widens the request.+ An undeclared tool is not pre-approved, and the harness decides what happens next: it can ask the user, deny the call, or not expose the tool at all.+ Some products enforce the list themselves, so an omitted tool makes the call fail there.- **End with a `## Related skills` footer** when adjacent skills exist: a shortbullet list of `` `skill-name` `` entries, each with a one-line handoff reason("when to jump there"), so one skill invocation seeds discovery of the next.diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex c0e08e28986c..a52424b5985d 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -10483,7 +10483,7 @@}},"skill-create": {- "description": "Create a new agent skill. Requires a unique kebab-case name (lowercase letters, numbers, hyphens), a description explaining when to use it, and the skill body (SKILL.md instruction content as markdown). Optionally include license, compatibility, allowed_tools, metadata, bundled files, and owners. Owners (a list of project-member user UUIDs) default to the creating user; set them to route reviews or questions about this skill to specific people.",+ "description": "Create a new agent skill. Requires a unique kebab-case name (lowercase letters, numbers, hyphens), a description explaining when to use it, and the skill body (SKILL.md instruction content as markdown). Optionally include license, compatibility, allowed_tools, metadata, bundled files, and owners. Owners (a list of project-member user UUIDs) default to the creating user; set them to route reviews or questions about this skill to specific people. allowed_tools is a request, not a grant: a harness that loads the skill over MCP ignores it until the user approves that grant.","category": "Skills","feature": "skills","summary": "Create skill",@@ -10623,7 +10623,7 @@}},"skill-update": {- "description": "Publish a new version of an existing agent skill by name. Any field not provided\nis carried forward from the current latest version. Requires base_version for\noptimistic concurrency.\n\nFor the body, you can either provide the full content via 'body', or use 'edits'\nfor incremental find/replace updates. Each edit must have 'old' (text to find,\nmust match exactly once) and 'new' (replacement text). Edits are applied\nsequentially. Only one of 'body' or 'edits' may be provided.\n\nFor file changes, prefer the per-file tools rather than passing a 'files' list:\nskill-file-create / skill-file-delete / skill-file-rename handle\nadd/remove/rename one file at a time and return the updated skill (including the\nbumped version) so callers can chain further edits via base_version.\n\nFor per-file content updates, use 'file_edits' to apply find/replace updates to\nindividual files without resending the full file set — each entry targets one\nexisting file by path. Non-targeted files carry forward unchanged. 'file_edits'\ncannot add, remove, or rename files; use the per-file tools or 'files' (replace-all)\nfor that. 'files' and 'file_edits' are mutually exclusive.\n\nPassing a 'files' list here replaces ALL files and risks data loss if any file is\nomitted — use it only when you intentionally want to replace the entire bundle.\n\nTo change who owns the skill, pass 'owners' (a list of project-member user UUIDs) —\nthis replaces the owner set. Omit it to leave owners unchanged; pass an empty list to\nclear them. Ownership is independent of the version, so a body edit alone never\nchanges it.\n\nPass 'version_description' with a short note on what changed and why — it is shown in\nthe skill's version history.",+ "description": "Publish a new version of an existing agent skill by name. Any field not provided\nis carried forward from the current latest version. Requires base_version for\noptimistic concurrency.\n\nFor the body, you can either provide the full content via 'body', or use 'edits'\nfor incremental find/replace updates. Each edit must have 'old' (text to find,\nmust match exactly once) and 'new' (replacement text). Edits are applied\nsequentially. Only one of 'body' or 'edits' may be provided.\n\nFor file changes, prefer the per-file tools rather than passing a 'files' list:\nskill-file-create / skill-file-delete / skill-file-rename handle\nadd/remove/rename one file at a time and return the updated skill (including the\nbumped version) so callers can chain further edits via base_version.\n\nFor per-file content updates, use 'file_edits' to apply find/replace updates to\nindividual files without resending the full file set — each entry targets one\nexisting file by path. Non-targeted files carry forward unchanged. 'file_edits'\ncannot add, remove, or rename files; use the per-file tools or 'files' (replace-all)\nfor that. 'files' and 'file_edits' are mutually exclusive.\n\nPassing a 'files' list here replaces ALL files and risks data loss if any file is\nomitted — use it only when you intentionally want to replace the entire bundle.\n\nTo change who owns the skill, pass 'owners' (a list of project-member user UUIDs) —\nthis replaces the owner set. Omit it to leave owners unchanged; pass an empty list to\nclear them. Ownership is independent of the version, so a body edit alone never\nchanges it.\n\nPass 'version_description' with a short note on what changed and why — it is shown in\nthe skill's version history.\n\n'allowed_tools' is a request, not a grant: a harness that loads the skill over MCP\nignores it until the user approves that grant.","category": "Skills","feature": "skills","summary": "Update skill",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 929d12f0a871..fcf30572e944 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -11055,7 +11055,7 @@}},"skill-create": {- "description": "Create a new agent skill. Requires a unique kebab-case name (lowercase letters, numbers, hyphens), a description explaining when to use it, and the skill body (SKILL.md instruction content as markdown). Optionally include license, compatibility, allowed_tools, metadata, bundled files, and owners. Owners (a list of project-member user UUIDs) default to the creating user; set them to route reviews or questions about this skill to specific people.",+ "description": "Create a new agent skill. Requires a unique kebab-case name (lowercase letters, numbers, hyphens), a description explaining when to use it, and the skill body (SKILL.md instruction content as markdown). Optionally include license, compatibility, allowed_tools, metadata, bundled files, and owners. Owners (a list of project-member user UUIDs) default to the creating user; set them to route reviews or questions about this skill to specific people. allowed_tools is a request, not a grant: a harness that loads the skill over MCP ignores it until the user approves that grant.","category": "Skills","feature": "skills","summary": "Create skill",@@ -11195,7 +11195,7 @@}},"skill-update": {- "description": "Publish a new version of an existing agent skill by name. Any field not provided\nis carried forward from the current latest version. Requires base_version for\noptimistic concurrency.\n\nFor the body, you can either provide the full content via 'body', or use 'edits'\nfor incremental find/replace updates. Each edit must have 'old' (text to find,\nmust match exactly once) and 'new' (replacement text). Edits are applied\nsequentially. Only one of 'body' or 'edits' may be provided.\n\nFor file changes, prefer the per-file tools rather than passing a 'files' list:\nskill-file-create / skill-file-delete / skill-file-rename handle\nadd/remove/rename one file at a time and return the updated skill (including the\nbumped version) so callers can chain further edits via base_version.\n\nFor per-file content updates, use 'file_edits' to apply find/replace updates to\nindividual files without resending the full file set — each entry targets one\nexisting file by path. Non-targeted files carry forward unchanged. 'file_edits'\ncannot add, remove, or rename files; use the per-file tools or 'files' (replace-all)\nfor that. 'files' and 'file_edits' are mutually exclusive.\n\nPassing a 'files' list here replaces ALL files and risks data loss if any file is\nomitted — use it only when you intentionally want to replace the entire bundle.\n\nTo change who owns the skill, pass 'owners' (a list of project-member user UUIDs) —\nthis replaces the owner set. Omit it to leave owners unchanged; pass an empty list to\nclear them. Ownership is independent of the version, so a body edit alone never\nchanges it.\n\nPass 'version_description' with a short note on what changed and why — it is shown in\nthe skill's version history.",+ "description": "Publish a new version of an existing agent skill by name. Any field not provided\nis carried forward from the current latest version. Requires base_version for\noptimistic concurrency.\n\nFor the body, you can either provide the full content via 'body', or use 'edits'\nfor incremental find/replace updates. Each edit must have 'old' (text to find,\nmust match exactly once) and 'new' (replacement text). Edits are applied\nsequentially. Only one of 'body' or 'edits' may be provided.\n\nFor file changes, prefer the per-file tools rather than passing a 'files' list:\nskill-file-create / skill-file-delete / skill-file-rename handle\nadd/remove/rename one file at a time and return the updated skill (including the\nbumped version) so callers can chain further edits via base_version.\n\nFor per-file content updates, use 'file_edits' to apply find/replace updates to\nindividual files without resending the full file set — each entry targets one\nexisting file by path. Non-targeted files carry forward unchanged. 'file_edits'\ncannot add, remove, or rename files; use the per-file tools or 'files' (replace-all)\nfor that. 'files' and 'file_edits' are mutually exclusive.\n\nPassing a 'files' list here replaces ALL files and risks data loss if any file is\nomitted — use it only when you intentionally want to replace the entire bundle.\n\nTo change who owns the skill, pass 'owners' (a list of project-member user UUIDs) —\nthis replaces the owner set. Omit it to leave owners unchanged; pass an empty list to\nclear them. Ownership is independent of the version, so a body edit alone never\nchanges it.\n\nPass 'version_description' with a short note on what changed and why — it is shown in\nthe skill's version history.\n\n'allowed_tools' is a request, not a grant: a harness that loads the skill over MCP\nignores it until the user approves that grant.","category": "Skills","feature": "skills","summary": "Update skill",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 5ee28eb5e537..309b2e832f93 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -19039,7 +19039,7 @@ export namespace Schemas {readonly license: string;/** Environment requirements declared by the skill. */readonly compatibility: string;- /** Tools the skill declares it may use. Surface these to the user before install. */+ /** Tools the skill asks to use. Surface these to the user before install. The list is a request, not a grant: a harness that loads the installed skill over MCP ignores it until the user approves that grant. */allowed_tools?: string[];/** Arbitrary key-value metadata carried from the skill's frontmatter. */metadata?: CommunitySkillMetadata;@@ -19109,7 +19109,7 @@ export namespace Schemas {readonly license: string;/** Environment requirements declared by the skill. */readonly compatibility: string;- /** Tools the skill declares it may use. Surface these to the user before install. */+ /** Tools the skill asks to use. Surface these to the user before install. The list is a request, not a grant: a harness that loads the installed skill over MCP ignores it until the user approves that grant. */allowed_tools?: string[];/** Arbitrary key-value metadata carried from the skill's frontmatter. */metadata?: CommunitySkillListMetadata;@@ -49361,7 +49361,7 @@ export namespace Schemas {* @maxLength 500*/compatibility?: string;- /** List of pre-approved tools the skill may use. Tool names cannot contain whitespace. */+ /** Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant. */allowed_tools?: string[];/** Arbitrary key-value metadata. */metadata?: LLMSkillMetadata;@@ -49443,7 +49443,7 @@ export namespace Schemas {* @maxLength 500*/compatibility?: string;- /** List of pre-approved tools the skill may use. Tool names cannot contain whitespace. */+ /** Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant. */allowed_tools?: string[];/** Arbitrary key-value metadata. */metadata?: LLMSkillCreateMetadata;@@ -49580,7 +49580,7 @@ export namespace Schemas {* @maxLength 500*/compatibility?: string;- /** List of pre-approved tools the skill may use. Tool names cannot contain whitespace. */+ /** Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant. */allowed_tools?: string[];/** Arbitrary key-value metadata. */metadata?: LLMSkillListMetadata;@@ -66842,7 +66842,7 @@ export namespace Schemas {* @maxLength 500*/compatibility?: string;- /** List of pre-approved tools the skill may use. Tool names cannot contain whitespace. */+ /** Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant. */allowed_tools?: string[];/** Arbitrary key-value metadata. */metadata?: PatchedLLMSkillPublishMetadata;diff --git a/services/mcp/src/generated/skills/api.ts b/services/mcp/src/generated/skills/api.tsindex 04a7c4ff417c..cbe370df7fb7 100644--- a/services/mcp/src/generated/skills/api.ts+++ b/services/mcp/src/generated/skills/api.ts@@ -82,7 +82,9 @@ export const LlmSkillsCreateBody = () => zodallowed_tools: zod.array(zod.string()).optional()- .describe('List of pre-approved tools the skill may use. Tool names cannot contain whitespace.'),+ .describe(+ 'Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant.'+ ),metadata: zod.record(zod.string(), zod.unknown()).optional().describe('Arbitrary key-value metadata.'),owners: zod.array(zod.string())@@ -236,7 +238,9 @@ export const LlmSkillsNamePartialUpdateBody = () => zod.object({allowed_tools: zod.array(zod.string()).optional()- .describe('List of pre-approved tools the skill may use. Tool names cannot contain whitespace.'),+ .describe(+ 'Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant.'+ ),metadata: zod.record(zod.string(), zod.unknown()).optional().describe('Arbitrary key-value metadata.'),files: zod.array(diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-create.jsonindex b099c6b573e1..9a904a5da830 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-create.json@@ -3,7 +3,7 @@"description": "Create serializer — accepts bundled files and owners as write-only input on POST.","properties": {"allowed_tools": {- "description": "List of pre-approved tools the skill may use. Tool names cannot contain whitespace.",+ "description": "Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant.","items": {"type": "string"},diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-update.jsonindex 4858070b098e..944796a03c49 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-update.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-update.json@@ -2,7 +2,7 @@"$schema": "https://json-schema.org/draft/2020-12/schema","properties": {"allowed_tools": {- "description": "List of pre-approved tools the skill may use. Tool names cannot contain whitespace.",+ "description": "Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant.","items": {"type": "string"},diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-create.jsonindex b099c6b573e1..9a904a5da830 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-create.json@@ -3,7 +3,7 @@"description": "Create serializer — accepts bundled files and owners as write-only input on POST.","properties": {"allowed_tools": {- "description": "List of pre-approved tools the skill may use. Tool names cannot contain whitespace.",+ "description": "Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant.","items": {"type": "string"},diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-update.jsonindex 4858070b098e..944796a03c49 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-update.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-update.json@@ -2,7 +2,7 @@"$schema": "https://json-schema.org/draft/2020-12/schema","properties": {"allowed_tools": {- "description": "List of pre-approved tools the skill may use. Tool names cannot contain whitespace.",+ "description": "Tools the skill asks to use. Tool names cannot contain whitespace. A harness that reads the skill from a file (zip export, git marketplace, a content=full bundle) treats the list as pre-approved. A harness that loads the skill over MCP, including the default content=stub bundle, ignores the list until the user approves that grant.","items": {"type": "string"},