writing-skills

writing-skills is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 68 tokens per session (1,876 once invoked), scanned A, original, MIT.

A guide for creating PostHog agent skills: written instructions that teach agents how to use tools to complete a specific job.

In plain words
What is it for?
Use it when adding or updating skills in a PostHog product, including local linting and build checks.
Why use it?
It gives developers a repeatable way to create, check, build, test, and publish these skills.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when adding or updating skills in a PostHog product, including local linting and build checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/writing-skills
Install

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.

Any agent
npx skills add PostHog/posthog-foss --skill writing-skills
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Claude Code, Codex.

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

agentmods badge for writing-skills

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/writing-skills/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/writing-skills)
Your own site
<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.

agentmods 80×15 button for writing-skills

Your own site · 80×15
<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>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,876 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
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.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured today against content hash da389de400c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.agents/skills/writing-skills/SKILL.md · 140 lines

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

Read the full file on GitHub · 140 lines

Changes

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.

  1. today Changed · +2 lines da389de400c2
  2. 3d ago Changed · +20 lines ea1a9acffafd
  3. 1mo ago Changed · +6 lines 733e2cc01883
  4. 2mo ago Changed a08f3298e59b
  5. 2mo ago Changed · +10 lines · +6 tokens per session 3e7d11cdd8e3
  6. 3mo ago First seen · 102 lines · 62 tokens per session scan A 103840a7af10

Subscribe to this mod's changes

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.

Related

writing-skills compared with skills from other repositories

writing-skills next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
writing-skillsPostHog/posthog-fossSkill736todayMITA68Claude Code, Codex
hr-onboardingnexu-io/open-designSkill111ktodayApache-2.0A62Claude Code, Codex
deeptutor-cliHKUDS/DeepTutorSkill65ktodayApache-2.0A42Claude Code
book-mirrorgarrytan/gbrainSkill34ktodayMITA139Claude Code
lean-formalizewanshuiyin/Auto-claude-code-research-in-sleepSkill20k2d agoMITA81Claude Code
deck-course-modulenexu-io/html-anythingSkill17k5d agoApache-2.0A25Claude Code, Codex
eli5companion-inc/feynmanSkill10k5d agoMITA63Claude Code, Codex