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 running-ci-preflightgit 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/running-ci-preflight)<a href="https://agentmods.dev/skills/posthog/posthog-foss/running-ci-preflight"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/running-ci-preflight/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/running-ci-preflight"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/running-ci-preflight.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.00119 | $0.01653 |
| Opus 5.5 | $0.00048 | $0.00661 |
| Sonnet 5.5 | $0.00024 | $0.00331 |
| Haiku 4.5 | $0.00012 | $0.00165 |
Grade A, and why
running-ci-preflight 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.
How it starts
The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Running ci:preflight
hogli ci:preflight scopes a curated set of checks to the files your branch touched — each mapped to a
CI failure class that has taken master down — plus an always-on branch-freshness check. It is the
pre-push counterpart to hogli ci:insights (what is already broken on master).
The pre-push hook runs ci:preflight --strict automatically and blocks the push on failed checks.
Never bypass it with --no-verify — fix what it reports instead.
The loop (when the hook blocks, or before reporting done)
hogli ci:preflight --fix
- Run with
--fix— it formats, lints, and auto-fixes what is safe. - Read each line:
✓ pass,✗ fail,⚠ warning(non-blocking finding),→ advisory(do it yourself),· skipped(capability absent). - Resolve every
✗ fail— these are what--fixcould not (real lint error, broken lockfile, migration conflict). These block the push. - Act on every
→ advisory— e.g.openapiadvisory → runhogli build:openapiand commit the drift;stalenessadvisory →git merge origin/master. Advisories never block, but ignoring them ships the failure to CI. Resolve them before pushing, including drift you didn't introduce — you own the branch state you push. - Re-run until clean, then push.
Notes
- Strict = failures only.
--strict(what the hook runs) exits non-zero only on✗ fail— advisories are unverifiable-locally classes, so they warn without blocking. A clean exit means "nothing left to fix", not "CI will pass" — CI stays the authoritative gate. Non-blocking is a mechanism limit, not permission to skip. type-checkis a nudge, not a run. Only a repo-wide mypy run matches CI (mypy follows imports, so a changed-file subset misses reverse-dependency breakage), and that costs minutes cold — too much to tax every push with. So preflight names the command instead of running it: judge whether your change is type-risky and run it yourself. CI blocks on the same command, so a type error you skip here comes back as a full re-run.complexitywarns only. Cyclomatic complexity above 10 in a changed file shows as⚠ warningand never blocks; CI annotates the same warning and posts it to the CI report comment. Simplify the function when you next touch it rather than gaming the number.semgrep-devexadvises on findings your branch introduced. It scans the changed files and their merge-base copies within one 15-second budget. Both scans use the cached versionSEMGREP_IMAGEpins in.github/workflows/ci-security.yaml, with network access disabled. A missing tool skips the scan and starts its download in the background, so the next run scans. A cloud task or CI job does not start that download: runhogli ci:preflight --prepare-semgrepthere with network access. An incomplete scan skips with a reason. A finding already on master is not reported. CI blocks on a new one, so fix it before you push. The advisory prints the command that shows the rule.snapshot-baselinesadvises whenfrontend/snapshots.ymlloses entries for stories your branch did not change. This is what a bad merge-conflict resolution looks like. When the stories still render, the merge queue fails the batch that carries the file. Run thegit diffthe check prints and restore the entries you did not mean to remove. The entries of a story you deleted, renamed or retitled in the same branch pass.merge-queue-lanewarns only, and the pre-push hook skips it. It fires when a few cross-cutting files (a CI workflow, a lane script) make the whole PR claim every merge queue lane, which makes the queue merge in series behind it. Move those files to their own PR when the other changes do not need them.- Staleness is risk-based. It fires when merging master now would actually break something — textual merge conflicts (computed via
git merge-tree, working tree untouched), migrations added on both sides, generated-file inputs changed on both sides, or CI workflows changed on master — plus a behind/age backstop, aggressive by default (5 commits / 2 days; env-tunable viaHOGLI_PREFLIGHT_STALE_COMMITS/HOGLI_PREFLIGHT_STALE_DAYS) so we over-warn to start and tune down from telemetry. Merge master in when it fires. Advisory only, never auto-merged. · skipped (needs …)is expected on a bare checkout or sandbox.needs stack/needs clickhousewant a running dev stack (hogli start),needs nodewantspnpm install,needs desktop-nodewantspnpm --dir products/desktop installandneeds agent-nodewantspnpm --dir packages/agent install(both nested workspaces are excluded from the root install and have their own lockfiles), andneeds python-envwantsuv sync, so the synced project environment is thepythonon PATH. Satisfy what you can, or let CI cover the rest. No hooks in your environment (nonode_modules)? Run the loop yourself before pushing.migrationsskips under flox by default. Flox setsPOSTHOG_SKIP_MIGRATION_CHECKS, which turnshogli migrations:checkinto a no-op, so preflight reports it as skipped rather than passed. When the check runs, it also fails on migrations your local database lacks. The detail then names them, andhogli migrations:upapplies them: that is local state, not a migration conflict.- Untracked files are out of scope. Without
--strict, preflight checks the branch diff plus uncommitted edits to tracked files, and says how many untracked files it left out.git adda new file that belongs to the change, or pass--include-untracked, so that--fixlints and formats it too. - Flags.
--against <ref>diffs against an explicit base;--include-untrackedadds files git does not track;--jsonemits a machine-readable summary. - Kill switch.
HOGLI_PREFLIGHT_DISABLED=1makes the command (and the hook) a no-op with exit 0. It is a rollout/emergency lever — respect it; never unset it to force a run.
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.
- 14d ago Changed · +2 lines 92fa9b99abe7
- 1mo ago Changed 1c91dc386d16
- 1mo ago Changed · +3 lines f1c0f6eec413
- 2mo ago Changed 90d0bc374315
- 3mo ago First seen · 47 lines · 119 tokens per session scan A 9bd6c1611ead
running-ci-preflight is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 119 tokens to every session and 1,653 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-09-03.
running-ci-preflight compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| running-ci-preflightPostHog/posthog-foss | Skill | 736 | today | MIT | A | 119 | Claude Code, Codex |
| merge-batchdiegosouzapw/OmniRoute | Skill | 91k | 5d ago | MIT | A | 46 | Claude Code |
| prowler-commitprowler-cloud/prowler | Skill | 15k | today | Apache-2.0 | A | 44 | Claude Code, Codex |
| gh-auth-isolationgithub/gh-aw | Skill | 5.8k | today | MIT | A | 20 | Claude Code, Codex |
| github-skillzeenie-ai/OpenCompany | Skill | 1.1k | 2d ago | MIT | A | 51 | Claude Code |
| comet-githubrpamis/comet | Skill | 3.3k | today | MIT | A | 72 | Claude Code, Codex |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | today | MIT | A | 51 | Claude Code, Codex |