loop-preflight

loop-preflight is a skill for Claude Code from thaitype/chief. It costs 104 tokens per session (748 once invoked), scanned A, original, MIT.

A pre-start check that runs the tests, gate scripts, and other verification commands a planned work loop already depends on.

In plain words
What is it for?
It is for verifying existing feedback mechanisms before starting an automated or unattended development loop.
Why use it?
A plan can mention a check that has since been broken by another change. Running it before unattended work reveals that problem while it can still be fixed.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the chief-skills plugin — 15 skills shipped together

Good fit It is for verifying existing feedback mechanisms before starting an automated or unattended development loop.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thaitype/chief/loop-preflight
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 thaitype/chief --skill loop-preflight
Clone the repo
git clone --depth 1 https://github.com/thaitype/chief

Made for: Claude Code.

Or install chief-skills, the plugin that ships this one along with the rest of its 15 skills.

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 loop-preflight

README.md
[![agentmods](https://agentmods.dev/badge/skills/thaitype/chief/loop-preflight/github.svg)](https://agentmods.dev/skills/thaitype/chief/loop-preflight)
Your own site
<a href="https://agentmods.dev/skills/thaitype/chief/loop-preflight"><img src="https://agentmods.dev/badge/skills/thaitype/chief/loop-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.

agentmods 80×15 button for loop-preflight

Your own site · 80×15
<a href="https://agentmods.dev/skills/thaitype/chief/loop-preflight"><img src="https://agentmods.dev/badge/skills/thaitype/chief/loop-preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 748 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.00104 $0.00748
Opus 5.5 $0.00042 $0.00299
Sonnet 5.5 $0.00021 $0.00150
Haiku 4.5 $0.00010 $0.00075

Measured 1mo ago against content hash f14dcb7d21da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

loop-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 1mo 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.

skills/engineering/loop-preflight/SKILL.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Loop preflight

loop-readiness reviews a plan's feedback mechanisms statically — it can confirm a gate script is described in the plan, but by its own rule it never executes anything, so it can't confirm the gate still actually runs. This skill fills that gap: it runs the plan's existing feedback mechanisms for real, once, before the loop starts.

A gate can be described accurately in the plan and still be broken — an unrelated change landing between when the plan was written and when the loop actually starts can silently break something the plan assumes still works (e.g. a hardcoded path getting renamed elsewhere). Only actually running the check reveals that; a static read of the plan cannot.

This is a standalone check. Run it whenever a loop depends on pre-existing feedback, whether or not loop-readiness was run first — loop-readiness's own report should point here when it finds feedback the plan treats as already in place.

Step 1: Identify

From the plan (or a list the user gives directly), identify the concrete commands that are pre-existing verification the plan depends on — gate scripts, test suites, lint/type checks cited as feedback. This does not include the loop's actual work (deploy steps, migrations, code changes) — only the checks that trigger these to feedback about plan-driven work already have to keep passing.

List the identified commands back to the user before running anything. Don't assume; confirm the list is right and complete.

Step 2: Guardrails, then run

Before running each confirmed command:

  • Scope check — only run commands identified in Step 1 as pre-existing feedback. Never run anything else from the plan (a deploy step, a migration, a data write) even if it's nearby in the same file or the user's earlier go-ahead was general.
  • Production check — if a command's path, arguments, or target look production-related (e.g. references something named prod, or a shared/live system), stop and confirm with the user specifically before running that one — even if they already agreed to run the batch as a whole. A general "yes, run them" from Step 1 isn't informed consent for a specific command that turns out to touch something live.

Read the full file on GitHub · 61 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. 1mo ago First seen · 61 lines · 104 tokens per session scan A f14dcb7d21da

Subscribe to this mod's changes

loop-preflight is a skill published in the GitHub repository thaitype/chief (68 stars, last pushed 1mo ago), licensed MIT. It adds 104 tokens to every session and 748 once invoked, about $0.0004 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-14.

Related

loop-preflight compared with skills from other repositories

loop-preflight next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loop-preflightthaitype/chiefSkill681mo agoMITA104Claude Code
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79kyesterdayMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill100kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill314k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code