managing-llm-prompts

managing-llm-prompts is a skill for Claude Code, Codex from PostHog/skills. It costs 128 tokens per session (1,963 once invoked), scanned A, a copy of managing-llm-prompts, MIT.

A workflow for storing and managing prompts in PostHog instead of leaving them fixed in application code. A prompt is the text sent to an AI model, and PostHog can keep released versions that the application fetches while running.

In plain words
What is it for?
Use it to find hardcoded prompts, create or edit PostHog prompt versions, label releases such as production, and connect the application to fetch them at runtime.
Why use it?
It lets teams change, release, or roll back prompt text without changing and deploying the application. Creating a prompt alone does not affect the application; the code must fetch it.

Skill for Claude CodeCodex

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

Good fit Use it to find hardcoded prompts, create or edit PostHog prompt versions, label releases such as production, and connect the application to fetch them at runtime.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/skills/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/skills --skill managing-llm-prompts
Clone the repo
git clone --depth 1 https://github.com/PostHog/skills

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/skills/managing-llm-prompts/github.svg)](https://agentmods.dev/skills/posthog/skills/managing-llm-prompts)
Your own site
<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.

agentmods 80×15 button for managing-llm-prompts

Your own site · 80×15
<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>
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,963 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 100% copy Near-identical to another mod 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.01963
Opus 5.5 $0.00051 $0.00785
Sonnet 5.5 $0.00026 $0.00393
Haiku 4.5 $0.00013 $0.00196

Measured 19d ago against content hash 8c1350388c94, 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 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.

Origin

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.

skills/omnibus/managing-llm-prompts/SKILL.md · 152 lines

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 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 · 152 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. 19d 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/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.

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/skillsSkill81todayMITA128Claude 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