: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
fix(skills): make the skills-store skill client-neutral (#106316)
Jake Ruth0953b0a420e7
diff --git a/.coderabbit.yaml b/.coderabbit.yamlindex b18381df4c3b..24db1a8ddc42 100644--- a/.coderabbit.yaml+++ b/.coderabbit.yaml@@ -73,6 +73,12 @@ reviews:Prefer parameterised tests over near-duplicate test functions.In async Python, flag blocking synchronous calls such as ORM queries, HTTP requests, file I/O, and sleep.+ - path: 'products/*/skills/**'+ instructions: >-+ These skills ship to every MCP client. Flag any instruction that uses a command, flag, tool, or+ capability not available to every MCP user: flag-gated, client-specific, or mode-specific.+ Example: the `learn` cli forms (`learn -s`, `learn posthog:`, `learn project:`), `--no-skills`.+pre_merge_checks:# PostHog documents selectively and does not enforce docstring coverage.docstrings:diff --git a/products/skills/skills/skills-store/SKILL.md b/products/skills/skills/skills-store/SKILL.mdindex 4c399eb73556..40bdf9c0b02e 100644--- a/products/skills/skills/skills-store/SKILL.md+++ b/products/skills/skills/skills-store/SKILL.md@@ -12,22 +12,6 @@ Skills are reusable agent workflows stored in PostHog following the [Agent SkillPostHog is the primary store for team-shared skills — always use the PostHog MCP skill tools to manage them.-## Reading skills through MCP cli mode--When the MCP exposes the `learn` command, use it for progressive-disclosure reads across both sources:--```text-learn skills-learn -s "retention runbook"-learn project:team-retention-learn project:team-retention "references/query guide.md" -s weekly-learn project:team-retention "references/query guide.md" --lines 20:60-```--`project:` identifies skills in the current project's Skills store. `posthog:` identifies skills bundled and published by PostHog. Global search checks both and returns PostHog results first. Quote a file path when it contains spaces.--Use the skill tools below for writes, version management, and MCP clients that do not expose `learn`.-## Available tools| Tool | Purpose |@@ -64,6 +48,8 @@ posthog:skill-list`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.+When the user names the skill, skip `skill-list` and call `skill-get` directly.+## Loading and using a skill### Step 1 — Fetch the skill by name@@ -293,5 +279,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 `learn project:<name>` in MCP cli mode and `skill-get` in tools mode-- When a skill references bundled files in its body, pull them with `learn project:<name> <path>` or `skill-file-get` only when needed — don't preload+- When asked to use a skill by name, fetch it with `skill-get`+- When a skill references bundled files in its body, pull them with `skill-file-get` only when needed — don't preload