Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add PostHog/posthog-foss --skill writing-skillsgit clone --depth 1 https://github.com/PostHog/posthog-fossWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/posthog/posthog-foss/writing-skills)<a href="https://agentmods.dev/skills/posthog/posthog-foss/writing-skills"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/writing-skills/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/posthog/posthog-foss/writing-skills"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/writing-skills.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Agent Snooping · line 96 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00068 | $0.01876 |
| Opus 5.5 | $0.00027 | $0.00750 |
| Sonnet 5.5 | $0.00014 | $0.00375 |
| Haiku 4.5 | $0.00007 | $0.00188 |
Grade A, and why
writing-skills scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Writing skills for PostHog agents
Read the full guide at docs/published/handbook/engineering/ai/writing-skills.md.
Choose a location
- Use
products/<product>/skills/for work through PostHog tools, APIs, or customer code. These skills are published. - Use
.agents/skills/for work that requires a checkout of the PostHog repository. These skills stay in the repository. - A skill that only PostHog staff can use still goes in
products/<product>/skills/when it needs no checkout. Mark itaudience: internal, as the next section describes. - For mixed skills, keep customer diagnosis published and move PostHog development steps into an existing internal skill or reference.
- Published workflows must not depend on internal skill files.
hogli lint:skills checks both locations. The scaffold, build, and sync commands below apply to published product skills.
Say who the skill is for
Every skill under products/*/skills/ states its audience in its frontmatter. hogli lint:skills fails without one.
metadata:
audience: customer
customer: a customer's agent can follow the skill with only what a customer has: no staff access, no PostHog checkout, and no tool or product that customers cannot use.scout: the instructions that a scheduled scout run follows.internal: any other PostHog job, or staff.
The MCP learn command serves customer skills. It serves no scout skill, because a scout run reads its skill through skill-get. Two optional fields under metadata limit who gets a served skill:
feature_flag: <flag>: only callers with that flag. Set it when the product's MCP tools need the flag.consumers: slack: only the PostHog-run agents you name (slack,posthog_ai), separated by commas.
To rename a skill, keep its old name under metadata.aliases (names separated by commas), so clients that ask for the old name still get it. See Aliases.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +2 lines da389de400c2
- 3d ago Changed · +20 lines ea1a9acffafd
- 1mo ago Changed · +6 lines 733e2cc01883
- 2mo ago Changed a08f3298e59b
- 2mo ago Changed · +10 lines · +6 tokens per session 3e7d11cdd8e3
- 3mo ago First seen · 102 lines · 62 tokens per session scan A 103840a7af10
writing-skills is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 1,876 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
writing-skills compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| writing-skillsPostHog/posthog-foss | Skill | 736 | today | MIT | A | 68 | Claude Code, Codex |
| hr-onboardingnexu-io/open-design | Skill | 111k | today | Apache-2.0 | A | 62 | Claude Code, Codex |
| deeptutor-cliHKUDS/DeepTutor | Skill | 65k | today | Apache-2.0 | A | 42 | Claude Code |
| book-mirrorgarrytan/gbrain | Skill | 34k | today | MIT | A | 139 | Claude Code |
| lean-formalizewanshuiyin/Auto-claude-code-research-in-sleep | Skill | 20k | 2d ago | MIT | A | 81 | Claude Code |
| deck-course-modulenexu-io/html-anything | Skill | 17k | 5d ago | Apache-2.0 | A | 25 | Claude Code, Codex |
| eli5companion-inc/feynman | Skill | 10k | 5d ago | MIT | A | 63 | Claude Code, Codex |