wizard: Skill for Claude Code

.claude/skills/adding-skill-program/SKILL.md

adding-skill-program is a skill for Claude Code from PostHog/wizard. It costs 44 tokens per session (2,595 once invoked), scanned A, original, MIT.

A guide for adding a new type of task to the PostHog wizard, such as revenue analytics, auditing, or error tracking. Each task installs a context-mill skill and then runs an agent with the resulting context.

In plain words
What is it for?
Use it when creating a wizard program with its own command, steps, skill, prompt, success message, abort cases, or follow-up actions.
Why use it?
It keeps new task types within the wizard's shared flow and avoids adding separate branches for each one. Common tasks can use a standard factory, while unusual ones can customize parts of the run.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is PostHog/wizard's own configuration. It tells Claude Code how to work on wizard itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything wizard configures →

Reuse

Borrowing it

Nothing to install: this file belongs to PostHog/wizard. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/PostHog/wizard/main/.claude/skills/adding-skill-program/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/PostHog/wizard

Made for: Claude Code.

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 adding-skill-program

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/wizard/adding-skill-program/github.svg)](https://agentmods.dev/skills/posthog/wizard/adding-skill-program)
Your own site
<a href="https://agentmods.dev/skills/posthog/wizard/adding-skill-program"><img src="https://agentmods.dev/badge/skills/posthog/wizard/adding-skill-program/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 adding-skill-program

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/wizard/adding-skill-program"><img src="https://agentmods.dev/badge/skills/posthog/wizard/adding-skill-program.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,595 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 pass 7 Sept 2026
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.00044 $0.02595
Opus 5.5 $0.00018 $0.01038
Sonnet 5.5 $0.00009 $0.00519
Haiku 4.5 $0.00004 $0.00260

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

Security

Grade A, and why

adding-skill-program 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 14d ago.

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.

.claude/skills/adding-skill-program/SKILL.md · 189 lines

How it starts

The opening of the file, as written. The whole thing — 189 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Adding a Skill-Based Program

Read wizard-development for the shared design policy. Use Pi for new agent work and prefer an orchestrator flow. Linear runs are for very simple work and existing flows. The Anthropic SDK remains a supported legacy fallback, deprecated as the default for new work; the shared guide owns the fallback criteria and gateway model/effort/system-prompt contract.

These are contribution defaults. A program whose config sets no binding runs on DEFAULT_BINDING, Pi and linear.

Choose the contribution surface

  • Content-only capability: use the existing skill command machinery when it can express the workflow. Context-mill owns skill content and cliEntries. A new skill-backed child of an existing family ships through context-mill; inspect family dispatch. Unpromoted skills run through the skill command.
  • Native program: use a ProgramConfig when the wizard needs its own flow, screens, detection, composition, or other native behavior. Keep product instructions in context-mill.

Command names, program id, context-mill agentFlow, and skillId have different roles. Use the full product name for public commands. The config field is id.

Build a native orchestrator program

Use metrics as the current Pi/orchestrator example and read the runner architecture when changing execution behavior.

  1. Add the program folder src/programs/<id>/. Its index.ts is the only entry: it exports the ProgramConfig as config, and any detectors or keys the TUI and CLI need. No other file in the folder is named index.ts. Copy a sibling's tsconfig.json into the folder, unchanged, and add { "path": "<id>" } to references in src/programs/tsconfig.json. The folder is one project, its tests included, and pnpm typecheck (tsc -b) builds it. Without the reference, the registry's import fails with TS6307. Keep tests in <id>/__tests__; they reach other layers through their entries only. Shared program code goes in src/programs/shared/, detection/, warehouse-sources/, frameworks/ or oauth/, never in another program's folder, and has no index.ts. A program imports its own files and the shared program code by relative path, such as ../shared/skill-program. Set agentFlow when its context-mill flow differs from id; setting it explicitly also documents the content dependency. Keep a run definition so runProgram executes agent work.
  2. Supply the flow's seed and task prompts in context-mill, including the task dependencies and applicable skill variants. The orchestrator loads agentFlow ?? id, requires a seed prompt, and checks task-skill variants before running. run.skillId alone does not define this flow.
  3. Register the config: import it as import { config as <name> } from '@programs/<id>' in program-registry.ts and add it to PROGRAM_REGISTRY. Set the config's binding to Pi and the orchestrator. ProgramId is a string.
  4. For a standalone native command, create a command module in src/cli/commands with nativeCommandFactory and register it in runCli in src/cli/index.ts. A native family child uses the handlers in family dispatch. Program registration derives screen sequences and store lookup, not the top-level CLI .use() chain.
  5. Check the program's OAuth scopes against the tools it needs. Add oauthScopeAdditions to the config only when the base set is insufficient. Keep a program's own set in its folder, as replay-vision does; sets several programs share live in program-scopes.ts.

Read the full file on GitHub · 189 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. 14d ago Changed · +1 lines d4e7b308c0dc
  2. 1mo ago Changed · +45 lines 2f7028db18ba
  3. 1mo ago Changed 1f29b6157cfc
  4. 1mo ago Changed 16ee0e12460d
  5. 1mo ago Changed 40b08228d7c4
  6. 1mo ago Changed · +3 lines 60148c7a522e
  7. 1mo ago Changed · -20 lines · -29 tokens per session e6c2345f9df6
  8. 2mo ago First seen · 160 lines · 73 tokens per session scan A 88b8e7557520

Subscribe to this mod's changes

adding-skill-program is a skill published in the GitHub repository PostHog/wizard (201 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 2,595 once invoked, about $0.0002 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-08-30.

Related

adding-skill-program compared with skills from other repositories

adding-skill-program next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adding-skill-programPostHog/wizardSkill201yesterdayMITA44Claude Code
cep-wizardlinkpranay-ai/context-engineering-protocolSkill101mo agoApache-2.0A168Claude Code, Codex
suanfish-design-systemSuanFishXYY/suanfish-design-systemSkill84mo agononeA293Claude Code, Codex
analytics-productsickn33/agentic-awesome-skillsSkill49kyesterdayMITA35Claude Code
cudaq-guideNVIDIA/skillsSkill3.9kyesterdayApache-2.0A26Claude Code, Codex
cudaq-guideNVIDIA/cuda-quantumSkill1.2kyesterdayApache-2.0A26Claude Code, Codex
hr-onboardingnexu-io/html-anythingSkill9.4k24d agoApache-2.0A21Claude Code, Codex