Skip to content

: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.

chore(llma): clarify file path param naming in skill-store skills (#60807)

Andrew Maguire5ef32b073bb1
diff --git a/products/ai_observability/skills/skills-store/SKILL.md b/products/ai_observability/skills/skills-store/SKILL.md
index 384da4eb0772..73d80f03065d 100644
--- a/products/ai_observability/skills/skills-store/SKILL.md
+++ b/products/ai_observability/skills/skills-store/SKILL.md
@@ -25,6 +25,7 @@ PostHog is the primary store for team-shared skills — always use the PostHog M
| `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) |
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.
@@ -165,6 +166,16 @@ posthog:llma-skill-update
Non-targeted files carry forward unchanged. `file_edits` cannot add, remove, or rename files — use the per-file tools below for that.
+### File-path parameter naming
+
+The 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`.
+
+Passing `path` to file-get produces a `/files/undefined/` 404. When in doubt, check the tool's input schema.
+
### Adding, removing, or renaming a file
Atomic per-file tools — each publishes a new version and returns the updated skill (read its `version` to chain further edits via `base_version`):
@@ -188,6 +199,15 @@ posthog:llma-skill-file-rename
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.
+## 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.
+
+```json
+posthog:llma-skill-archive
+{ "skill_name": "make-fractals" }
+```
+
## Porting a local skill
To move a skill from a local SKILL.md directory (e.g. a local skills folder with `scripts/`, `references/`, `assets/` subdirs) into PostHog:
diff --git a/products/ai_observability/skills/working-with-skills/SKILL.md b/products/ai_observability/skills/working-with-skills/SKILL.md
index 104e0f6bd749..dd0ead50bae8 100644
--- a/products/ai_observability/skills/working-with-skills/SKILL.md
+++ b/products/ai_observability/skills/working-with-skills/SKILL.md
@@ -60,6 +60,9 @@ Editing an existing skill?
Want a fork as the starting point?
└─► llma-skill-duplicate (then update the copy)
+
+Done with a skill entirely?
+ └─► llma-skill-archive (hides ALL versions; cannot be undone)
```
If you find yourself reaching for `update(body=...)` plus a sprawling `files=[...]`
@@ -230,6 +233,24 @@ posthog:llma-skill-update
}
```
+### File-path parameter naming (read this before guessing)
+
+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 from
+memory. 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
+ `files=[{path, content, content_type}]` array, and `file_edits=[{path, edits}]`.
+- **`old_path` / `new_path`** — body fields on `llma-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
+tools that address a file by URL use `file_path`. When unsure, check the
+tool's input schema rather than guessing — passing `path` to file-get yields a
+`/files/undefined/` 404.
+
### Adding, removing, renaming files
Each is its own call, each publishes a new version:
@@ -317,6 +338,26 @@ Skipping `base_version` does _not_ speed things up — it just turns a clean
into `references/` and `scripts/` rather than letting it grow.
- **Mixing `body` and `edits` in one update call** — they're mutually exclusive.
Pick one.
+- **Guessing `path` vs `file_path`** — file-get and file-delete take `file_path`
+ (it's in the URL); create, rename (`old_path`/`new_path`), `files`, and
+ `file_edits` take `path` (it's a body field). See "File-path parameter
+ naming" above.
+
+## Archiving a skill
+
+`llma-skill-archive` hides **every** active version of a skill by name. It is
+not version-scoped and **cannot be undone** — the skill drops out of
+`llma-skill-list` and `llma-skill-get` for the whole team.
+
+```json
+posthog:llma-skill-archive
+{ "skill_name": "my-skill" }
+```
+
+Before archiving, `llma-skill-get` the skill if you need to inspect or copy it
+first. 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
+publish a new version rather than archiving.
## Porting a local SKILL.md tree into PostHog