Skill 183 · Working With Skills
Subchapter 183.1
references/skill-patterns.mdMarkdown13 KBView on GitHub
A catalog of the shapes that shared skills in the PostHog skills store tend to take. Most useful skills are a variation on one of these. Pick the closest shape, copy its file layout and maintenance contract, and adapt it to the job.
A skill in the store is more than a prompt. It is a small, versioned, shared memory that any agent on any surface (a local coding agent, a cloud task, Slack, PostHog Desktop) can load by name, and that agents with write access can update. The patterns below lean on those three properties: , , and .
This is a living reference. Add a pattern when a new shape proves itself over many sessions.
| Pattern | Use it when… | Starting point |
|---|---|---|
| Project hub | an area of work runs over many sessions and you are tired of re-explaining where things stand. | project-template in the community store |
| Big-build hub | one large feature has a spec, a backlog, a PR stack, and reviewers who all need the same context. | a project hub plus a design doc and decision log |
| Ownership catalog | a team owns many PostHog objects (warehouse views, dashboards, alerts, scanners) and the context about them lives in heads. | an index body plus one reference per group |
| Learning runbook | the same class of problem gets debugged again and again, and each investigation teaches something. | rules-first body plus investigations/ |
| Personal queue / daily driver | one person wants a daily “what needs me next” view across the inbox, GitHub, or tickets. | my-inbox in the community store |
| Handover | work passes to a teammate (holiday, rotation, reorg) and they need both the facts and a way into them. | a message whose bullets are skill names |
| Thinking document | a plan or draft evolves over weeks with an agent’s help, and every revision matters. | a single-body skill with small edits |
| Skill that runs itself | a skill describes a job you do on a schedule, and the job could run without you. | authoring-scouts |
| House-style skill | a team maintains many skills and wants them to stay lean and consistent. | skills-best-practices in the community store |
| Bridge skill | an agent supports local skill files and you want a one-word shortcut into the store. | the bridge in the skills docs |
A hub for one area of work. An agent starts a session with “resume work”, reads where things stand, does the work in the repo or product, and writes back what changed. The skill is the memory, and the memory is readable: anyone can open the skill and see what the agents believe is true.
Typical layout:
SKILL.md # what the area is, the file map, the session loop
HANDOVER.md # one section per workstream; read first, overwrite last
CHANGELOG.md # one line per session, rolling window (e.g. 14 days)
open-prs.md # PRs in flight and their state
environment-notes.md # durable gotchas that stay true
issues/INDEX.md # numbered backlog index
issues/NN-<slug>.md # one file per tracked issue
ideas/NN-<slug>.md # one file per idea not yet committed toThe session loop the body describes:
HANDOVER.md and the backlog index.open-prs.md, add one changelog line, and overwrite your own handover section.The most important part of the body is a rule for where each fact goes. Without it, an agent writes durable detail into whichever file it was already editing, usually the changelog.
| Still true in 30 days? | Has an owner who refreshes it? | Goes in |
|---|---|---|
| Yes | Yes, a tracked work item | issues/NN or ideas/NN |
| Yes | No, durable reference | environment-notes.md or a references/ file |
| No, but in flight now | You, this session | your HANDOVER.md section |
| No, it just happened | Nobody | CHANGELOG.md, one line |
Pitfalls:
A project hub scaled up for one large feature with many moving parts. Every person or agent that touches the feature loads one skill and gets the full picture.
Files that earn their place in addition to the project hub layout:
design.md: the spec, trust boundaries, open questions, the options ruled out, and a dated decision log. The body tells agents to check the log before they reopen a question.TODO.md: the backlog, split by when each item can happen (now, after the current stack lands, blocked on a decision). PRs and review replies cite items by id.stack-plan.md: how a large branch splits into reviewable PRs, with per-PR checks.reviewer-brief.md: a one-page entry point you can hand to a reviewer as-is.local-testing.md: how to run the thing end to end, including the failure modes that produce silently wrong output.scripts/: helpers for repetitive mechanics, such as slicing or replaying stack layers.When a reviewer asks “why this way?”, the answer is a dated decision-log entry, not a person.
An index of PostHog objects a team owns, with the context that the objects themselves cannot hold: what each one is for, how it connects to the rest, and the gotchas that bite when you read it. Good subjects are warehouse views, dashboards, alerts, Replay Vision scanners, and endpoints.
Shape:
references/ holds one file per group (for example, one per view family).recipes/ holds queries that are known to work, so agents copy instead of re-deriving.The catalog also drives changes to the objects. Before an agent creates a new alert or view, it reads the catalog to check for an existing one, then adds the new object to the catalog as part of the same change. When something fires or breaks, the agent loads the catalog first to get the object’s purpose, baseline, and history.
Pair a catalog with a steward scout that checks the objects on a schedule and updates the skill when it fixes something.
See the maintainer / steward pattern in authoring-scouts.
A read-only diagnostic runbook that gets better every time it is used.
Shape:
investigations/. A dated write-up for each new class of issue.The maintenance contract is the part that makes it learn.
The body says: every time an investigation finds a new class of issue, write it up in investigations/ and extend the matching reference.
The next agent then starts from the last agent’s findings instead of from zero.
A skill that answers “what needs me next?” for one person, across the inbox, GitHub, tickets, or accounts. It renders one line per item with its state and a next action.
Shape:
scripts/ do the mechanical work: fetch from the APIs, rank, and render a table. Scripts give the same output every run, which prose instructions do not.working-set.md records only the items the person chose to own.A queue skill often pairs with a scout that runs it on a schedule and keeps one living report current, so the answer is ready before the person asks.
The community store has a generic starting point, my-inbox.
When work passes to someone else, write the handover as links to skills rather than as prose. Each bullet names a skill (the project hub, the runbook, the catalog) and says when to use it.
This works because the store is shared. The handover reaches the person and their agent at the same time. They do not need to paste context into their own agent: they say “use the skill in the PostHog MCP to help here”, and their agent gets the same context the author’s agent had.
A skill does not have to be instructions. A plan, a quarterly draft, or a research note that evolves over weeks with an agent’s help also fits well:
edits.Keep it as one body until it outgrows one screen, then split sections into references/.
Every Signals scout is a skill with a schedule. When a skill describes a job you do regularly (check a catalog, sweep a queue, audit a fleet), turning it into a scout is a small step. Some useful scouts maintain other skills: a steward that keeps a catalog current, or a reviewer that checks recently changed skills against the house style.
See authoring-scouts for the scout format, and working-with-scouts to delegate a watch without writing one.
A team that maintains many skills benefits from one skill that says how skills are written: the spec floor, the team’s patterns, a smell checklist, and a refactoring workflow. Tell agents to load it before they create or edit a skill. It should follow its own rules: a thin body and the substance in bundled files.
The community store has skills-best-practices as a starting point, and skills-spec, which is the Agent Skills specification as a skill.
If an agent supports local skill files, a tiny local skill can point at the skills-store skill so a short command (for example /phs) loads the store.
Keep the bridge thin, so updates to the store skill reach everyone without a local change.
The PostHog AI plugin already includes skills-store, so plugin users do not need a bridge.
Related skills footer costs one line. A copied paragraph drifts.edits and file_edits with a chained base_version, as the main skill body describes. A full-body rewrite for a small change can silently drop content.Most real skills combine two or three patterns. A big-build hub is a project hub with a design doc. A catalog is often paired with a runbook for the same objects, and both are often kept current by a steward scout. A personal queue becomes a scout once its output is worth having before you ask.
If no pattern fits, start with the smallest skill that holds the context you keep re-explaining. Add structure when you see the same kind of fact written in the wrong place twice.