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/posthog-foss --skill gating-production-deploysgit clone --depth 1 https://github.com/PostHog/posthog-fossWrote 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/posthog-foss/gating-production-deploys)<a href="https://agentmods.dev/skills/posthog/posthog-foss/gating-production-deploys"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/gating-production-deploys/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/posthog-foss/gating-production-deploys"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/gating-production-deploys.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00127 | $0.01150 |
| Opus 5.5 | $0.00051 | $0.00460 |
| Sonnet 5.5 | $0.00025 | $0.00230 |
| Haiku 4.5 | $0.00013 | $0.00115 |
Grade A, and why
gating-production-deploys 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Gating production builds and deploys
Container-image pushes and Charts deploy dispatches run from one canonical deploy
repo, selected by the CD_DEPLOY_ENABLED variable. Gate every such step or it
publishes/deploys from the wrong place.
Gate these when they run on push-to-master / schedule / workflow_dispatch:
- a prod-tag container image push, and
- a
commit_state_updatedispatch toPostHog/charts(plus its deployer-token step).
Don't gate:
- Release/distribution workflows — GitHub release, npm, crate, Homebrew (e.g.
build-phrocs.yml,release-cli.yml). They publish from public; leave them. pull_requestvalidation builds (gating them breaks contributor CI).- change-detection / setup jobs (use the org check only, not the variable).
The test is "pushes a prod image or triggers a deploy" — not "builds on master".
The gate
if: github.repository_owner == 'PostHog' && vars.CD_DEPLOY_ENABLED == 'true'
Use this instead of hardcoding github.repository == 'PostHog/posthog'.
Patterns
# whole job is the deploy/push (no PR builds) — gate the job:
if: github.repository_owner == 'PostHog' && vars.CD_DEPLOY_ENABLED == 'true'
# deploy job/step already keyed to master — add the gate:
if: github.repository_owner == 'PostHog' && vars.CD_DEPLOY_ENABLED == 'true' && github.ref == 'refs/heads/master'
# build job that also serves PRs — gate only the master arm of its `if`:
(github.event_name == 'push' && github.ref == 'refs/heads/master' && needs.changes.outputs.files == 'true'
&& github.repository_owner == 'PostHog' && vars.CD_DEPLOY_ENABLED == 'true')
# push step, master-only:
push: ${{ github.ref == 'refs/heads/master' && vars.CD_DEPLOY_ENABLED == 'true' }}
# push step, `push: true` (also pushes on PR for validation):
push: ${{ github.event_name == 'pull_request' || vars.CD_DEPLOY_ENABLED == 'true' }}
# reusable that pushes — add a `push` boolean input (default true), pass from caller:
# with: { push: ${{ github.event_name == 'pull_request' || vars.CD_DEPLOY_ENABLED == 'true' }} }
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2d ago Changed · +2 lines 239071332628
- 9d ago Changed 38be82cef064
- 23d ago Changed · +2 lines 788520aeb670
- 1mo ago Changed · +6 lines fc3ac2891367
- 1mo ago Changed · +21 lines · +21 tokens per session 8b69a3182e83
- 3mo ago First seen · 69 lines · 106 tokens per session scan A eebe6530f3ea
gating-production-deploys is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 127 tokens to every session and 1,150 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-08-30.
gating-production-deploys compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| gating-production-deploysPostHog/posthog-foss | Skill | 736 | today | MIT | A | 127 | Claude Code, Codex |
| chinese-git-workflowjnMetaCode/superpowers-zh | Skill | 8.7k | 3d ago | MIT | A | 69 | Claude Code |
| deployment-engineerrmyndharis/antigravity-skills | Skill | 2.2k | 2d ago | MIT | A | 73 | Claude Code, Codex |
| webhook-managementhoangsonww/Claude-Code-Agent-Monitor | Skill | 1.2k | 4d ago | MIT | A | 56 | Claude Code, Codex |
| monorepo-managementwshobson/agents | Skill | 43k | yesterday | MIT | C | 54 | Claude Code |
| gha-security-reviewmarcusquinn/aidevops | Skill | 481 | today | MIT | A | 76 | Claude Code |
| update-github-workflowstarlepp/symfony-flex-backend | Skill | 286 | today | MIT | A | 41 | Claude Code, Codex |