: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
feat(skills): rename llma-skill-* MCP tools to skill-* (#63532)
Andrew Maguire31668df8b157
diff --git a/products/signals/backend/scout_harness/prompt.py b/products/signals/backend/scout_harness/prompt.pyindex dc5d7abbfbe9..078bb32848e3 100644--- a/products/signals/backend/scout_harness/prompt.py+++ b/products/signals/backend/scout_harness/prompt.py@@ -215,7 +215,7 @@ def build_run_prompt(skill: LoadedSkill, *, run_id: str, team_id: int, started_athat lands during the run is exactly what we want the agent to see.The skill body and file manifest are NOT inlined. The agent reads them at- run time via `llma-skill-get` / `llma-skill-file-get` over the PostHog MCP+ run time via `skill-get` / `skill-file-get` over the PostHog MCP— the bootstrap step makes that the first move. `LoadedSkill` is stillpassed in so the harness can pin the version the agent should request."""@@ -236,14 +236,14 @@ def build_run_prompt(skill: LoadedSkill, *, run_id: str, team_id: int, started_aYour bound skill is the brain of this run. Before doing anything else, call:- llma-skill-get(skill_name="{skill.name}", version={skill.version})+ skill-get(skill_name="{skill.name}", version={skill.version})Pin to v{skill.version} explicitly — the run row, your tool resolution, andyour budget were all snapshotted against that version. Fetching by name alonewould race against any new version published mid-run.The body tells you what to investigate, in what order, with what hypotheses.-Pull files on demand with `llma-skill-file-get` only when the body references+Pull files on demand with `skill-file-get` only when the body referencesthem. Don't start investigating before you've read it.# Then: orient on this projectdiff --git a/products/signals/backend/test/test_scout_harness.py b/products/signals/backend/test/test_scout_harness.pyindex 2b03b841916c..aca39a5c8cf3 100644--- a/products/signals/backend/test/test_scout_harness.py+++ b/products/signals/backend/test/test_scout_harness.py@@ -148,8 +148,8 @@ class TestPromptBuilder(BaseTest):assert "First: read your skill" in prompt# Skill version is pinned explicitly — the run row + tool resolution + budget# were snapshotted against v1, so the bootstrap fetch must lock to v1 too.- assert 'llma-skill-get(skill_name="signals-scout-errors", version=1)' in prompt- assert "llma-skill-file-get" in prompt+ assert 'skill-get(skill_name="signals-scout-errors", version=1)' in prompt+ assert "skill-file-get" in promptassert "watch for spikes" not in promptassert "refs/playbook.md" not in prompt# Second bootstrap step orients the agent on the project via thediff --git a/products/signals/mcp/tools.yaml b/products/signals/mcp/tools.yamlindex d3947a1c79ec..336985c47912 100644--- a/products/signals/mcp/tools.yaml+++ b/products/signals/mcp/tools.yaml@@ -257,7 +257,7 @@ tools:(stuck onboardings), connected integrations, warehouse sources, signal source configs (splitenabled/disabled), and existing inbox report counts. Singleton per team; the response reflects either thenewest non-expired cached profile or a freshly-built one. Read this once at the start of a run (right after- `llma-skill-get`) to orient on the team in one tool call instead of paginating through+ `skill-get`) to orient on the team in one tool call instead of paginating through`inbox-source-configs-list` / `inbox-reports-list` / `read-data-schema` / `activity-log-list`. Distinct from`signals-scout-scratchpad-list`: profile is ground truth from authoritative tables; scratchpad is thescout's inferred learnings.diff --git a/products/signals/skills/authoring-signals-scouts/SKILL.md b/products/signals/skills/authoring-signals-scouts/SKILL.mdindex 6238034e1c5d..35d78aa9f791 100644--- a/products/signals/skills/authoring-signals-scouts/SKILL.md+++ b/products/signals/skills/authoring-signals-scouts/SKILL.md@@ -47,11 +47,11 @@ only as good as its fit to the data it watches.without loading its body. Don't duplicate a surface a canonical scout already covers —adapt that one instead.3. **Read the closest canonical scout.** It's your template and your reference shape. Pull- it with `posthog:llma-skill-get {"skill_name": "signals-scout-<x>"}` (per-team rows) or+ it with `posthog:skill-get {"skill_name": "signals-scout-<x>"}` (per-team rows) orread it from the repo at `products/signals/skills/signals-scout-*/`. The generalist(`signals-scout-general`) is the broad template; if your scope is domain-tight, pickthe specialist closest to your surface — list the live roster with- `posthog:llma-skill-list {"search": "signals-scout"}` (specialists exist for most+ `posthog:skill-list {"search": "signals-scout"}` (specialists exist for mostproduct surfaces: error tracking, logs, AI observability, experiments, feature flags,session replay, web analytics, surveys, and more).4. **Skim the inbox.** `posthog:inbox-reports-list` shows what findings are actually@@ -71,10 +71,10 @@ There are two independent decisions: **what** you're building, and **where** it### Where-| Path | Mechanism | Use when |-| ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |-| **Per-team** (the common user path) | Create/edit a `signals-scout-*` `LLMSkill` row in the project's skills store via `posthog:llma-skill-create` / `-update` / `-file-create`, then register its config immediately via `posthog:signals-scout-config-create`. | Customizing for one project. The harness globs the row in on the next tick; canonical sync leaves your edited ("diverged") row alone. |-| **Canonical** (PostHog contributors) | Edit disk under `products/signals/skills/signals-scout-*/`, lint/build, open a PR. | Improving a scout for _every_ enrolled project. `lazy_seed` mirrors it onto all enrolled teams on the next tick. |+| Path | Mechanism | Use when |+| ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |+| **Per-team** (the common user path) | Create/edit a `signals-scout-*` `LLMSkill` row in the project's skills store via `posthog:skill-create` / `-update` / `-file-create`, then register its config immediately via `posthog:signals-scout-config-create`. | Customizing for one project. The harness globs the row in on the next tick; canonical sync leaves your edited ("diverged") row alone. |+| **Canonical** (PostHog contributors) | Edit disk under `products/signals/skills/signals-scout-*/`, lint/build, open a PR. | Improving a scout for _every_ enrolled project. `lazy_seed` mirrors it onto all enrolled teams on the next tick. |**Adapting-in-place tradeoff:** editing a canonical scout's row for your team marks it**diverged** — you stop receiving upstream improvements to that scout. If you only need an@@ -148,7 +148,7 @@ actually lands.1. Ship the scout (the default `emit=true`) with a short `run_interval_minutes` so it firessoon — set it at creation via`posthog:signals-scout-config-create {"skill_name": ..., "run_interval_minutes": 10}`- right after `llma-skill-create`, rather than waiting for the coordinator to+ right after `skill-create`, rather than waiting for the coordinator toauto-register an hourly default.2. After a tick, read what it did: `posthog:inbox-reports-list` (the findings it actuallyemitted), `posthog:signals-scout-runs-list` (run summaries), `-runs-retrieve` (fulldiff --git a/products/signals/skills/authoring-signals-scouts/references/lifecycle-and-testing.md b/products/signals/skills/authoring-signals-scouts/references/lifecycle-and-testing.mdindex e52e0ae599bd..63c48ca1dde0 100644--- a/products/signals/skills/authoring-signals-scouts/references/lifecycle-and-testing.md+++ b/products/signals/skills/authoring-signals-scouts/references/lifecycle-and-testing.md@@ -37,27 +37,27 @@ the harness globs it in on the next tick.```text# List existing scouts and other skills-posthog:llma-skill-list {"search": "signals-scout"}+posthog:skill-list {"search": "signals-scout"}# Read a canonical scout to use as a template-posthog:llma-skill-get {"skill_name": "signals-scout-error-tracking"}+posthog:skill-get {"skill_name": "signals-scout-error-tracking"}# New scout from scratch-posthog:llma-skill-create {"name": "signals-scout-<scope>", "description": "...", "body": "...", "compatibility": "...", "metadata": {"owner_team": "<team>", "scope": "<scope>"}}+posthog:skill-create {"name": "signals-scout-<scope>", "description": "...", "body": "...", "compatibility": "...", "metadata": {"owner_team": "<team>", "scope": "<scope>"}}# Register its config immediately with the schedule you want (otherwise the coordinator# auto-registers an hourly default on its next tick)posthog:signals-scout-config-create {"skill_name": "signals-scout-<scope>", "run_interval_minutes": 120}# Adapt an existing per-team scout — use the SMALLEST primitive (find/replace, not full-body)-posthog:llma-skill-get {"skill_name": "signals-scout-<scope>"} # get current version first-posthog:llma-skill-update {"skill_name": "signals-scout-<scope>", "base_version": N, "edits": [{"old": "...", "new": "..."}]}+posthog:skill-get {"skill_name": "signals-scout-<scope>"} # get current version first+posthog:skill-update {"skill_name": "signals-scout-<scope>", "base_version": N, "edits": [{"old": "...", "new": "..."}]}# Duplicate a canonical scout into a new per-team scout you then edit (keeps the canonical intact)-posthog:llma-skill-duplicate {"skill_name": "signals-scout-general", "new_name": "signals-scout-<scope>"}+posthog:skill-duplicate {"skill_name": "signals-scout-general", "new_name": "signals-scout-<scope>"}# Bundle a reference file onto a per-team scout-posthog:llma-skill-file-create {"skill_name": "signals-scout-<scope>", "path": "references/cookbook.md", "content": "...", "content_type": "text/markdown", "base_version": N}+posthog:skill-file-create {"skill_name": "signals-scout-<scope>", "path": "references/cookbook.md", "content": "...", "content_type": "text/markdown", "base_version": N}```Notes:@@ -110,7 +110,7 @@ and calibrate against what actually lands.- `posthog:signals-scout-runs-retrieve` — the full reasoning for one run.- `posthog:signals-scout-scratchpad-search` — the durable memory it wrote.3. Refine the body for whatever it false-positived or missed — tighten the discriminator,- add disqualifiers, fix emit calibration. Re-edit via `llma-skill-update`.+ add disqualifiers, fix emit calibration. Re-edit via `skill-update`.4. Once it's landing the right findings, `config-update` to restore a sustainable interval(hourly or slower).diff --git a/products/signals/skills/authoring-signals-scouts/references/scout-anatomy.md b/products/signals/skills/authoring-signals-scouts/references/scout-anatomy.mdindex 3956c44af662..0e374923b0df 100644--- a/products/signals/skills/authoring-signals-scouts/references/scout-anatomy.md+++ b/products/signals/skills/authoring-signals-scouts/references/scout-anatomy.md@@ -129,7 +129,7 @@ classifier + scratchpad vocab). For a **per-team** scout you usually don't needyour own copies — the canonical scout already encodes the conventions inline, and yourscout body can too. Bundle a reference only when you have genuinely surface-specific depth(a long SQL cookbook, a taxonomy of fingerprints) that would bloat the body. Attach bundled-files to a per-team scout with `posthog:llma-skill-file-create`; in the repo, drop them in+files to a per-team scout with `posthog:skill-file-create`; in the repo, drop them in`references/` and they're collected automatically.## Skeleton — specialist scoutdiff --git a/products/signals/skills/exploring-signals-scouts/SKILL.md b/products/signals/skills/exploring-signals-scouts/SKILL.mdindex 00846765e12c..406085ae2ffa 100644--- a/products/signals/skills/exploring-signals-scouts/SKILL.md+++ b/products/signals/skills/exploring-signals-scouts/SKILL.md@@ -129,7 +129,7 @@ call out anything anomalous (never run, last run errored, stuck in dry-run for a1. **Read its config** — find the row in `config-list` for `signals-scout-error-tracking`:schedule, posture, last run.-2. **Read its body** — `posthog:llma-skill-get {"skill_name": "signals-scout-error-tracking"}`+2. **Read its body** — `posthog:skill-get {"skill_name": "signals-scout-error-tracking"}`returns the team's actual instruction set (which may be a canonical default or a diverged,hand-edited row). This is what the agent is told to do every run — its signal-vs-noisediscriminator, explore patterns, and disqualifiers. To understand _why_ a scout behaves thediff --git a/products/skills/mcp/tools.yaml b/products/skills/mcp/tools.yamlindex 1ed649939cde..279b21ad8562 100644--- a/products/skills/mcp/tools.yaml+++ b/products/skills/mcp/tools.yaml@@ -9,7 +9,7 @@ feature: skillsurl_prefix: /skillsui_apps: {}tools:- llma-skill-archive:+ skill-archive:operation: llm_skills_name_archive_createenabled: truescopes:@@ -21,11 +21,11 @@ tools:title: Archive skilldescription: >Archive every active version of an agent skill by name. This hides the skill from default lists and cannot- be undone. Use llma-skill-get first if you need to inspect the skill before archiving it.+ be undone. Use skill-get first if you need to inspect the skill before archiving it.param_overrides:skill_name:description: The kebab-case name of the skill to archive.- llma-skill-create:+ skill-create:operation: llm_skills_createenabled: truescopes:@@ -48,7 +48,7 @@ tools:- allowed_tools- metadata- files- llma-skill-duplicate:+ skill-duplicate:operation: llm_skills_name_duplicate_createenabled: truescopes:@@ -61,7 +61,7 @@ tools:description: >Duplicate an existing agent skill under a new name. Copies the latest version's content, metadata, andbundled files to create a new skill at version 1.- llma-skill-file-create:+ skill-file-create:operation: llm_skills_name_files_createenabled: truescopes:@@ -73,10 +73,10 @@ tools:title: Create skill filedescription: >Add a new bundled file to an agent skill. Fails with 409 if a file at the given path already exists — use- llma-skill-update with files to replace, or llma-skill-file-delete followed by llma-skill-file-create to- overwrite. Publishes a new skill version and returns the updated skill (read its 'version' field to chain- further edits via base_version). Supply base_version for optimistic concurrency.- llma-skill-file-delete:+ skill-update with files to replace, or skill-file-delete followed by skill-file-create to overwrite.+ Publishes a new skill version and returns the updated skill (read its 'version' field to chain further edits+ via base_version). Supply base_version for optimistic concurrency.+ skill-file-delete:operation: llm_skills_name_files_destroyenabled: truescopes:@@ -90,7 +90,7 @@ tools:Remove a bundled file from an agent skill by path. Fails with 404 if the file is not in the latest version.Publishes a new skill version and returns 200 with the updated skill body (not 204) — read its 'version'field to chain further edits via base_version. Supply base_version for optimistic concurrency.- llma-skill-file-get:+ skill-file-get:operation: llm_skills_name_files_retrieveenabled: truescopes:@@ -101,10 +101,10 @@ tools:idempotent: truetitle: Get skill filedescription: >- Fetch a single bundled file from an agent skill by its path. Use the file manifest from llma-skill-get to+ Fetch a single bundled file from an agent skill by its path. Use the file manifest from skill-get todiscover available files. Supports progressive disclosure — only load files when needed rather than fetchingall content upfront.- llma-skill-file-rename:+ skill-file-rename:operation: llm_skills_name_files_rename_createenabled: truescopes:@@ -119,7 +119,7 @@ tools:with 409 if new_path already exists. Use this to move a file without rewriting its content. Publishes a newskill version and returns the updated skill (read its 'version' field to chain further edits viabase_version). Supply base_version for optimistic concurrency.- llma-skill-get:+ skill-get:operation: llm_skills_name_retrieveenabled: truescopes:@@ -134,7 +134,7 @@ tools:the Agent Skills specification (agentskills.io). To link a user to this skill in the PostHog app, build theURL from the skill `name`, not its `id`: `/llm-analytics/skills/<name>` (e.g.`/llm-analytics/skills/pr-shepherd`). The `id` (UUID) is not a valid route segment and will 404.- llma-skill-list:+ skill-list:operation: llm_skills_listenabled: truescopes:@@ -147,13 +147,13 @@ tools:description: >List all agent skills stored for the current team. Returns skill names and descriptions for discovery — usedescriptions to determine which skill to fetch for a given task. Does not return skill body content (use- llma-skill-get to fetch full content). To link a user to a skill in the PostHog app, build the URL from the- skill `name`, not its `id`: `/llm-analytics/skills/<name>` (e.g. `/llm-analytics/skills/pr-shepherd`). The- `id` (UUID) is not a valid route segment and will 404.- llma-skill-resolve:+ skill-get to fetch full content). To link a user to a skill in the PostHog app, build the URL from the skill+ `name`, not its `id`: `/llm-analytics/skills/<name>` (e.g. `/llm-analytics/skills/pr-shepherd`). The `id`+ (UUID) is not a valid route segment and will 404.+ skill-resolve:operation: llm_skills_resolve_name_retrieveenabled: false- llma-skill-update:+ skill-update:operation: llm_skills_name_partial_updateenabled: truescopes:@@ -174,7 +174,7 @@ tools:sequentially. Only one of 'body' or 'edits' may be provided.For file changes, prefer the per-file tools rather than passing a 'files' list:- llma-skill-file-create / llma-skill-file-delete / llma-skill-file-rename handle+ skill-file-create / skill-file-delete / skill-file-rename handleadd/remove/rename one file at a time and return the updated skill (including thebumped version) so callers can chain further edits via base_version.diff --git a/products/skills/skills/README.md b/products/skills/skills/README.mdindex ccab5af45f71..02c04a450c09 100644--- a/products/skills/skills/README.md+++ b/products/skills/skills/README.md@@ -8,7 +8,7 @@ Also available to Claude Code / Codex via `hogli sync:skill`.- **skills-store** — discover and use shared team skills stored in PostHog.- **working-with-skills** — best-practice playbook for agents managing skills via the- `llma-skill-*` MCP tools: decision tree for picking the right write primitive,+ `skill-*` MCP tools: decision tree for picking the right write primitive,progressive disclosure discipline, large multi-file workflows, concurrency, andcommon pitfalls.diff --git a/products/skills/skills/skills-store/SKILL.md b/products/skills/skills/skills-store/SKILL.mdindex 73d80f03065d..d146c73e53ed 100644--- a/products/skills/skills/skills-store/SKILL.md+++ b/products/skills/skills/skills-store/SKILL.md@@ -14,18 +14,18 @@ PostHog is the primary store for team-shared skills — always use the PostHog M## Available tools-| Tool | Purpose |-| -------------------------------- | ---------------------------------------------------------- |-| `posthog:llma-skill-list` | List all available skills (Level 1 — names + descriptions) |-| `posthog:llma-skill-get` | Fetch a skill by name (Level 2 — body + file manifest) |-| `posthog:llma-skill-file-get` | Fetch a single bundled file by path (Level 3 — on demand) |-| `posthog:llma-skill-create` | Store a new skill (optionally with bundled files) |-| `posthog:llma-skill-update` | Publish a new version (body, `edits`, or `file_edits`) |-| `posthog:llma-skill-file-create` | Add one bundled file to a skill (publishes a new version) |-| `posthog:llma-skill-file-delete` | Remove one bundled file from a skill |-| `posthog:llma-skill-file-rename` | Rename one bundled file (move without rewriting content) |-| `posthog:llma-skill-duplicate` | Duplicate an existing skill under a new name |-| `posthog:llma-skill-archive` | Archive all versions of a skill by name (cannot be undone) |+| Tool | Purpose |+| --------------------------- | ---------------------------------------------------------- |+| `posthog:skill-list` | List all available skills (Level 1 — names + descriptions) |+| `posthog:skill-get` | Fetch a skill by name (Level 2 — body + file manifest) |+| `posthog:skill-file-get` | Fetch a single bundled file by path (Level 3 — on demand) |+| `posthog:skill-create` | Store a new skill (optionally with bundled files) |+| `posthog:skill-update` | Publish a new version (body, `edits`, or `file_edits`) |+| `posthog:skill-file-create` | Add one bundled file to a skill (publishes a new version) |+| `posthog:skill-file-delete` | Remove one bundled file from a skill |+| `posthog:skill-file-rename` | Rename one bundled file (move without rewriting content) |+| `posthog:skill-duplicate` | Duplicate an existing skill under a new name |+| `posthog:skill-archive` | Archive all versions of a skill by name (cannot be undone) |Skills use progressive disclosure: discover by description, fetch the body only when relevant, and pull individual files on demand. Do not fetch every file eagerly.@@ -34,25 +34,25 @@ Skills use progressive disclosure: discover by description, fetch the body onlyList all available skills:```json-posthog:llma-skill-list+posthog:skill-list{}```Search by keyword (matches name and description):```json-posthog:llma-skill-list+posthog:skill-list{ "search": "fractal" }```-`llma-skill-list` returns only name + description — never the body. Use descriptions to decide which skill to fetch. The whole point of descriptions is that you can pick the right skill without loading any bodies.+`skill-list` returns only name + description — never the body. Use descriptions to decide which skill to fetch. The whole point of descriptions is that you can pick the right skill without loading any bodies.## Loading and using a skill### Step 1 — Fetch the skill by name```json-posthog:llma-skill-get+posthog:skill-get{ "skill_name": "make-fractals" }```@@ -71,7 +71,7 @@ Read `body` and follow it. Treat it as your system instructions for this task.When the body references a script or reference doc, pull it on demand:```json-posthog:llma-skill-file-get+posthog:skill-file-get{ "skill_name": "make-fractals", "file_path": "scripts/mandelbrot.py" }```@@ -84,12 +84,12 @@ Follow the [Agent Skills specification](https://agentskills.io/specification) wh- **`name`** — kebab-case, max 64 chars, no leading/trailing/consecutive hyphens- **`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 `llma-skill-file-get`, so splitting keeps context lean.+- **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.Bundled files are optional and can be included in a single create call:```json-posthog:llma-skill-create+posthog:skill-create{"name": "make-fractals","description": "Generate fractal images as PNGs. Use when the user asks to make, render, or visualize fractals.",@@ -110,7 +110,7 @@ posthog:llma-skill-createEach write publishes a new immutable version. Always fetch first to get the current version, then update with `base_version` for concurrency checks:```json-posthog:llma-skill-get+posthog:skill-get{ "skill_name": "make-fractals" }```@@ -121,7 +121,7 @@ Pick the most surgical primitive for what you're changing — the API offers sevFull replacement (good for substantial rewrites):```json-posthog:llma-skill-update+posthog:skill-update{"skill_name": "make-fractals","body": "# make-fractals\n\nUpdated instructions...",@@ -132,7 +132,7 @@ posthog:llma-skill-updateIncremental find/replace (good for small tweaks — no round-tripping the whole body):```json-posthog:llma-skill-update+posthog:skill-update{"skill_name": "make-fractals","edits": [@@ -149,7 +149,7 @@ Each `edits[].old` must match exactly once. `body` and `edits` are mutually exclUse `file_edits` to patch a single file without resending any other file:```json-posthog:llma-skill-update+posthog:skill-update{"skill_name": "make-fractals","file_edits": [@@ -170,9 +170,9 @@ Non-targeted files carry forward unchanged. `file_edits` cannot add, remove, orThe file-path parameter has two names depending on where it sits in the request, so don't guess:-- **`file_path`** — `llma-skill-file-get` and `llma-skill-file-delete` (the path is part of the URL).-- **`path`** — `llma-skill-file-create`, plus the `files=[{path, …}]` array and `file_edits=[{path, …}]` (body fields on a file object).-- **`old_path` / `new_path`** — `llma-skill-file-rename`.+- **`file_path`** — `skill-file-get` and `skill-file-delete` (the path is part of the URL).+- **`path`** — `skill-file-create`, plus the `files=[{path, …}]` array and `file_edits=[{path, …}]` (body fields on a file object).+- **`old_path` / `new_path`** — `skill-file-rename`.Passing `path` to file-get produces a `/files/undefined/` 404. When in doubt, check the tool's input schema.@@ -181,30 +181,30 @@ Passing `path` to file-get produces a `/files/undefined/` 404. When in doubt, chAtomic per-file tools — each publishes a new version and returns the updated skill (read its `version` to chain further edits via `base_version`):```json-posthog:llma-skill-file-create+posthog:skill-file-create{ "skill_name": "make-fractals", "path": "scripts/julia.py", "content": "...", "base_version": 2 }``````json-posthog:llma-skill-file-delete+posthog:skill-file-delete{ "skill_name": "make-fractals", "file_path": "scripts/old.py", "base_version": 3 }``````json-posthog:llma-skill-file-rename+posthog:skill-file-rename{ "skill_name": "make-fractals", "old_path": "scripts/julia.py", "new_path": "scripts/julia_set.py", "base_version": 4 }```### Replacing the whole bundle (rare)-Passing `files` to `llma-skill-update` replaces ALL bundled files — anything not in the array is dropped. Only use this when you intentionally want to wipe and reseed the bundle. For everything else, prefer `file_edits` or the per-file CRUD tools above.+Passing `files` to `skill-update` replaces ALL bundled files — anything not in the array is dropped. Only use this when you intentionally want to wipe and reseed the bundle. For everything else, prefer `file_edits` or the per-file CRUD tools above.## Archiving a skill-`llma-skill-archive` hides every active version of a skill by name. It cannot be undone — the skill disappears from `llma-skill-list` and `llma-skill-get` for the whole team. Use it to retire a skill entirely; to remove a single file use `llma-skill-file-delete`, and to roll back content publish a new version instead.+`skill-archive` hides every active version of a skill by name. It cannot be undone — the skill disappears from `skill-list` and `skill-get` for the whole team. Use it to retire a skill entirely; to remove a single file use `skill-file-delete`, and to roll back content publish a new version instead.```json-posthog:llma-skill-archive+posthog:skill-archive{ "skill_name": "make-fractals" }```@@ -214,9 +214,9 @@ To move a skill from a local SKILL.md directory (e.g. a local skills folder with1. Read the local `SKILL.md` — use its frontmatter for `name`, `description`, `license`, `compatibility`, `allowed_tools`, `metadata`; the body after the frontmatter becomes `body`2. Walk the `scripts/`, `references/`, and `assets/` subdirs and collect each file as `{ path, content, content_type }`-3. Call `posthog:llma-skill-create` with everything in one shot — the skill lands at v1 with its full bundle+3. Call `posthog:skill-create` with everything in one shot — the skill lands at v1 with its full bundle-The skill is then available to the whole team via `posthog:llma-skill-get`.+The skill is then available to the whole team via `posthog:skill-get`.## Quick access: local bridge skill@@ -232,7 +232,7 @@ description: >-Use when the user asks to list, run, or manage PostHog skills,or references /phs, "ph skills", or "posthog skills".user-invocable: true-allowed-tools: mcp__posthog__llma-skill-list, mcp__posthog__llma-skill-get, mcp__posthog__llma-skill-create, mcp__posthog__llma-skill-update, mcp__posthog__llma-skill-file-get, mcp__posthog__llma-skill-file-create, mcp__posthog__llma-skill-file-delete, mcp__posthog__llma-skill-file-rename, mcp__posthog__llma-skill-duplicate+allowed-tools: mcp__posthog__skill-list, mcp__posthog__skill-get, mcp__posthog__skill-create, mcp__posthog__skill-update, mcp__posthog__skill-file-get, mcp__posthog__skill-file-create, mcp__posthog__skill-file-delete, mcp__posthog__skill-file-rename, mcp__posthog__skill-duplicate---# PostHog Skills Store@@ -243,27 +243,27 @@ Local bridge to the PostHog Skills Store.When the user says `/phs <skill-name>`:-1. `llma-skill-get(skill_name="<skill-name>")` to fetch body + file manifest+1. `skill-get(skill_name="<skill-name>")` to fetch body + file manifest2. Read the `body` field — follow it as system instructions for this task-3. Use `llma-skill-file-get` to pull bundled scripts/references on demand+3. Use `skill-file-get` to pull bundled scripts/references on demand## List skills-llma-skill-list # all skills-llma-skill-list(search="llma") # filter by keyword+skill-list # all skills+skill-list(search="llma") # filter by keyword## Create / update-llma-skill-create(name="my-skill", description="...", body="# Instructions...")-llma-skill-get → note version → llma-skill-update(skill_name="...", base_version=N, body="...")+skill-create(name="my-skill", description="...", body="# Instructions...")+skill-get → note version → skill-update(skill_name="...", base_version=N, body="...")## Edit one part of an existing skill-llma-skill-get → note version → pick the smallest primitive:+skill-get → note version → pick the smallest primitive:-- body tweak: llma-skill-update(skill_name="...", base_version=N, edits=[{old, new}])-- one bundled file: llma-skill-update(skill_name="...", base_version=N, file_edits=[{path, edits:[{old, new}]}])-- add/remove/rename a file: llma-skill-file-create / llma-skill-file-delete / llma-skill-file-rename+- body tweak: skill-update(skill_name="...", base_version=N, edits=[{old, new}])+- one bundled file: skill-update(skill_name="...", base_version=N, file_edits=[{path, edits:[{old, new}]}])+- add/remove/rename a file: skill-file-create / skill-file-delete / skill-file-rename```The bridge is intentionally minimal — it just routes to the MCP tools. The real instructions live in PostHog and update without touching local files.@@ -275,5 +275,5 @@ The bridge is intentionally minimal — it just routes to the MCP tools. The rea- **Always prefer PostHog MCP** for skill storage and retrieval- Only fall back to local files when PostHog MCP is unavailable- When asked to "save", "store", or "remember" a workflow, runbook, or multi-step procedure, store it as a PostHog skill-- When asked to use a skill by name, use `llma-skill-get` first-- When a skill references bundled files in its body, pull them with `llma-skill-file-get` only when needed — don't preload+- When asked to use a skill by name, use `skill-get` first+- When a skill references bundled files in its body, pull them with `skill-file-get` only when needed — don't preloaddiff --git a/products/skills/skills/working-with-skills/SKILL.md b/products/skills/skills/working-with-skills/SKILL.mdindex dd0ead50bae8..c8b663764ec3 100644--- a/products/skills/skills/working-with-skills/SKILL.md+++ b/products/skills/skills/working-with-skills/SKILL.md@@ -1,17 +1,17 @@---name: working-with-skillsdescription: >-- Best practices for agents managing PostHog skills via the MCP `llma-skill-*` tools —+ Best practices for agents managing PostHog skills via the MCP `skill-*` tools —how to discover, read, create, update, and refactor skills efficiently, especiallylarge skills with many bundled files. Use whenever you are about to call any- `llma-skill-*` tool, asked to author or edit a shared skill, or troubleshoot+ `skill-*` tool, asked to author or edit a shared skill, or troubleshootwhy a skill write was rejected. Pairs with `skills-store` (which covers theraw tool surface) by adding the decision-tree, efficiency, and pitfall guidance.---# Working with PostHog skills-This skill teaches agents how to use the `llma-skill-*` MCP tools well — minimum+This skill teaches agents how to use the `skill-*` MCP tools well — minimumcontext, minimum round-trips, minimum mistakes. If you are not yet familiar withthe tool surface itself, read the `skills-store` skill first for the catalog.This document is about _how to choose between the tools_ and _how to scale the@@ -27,7 +27,7 @@ workflow_ when skills get big.or `file_edits` is cheaper, safer, and clearer in version history than afull body or full bundle replacement.3. **Reads are cheap; concurrent overwrites are not.** Always have a recent- `version` from `llma-skill-get` (or from the response of the previous write)+ `version` from `skill-get` (or from the response of the previous write)before calling any write tool, and pass it as `base_version`.4. **Authoring follows the [Agent Skills spec](https://agentskills.io/specification).**Keep `name` kebab-case, descriptions trigger-rich, body short, bulky@@ -37,14 +37,14 @@ workflow_ when skills get big.```textNeed to know what's available?- └─► llma-skill-list (names + descriptions only)+ └─► skill-list (names + descriptions only)Need to use / inspect a specific skill?- └─► llma-skill-get (body + file manifest, NO file contents)- └─► llma-skill-file-get (one file, on demand, only as referenced)+ └─► skill-get (body + file manifest, NO file contents)+ └─► skill-file-get (one file, on demand, only as referenced)Authoring a brand new skill?- └─► llma-skill-create (body + all initial files in one call)+ └─► skill-create (body + all initial files in one call)Editing an existing skill?├─ Body change?@@ -53,16 +53,16 @@ Editing an existing skill?├─ Bundled file content change?│ └─ update(file_edits=[{path, edits:[...]}, ...])├─ Add / remove / rename a file?- │ ├─ Add ............................. llma-skill-file-create- │ ├─ Delete .......................... llma-skill-file-delete- │ └─ Rename .......................... llma-skill-file-rename+ │ ├─ Add ............................. skill-file-create+ │ ├─ Delete .......................... skill-file-delete+ │ └─ Rename .......................... skill-file-rename└─ Wholesale bundle reset (rare!) ....... update(files=[...]) # replaces ALL filesWant a fork as the starting point?- └─► llma-skill-duplicate (then update the copy)+ └─► skill-duplicate (then update the copy)Done with a skill entirely?- └─► llma-skill-archive (hides ALL versions; cannot be undone)+ └─► skill-archive (hides ALL versions; cannot be undone)```If you find yourself reaching for `update(body=...)` plus a sprawling `files=[...]`@@ -73,16 +73,16 @@ to change one paragraph and one script, stop — that's two narrower calls## Discover before you fetch```json-posthog:llma-skill-list+posthog:skill-list{ "search": "fractal" }```-`llma-skill-list` is the right tool to "find a skill" — it returns names and+`skill-list` is the right tool to "find a skill" — it returns names anddescriptions only. Reading the descriptions is the entire point: pick the rightskill before pulling any body. If `search` doesn't narrow it enough, listwithout it and scan, but do not start fetching candidate bodies blindly.-`llma-skill-get` should be called **once per skill per task**, not per question.+`skill-get` should be called **once per skill per task**, not per question.Cache the body in your working memory; fetch again only if you suspect theskill changed under you (e.g. a `409` on write — see "Concurrency" below).@@ -91,12 +91,12 @@ skill changed under you (e.g. a `409` on write — see "Concurrency" below).Big skills (long body, many bundled files) are the case where lazy loadingmatters most.-1. `llma-skill-get(skill_name=...)` — read `body` + `files[]` manifest.+1. `skill-get(skill_name=...)` — read `body` + `files[]` manifest.2. Scan the body's table of contents / headings. The body should already tellyou which file goes with which task — that's why bodies stay short andreference files by path.3. For each file the body explicitly points at for _the current task_, call- `llma-skill-file-get(file_path=...)`. Skip everything else.+ `skill-file-get(file_path=...)`. Skip everything else.4. If the body references "see scripts/X for the rare case Y" and you are notin case Y, do not fetch `scripts/X`.@@ -104,13 +104,13 @@ When in doubt, fewer files. You can always fetch one more on the next turn.## Authoring a new skill-Use a single `llma-skill-create` call with body **and** initial files — the+Use a single `skill-create` call with body **and** initial files — theskill lands at `version: 1` complete. Do not create the skill empty and then-make N follow-up `llma-skill-file-create` calls; that's N extra versions and N+make N follow-up `skill-file-create` calls; that's N extra versions and Nextra round-trips for no benefit.```json-posthog:llma-skill-create+posthog:skill-create{"name": "my-skill","description": "What it does AND when to use it. Include trigger keywords.",@@ -129,7 +129,7 @@ posthog:llma-skill-create### Authoring rules of thumb- **`description` is the discovery surface.** It is the only thing- `llma-skill-list` returns. Make it trigger-rich (what the user might say) and+ `skill-list` returns. Make it trigger-rich (what the user might say) andscope-honest (what the skill does and does not do).- **`name`** — kebab-case, max 64 chars, no leading/trailing/consecutivehyphens. The spec validator rejects anything else.@@ -153,7 +153,7 @@ incomplete. Use the smallest primitive instead.### Always read first, capture `version````json-posthog:llma-skill-get+posthog:skill-get{ "skill_name": "my-skill" }```@@ -166,7 +166,7 @@ with that.Full replacement when you are restructuring the body:```json-posthog:llma-skill-update+posthog:skill-update{ "skill_name": "my-skill", "body": "# my-skill\n\nNew body...", "base_version": 7 }```@@ -174,7 +174,7 @@ Incremental edits when you are tweaking a few lines (preferred for smallchanges — easier to review, lower error surface):```json-posthog:llma-skill-update+posthog:skill-update{"skill_name": "my-skill","edits": [@@ -195,7 +195,7 @@ carry forward unchanged. This is the right primitive when you are tweakingscript logic or fixing a typo in a reference doc:```json-posthog:llma-skill-update+posthog:skill-update{"skill_name": "my-skill","file_edits": [@@ -218,11 +218,11 @@ existing ones. For structural changes, use the per-file tools.### Combining edits in a single callYou can combine `edits` (body) and `file_edits` (existing files) in one-`llma-skill-update` call to publish a single coherent version when a change+`skill-update` call to publish a single coherent version when a changespans both:```json-posthog:llma-skill-update+posthog:skill-update{"skill_name": "my-skill","edits": [{ "old": "## Configuration", "new": "## Setup" }],@@ -239,11 +239,11 @@ The same concept — a bundled file's path — is named differently depending on**where it travels in the request**, and this trips up agents working frommemory. There is one rule:-- **`file_path`** — when the path is part of the **URL** (`llma-skill-file-get`,- `llma-skill-file-delete`). These read/delete one file addressed by its path.-- **`path`** — when the path is a **body field**: `llma-skill-file-create`, the+- **`file_path`** — when the path is part of the **URL** (`skill-file-get`,+ `skill-file-delete`). These read/delete one file addressed by its path.+- **`path`** — when the path is a **body field**: `skill-file-create`, the`files=[{path, content, content_type}]` array, and `file_edits=[{path, edits}]`.-- **`old_path` / `new_path`** — body fields on `llma-skill-file-rename`.+- **`old_path` / `new_path`** — body fields on `skill-file-rename`.Mnemonic: `path` is the field name on a file _object_ (it sits next to`content`), so everything that carries a file object uses `path`; the two@@ -256,27 +256,27 @@ tool's input schema rather than guessing — passing `path` to file-get yields aEach is its own call, each publishes a new version:```json-posthog:llma-skill-file-create+posthog:skill-file-create{ "skill_name": "my-skill", "path": "scripts/julia.py", "content": "...", "base_version": 7 }``````json-posthog:llma-skill-file-delete+posthog:skill-file-delete{ "skill_name": "my-skill", "file_path": "scripts/old.py", "base_version": 8 }``````json-posthog:llma-skill-file-rename+posthog:skill-file-rename{ "skill_name": "my-skill", "old_path": "scripts/julia.py", "new_path": "scripts/julia_set.py", "base_version": 9 }```-`llma-skill-file-rename` is a true move — it carries the existing content+`skill-file-rename` is a true move — it carries the existing contentforward without resending it. Always prefer it over delete + create when thecontent is unchanged.### When to use `update(files=[...])` (rare)-Passing `files` to `llma-skill-update` **replaces the entire bundle** —+Passing `files` to `skill-update` **replaces the entire bundle** —anything not in the array is dropped. This is the right tool only when you areintentionally wiping and reseeding the bundle (e.g. importing a fresh localSKILL.md tree). For almost every other case, prefer `file_edits` plus per-file@@ -286,13 +286,13 @@ CRUD.Skills with many files (10+) require extra discipline:-- **Treat the manifest as the index.** `llma-skill-get`'s `files[]` is your map.+- **Treat the manifest as the index.** `skill-get`'s `files[]` is your map.Match each task step to one file and fetch only that one.- **Group structural changes into a sequence, not a fork.** If you are renamingthree files, do them sequentially: `rename → rename → rename`, each chainedvia the previous response's `version`. That gives you three small reviewableversions instead of one giant `update(files=[...])` blob.-- **Keep edits localised.** A single `llma-skill-update` with `file_edits`+- **Keep edits localised.** A single `skill-update` with `file_edits`targeting five files is fine. A single `update(files=[...])` carrying tenfull file bodies is almost always a sign you should have used `file_edits`.- **Refactor the body itself first.** If the body has grown past ~500 lines,@@ -306,7 +306,7 @@ Every write tool accepts `base_version`. Always pass it.- The server compares `base_version` to the current latest version. If theymatch, the write succeeds and the new version is `base_version + 1`.- If they differ, the write is rejected (someone else updated the skill).- Re-run `llma-skill-get`, reconcile your changes against the new body, and+ Re-run `skill-get`, reconcile your changes against the new body, andretry with the fresh `version`.- After a successful write, the response includes the new `version`. Chainfurther edits with that — do not re-`get` between back-to-back writes you@@ -317,15 +317,15 @@ Skipping `base_version` does _not_ speed things up — it just turns a clean## Common pitfalls-- **Calling `llma-skill-list` with no search and then fetching every body** —+- **Calling `skill-list` with no search and then fetching every body** —defeats progressive disclosure. Read the descriptions first.-- **Pre-fetching every bundled file after `llma-skill-get`** — same mistake on+- **Pre-fetching every bundled file after `skill-get`** — same mistake onthe inner level. Fetch on demand from the body's directives.- **Using `update(body=..., files=[...])` for a one-line fix** — round-tripsthe entire skill, makes diffs unreadable, and risks dropping files. Use`edits` / `file_edits`.- **Using `update(files=[...])` when you meant to add one file** — drops every- file you didn't include. Use `llma-skill-file-create` instead.+ file you didn't include. Use `skill-file-create` instead.- **Delete + create instead of rename** — loses content history and costs anextra version bump.- **Stale `base_version` after chained writes** — read the `version` from the@@ -333,7 +333,7 @@ Skipping `base_version` does _not_ speed things up — it just turns a clean- **Leaving `base_version` off** — accepts a silent overwrite. Always includeit once you've done a `get`.- **Empty / vague `description`** — the skill becomes effectively undiscoverable- via `llma-skill-list` search. Treat the description as the trigger contract.+ via `skill-list` search. Treat the description as the trigger contract.- **Long body + no bundled files** — when a body crosses ~500 lines, refactorinto `references/` and `scripts/` rather than letting it grow.- **Mixing `body` and `edits` in one update call** — they're mutually exclusive.@@ -345,18 +345,18 @@ Skipping `base_version` does _not_ speed things up — it just turns a clean## Archiving a skill-`llma-skill-archive` hides **every** active version of a skill by name. It is+`skill-archive` hides **every** active version of a skill by name. It isnot version-scoped and **cannot be undone** — the skill drops out of-`llma-skill-list` and `llma-skill-get` for the whole team.+`skill-list` and `skill-get` for the whole team.```json-posthog:llma-skill-archive+posthog:skill-archive{ "skill_name": "my-skill" }```-Before archiving, `llma-skill-get` the skill if you need to inspect or copy it+Before archiving, `skill-get` the skill if you need to inspect or copy itfirst. Archiving is the right tool for retiring a skill entirely; to remove a-single bundled file use `llma-skill-file-delete`, and to roll back content+single bundled file use `skill-file-delete`, and to roll back contentpublish a new version rather than archiving.## Porting a local SKILL.md tree into PostHog@@ -369,11 +369,11 @@ When migrating a local skill folder (e.g. `my-skill/SKILL.md` plusfrontmatter becomes `body`.2. Walk the bundled subdirs and gather every file as`{ path, content, content_type }`.-3. Call `posthog:llma-skill-create` once with everything — the skill lands at+3. Call `posthog:skill-create` once with everything — the skill lands at`version: 1` complete. Do not split this into a create + N file-createcalls.-After the create, the skill is live for everyone via `llma-skill-get`.+After the create, the skill is live for everyone via `skill-get`.## When a skill is the wrong answerdiff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex bcd2d4fb4cbf..8d86d43bd836 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -3845,146 +3845,6 @@"readOnlyHint": false}},- "llma-skill-archive": {- "description": "Archive every active version of an agent skill by name. This hides the skill from default lists and cannot be undone. Use llma-skill-get first if you need to inspect the skill before archiving it.",- "category": "Skills",- "feature": "skills",- "summary": "Archive skill",- "title": "Archive skill",- "required_scopes": ["llm_skill:write"],- "annotations": {- "destructiveHint": true,- "idempotentHint": false,- "openWorldHint": true,- "readOnlyHint": false- }- },- "llma-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, and bundled files.",- "category": "Skills",- "feature": "skills",- "summary": "Create skill",- "title": "Create skill",- "required_scopes": ["llm_skill:write"],- "annotations": {- "destructiveHint": false,- "idempotentHint": false,- "openWorldHint": true,- "readOnlyHint": false- }- },- "llma-skill-duplicate": {- "description": "Duplicate an existing agent skill under a new name. Copies the latest version's content, metadata, and bundled files to create a new skill at version 1.",- "category": "Skills",- "feature": "skills",- "summary": "Duplicate skill",- "title": "Duplicate skill",- "required_scopes": ["llm_skill:write"],- "annotations": {- "destructiveHint": false,- "idempotentHint": false,- "openWorldHint": true,- "readOnlyHint": false- }- },- "llma-skill-file-create": {- "description": "Add a new bundled file to an agent skill. Fails with 409 if a file at the given path already exists — use llma-skill-update with files to replace, or llma-skill-file-delete followed by llma-skill-file-create to overwrite. Publishes a new skill version and returns the updated skill (read its 'version' field to chain further edits via base_version). Supply base_version for optimistic concurrency.",- "category": "Skills",- "feature": "skills",- "summary": "Create skill file",- "title": "Create skill file",- "required_scopes": ["llm_skill:write"],- "annotations": {- "destructiveHint": false,- "idempotentHint": false,- "openWorldHint": true,- "readOnlyHint": false- }- },- "llma-skill-file-delete": {- "description": "Remove a bundled file from an agent skill by path. Fails with 404 if the file is not in the latest version. Publishes a new skill version and returns 200 with the updated skill body (not 204) — read its 'version' field to chain further edits via base_version. Supply base_version for optimistic concurrency.",- "category": "Skills",- "feature": "skills",- "summary": "Delete skill file",- "title": "Delete skill file",- "required_scopes": ["llm_skill:write"],- "annotations": {- "destructiveHint": true,- "idempotentHint": false,- "openWorldHint": true,- "readOnlyHint": false- }- },- "llma-skill-file-get": {- "description": "Fetch a single bundled file from an agent skill by its path. Use the file manifest from llma-skill-get to discover available files. Supports progressive disclosure — only load files when needed rather than fetching all content upfront.",- "category": "Skills",- "feature": "skills",- "summary": "Get skill file",- "title": "Get skill file",- "required_scopes": ["llm_skill:read"],- "annotations": {- "destructiveHint": false,- "idempotentHint": true,- "openWorldHint": true,- "readOnlyHint": true- }- },- "llma-skill-file-rename": {- "description": "Rename a bundled file within an agent skill. Fails with 404 if old_path is not in the latest version, and with 409 if new_path already exists. Use this to move a file without rewriting its content. Publishes a new skill version and returns the updated skill (read its 'version' field to chain further edits via base_version). Supply base_version for optimistic concurrency.",- "category": "Skills",- "feature": "skills",- "summary": "Rename skill file",- "title": "Rename skill file",- "required_scopes": ["llm_skill:write"],- "annotations": {- "destructiveHint": false,- "idempotentHint": false,- "openWorldHint": true,- "readOnlyHint": false- }- },- "llma-skill-get": {- "description": "Get a specific agent skill by name, including its full body content, metadata, and file manifest. Follows the Agent Skills specification (agentskills.io). To link a user to this skill in the PostHog app, build the URL from the skill `name`, not its `id`: `/llm-analytics/skills/<name>` (e.g. `/llm-analytics/skills/pr-shepherd`). The `id` (UUID) is not a valid route segment and will 404.",- "category": "Skills",- "feature": "skills",- "summary": "Get skill",- "title": "Get skill",- "required_scopes": ["llm_skill:read"],- "annotations": {- "destructiveHint": false,- "idempotentHint": true,- "openWorldHint": true,- "readOnlyHint": true- }- },- "llma-skill-list": {- "description": "List all agent skills stored for the current team. Returns skill names and descriptions for discovery — use descriptions to determine which skill to fetch for a given task. Does not return skill body content (use llma-skill-get to fetch full content). To link a user to a skill in the PostHog app, build the URL from the skill `name`, not its `id`: `/llm-analytics/skills/<name>` (e.g. `/llm-analytics/skills/pr-shepherd`). The `id` (UUID) is not a valid route segment and will 404.",- "category": "Skills",- "feature": "skills",- "summary": "List skills",- "title": "List skills",- "required_scopes": ["llm_skill:read"],- "annotations": {- "destructiveHint": false,- "idempotentHint": true,- "openWorldHint": true,- "readOnlyHint": true- }- },- "llma-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:\nllma-skill-file-create / llma-skill-file-delete / llma-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.",- "category": "Skills",- "feature": "skills",- "summary": "Update skill",- "title": "Update skill",- "required_scopes": ["llm_skill:write"],- "annotations": {- "destructiveHint": false,- "idempotentHint": true,- "openWorldHint": true,- "readOnlyHint": false- }- },"llma-summarization-create": {"description": "Generate an AI-powered summary of an LLM trace or generation. Pass a trace_id or generation_id with a date_from — the backend fetches the data and returns a structured summary with title, flow diagram, summary bullets, and interesting notes. Results are cached. Use mode \"minimal\" (default) for 3-5 points or \"detailed\" for 5-10 points. Rate-limited; requires AI data processing approval for the organization.","category": "AI observability",@@ -5340,7 +5200,7 @@}},"signals-scout-project-profile-get": {- "description": "Return a deterministic snapshot of \"what's true about this project\" — products in use, product intents (stuck onboardings), connected integrations, warehouse sources, signal source configs (split enabled/disabled), and existing inbox report counts. Singleton per team; the response reflects either the newest non-expired cached profile or a freshly-built one. Read this once at the start of a run (right after `llma-skill-get`) to orient on the team in one tool call instead of paginating through `inbox-source-configs-list` / `inbox-reports-list` / `read-data-schema` / `activity-log-list`. Distinct from `signals-scout-scratchpad-list`: profile is ground truth from authoritative tables; scratchpad is the scout's inferred learnings.",+ "description": "Return a deterministic snapshot of \"what's true about this project\" — products in use, product intents (stuck onboardings), connected integrations, warehouse sources, signal source configs (split enabled/disabled), and existing inbox report counts. Singleton per team; the response reflects either the newest non-expired cached profile or a freshly-built one. Read this once at the start of a run (right after `skill-get`) to orient on the team in one tool call instead of paginating through `inbox-source-configs-list` / `inbox-reports-list` / `read-data-schema` / `activity-log-list`. Distinct from `signals-scout-scratchpad-list`: profile is ground truth from authoritative tables; scratchpad is the scout's inferred learnings.","category": "Signals","feature": "signals","summary": "Get the project profile",@@ -5437,6 +5297,146 @@"readOnlyHint": true}},+ "skill-archive": {+ "description": "Archive every active version of an agent skill by name. This hides the skill from default lists and cannot be undone. Use skill-get first if you need to inspect the skill before archiving it.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Archive skill",+ "title": "Archive skill",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "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, and bundled files.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Create skill",+ "title": "Create skill",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "skill-duplicate": {+ "description": "Duplicate an existing agent skill under a new name. Copies the latest version's content, metadata, and bundled files to create a new skill at version 1.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Duplicate skill",+ "title": "Duplicate skill",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "skill-file-create": {+ "description": "Add a new bundled file to an agent skill. Fails with 409 if a file at the given path already exists — use skill-update with files to replace, or skill-file-delete followed by skill-file-create to overwrite. Publishes a new skill version and returns the updated skill (read its 'version' field to chain further edits via base_version). Supply base_version for optimistic concurrency.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Create skill file",+ "title": "Create skill file",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "skill-file-delete": {+ "description": "Remove a bundled file from an agent skill by path. Fails with 404 if the file is not in the latest version. Publishes a new skill version and returns 200 with the updated skill body (not 204) — read its 'version' field to chain further edits via base_version. Supply base_version for optimistic concurrency.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Delete skill file",+ "title": "Delete skill file",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "skill-file-get": {+ "description": "Fetch a single bundled file from an agent skill by its path. Use the file manifest from skill-get to discover available files. Supports progressive disclosure — only load files when needed rather than fetching all content upfront.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Get skill file",+ "title": "Get skill file",+ "required_scopes": ["llm_skill:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "skill-file-rename": {+ "description": "Rename a bundled file within an agent skill. Fails with 404 if old_path is not in the latest version, and with 409 if new_path already exists. Use this to move a file without rewriting its content. Publishes a new skill version and returns the updated skill (read its 'version' field to chain further edits via base_version). Supply base_version for optimistic concurrency.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Rename skill file",+ "title": "Rename skill file",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "skill-get": {+ "description": "Get a specific agent skill by name, including its full body content, metadata, and file manifest. Follows the Agent Skills specification (agentskills.io). To link a user to this skill in the PostHog app, build the URL from the skill `name`, not its `id`: `/llm-analytics/skills/<name>` (e.g. `/llm-analytics/skills/pr-shepherd`). The `id` (UUID) is not a valid route segment and will 404.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Get skill",+ "title": "Get skill",+ "required_scopes": ["llm_skill:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "skill-list": {+ "description": "List all agent skills stored for the current team. Returns skill names and descriptions for discovery — use descriptions to determine which skill to fetch for a given task. Does not return skill body content (use skill-get to fetch full content). To link a user to a skill in the PostHog app, build the URL from the skill `name`, not its `id`: `/llm-analytics/skills/<name>` (e.g. `/llm-analytics/skills/pr-shepherd`). The `id` (UUID) is not a valid route segment and will 404.",+ "category": "Skills",+ "feature": "skills",+ "summary": "List skills",+ "title": "List skills",+ "required_scopes": ["llm_skill:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "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.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Update skill",+ "title": "Update skill",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },"sql-variables-create": {"description": "Create a reusable SQL variable for HogQL queries. Provide a human-readable name and type. The code_name is generated from the name and is referenced in SQL as {variables.code_name}. For List variables, provide values as the allowed options.","category": "Data warehouse",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex f18278e2b2d7..8bb383fa3c5d 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -4114,11 +4114,11 @@}},"llma-skill-archive": {- "description": "Archive every active version of an agent skill by name. This hides the skill from default lists and cannot be undone. Use llma-skill-get first if you need to inspect the skill before archiving it.",+ "description": "DEPRECATED: renamed to skill-archive. This alias forwards to skill-archive and will be removed. Call skill-archive directly with the same arguments.","category": "Skills","feature": "skills",- "summary": "Archive skill",- "title": "Archive skill",+ "summary": "Deprecated alias for skill-archive.",+ "title": "Archive skill (deprecated)","required_scopes": ["llm_skill:write"],"annotations": {"destructiveHint": true,@@ -4128,11 +4128,11 @@}},"llma-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, and bundled files.",+ "description": "DEPRECATED: renamed to skill-create. This alias forwards to skill-create and will be removed. Call skill-create directly with the same arguments.","category": "Skills","feature": "skills",- "summary": "Create skill",- "title": "Create skill",+ "summary": "Deprecated alias for skill-create.",+ "title": "Create skill (deprecated)","required_scopes": ["llm_skill:write"],"annotations": {"destructiveHint": false,@@ -4142,11 +4142,11 @@}},"llma-skill-duplicate": {- "description": "Duplicate an existing agent skill under a new name. Copies the latest version's content, metadata, and bundled files to create a new skill at version 1.",+ "description": "DEPRECATED: renamed to skill-duplicate. This alias forwards to skill-duplicate and will be removed. Call skill-duplicate directly with the same arguments.","category": "Skills","feature": "skills",- "summary": "Duplicate skill",- "title": "Duplicate skill",+ "summary": "Deprecated alias for skill-duplicate.",+ "title": "Duplicate skill (deprecated)","required_scopes": ["llm_skill:write"],"annotations": {"destructiveHint": false,@@ -4156,11 +4156,11 @@}},"llma-skill-file-create": {- "description": "Add a new bundled file to an agent skill. Fails with 409 if a file at the given path already exists — use llma-skill-update with files to replace, or llma-skill-file-delete followed by llma-skill-file-create to overwrite. Publishes a new skill version and returns the updated skill (read its 'version' field to chain further edits via base_version). Supply base_version for optimistic concurrency.",+ "description": "DEPRECATED: renamed to skill-file-create. This alias forwards to skill-file-create and will be removed. Call skill-file-create directly with the same arguments.","category": "Skills","feature": "skills",- "summary": "Create skill file",- "title": "Create skill file",+ "summary": "Deprecated alias for skill-file-create.",+ "title": "Create skill file (deprecated)","required_scopes": ["llm_skill:write"],"annotations": {"destructiveHint": false,@@ -4170,11 +4170,11 @@}},"llma-skill-file-delete": {- "description": "Remove a bundled file from an agent skill by path. Fails with 404 if the file is not in the latest version. Publishes a new skill version and returns 200 with the updated skill body (not 204) — read its 'version' field to chain further edits via base_version. Supply base_version for optimistic concurrency.",+ "description": "DEPRECATED: renamed to skill-file-delete. This alias forwards to skill-file-delete and will be removed. Call skill-file-delete directly with the same arguments.","category": "Skills","feature": "skills",- "summary": "Delete skill file",- "title": "Delete skill file",+ "summary": "Deprecated alias for skill-file-delete.",+ "title": "Delete skill file (deprecated)","required_scopes": ["llm_skill:write"],"annotations": {"destructiveHint": true,@@ -4184,11 +4184,11 @@}},"llma-skill-file-get": {- "description": "Fetch a single bundled file from an agent skill by its path. Use the file manifest from llma-skill-get to discover available files. Supports progressive disclosure — only load files when needed rather than fetching all content upfront.",+ "description": "DEPRECATED: renamed to skill-file-get. This alias forwards to skill-file-get and will be removed. Call skill-file-get directly with the same arguments.","category": "Skills","feature": "skills",- "summary": "Get skill file",- "title": "Get skill file",+ "summary": "Deprecated alias for skill-file-get.",+ "title": "Get skill file (deprecated)","required_scopes": ["llm_skill:read"],"annotations": {"destructiveHint": false,@@ -4198,11 +4198,11 @@}},"llma-skill-file-rename": {- "description": "Rename a bundled file within an agent skill. Fails with 404 if old_path is not in the latest version, and with 409 if new_path already exists. Use this to move a file without rewriting its content. Publishes a new skill version and returns the updated skill (read its 'version' field to chain further edits via base_version). Supply base_version for optimistic concurrency.",+ "description": "DEPRECATED: renamed to skill-file-rename. This alias forwards to skill-file-rename and will be removed. Call skill-file-rename directly with the same arguments.","category": "Skills","feature": "skills",- "summary": "Rename skill file",- "title": "Rename skill file",+ "summary": "Deprecated alias for skill-file-rename.",+ "title": "Rename skill file (deprecated)","required_scopes": ["llm_skill:write"],"annotations": {"destructiveHint": false,@@ -4212,11 +4212,11 @@}},"llma-skill-get": {- "description": "Get a specific agent skill by name, including its full body content, metadata, and file manifest. Follows the Agent Skills specification (agentskills.io). To link a user to this skill in the PostHog app, build the URL from the skill `name`, not its `id`: `/llm-analytics/skills/<name>` (e.g. `/llm-analytics/skills/pr-shepherd`). The `id` (UUID) is not a valid route segment and will 404.",+ "description": "DEPRECATED: renamed to skill-get. This alias forwards to skill-get and will be removed. Call skill-get directly with the same arguments.","category": "Skills","feature": "skills",- "summary": "Get skill",- "title": "Get skill",+ "summary": "Deprecated alias for skill-get.",+ "title": "Get skill (deprecated)","required_scopes": ["llm_skill:read"],"annotations": {"destructiveHint": false,@@ -4226,11 +4226,11 @@}},"llma-skill-list": {- "description": "List all agent skills stored for the current team. Returns skill names and descriptions for discovery — use descriptions to determine which skill to fetch for a given task. Does not return skill body content (use llma-skill-get to fetch full content). To link a user to a skill in the PostHog app, build the URL from the skill `name`, not its `id`: `/llm-analytics/skills/<name>` (e.g. `/llm-analytics/skills/pr-shepherd`). The `id` (UUID) is not a valid route segment and will 404.",+ "description": "DEPRECATED: renamed to skill-list. This alias forwards to skill-list and will be removed. Call skill-list directly with the same arguments.","category": "Skills","feature": "skills",- "summary": "List skills",- "title": "List skills",+ "summary": "Deprecated alias for skill-list.",+ "title": "List skills (deprecated)","required_scopes": ["llm_skill:read"],"annotations": {"destructiveHint": false,@@ -4240,11 +4240,11 @@}},"llma-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:\nllma-skill-file-create / llma-skill-file-delete / llma-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.",+ "description": "DEPRECATED: renamed to skill-update. This alias forwards to skill-update and will be removed. Call skill-update directly with the same arguments.","category": "Skills","feature": "skills",- "summary": "Update skill",- "title": "Update skill",+ "summary": "Deprecated alias for skill-update.",+ "title": "Update skill (deprecated)","required_scopes": ["llm_skill:write"],"annotations": {"destructiveHint": false,@@ -5681,7 +5681,7 @@}},"signals-scout-project-profile-get": {- "description": "Return a deterministic snapshot of \"what's true about this project\" — products in use, product intents (stuck onboardings), connected integrations, warehouse sources, signal source configs (split enabled/disabled), and existing inbox report counts. Singleton per team; the response reflects either the newest non-expired cached profile or a freshly-built one. Read this once at the start of a run (right after `llma-skill-get`) to orient on the team in one tool call instead of paginating through `inbox-source-configs-list` / `inbox-reports-list` / `read-data-schema` / `activity-log-list`. Distinct from `signals-scout-scratchpad-list`: profile is ground truth from authoritative tables; scratchpad is the scout's inferred learnings.",+ "description": "Return a deterministic snapshot of \"what's true about this project\" — products in use, product intents (stuck onboardings), connected integrations, warehouse sources, signal source configs (split enabled/disabled), and existing inbox report counts. Singleton per team; the response reflects either the newest non-expired cached profile or a freshly-built one. Read this once at the start of a run (right after `skill-get`) to orient on the team in one tool call instead of paginating through `inbox-source-configs-list` / `inbox-reports-list` / `read-data-schema` / `activity-log-list`. Distinct from `signals-scout-scratchpad-list`: profile is ground truth from authoritative tables; scratchpad is the scout's inferred learnings.","category": "Signals","feature": "signals","summary": "Get the project profile",@@ -5778,6 +5778,146 @@"readOnlyHint": true}},+ "skill-archive": {+ "description": "Archive every active version of an agent skill by name. This hides the skill from default lists and cannot be undone. Use skill-get first if you need to inspect the skill before archiving it.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Archive skill",+ "title": "Archive skill",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "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, and bundled files.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Create skill",+ "title": "Create skill",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "skill-duplicate": {+ "description": "Duplicate an existing agent skill under a new name. Copies the latest version's content, metadata, and bundled files to create a new skill at version 1.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Duplicate skill",+ "title": "Duplicate skill",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "skill-file-create": {+ "description": "Add a new bundled file to an agent skill. Fails with 409 if a file at the given path already exists — use skill-update with files to replace, or skill-file-delete followed by skill-file-create to overwrite. Publishes a new skill version and returns the updated skill (read its 'version' field to chain further edits via base_version). Supply base_version for optimistic concurrency.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Create skill file",+ "title": "Create skill file",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "skill-file-delete": {+ "description": "Remove a bundled file from an agent skill by path. Fails with 404 if the file is not in the latest version. Publishes a new skill version and returns 200 with the updated skill body (not 204) — read its 'version' field to chain further edits via base_version. Supply base_version for optimistic concurrency.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Delete skill file",+ "title": "Delete skill file",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "skill-file-get": {+ "description": "Fetch a single bundled file from an agent skill by its path. Use the file manifest from skill-get to discover available files. Supports progressive disclosure — only load files when needed rather than fetching all content upfront.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Get skill file",+ "title": "Get skill file",+ "required_scopes": ["llm_skill:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "skill-file-rename": {+ "description": "Rename a bundled file within an agent skill. Fails with 404 if old_path is not in the latest version, and with 409 if new_path already exists. Use this to move a file without rewriting its content. Publishes a new skill version and returns the updated skill (read its 'version' field to chain further edits via base_version). Supply base_version for optimistic concurrency.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Rename skill file",+ "title": "Rename skill file",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "skill-get": {+ "description": "Get a specific agent skill by name, including its full body content, metadata, and file manifest. Follows the Agent Skills specification (agentskills.io). To link a user to this skill in the PostHog app, build the URL from the skill `name`, not its `id`: `/llm-analytics/skills/<name>` (e.g. `/llm-analytics/skills/pr-shepherd`). The `id` (UUID) is not a valid route segment and will 404.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Get skill",+ "title": "Get skill",+ "required_scopes": ["llm_skill:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "skill-list": {+ "description": "List all agent skills stored for the current team. Returns skill names and descriptions for discovery — use descriptions to determine which skill to fetch for a given task. Does not return skill body content (use skill-get to fetch full content). To link a user to a skill in the PostHog app, build the URL from the skill `name`, not its `id`: `/llm-analytics/skills/<name>` (e.g. `/llm-analytics/skills/pr-shepherd`). The `id` (UUID) is not a valid route segment and will 404.",+ "category": "Skills",+ "feature": "skills",+ "summary": "List skills",+ "title": "List skills",+ "required_scopes": ["llm_skill:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "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.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Update skill",+ "title": "Update skill",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },"sql-variables-create": {"description": "Create a reusable SQL variable for HogQL queries. Provide a human-readable name and type. The code_name is generated from the name and is referenced in SQL as {variables.code_name}. For List variables, provide values as the allowed options.","category": "Data warehouse",diff --git a/services/mcp/schema/tool-definitions.json b/services/mcp/schema/tool-definitions.jsonindex 2718b08bd08e..97e2a2297e5f 100644--- a/services/mcp/schema/tool-definitions.json+++ b/services/mcp/schema/tool-definitions.json@@ -57,6 +57,146 @@"readOnlyHint": true}},+ "llma-skill-archive": {+ "description": "DEPRECATED: renamed to skill-archive. This alias forwards to skill-archive and will be removed. Call skill-archive directly with the same arguments.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Deprecated alias for skill-archive.",+ "title": "Archive skill (deprecated)",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "llma-skill-create": {+ "description": "DEPRECATED: renamed to skill-create. This alias forwards to skill-create and will be removed. Call skill-create directly with the same arguments.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Deprecated alias for skill-create.",+ "title": "Create skill (deprecated)",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "llma-skill-duplicate": {+ "description": "DEPRECATED: renamed to skill-duplicate. This alias forwards to skill-duplicate and will be removed. Call skill-duplicate directly with the same arguments.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Deprecated alias for skill-duplicate.",+ "title": "Duplicate skill (deprecated)",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "llma-skill-file-create": {+ "description": "DEPRECATED: renamed to skill-file-create. This alias forwards to skill-file-create and will be removed. Call skill-file-create directly with the same arguments.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Deprecated alias for skill-file-create.",+ "title": "Create skill file (deprecated)",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "llma-skill-file-delete": {+ "description": "DEPRECATED: renamed to skill-file-delete. This alias forwards to skill-file-delete and will be removed. Call skill-file-delete directly with the same arguments.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Deprecated alias for skill-file-delete.",+ "title": "Delete skill file (deprecated)",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": true,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "llma-skill-file-get": {+ "description": "DEPRECATED: renamed to skill-file-get. This alias forwards to skill-file-get and will be removed. Call skill-file-get directly with the same arguments.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Deprecated alias for skill-file-get.",+ "title": "Get skill file (deprecated)",+ "required_scopes": ["llm_skill:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "llma-skill-file-rename": {+ "description": "DEPRECATED: renamed to skill-file-rename. This alias forwards to skill-file-rename and will be removed. Call skill-file-rename directly with the same arguments.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Deprecated alias for skill-file-rename.",+ "title": "Rename skill file (deprecated)",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": false,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },+ "llma-skill-get": {+ "description": "DEPRECATED: renamed to skill-get. This alias forwards to skill-get and will be removed. Call skill-get directly with the same arguments.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Deprecated alias for skill-get.",+ "title": "Get skill (deprecated)",+ "required_scopes": ["llm_skill:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "llma-skill-list": {+ "description": "DEPRECATED: renamed to skill-list. This alias forwards to skill-list and will be removed. Call skill-list directly with the same arguments.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Deprecated alias for skill-list.",+ "title": "List skills (deprecated)",+ "required_scopes": ["llm_skill:read"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": true+ }+ },+ "llma-skill-update": {+ "description": "DEPRECATED: renamed to skill-update. This alias forwards to skill-update and will be removed. Call skill-update directly with the same arguments.",+ "category": "Skills",+ "feature": "skills",+ "summary": "Deprecated alias for skill-update.",+ "title": "Update skill (deprecated)",+ "required_scopes": ["llm_skill:write"],+ "annotations": {+ "destructiveHint": false,+ "idempotentHint": true,+ "openWorldHint": true,+ "readOnlyHint": false+ }+ },"insight-query": {"description": "Execute a saved insight's query and return results. THIS IS THE ONLY WAY TO RETRIEVE INSIGHT RESULTS — the insights-list, insight-get, insight-create, and insight-update tools all return metadata and query definitions but never the actual data. Call insight-query whenever the user asks to see, analyze, summarize, or compare data from a saved insight, and immediately after creating or updating an insight if they want to verify the output. Supports two output formats: 'optimized' (default) returns a human-readable summary from server-side formatters ideal for analysis, while 'json' returns the raw query results. Optionally accepts `variables_override` and `filters_override` to run the insight with one-off overrides without mutating the saved definition.","category": "Insights & analytics",diff --git a/services/mcp/src/tools/generated/skills.ts b/services/mcp/src/tools/generated/skills.tsindex 06957316d85e..d6fa91aebafd 100644--- a/services/mcp/src/tools/generated/skills.ts+++ b/services/mcp/src/tools/generated/skills.ts@@ -23,16 +23,16 @@ import {} from '@/generated/skills/api'import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'-const LlmaSkillArchiveSchema = LlmSkillsNameArchiveCreateParams.omit({ project_id: true }).extend({+const SkillArchiveSchema = LlmSkillsNameArchiveCreateParams.omit({ project_id: true }).extend({skill_name: LlmSkillsNameArchiveCreateParams.shape['skill_name'].describe('The kebab-case name of the skill to archive.'),})-const llmaSkillArchive = (): ToolBase<typeof LlmaSkillArchiveSchema, unknown> => ({- name: 'llma-skill-archive',- schema: LlmaSkillArchiveSchema,- handler: async (context: Context, params: z.infer<typeof LlmaSkillArchiveSchema>) => {+const skillArchive = (): ToolBase<typeof SkillArchiveSchema, unknown> => ({+ name: 'skill-archive',+ schema: SkillArchiveSchema,+ handler: async (context: Context, params: z.infer<typeof SkillArchiveSchema>) => {const projectId = await context.stateManager.getProjectId()const result = await context.api.request<unknown>({method: 'POST',@@ -42,12 +42,12 @@ const llmaSkillArchive = (): ToolBase<typeof LlmaSkillArchiveSchema, unknown> =>},})-const LlmaSkillCreateSchema = LlmSkillsCreateBody+const SkillCreateSchema = LlmSkillsCreateBody-const llmaSkillCreate = (): ToolBase<typeof LlmaSkillCreateSchema, Schemas.LLMSkillCreate> => ({- name: 'llma-skill-create',- schema: LlmaSkillCreateSchema,- handler: async (context: Context, params: z.infer<typeof LlmaSkillCreateSchema>) => {+const skillCreate = (): ToolBase<typeof SkillCreateSchema, Schemas.LLMSkillCreate> => ({+ name: 'skill-create',+ schema: SkillCreateSchema,+ handler: async (context: Context, params: z.infer<typeof SkillCreateSchema>) => {const projectId = await context.stateManager.getProjectId()const body: Record<string, unknown> = {}if (params.name !== undefined) {@@ -83,14 +83,14 @@ const llmaSkillCreate = (): ToolBase<typeof LlmaSkillCreateSchema, Schemas.LLMSk},})-const LlmaSkillDuplicateSchema = LlmSkillsNameDuplicateCreateParams.omit({ project_id: true }).extend(+const SkillDuplicateSchema = LlmSkillsNameDuplicateCreateParams.omit({ project_id: true }).extend(LlmSkillsNameDuplicateCreateBody.shape)-const llmaSkillDuplicate = (): ToolBase<typeof LlmaSkillDuplicateSchema, Schemas.LLMSkill> => ({- name: 'llma-skill-duplicate',- schema: LlmaSkillDuplicateSchema,- handler: async (context: Context, params: z.infer<typeof LlmaSkillDuplicateSchema>) => {+const skillDuplicate = (): ToolBase<typeof SkillDuplicateSchema, Schemas.LLMSkill> => ({+ name: 'skill-duplicate',+ schema: SkillDuplicateSchema,+ handler: async (context: Context, params: z.infer<typeof SkillDuplicateSchema>) => {const projectId = await context.stateManager.getProjectId()const body: Record<string, unknown> = {}if (params.new_name !== undefined) {@@ -105,14 +105,14 @@ const llmaSkillDuplicate = (): ToolBase<typeof LlmaSkillDuplicateSchema, Schemas},})-const LlmaSkillFileCreateSchema = LlmSkillsNameFilesCreateParams.omit({ project_id: true }).extend(+const SkillFileCreateSchema = LlmSkillsNameFilesCreateParams.omit({ project_id: true }).extend(LlmSkillsNameFilesCreateBody.shape)-const llmaSkillFileCreate = (): ToolBase<typeof LlmaSkillFileCreateSchema, Schemas.LLMSkill> => ({- name: 'llma-skill-file-create',- schema: LlmaSkillFileCreateSchema,- handler: async (context: Context, params: z.infer<typeof LlmaSkillFileCreateSchema>) => {+const skillFileCreate = (): ToolBase<typeof SkillFileCreateSchema, Schemas.LLMSkill> => ({+ name: 'skill-file-create',+ schema: SkillFileCreateSchema,+ handler: async (context: Context, params: z.infer<typeof SkillFileCreateSchema>) => {const projectId = await context.stateManager.getProjectId()const body: Record<string, unknown> = {}if (params.path !== undefined) {@@ -136,14 +136,14 @@ const llmaSkillFileCreate = (): ToolBase<typeof LlmaSkillFileCreateSchema, Schem},})-const LlmaSkillFileDeleteSchema = LlmSkillsNameFilesDestroyParams.omit({ project_id: true }).extend(+const SkillFileDeleteSchema = LlmSkillsNameFilesDestroyParams.omit({ project_id: true }).extend(LlmSkillsNameFilesDestroyQueryParams.shape)-const llmaSkillFileDelete = (): ToolBase<typeof LlmaSkillFileDeleteSchema, Schemas.LLMSkill> => ({- name: 'llma-skill-file-delete',- schema: LlmaSkillFileDeleteSchema,- handler: async (context: Context, params: z.infer<typeof LlmaSkillFileDeleteSchema>) => {+const skillFileDelete = (): ToolBase<typeof SkillFileDeleteSchema, Schemas.LLMSkill> => ({+ name: 'skill-file-delete',+ schema: SkillFileDeleteSchema,+ handler: async (context: Context, params: z.infer<typeof SkillFileDeleteSchema>) => {const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.LLMSkill>({method: 'DELETE',@@ -156,14 +156,14 @@ const llmaSkillFileDelete = (): ToolBase<typeof LlmaSkillFileDeleteSchema, Schem},})-const LlmaSkillFileGetSchema = LlmSkillsNameFilesRetrieveParams.omit({ project_id: true }).extend(+const SkillFileGetSchema = LlmSkillsNameFilesRetrieveParams.omit({ project_id: true }).extend(LlmSkillsNameFilesRetrieveQueryParams.shape)-const llmaSkillFileGet = (): ToolBase<typeof LlmaSkillFileGetSchema, Schemas.LLMSkillFile> => ({- name: 'llma-skill-file-get',- schema: LlmaSkillFileGetSchema,- handler: async (context: Context, params: z.infer<typeof LlmaSkillFileGetSchema>) => {+const skillFileGet = (): ToolBase<typeof SkillFileGetSchema, Schemas.LLMSkillFile> => ({+ name: 'skill-file-get',+ schema: SkillFileGetSchema,+ handler: async (context: Context, params: z.infer<typeof SkillFileGetSchema>) => {const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.LLMSkillFile>({method: 'GET',@@ -176,14 +176,14 @@ const llmaSkillFileGet = (): ToolBase<typeof LlmaSkillFileGetSchema, Schemas.LLM},})-const LlmaSkillFileRenameSchema = LlmSkillsNameFilesRenameCreateParams.omit({ project_id: true }).extend(+const SkillFileRenameSchema = LlmSkillsNameFilesRenameCreateParams.omit({ project_id: true }).extend(LlmSkillsNameFilesRenameCreateBody.shape)-const llmaSkillFileRename = (): ToolBase<typeof LlmaSkillFileRenameSchema, Schemas.LLMSkill> => ({- name: 'llma-skill-file-rename',- schema: LlmaSkillFileRenameSchema,- handler: async (context: Context, params: z.infer<typeof LlmaSkillFileRenameSchema>) => {+const skillFileRename = (): ToolBase<typeof SkillFileRenameSchema, Schemas.LLMSkill> => ({+ name: 'skill-file-rename',+ schema: SkillFileRenameSchema,+ handler: async (context: Context, params: z.infer<typeof SkillFileRenameSchema>) => {const projectId = await context.stateManager.getProjectId()const body: Record<string, unknown> = {}if (params.old_path !== undefined) {@@ -204,14 +204,14 @@ const llmaSkillFileRename = (): ToolBase<typeof LlmaSkillFileRenameSchema, Schem},})-const LlmaSkillGetSchema = LlmSkillsNameRetrieveParams.omit({ project_id: true }).extend(+const SkillGetSchema = LlmSkillsNameRetrieveParams.omit({ project_id: true }).extend(LlmSkillsNameRetrieveQueryParams.shape)-const llmaSkillGet = (): ToolBase<typeof LlmaSkillGetSchema, Schemas.LLMSkill> => ({- name: 'llma-skill-get',- schema: LlmaSkillGetSchema,- handler: async (context: Context, params: z.infer<typeof LlmaSkillGetSchema>) => {+const skillGet = (): ToolBase<typeof SkillGetSchema, Schemas.LLMSkill> => ({+ name: 'skill-get',+ schema: SkillGetSchema,+ handler: async (context: Context, params: z.infer<typeof SkillGetSchema>) => {const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.LLMSkill>({method: 'GET',@@ -224,12 +224,12 @@ const llmaSkillGet = (): ToolBase<typeof LlmaSkillGetSchema, Schemas.LLMSkill> =},})-const LlmaSkillListSchema = LlmSkillsListQueryParams+const SkillListSchema = LlmSkillsListQueryParams-const llmaSkillList = (): ToolBase<typeof LlmaSkillListSchema, Schemas.PaginatedLLMSkillListList> => ({- name: 'llma-skill-list',- schema: LlmaSkillListSchema,- handler: async (context: Context, params: z.infer<typeof LlmaSkillListSchema>) => {+const skillList = (): ToolBase<typeof SkillListSchema, Schemas.PaginatedLLMSkillListList> => ({+ name: 'skill-list',+ schema: SkillListSchema,+ handler: async (context: Context, params: z.infer<typeof SkillListSchema>) => {const projectId = await context.stateManager.getProjectId()const result = await context.api.request<Schemas.PaginatedLLMSkillListList>({method: 'GET',@@ -245,14 +245,14 @@ const llmaSkillList = (): ToolBase<typeof LlmaSkillListSchema, Schemas.Paginated},})-const LlmaSkillUpdateSchema = LlmSkillsNamePartialUpdateParams.omit({ project_id: true }).extend(+const SkillUpdateSchema = LlmSkillsNamePartialUpdateParams.omit({ project_id: true }).extend(LlmSkillsNamePartialUpdateBody.shape)-const llmaSkillUpdate = (): ToolBase<typeof LlmaSkillUpdateSchema, Schemas.LLMSkill> => ({- name: 'llma-skill-update',- schema: LlmaSkillUpdateSchema,- handler: async (context: Context, params: z.infer<typeof LlmaSkillUpdateSchema>) => {+const skillUpdate = (): ToolBase<typeof SkillUpdateSchema, Schemas.LLMSkill> => ({+ name: 'skill-update',+ schema: SkillUpdateSchema,+ handler: async (context: Context, params: z.infer<typeof SkillUpdateSchema>) => {const projectId = await context.stateManager.getProjectId()const body: Record<string, unknown> = {}if (params.body !== undefined) {@@ -295,14 +295,14 @@ const llmaSkillUpdate = (): ToolBase<typeof LlmaSkillUpdateSchema, Schemas.LLMSk})export const GENERATED_TOOLS: Record<string, () => ToolBase<ZodObjectAny>> = {- 'llma-skill-archive': llmaSkillArchive,- 'llma-skill-create': llmaSkillCreate,- 'llma-skill-duplicate': llmaSkillDuplicate,- 'llma-skill-file-create': llmaSkillFileCreate,- 'llma-skill-file-delete': llmaSkillFileDelete,- 'llma-skill-file-get': llmaSkillFileGet,- 'llma-skill-file-rename': llmaSkillFileRename,- 'llma-skill-get': llmaSkillGet,- 'llma-skill-list': llmaSkillList,- 'llma-skill-update': llmaSkillUpdate,+ 'skill-archive': skillArchive,+ 'skill-create': skillCreate,+ 'skill-duplicate': skillDuplicate,+ 'skill-file-create': skillFileCreate,+ 'skill-file-delete': skillFileDelete,+ 'skill-file-get': skillFileGet,+ 'skill-file-rename': skillFileRename,+ 'skill-get': skillGet,+ 'skill-list': skillList,+ 'skill-update': skillUpdate,}diff --git a/services/mcp/src/tools/index.ts b/services/mcp/src/tools/index.tsindex e88b0790889d..a1fa8557c4ea 100644--- a/services/mcp/src/tools/index.ts+++ b/services/mcp/src/tools/index.ts@@ -34,6 +34,8 @@ import setActiveProject from './projects/setActive'import updateEventDefinition from './projects/updateEventDefinition'// Replayimport sessionRecordingSummarize from './replay/sessionRecordingSummarize'+// Skills (deprecation aliases for the llma-skill-* → skill-* rename)+import { SKILL_DEPRECATED_ALIASES } from './skills/deprecatedAliases'// Miscimport {type ToolFilterOptions,@@ -104,6 +106,9 @@ export const TOOL_MAP: Record<string, () => ToolBase<ZodObjectAny>> = {'workflows-blast-radius': workflowsBlastRadius,'workflows-run-batch': workflowsRunBatch,'workflows-schedule-create': workflowsScheduleCreate,++ // Skills — deprecated llma-skill-* aliases forwarding to the renamed skill-* tools.+ ...SKILL_DEPRECATED_ALIASES,}export const getToolsFromContext = async (diff --git a/services/mcp/src/tools/skills/deprecatedAliases.ts b/services/mcp/src/tools/skills/deprecatedAliases.tsnew file mode 100644index 000000000000..f04772ab8a0f--- /dev/null+++ b/services/mcp/src/tools/skills/deprecatedAliases.ts@@ -0,0 +1,46 @@+import type { z } from 'zod'++import { GENERATED_TOOLS } from '@/tools/generated/skills'+import type { Context, ToolBase, ZodObjectAny } from '@/tools/types'++/**+ * Deprecation aliases for the `llma-skill-*` → `skill-*` rename. Each old name+ * forwards arguments to the current handler and annotates the response so agents+ * discover the new name without the call failing. Remove this whole file (and the+ * matching `tool-definitions.json` entries + index.ts registrations) once callers+ * have migrated off the `llma-skill-*` prefix.+ */+const RENAMES: Record<string, string> = {+ 'llma-skill-archive': 'skill-archive',+ 'llma-skill-create': 'skill-create',+ 'llma-skill-duplicate': 'skill-duplicate',+ 'llma-skill-file-create': 'skill-file-create',+ 'llma-skill-file-delete': 'skill-file-delete',+ 'llma-skill-file-get': 'skill-file-get',+ 'llma-skill-file-rename': 'skill-file-rename',+ 'llma-skill-get': 'skill-get',+ 'llma-skill-list': 'skill-list',+ 'llma-skill-update': 'skill-update',+}++function makeAlias(oldName: string, newName: string): () => ToolBase<ZodObjectAny> {+ return (): ToolBase<ZodObjectAny> => {+ const inner = GENERATED_TOOLS[newName]!()+ return {+ ...inner,+ name: oldName,+ handler: async (context: Context, params: z.infer<ZodObjectAny>) => {+ const result = await inner.handler(context, params)+ return {+ ...(result as object),+ _deprecation_notice: `${oldName} has been renamed to ${newName}. Call ${newName} directly next time — this alias will be removed.`,+ }+ },+ }+ }+}++/** Old `llma-skill-*` name → alias factory, spread into TOOL_MAP. */+export const SKILL_DEPRECATED_ALIASES: Record<string, () => ToolBase<ZodObjectAny>> = Object.fromEntries(+ Object.entries(RENAMES).map(([oldName, newName]) => [oldName, makeAlias(oldName, newName)])+)diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-archive.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-archive.jsonnew file mode 100644index 000000000000..f45211182555--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-archive.json@@ -0,0 +1,12 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "skill_name": {+ "description": "The kebab-case name of the skill to archive.",+ "pattern": "^[^/]+$",+ "type": "string"+ }+ },+ "required": ["skill_name"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-create.jsonnew file mode 100644index 000000000000..e9f8a5893c7a--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-create.json@@ -0,0 +1,72 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "description": "Create serializer — accepts bundled files as write-only input on POST.",+ "properties": {+ "allowed_tools": {+ "description": "List of pre-approved tools the skill may use.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "body": {+ "description": "The SKILL.md instruction content (markdown).",+ "type": "string"+ },+ "compatibility": {+ "description": "Environment requirements (intended product, system packages, network access, etc.).",+ "maxLength": 500,+ "type": "string"+ },+ "description": {+ "description": "What this skill does and when to use it. Max 4096 characters.",+ "maxLength": 4096,+ "type": "string"+ },+ "files": {+ "description": "Bundled files to include with the initial version (scripts, references, assets).",+ "items": {+ "properties": {+ "content": {+ "description": "Text content of the file.",+ "type": "string"+ },+ "content_type": {+ "default": "text/plain",+ "description": "MIME type of the file content.",+ "maxLength": 100,+ "type": "string"+ },+ "path": {+ "description": "File path relative to skill root, e.g. 'scripts/setup.sh' or 'references/guide.md'.",+ "maxLength": 500,+ "type": "string"+ }+ },+ "required": ["path", "content"],+ "type": "object"+ },+ "type": "array"+ },+ "license": {+ "description": "License name or reference to a bundled license file.",+ "maxLength": 255,+ "type": "string"+ },+ "metadata": {+ "additionalProperties": {},+ "description": "Arbitrary key-value metadata.",+ "propertyNames": {+ "type": "string"+ },+ "type": "object"+ },+ "name": {+ "description": "Unique skill name. Lowercase letters, numbers, and hyphens only. Max 64 characters.",+ "maxLength": 64,+ "type": "string"+ }+ },+ "required": ["name", "description", "body"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-duplicate.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-duplicate.jsonnew file mode 100644index 000000000000..81e8ba5a9f07--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-duplicate.json@@ -0,0 +1,16 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "new_name": {+ "description": "Name for the duplicated skill. Must be unique.",+ "maxLength": 64,+ "type": "string"+ },+ "skill_name": {+ "pattern": "^[^/]+$",+ "type": "string"+ }+ },+ "required": ["skill_name", "new_name"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-file-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-file-create.jsonnew file mode 100644index 000000000000..ec50e507387b--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-file-create.json@@ -0,0 +1,31 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "base_version": {+ "description": "Latest version you are editing from. If provided, the request fails with 409 when another write has landed in the meantime.",+ "minimum": 1,+ "type": "number"+ },+ "content": {+ "description": "Text content of the file.",+ "type": "string"+ },+ "content_type": {+ "default": "text/plain",+ "description": "MIME type of the file content.",+ "maxLength": 100,+ "type": "string"+ },+ "path": {+ "description": "File path relative to skill root, e.g. 'scripts/setup.sh' or 'references/guide.md'.",+ "maxLength": 500,+ "type": "string"+ },+ "skill_name": {+ "pattern": "^[^/]+$",+ "type": "string"+ }+ },+ "required": ["skill_name", "path", "content"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-file-delete.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-file-delete.jsonnew file mode 100644index 000000000000..262304f0c4ce--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-file-delete.json@@ -0,0 +1,20 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "base_version": {+ "description": "Latest version you are editing from. If provided, the request fails with 409 when another write has landed in the meantime.",+ "minimum": 1,+ "type": "number"+ },+ "file_path": {+ "pattern": "^.+$",+ "type": "string"+ },+ "skill_name": {+ "pattern": "^[^/]+$",+ "type": "string"+ }+ },+ "required": ["file_path", "skill_name"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-file-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-file-get.jsonnew file mode 100644index 000000000000..7cded468fe20--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-file-get.json@@ -0,0 +1,20 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "file_path": {+ "pattern": "^.+$",+ "type": "string"+ },+ "skill_name": {+ "pattern": "^[^/]+$",+ "type": "string"+ },+ "version": {+ "description": "Specific skill version to fetch. If omitted, the latest version is returned.",+ "minimum": 1,+ "type": "number"+ }+ },+ "required": ["file_path", "skill_name"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-file-rename.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-file-rename.jsonnew file mode 100644index 000000000000..32af6c607062--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-file-rename.json@@ -0,0 +1,26 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "base_version": {+ "description": "Latest version you are editing from. If provided, the request fails with 409 when another write has landed in the meantime.",+ "minimum": 1,+ "type": "number"+ },+ "new_path": {+ "description": "New file path. Must not already exist in the skill.",+ "maxLength": 500,+ "type": "string"+ },+ "old_path": {+ "description": "Current file path to rename.",+ "maxLength": 500,+ "type": "string"+ },+ "skill_name": {+ "pattern": "^[^/]+$",+ "type": "string"+ }+ },+ "required": ["skill_name", "old_path", "new_path"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-get.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-get.jsonnew file mode 100644index 000000000000..ed1bb018c7d8--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-get.json@@ -0,0 +1,16 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "skill_name": {+ "pattern": "^[^/]+$",+ "type": "string"+ },+ "version": {+ "description": "Specific skill version to fetch. If omitted, the latest version is returned.",+ "minimum": 1,+ "type": "number"+ }+ },+ "required": ["skill_name"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-list.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-list.jsonnew file mode 100644index 000000000000..427d82032e8c--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-list.json@@ -0,0 +1,22 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "created_by_id": {+ "description": "Filter skills by the ID of the user who created them.",+ "type": "number"+ },+ "limit": {+ "description": "Number of results to return per page.",+ "type": "number"+ },+ "offset": {+ "description": "The initial index from which to return the results.",+ "type": "number"+ },+ "search": {+ "description": "Optional substring filter applied to skill names and descriptions.",+ "type": "string"+ }+ },+ "type": "object"+}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-update.jsonnew file mode 100644index 000000000000..ccab96beb18b--- /dev/null+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-update.json@@ -0,0 +1,126 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "properties": {+ "allowed_tools": {+ "description": "List of pre-approved tools the skill may use.",+ "items": {+ "type": "string"+ },+ "type": "array"+ },+ "base_version": {+ "description": "Latest version you are editing from. Used for optimistic concurrency checks.",+ "minimum": 1,+ "type": "number"+ },+ "body": {+ "description": "Full skill body (SKILL.md instruction content) to publish as a new version. Mutually exclusive with edits.",+ "type": "string"+ },+ "compatibility": {+ "description": "Environment requirements.",+ "maxLength": 500,+ "type": "string"+ },+ "description": {+ "description": "Updated description for the new version.",+ "maxLength": 4096,+ "type": "string"+ },+ "edits": {+ "description": "List of find/replace operations to apply to the current skill body. Each edit's 'old' text must match exactly once. Edits are applied sequentially. Mutually exclusive with body.",+ "items": {+ "properties": {+ "new": {+ "description": "Replacement text.",+ "type": "string"+ },+ "old": {+ "description": "Text to find in the target content. Must match exactly once.",+ "type": "string"+ }+ },+ "required": ["old", "new"],+ "type": "object"+ },+ "type": "array"+ },+ "file_edits": {+ "description": "Per-file find/replace updates. Each entry targets one existing file by path and applies sequential edits to its content. Non-targeted files carry forward unchanged. Cannot add, remove, or rename files — use 'files' for that. Mutually exclusive with files.",+ "items": {+ "properties": {+ "edits": {+ "description": "Sequential find/replace operations to apply to this file's content.",+ "items": {+ "properties": {+ "new": {+ "description": "Replacement text.",+ "type": "string"+ },+ "old": {+ "description": "Text to find in the target content. Must match exactly once.",+ "type": "string"+ }+ },+ "required": ["old", "new"],+ "type": "object"+ },+ "type": "array"+ },+ "path": {+ "description": "Path of the bundled file to edit. Must match an existing file on the current skill version.",+ "maxLength": 500,+ "type": "string"+ }+ },+ "required": ["path", "edits"],+ "type": "object"+ },+ "type": "array"+ },+ "files": {+ "description": "Bundled files to include with this version. Replaces all files from the previous version. Mutually exclusive with file_edits.",+ "items": {+ "properties": {+ "content": {+ "description": "Text content of the file.",+ "type": "string"+ },+ "content_type": {+ "default": "text/plain",+ "description": "MIME type of the file content.",+ "maxLength": 100,+ "type": "string"+ },+ "path": {+ "description": "File path relative to skill root, e.g. 'scripts/setup.sh' or 'references/guide.md'.",+ "maxLength": 500,+ "type": "string"+ }+ },+ "required": ["path", "content"],+ "type": "object"+ },+ "type": "array"+ },+ "license": {+ "description": "License name or reference.",+ "maxLength": 255,+ "type": "string"+ },+ "metadata": {+ "additionalProperties": {},+ "description": "Arbitrary key-value metadata.",+ "propertyNames": {+ "type": "string"+ },+ "type": "object"+ },+ "skill_name": {+ "pattern": "^[^/]+$",+ "type": "string"+ }+ },+ "required": ["skill_name"],+ "type": "object"+}diff --git a/services/mcp/tests/unit/skills-generated.test.ts b/services/mcp/tests/unit/skills-generated.test.tsindex faf707f11baa..d81245a3ef25 100644--- a/services/mcp/tests/unit/skills-generated.test.ts+++ b/services/mcp/tests/unit/skills-generated.test.ts@@ -2,6 +2,7 @@ import { describe, expect, it, vi } from 'vitest'import { getToolByName } from '@/shared/test-utils'import { GENERATED_TOOLS } from '@/tools/generated/skills'+import { SKILL_DEPRECATED_ALIASES } from '@/tools/skills/deprecatedAliases'import type { Context } from '@/tools/types'function createContext(requestReturnValue: unknown): { context: Context; requestMock: ReturnType<typeof vi.fn> } {@@ -19,9 +20,9 @@ function createContext(requestReturnValue: unknown): { context: Context; requestreturn { context, requestMock }}-describe('Generated llma-skill-* tools', () => {+describe('Generated skill-* tools', () => {it('uses skill_name in generated skill-archive schema', () => {- const tool = getToolByName(GENERATED_TOOLS, 'llma-skill-archive')+ const tool = getToolByName(GENERATED_TOOLS, 'skill-archive')const parsed = tool.schema.parse({ skill_name: 'skills-store' })expect(parsed).toEqual({ skill_name: 'skills-store' })@@ -30,7 +31,7 @@ describe('Generated llma-skill-* tools', () => {it('wires skill-archive to POST /name/{skill_name}/archive/', async () => {const { context, requestMock } = createContext(undefined)- const tool = getToolByName(GENERATED_TOOLS, 'llma-skill-archive')+ const tool = getToolByName(GENERATED_TOOLS, 'skill-archive')const result = await tool.handler(context, { skill_name: 'skills-store' })@@ -40,4 +41,22 @@ describe('Generated llma-skill-* tools', () => {})expect(result).toBeUndefined()})++ it('deprecated llma-skill-* alias forwards to the renamed handler and annotates the response', async () => {+ const { context, requestMock } = createContext({ name: 'skills-store' })+ const alias = SKILL_DEPRECATED_ALIASES['llma-skill-get']!()++ expect(alias.name).toBe('llma-skill-get')++ const result = (await alias.handler(context, { skill_name: 'skills-store' })) as Record<string, unknown>++ expect(requestMock).toHaveBeenCalledWith(+ expect.objectContaining({+ method: 'GET',+ path: '/api/projects/17/llm_skills/name/skills-store/',+ })+ )+ expect(result.name).toBe('skills-store')+ expect(result._deprecation_notice).toContain('skill-get')+ })})