pre-flight-check

pre-flight-check is a skill for Claude Code from mirekondro/The-Pre-Flight-Check. It costs 45 tokens per session (1,468 once invoked), scanned A, original, MIT.

A pre-release quality check that runs type checking, linting, tests, and a security audit in order. Type checking catches incorrect data types, linting checks code style and common mistakes, and tests check expected behaviour.

In plain words
What is it for?
Use it after a bug fix and before declaring code ready. It detects whether the project is Node.js or Python and stops at the first failed check.
Why use it?
It finds common problems before you call a coding task complete, commit changes, push them, or open a pull request.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths.

Part of the pre-flight-check plugin — 1 skill shipped together

Good fit Use it after a bug fix and before declaring code ready. It detects whether the project is Node.js or Python and stops at the first failed check.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mirekondro/the-pre-flight-check/pre-flight-check
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 mirekondro/The-Pre-Flight-Check --skill pre-flight-check
Clone the repo
git clone --depth 1 https://github.com/mirekondro/The-Pre-Flight-Check

Made for: Claude Code.

Or install pre-flight-check, the plugin that ships this one along with the rest of its 1 skill.

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 pre-flight-check

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mirekondro/the-pre-flight-check/pre-flight-check"><img src="https://agentmods.dev/badge/skills/mirekondro/the-pre-flight-check/pre-flight-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,468 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.00045 $0.01468
Opus 5 $0.00023 $0.00734
Sonnet 5 $0.00009 $0.00294
Haiku 4.5 $0.00005 $0.00147

Measured 11d ago against content hash 0051d66961fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

pre-flight-check 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/run-pipeline.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/pre-flight-check/SKILL.md · 109 lines

How it starts

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

Pre-Flight Check

A mandatory, fail-fast quality gate. Runs Typecheck → Lint → Test → Security Audit sequentially via scripts/run-pipeline.py. The script auto-detects the project runtime (Node.js or Python) and exits with code 1 on the first failing stage, emitting a structured Markdown block you must parse.

When to invoke

Run this skill without being asked at every one of these checkpoints:

  • Before announcing a task is "done" — any task involving code edits.
  • Before staging, committing, or pushing any change.
  • After applying a bug fix — to confirm the fix holds across all gates, not just the failing test.
  • Before opening a PR or marking work ready for review.

If you are about to say "done", "fixed", "complete", "ready to commit", or similar — stop and run this skill first.

How to run

Execute from the repository root:

python .claude/skills/pre-flight-check/scripts/run-pipeline.py

The script writes a header per stage as it progresses, then emits one of:

  • ### ✅ PRE-FLIGHT PASSED — exit 0. Safe to proceed.
  • ### ❌ PRE-FLIGHT FAILURE: [STAGE_NAME] — exit 1. Stop and fix.
  • ### ⚠️ PRE-FLIGHT SKIPPED: … — exit 1. Runtime undetected or no stages resolved. Resolve tooling before proceeding.

Strict Fail-Fast Protocol

If the script outputs ### ❌ PRE-FLIGHT FAILURE: [STAGE_NAME], you are FORBIDDEN from:

  • Declaring the task done.
  • Committing, staging, or pushing any code.
  • Switching to a different task, file, or feature.
  • Suppressing the error (no // @ts-ignore, no # noqa, no eslint-disable, no pytest.skip, no removing the failing test, no widening ignore globs).
  • Re-running the pipeline hoping for a flake. Failures are real until proven otherwise by a fix in source.

Your only permitted next action is to repair the specific error reported by the failing stage and re-run the pipeline. Continue this loop until you see ### ✅ PRE-FLIGHT PASSED.

Stage-specific repair rules

Read the full file on GitHub · 109 lines

Files

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.

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. 11d ago First seen · 109 lines · 45 tokens per session scan A 0051d66961fa

Subscribe to this mod's changes

pre-flight-check is a skill published in the GitHub repository mirekondro/The-Pre-Flight-Check (2 stars, last pushed 3mo ago), licensed MIT. It adds 45 tokens to every session and 1,468 once invoked, about $0.0002 per session on Opus 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-31.

Related

Other skills, from other repositories

e2e-testing

Guide for running end-to-end tests of the Qwen Code CLI, including headless mode, MCP server testing, and API traffic inspection. Use this skill whenever you need to verify CLI behavior with real model calls, reproduce user-reported bugs end-to-end, test MCP tool integrations, or inspect raw API request/response…

QwenLM/qwen-code · 94 tokens

terminal-capture

Automates terminal UI screenshot testing for CLI commands. Applies when reviewing PRs that affect CLI output, testing slash commands (/about, /context, /auth, /export), generating visual documentation, or when 'terminal screenshot', 'CLI test', 'visual test', or 'terminal-capture' is mentioned.

QwenLM/qwen-code · 66 tokens

tmux-real-user-testing

A real-user test workflow for Qwen Code's terminal interface, using tmux to drive the program and capture readable screen snapshots. tmux is a tool for running and observing terminal sessions.

QwenLM/qwen-code · 98 tokens

agent-reproduce-align

Use after a Codex or Claude Code feature has been implemented in Qwen Code to run the selected reference agent and Qwen Code under the same scenario, capture HTTP and terminal traces, compare request bodies, tool/function schemas, outputs, and iterate until the reproduced behavior is close enough.

QwenLM/qwen-code · 62 tokens

deflake

Stabilize a flaky test with a minimal, assertion-preserving fix — never by weakening or deleting the check.

QwenLM/qwen-code · 26 tokens

safe-extraction

Apply when extracting code from a large monolith file into submodules. Covers barrel re-exports, internals DI seam proxy patterns, CI invariant allowlist updates, and cross-file test verification. Prevents CI failures, broken imports, and test regressions from code extraction.

ZaxbyHub/opencode-swarm · 60 tokens