preflight

Runs pre-flight environment checks for the hero-skills pipeline before destructive steps execute.

5|1|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/ai-hero/hero-skills --skill preflight-ai-hero
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: preflight
Source: https://github.com/ai-hero/hero-skills/tree/main/skills/preflight
Command: npx skills add https://github.com/ai-hero/hero-skills --skill preflight-ai-hero

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Pipeline steps like push-pr, ship-pr, and one-shot fail midway when tooling is missing, HERO.md is stale, .env files are incomplete, or ports are busy. This Skill runs all blocking checks upfront so failures surface before any branch is created or code is edited. ## Core Features & Use Cases - Four check buckets: tooling (gh auth, jq, Node, Playwright MCP, pr-review-toolkit), repo (HERO.md freshness, merge state), runtime (.env coverage, free ports), and pipeline (remote reachability, issue tracker auth). - Scoped runs: restrict checks to a single bucket or specific projects in a monorepo via --bucket and --projects flags. - Recalibrate mode: tunes the HERO.md fields the checks read, then stops without running the full pipeline. - Use Case: Before running hero-skills:one-shot on a monorepo, run preflight with --projects scoped to the touched packages to catch a missing .env key or occupied port before any branch is created. ## Quick Start Ask the assistant to run hero-skills:preflight to verify the environment before starting the pipeline.

Frequently Asked Questions about preflight

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run pre-flight checks before a CI/CD pipeline step?

Run hero-skills:preflight to execute all blocking checks across tooling, repo, runtime, and pipeline buckets. The script exits with code 1 if any blocker fires, so the pipeline halts before creating branches or pushing code.

How to check only specific environment setup items in a monorepo?

Use the --bucket flag to run one bucket (tooling, repo, runtime, or pipeline) and --projects to restrict runtime checks to specific project paths from HERO.md. This is useful when a diff only touches part of a monorepo.

What tools does the preflight check require?

The tooling bucket verifies the GitHub CLI with repo scope authentication, jq, Node 18 or later, Playwright MCP registration, the pr-review-toolkit plugin, and pre-commit when a .pre-commit-config.yaml exists.

Does the preflight script modify files or git state?

No, the script is read-only. It never edits files, creates branches, modifies remote state, or runs interactive prompts, so it is safe to run on every invocation.

Why does the port check show SKIP instead of OK?

The port check uses lsof to detect listeners on declared ports. If lsof is unavailable, common in minimal containers, the check reports SKIP rather than a false OK.

What does preflight recalibrate do?

The recalibrate argument tunes the HERO.md fields that preflight reads, then stops without running the checks. It reports current field values and asks only about unset, absent, or incorrect entries.