Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 108 additions & 0 deletions contents/handbook/growth/sales/contributing-to-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
---
title: Contributing to docs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd make the title skill oriented, kind of like actionable writing

Suggested change
title: Contributing to docs
title: Creating agents skills from docs
Suggested change
title: Contributing to docs
title: Turning knowledge into agent skills

sidebar: Handbook
showTitle: true
---

Our documentation is a critical piece of PostHog's **context flywheel** — a system that connects our codebase to our docs, which then feeds into our AI agents and the [wizard](/handbook/docs-and-wizard/developing-the-wizard). When documentation is outdated, the agents that help customers integrate PostHog become outdated too.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Our documentation is a critical piece of PostHog's **context flywheel** — a system that connects our codebase to our docs, which then feeds into our AI agents and the [wizard](/handbook/docs-and-wizard/developing-the-wizard). When documentation is outdated, the agents that help customers integrate PostHog become outdated too.
Our documentation is a critical piece of PostHog's **context flywheel** — a system that connects our codebase to our docs, which then feeds into our AI agents and the [Wizard](/handbook/docs-and-wizard/developing-the-wizard). When documentation is outdated, the agents that help customers integrate PostHog become outdated too.

I know it's not out yet, but Twig (or what ever it's called later) is also a consumer


This means your knowledge directly powers our AI tools. When you write down what you know, it doesn't just help humans — it helps robots help customers faster.

## Why your contributions matter

The docs team has automated writing documentation from PR merges using Inkeep, which indexes our codebase and docs to create first-pass drafts. But there's knowledge that only comes from working directly with customers:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The docs team has automated writing documentation from PR merges using Inkeep, which indexes our codebase and docs to create first-pass drafts. But there's knowledge that only comes from working directly with customers:
The <SmallTeam slug="docs-wizard" /> team has automated writing documentation from PR merges using Inkeep, which indexes our codebase and docs to create first-pass drafts. But there's knowledge that only comes from working directly with customers:


- Common integration patterns and gotchas
- Real-world use cases and configurations
- Cross-selling playbooks and discovery questions
- Troubleshooting steps for edge cases

This knowledge lives in your head. When you write it down in the handbook, it can be transformed into **skills** — portable packages of context that the AI wizard can use to help customers.

## How to contribute

### 1. Write it in the handbook first

The handbook is the appropriate place to document playbooks, processes, and tribal knowledge. We have Markdown rendering for both the documentation and handbook, so content can flow between them.

Good things to document:
- How you help customers solve specific problems
- Discovery questions that uncover customer needs
- Common configurations you walk customers through
- Troubleshooting steps for issues you see repeatedly

### 2. Make it actionable

The [context mill](/handbook/docs-and-wizard/context-mill) transforms handbook content into skills for the AI wizard. To make your content skill-ready:

- **Be specific**: Include actual steps, not just concepts
- **Show examples**: Real code snippets and configurations help
- **Explain the "why"**: Context about when to use something helps the AI apply it correctly
- **Use clear structure**: Headers, bullet points, and numbered steps work better than walls of text

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

### 3. Think about automation

When you write something down, ask: "Could an agent do this automatically?"

For example, if you write a playbook for gathering a customer dossier, that could become an automated web search agent task. If you document how to identify cross-sell opportunities, that becomes a skill the wizard can use.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YES. We can ship these so fast that sometimes it's easier to ship a skill and send that to your customer to run in the afternoon.

That's the vision at least ;)


## What gets turned into skills?

Skills are defined using a YAML specification that allows for different variants based on app detection and context. The docs team currently has over 60 skills the wizard can use.

Your handbook contributions can become skills that:
- Help customers integrate specific products
- Run migration analyses from competitors (Amplitude, Sentry, etc.)
- Diagnose common issues
- Generate tracking plans based on customer needs

## The wizard and how it helps customers

The [AI wizard](/handbook/docs-and-wizard/developing-the-wizard) is a one-line `npx` command that runs an agent to integrate PostHog:

```bash
npx -y @posthog/wizard@latest
```

Here's what it does automatically:
- Installs the right SDKs for their stack
- Scans their codebase to understand their product
- Creates 10-15 custom events based on product flows it identifies
- Writes both client-side and server-side code for full-stack implementations
- Creates an insight and dashboard in PostHog

This dramatically reduces manual integration work — what might take 3-5 hours happens in minutes. And it produces customized code tailored to each customer's setup.
Comment on lines +59 to +74
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This transition is a bit abrupt. I think we need a brief sentence or two that explains how the wizard uses the skills we produce at PostHog! It's a great example of agentic software that runs on our docs. We can just write things down and the wizard can execute skill as software. It's like magic!


### Products supported today

- Product analytics
- Web analytics
- Session replay
- Error tracking

Coming soon: feature flags, experiments, LLM analytics, and logs.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think LLMA and Logs support is already out. @daniloc Is it a separate skill rn or does it happen in the main loop?


## How this helps you help customers

### Close the gap in customer conversations

The wizard and skills architecture lets you close the gap between customer-facing hypotheticals and technical diagnostics without needing engineering present. If a customer asks "how would I track X?", you can point them to the wizard or a specific skill.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The wizard and skills architecture lets you close the gap between customer-facing hypotheticals and technical diagnostics without needing engineering present. If a customer asks "how would I track X?", you can point them to the wizard or a specific skill.
The Wizard and skills architecture lets you close the gap between customer-facing hypotheticals and technical diagnostics without needing engineering present. If a customer asks "how would I track X?", you can point them to the wizard or a specific skill.

;)


### Portable diagnostics

If customers are hesitant to run an agent on their codebase, they can receive the open-source skills package directly. This gives them 80-95% of the wizard's functionality to run locally with their own tools.

### Better onboarding
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose something like:

  • Run the Wizard first
  • Review what ever it did together with the customer
  • Come up with a plan + tweaks.

I think the best value here is to get past that blank page. It's much easier to iterate!


For new customers, the wizard provides an excellent launchpad — 10-15 best-practice events that help them overcome the initial difficulty of deciding what to track.

## Getting started

1. **Identify something you repeat**: What do you explain to customers often?
2. **Write it down**: Create a handbook page or add to an existing one
3. **Make it specific**: Include actual steps, code, or configurations
4. **Let the docs team know**: Share in Slack that you've added something that might make a good skill

The written-down knowledge also enables automation beyond the wizard — like having agents gather customer dossiers based on your specifications or analyze competitor implementations before a call.

Your knowledge is valuable. Write it down, and it becomes executable.
4 changes: 4 additions & 0 deletions src/navs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,10 @@ export const handbookSidebar = [
name: 'Metabase account analysis',
url: '/handbook/onboarding/metabase-account-analysis',
},
{
name: 'Contributing to docs',
url: '/handbook/growth/sales/contributing-to-docs',
},
],
},
{
Expand Down
Loading