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/skills --skill managing-llm-promptsgit clone --depth 1 https://github.com/PostHog/skillsWrote 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/skills/managing-llm-prompts)<a href="https://agentmods.dev/skills/posthog/skills/managing-llm-prompts"><img src="https://agentmods.dev/badge/skills/posthog/skills/managing-llm-prompts/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/skills/managing-llm-prompts"><img src="https://agentmods.dev/badge/skills/posthog/skills/managing-llm-prompts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00128 | $0.01963 |
| Opus 5.5 | $0.00051 | $0.00785 |
| Sonnet 5.5 | $0.00026 | $0.00393 |
| Haiku 4.5 | $0.00013 | $0.00196 |
Grade A, and why
managing-llm-prompts 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 19d 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.
This is a copy
100% identical to managing-llm-prompts — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Managing LLM prompts
Prompt management stores prompts in PostHog as immutable versions. The application fetches a prompt at runtime, so a prompt change needs no deploy.
A prompt that exists in PostHog but that no code fetches changes nothing for the user. The job is complete only when the application fetches the prompt, or when the user has said they will connect it themselves. If you only create the prompt, say plainly that the application does not use it yet and offer to connect it.
Read the prompt management docs for SDK options, caching behavior, and limits. This skill covers the order of work and the checks.
Start from what the user has
- Prompts hardcoded in the code. Find the prompt strings the application sends to a model. Move the ones the user names. If the user names none, list what you found and ask which to move.
- A new prompt. Create it, then connect the code that will use it.
- A prompt that already exists in PostHog. Go to Change an existing prompt.
Call posthog:llma-prompt-list first in every case.
A prompt with the same purpose may already exist, and names must be unique.
Create the prompt
Use posthog:llma-prompt-create.
- A name allows letters, numbers, hyphens, and underscores. The name
newis reserved. A name cannot change after creation, and the code refers to the prompt by it. Choose a name that describes the job, for examplesupport-reply-system. - Write runtime values as
{{variable}}. When you move a prompt out of code, convert each f-string field or template literal placeholder to this form and keep the variable names.compileonly substitutes values. A format spec such as{amount:.2f}or an expression such as${items.length}stays in the application code, which passes the result as a plain variable. - Put model settings (model, temperature, tool definitions) in
configwhen the user wants to change them without a deploy.configis versioned with the prompt. - Copy the prompt text exactly when you move it. Do not improve the wording in the same step. The first version must behave the same as the hardcoded one.
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.
- 19d ago First seen · 152 lines · 128 tokens per session scan A 8c1350388c94
managing-llm-prompts is a skill published in the GitHub repository PostHog/skills (81 stars, last pushed today), licensed MIT. It adds 128 tokens to every session and 1,963 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to managing-llm-prompts, differing in 0 lines, and is treated as a copy.
managing-llm-prompts compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| managing-llm-promptsPostHog/skills | Skill | 81 | today | MIT | A | 128 | Claude Code, Codex |
| llm-app-patternsdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 54 | Claude Code, Codex |
| enhance-promptgoogle-labs-code/stitch-skills | Skill | 15k | today | Apache-2.0 | A | 41 | Claude Code |
| prompt-engineerJeffallan/claude-skills | Skill | 13k | today | MIT | A | 93 | Claude Code |
| prompt-optimizationlangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 105 | Claude Code, Codex |
| prompt-library-for-startupsaws/agent-toolkit-for-aws | Skill | 3.6k | today | Apache-2.0 | A | 244 | Claude Code |
| hve-buildermicrosoft/hve-core | Skill | 1.7k | today | MIT | A | 54 | Claude Code |