maintainer-preflight

maintainer-preflight is a skill for Claude Code from xzawed/claude-grok-build-plugin. It costs 61 tokens per session (1,935 once invoked), scanned A, original, MIT.

A pre-release checklist for the mcp-server in this repository. It checks the project before work is called finished, committed, or submitted as a pull request.

In plain words
What is it for?
Use it before saying work is done, committing changes, or opening a pull request; it runs dependency installation plus the required test and type-check checks, with further checks when the bundle changes.
Why use it?
It catches failing tests, type errors, build problems, stale dependencies, and missing committed build output before they are shipped.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

Part of the grok plugin — 4 skills, 27 commands, 1 agent, 1 hook, 1 MCP server shipped together

Good fit Use it before saying work is done, committing changes, or opening a pull request; it runs dependency installation plus the required test and type-check checks, with further checks when the bundle changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xzawed/claude-grok-build-plugin/maintainer-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 xzawed/claude-grok-build-plugin --skill maintainer-preflight
Clone the repo
git clone --depth 1 https://github.com/xzawed/claude-grok-build-plugin

Made for: Claude Code.

Or install grok, the plugin that ships this one along with the rest of its 4 skills, 27 commands, 1 agent, 1 hook, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xzawed/claude-grok-build-plugin/maintainer-preflight"><img src="https://agentmods.dev/badge/skills/xzawed/claude-grok-build-plugin/maintainer-preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,935 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.00061 $0.01935
Opus 5.5 $0.00024 $0.00774
Sonnet 5.5 $0.00012 $0.00387
Haiku 4.5 $0.00006 $0.00194

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

Security

Grade A, and why

maintainer-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 17d 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.

.claude/skills/maintainer-preflight/SKILL.md · 144 lines

How it starts

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

Maintainer preflight (claude-grok-build-plugin)

Run these before saying done. Evidence, not vibes.

And these gates are not the last step. Step 8 of "작업 수행 방법" in root CLAUDE.md — post-execution verification plus an audit of the measurements that got you here — is mandatory and runs AFTER the PR merges. CLAUDE.md owns that rule; do not restate it here. The short of it: check origin/main content rather than the log, re-run the original reproduction against the shipped bundle, and re-derive every finding by a second independent method before acting on it. Measured 2026-09-12: in one audit the measurement harness was wrong 6 times against 2 real defects.

A code fix also needs a Grok second opinion before done — the adversarial pass is step 5 of "작업 수행 방법" in root CLAUDE.md; the full recipe and its history live in docs/11-maintainer-playbook.md "5번 조리법" (its old rationale — "a prose-only review prompt never terminates" — did not reproduce on 2026-09-12; use the recipe, do not cite that as a law). Give Grok the code verbatim, not retyped facts. Read its verdict.md yourself, and verify any finding by measurement before acting on it.

Always

cd mcp-server
npm ci          # missing OR possibly-stale node_modules — see below
npm test
npm run typecheck

Both must pass. Report the real counts from this session's run — never summarize a run you did not execute.

npm ci is not only for a missing node_modules. A tree that is merely stale is worse than a missing one, because the build succeeds and silently ships the wrong dependency. Measured 2026-08-09: node_modules held fast-uri 3.1.4 while the lockfile pinned 3.1.5, and npm run build produced a dist/index.js with the v0.2.6 security patch (GHSA-7p8r-x3mc-p8w7) removed — a clean-looking rebuild that reverted a shipped fix. Cheap check before trusting a build:

node -e "console.log(require('./node_modules/<pkg>/package.json').version)"   # vs package-lock.json

Read the full file on GitHub · 144 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. 17d ago Changed · -4 lines a5751e579b7a
  2. 22d ago Changed · +2 lines e51c374ec028
  3. 28d ago Changed · +2 lines 9715856b8375
  4. 1mo ago Changed · +8 lines 61bf8251c69a
  5. 1mo ago Changed · +5 lines bf4fbe70c553
  6. 1mo ago Changed · +8 lines 0b1561377665
  7. 1mo ago First seen · 123 lines · 61 tokens per session scan A d448fa006fe3

Subscribe to this mod's changes

maintainer-preflight is a skill published in the GitHub repository xzawed/claude-grok-build-plugin (3 stars, last pushed today), licensed MIT. It adds 61 tokens to every session and 1,935 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-08-31.