docs-preflight

docs-preflight is a skill for Claude Code, Codex from chipi/agentic-ai-homelab. It costs 97 tokens per session (739 once invoked), scanned A, original, MIT.

A documentation check that detects the project's documentation system and runs its strict build. Documentation systems such as MkDocs, Sphinx, and Docusaurus turn source files into a browsable docs website.

In plain words
What is it for?
Use it before committing changes to documentation or its configuration to receive a pass/fail result and the exact problems that need fixing.
Why use it?
It catches broken links, missing references, and warnings locally before a documentation change is committed or sent to continuous integration checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before committing changes to documentation or its configuration to receive a pass/fail result and the exact problems that need fixing.

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

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/chipi/agentic-ai-homelab/docs-preflight.svg)](https://agentmods.dev/skills/chipi/agentic-ai-homelab/docs-preflight)
Your own site
<a href="https://agentmods.dev/skills/chipi/agentic-ai-homelab/docs-preflight"><img src="https://agentmods.dev/badge/skills/chipi/agentic-ai-homelab/docs-preflight.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 739 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.00097 $0.00739
Opus 5 $0.00048 $0.00369
Sonnet 5 $0.00019 $0.00148
Haiku 4.5 $0.00010 $0.00074

Measured 7d ago against content hash 39045186a733, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

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

workstation/claude/skills/docs-preflight/SKILL.md · 56 lines

How it starts

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

docs-preflight

Run the project's strict docs build locally and report green/red before a docs commit lands. Strict mode is what CI runs — catching a broken cross- reference here costs ~20s; catching it in CI costs a wasted push and a red badge.

When this applies

The change touches any docs-affecting path: docs/**, mkdocs.yml, requirements-docs.txt, a Makefile docs target, conf.py, docusaurus.config.*, book.toml. If in doubt and a docs toolchain exists, run it — it's cheap.

Detect the toolchain, then run its strict build

Use the first match, top to bottom. A repo's own make target is preferred because it already encodes the venv and the correct strict flags.

  1. Makefile docs targetgrep -E '^docs-build:|^docs:' Makefile. If present, run make docs-build (or make docs). This is the common case for repos scaffolded from the operator's new-project template.
  2. MkDocsmkdocs.yml at repo root. Prefer the project venv:
    • .venv/bin/mkdocs build --strict --clean if .venv/bin/mkdocs exists
    • else python -m mkdocs build --strict --clean
  3. Sphinxdocs/conf.py. sphinx-build -W -b html docs /tmp/_docs_preflight (-W promotes warnings to errors = strict).
  4. Docusaurus / npmpackage.json with a docs build script (docs:build, build:docs, or a docs workspace). Run that script; Docusaurus fails on broken links by default.
  5. mdBookbook.toml. mdbook build.

If none match, say so — there is nothing to preflight. Do not invent a build.

Report

  • Run in the foreground and show full output (do not | tail), so streaming warnings are visible.
  • End with one unambiguous line: DOCS PREFLIGHT: PASS or DOCS PREFLIGHT: FAIL.
  • On FAIL, surface the specific offenders — unresolved links, pages missing from nav, orphan warnings — not just the exit code.

Conventions this enforces

  • Green local, then commit. Never push-and-pray on the docs build; reproduce and fix locally first.
  • No new deps to make a build pass. Use the project's existing toolchain and venv. If a dependency is genuinely missing, report it — do not install silently.
  • When linking from inside a docs tree to a file outside it, strict builders can't resolve relative paths — use absolute repo URLs (https://github.com/<org>/<repo>/blob/main/...).

Read the full file on GitHub · 56 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. 7d ago First seen · 56 lines · 97 tokens per session scan A 39045186a733

Subscribe to this mod's changes

docs-preflight is a skill published in the GitHub repository chipi/agentic-ai-homelab (2 stars, last pushed yesterday), licensed MIT. It adds 97 tokens to every session and 739 once invoked, about $0.0005 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

foundry-hosted-agent-validation

Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and azd ai agent run) and after deploying it to an Azure AI Foundry project with azd. Use this when asked to validate a hosted agent sample.

microsoft/agent-framework · 82 tokens

build-and-test

How to build and test .NET projects in the Agent Framework repository. Use this when verifying or testing changes.

microsoft/agent-framework · 26 tokens

workflow-patterns

Use this skill when implementing tasks according to Conductor's TDD workflow, handling phase checkpoints, managing git commits for tasks, or understanding the verification protocol.

wshobson/agents · 35 tokens

ios-simulator

Verify and debug native, React Native, Expo, or Flutter apps on an iOS Simulator with agent-device. Use when an agent needs to launch an app, inspect its live UI, tap, type, scroll, validate a code change, collect failure evidence, or reproduce a workflow on an iPhone or iPad Simulator.

callstack/agent-device · 69 tokens

agent-evaluation

Run one specified Test Agent on one specified Benchmark Case exactly once, privately score that execution, and return one protocol result.

Prism-Shadow/penguin-harness · 28 tokens

mcp-app-verification

Comprehensive verification checklists for MCP Apps. Tests with basic-host reference, validates handler-before-connect, text fallback, resource URI linking, single-file bundling, host styling, CSP, and legacy pattern detection.

a5c-ai/babysitter · 48 tokens