preflight

preflight is a skill for Claude Code from Rune-kit/rune. It costs 46 tokens per session (7,215 once invoked), scanned A, original, MIT.

A pre-commit quality check for code that looks finished but may still contain logic errors, missing error handling, edge-case failures, or incomplete work. It checks more than formatting and basic lint rules.

In plain words
What is it for?
Use it before a commit or after applying a fix to inspect data flow, asynchronous code, error handling, regression risks, validation, and completeness. It can also run the test suite as part of the check.
Why use it?
Code can compile and pass linting while still breaking real behavior or causing regressions. Running this check before committing helps catch those problems earlier.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the rune plugin — 66 skills, 1 command, 66 agents, 6 hooks shipped together

Good fit Use it before a commit or after applying a fix to inspect data flow, asynchronous code, error handling, regression risks, validation, and completeness. It can also run the test suite as part of the check.

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

Made for: Claude Code.

Or install rune, the plugin that ships this one along with the rest of its 66 skills, 1 command, 66 agents, 6 hooks.

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 preflight

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rune-kit/rune/preflight"><img src="https://agentmods.dev/badge/skills/rune-kit/rune/preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,215 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.00046 $0.07215
Opus 5.5 $0.00018 $0.02886
Sonnet 5.5 $0.00009 $0.01443
Haiku 4.5 $0.00005 $0.00722

Measured 2d ago against content hash 09171f4fab43, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

skills/preflight/SKILL.md · 463 lines

How it starts

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

preflight

Purpose

Pre-commit quality gate that catches "almost right" code — the kind that compiles and passes linting but has logic errors, missing error handling, or incomplete implementations. Goes beyond static analysis to check data flow, edge cases, async correctness, and regression impact. The last defense before code enters the repository.

Triggers

  • Called automatically by cook before commit phase
  • Called by fix after applying fixes (verify fix quality)
  • /rune preflight — manual quality check
  • Auto-trigger: when staged changes exceed 100 LOC

Calls (outbound)

  • scout (L2): find code affected by changes (dependency tracing)
  • sentinel (L2): security sub-check on changed files
  • hallucination-guard (L3): verify imports and API references exist
  • test (L2): run test suite as pre-commit check

Called By (inbound)

  • cook (L1): before commit phase — mandatory gate

Check Categories

LOGIC       — data flow errors, edge case misses, async bugs
ERROR       — missing try/catch, bare catches, unhelpful error messages
REGRESSION  — untested impact zones, breaking changes to public API
COMPLETE    — missing validation, missing loading states, missing tests
SECURITY    — delegated to sentinel
IMPORTS     — delegated to hallucination-guard

Executable Steps

Stage A — Spec Compliance (Plan vs Diff)

Before checking code quality, verify the code matches what was planned.

Use Bash to get the diff: git diff --cached (staged) or git diff HEAD (all changes). Use Read to load the approved plan from the calling skill (cook passes plan context).

Check each plan phase against the diff:

Plan says... Diff shows... Verdict
"Add function X to file Y" Function X exists in file Y PASS
"Add function X to file Y" Function X missing BLOCK — incomplete implementation
"Modify function Z" Function Z untouched BLOCK — planned change not applied
Nothing about file W File W modified WARN — out-of-scope change (scope creep)

Read the full file on GitHub · 463 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. 2d ago Changed 09171f4fab43
  2. 3d ago Changed 94c698ca1524
  3. 8d ago First seen · 463 lines · 46 tokens per session scan A 5d70e057fc7f

Subscribe to this mod's changes

preflight is a skill published in the GitHub repository Rune-kit/rune (96 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 7,215 once invoked, about $0.0002 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-22.

Related

preflight compared with skills from other repositories

preflight next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
preflightRune-kit/runeSkill96yesterdayMITA46Claude Code
criticism-self-criticismHughYau/qiushi-skillSkill4.0k2d agoMITA197Claude Code
fix-pr-review-looprichkuo/rk-skillsSkill50todayMITA90Claude Code
validate-issuerichkuo/rk-skillsSkill50todayMITA55Claude Code
fable-validate-looprichkuo/rk-skillsSkill50todayMITA102Claude Code
refactorsmallnest/goal-workflowSkill3032mo agoMITA71Claude Code
walkthroughsmallnest/goal-workflowSkill3032mo agoMITA131Claude Code