managing-llm-prompts

managing-llm-prompts is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 128 tokens per session (1,970 once invoked), scanned A, original, MIT.

A workflow for managing prompts sent to language models through PostHog, a product analytics service with prompt version management. It moves prompts from application code into PostHog and connects the application to fetch them at runtime.

In plain words
What is it for?
It is for finding hardcoded prompts, creating or changing PostHog prompt versions, releasing them with labels such as production, and wiring runtime fetching into the application.
Why use it?
It lets prompt changes and version rollbacks happen without changing and deploying application code, while checking that the application actually uses the managed prompt.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for finding hardcoded prompts, creating or changing PostHog prompt versions, releasing them with labels such as production, and wiring runtime fetching into the application.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/managing-llm-prompts
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 managing-llm-prompts
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 managing-llm-prompts

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

agentmods 80×15 button for managing-llm-prompts

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/managing-llm-prompts"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/managing-llm-prompts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 128 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,970 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.
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.00128 $0.01970
Opus 5.5 $0.00051 $0.00788
Sonnet 5.5 $0.00026 $0.00394
Haiku 4.5 $0.00013 $0.00197

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

Security

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

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

products/ai_observability/skills/managing-llm-prompts/SKILL.md · 154 lines

How it starts

The opening of the file, as written. The whole thing — 154 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 new is reserved. A name cannot change after creation, and the code refers to the prompt by it. Choose a name that describes the job, for example support-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. compile only 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 config when the user wants to change them without a deploy. config is 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.

Read the full file on GitHub · 154 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 5628930b2f82
  2. 20d ago First seen · 152 lines · 128 tokens per session scan A 8c1350388c94

Subscribe to this mod's changes

managing-llm-prompts is a skill published in the GitHub repository PostHog/posthog-foss (734 stars, last pushed today), licensed MIT. It adds 128 tokens to every session and 1,970 once invoked, about $0.0005 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-11-11.

Related

managing-llm-prompts compared with skills from other repositories

managing-llm-prompts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
managing-llm-promptsPostHog/posthog-fossSkill734todayMITA128Claude Code, Codex
llm-app-patternsdavila7/claude-code-templatesSkill35ktodayMITA54Claude Code, Codex
enhance-promptgoogle-labs-code/stitch-skillsSkill15ktodayApache-2.0A41Claude Code
prompt-engineerJeffallan/claude-skillsSkill13ktodayMITA93Claude Code
prompt-optimizationlangwatch/langwatchSkill5.1ktodayApache-2.0A105Claude Code, Codex
prompt-library-for-startupsaws/agent-toolkit-for-awsSkill3.6ktodayApache-2.0A244Claude Code
hve-buildermicrosoft/hve-coreSkill1.7ktodayMITA54Claude Code