Borrowing it
Nothing to install: this file belongs to hybridindie/comfyui_mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/hybridindie/comfyui_mcp/main/.opencode/commands/preflight.mdgit clone --depth 1 https://github.com/hybridindie/comfyui_mcpWrote 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/commands/hybridindie/comfyui_mcp/preflight)<a href="https://agentmods.dev/commands/hybridindie/comfyui_mcp/preflight"><img src="https://agentmods.dev/badge/commands/hybridindie/comfyui_mcp/preflight.svg" alt="Measured on agentmods" height="20"></a>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.00031 | $0.00386 |
| Opus 5 | $0.00015 | $0.00193 |
| Sonnet 5 | $0.00006 | $0.00077 |
| Haiku 4.5 | $0.00003 | $0.00039 |
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 7d 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.
What it actually says
Run the project's preflight gate — the exact sequence CI runs
(.github/workflows/ci.yml) and workflow step 4 requires before a PR. Run each
check in order and stop at the first failure.
Execute, in order, and report each result:
- Zero-skip gate —
./.opencode/hooks/check-no-skipped-tests.sh - Lint —
uv run ruff check src/ tests/ - Format check —
uv run ruff format --check src/ tests/ - Type check —
uv run mypy src/comfyui_mcp/ - Tests —
uv run pytest -v - Coverage —
uv run pytest -v --cov=src/comfyui_mcp --cov-report=term-missing --cov-fail-under=90(CI's threshold)
Rules:
- Run the checks yourself with bash; do not ask the user to run them.
- Stop at the first failing check and surface its output verbatim — do not
continue to later gates (each step gates the next, per
@.opencode/rules/enforcement.md). - If all checks pass, report "Preflight clean — ready for PR (workflow step 4)" and stop. Do not open a PR unless explicitly asked.
- If a check fails, diagnose the failure against the relevant rule
(
testing.md,enforcement.md,security.md), propose the minimal fix, and stop. Wait for the user before applying. - Never skip a check or lower a threshold to make preflight pass.
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.
- 7d ago First seen · 30 lines · 31 tokens per session scan A 2436e6a0c5c1
preflight is a command published in the GitHub repository hybridindie/comfyui_mcp (2 stars, last pushed 5d ago), licensed MIT. It adds 31 tokens to every session and 386 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.
Other commands, from other repositories
models
List available AI models and switch the default model for this session. Use when user runs /meigen:models to see or change models.
api-aqa-flow-execution-and-report-analysis
Phase 6 Execution & Report Analysis of api-aqa-flow (USER INTERACTION REQUIRED).
brief-compliance-check
Check a LaTeX coursework submission against the requirements in a supplied PDF assessment brief. Use when verifying format, required sections, word limits, or deliverables before submission. Not for general prose proofreading; use $proofread.
eg-fix-bug
Fix a bug using the elephant/goldfish workflow — problem doc, goldfish diagnosis check, failing test, fix, review, validate.
research
Deep research on any topic with evidence-tier labeling.
setup
Interactive provider configuration wizard. Use when the user runs /meigen:setup, says "configure meigen", "set up image generation", "add API key", or otherwise needs help wiring up an image generation provider (MeiGen platform, ComfyUI, or any OpenAI-compatible API).