documentation-build

documentation-build is a skill for Claude Code, Codex from canonical/copilot-collections. It costs 34 tokens per session (691 once invoked), scanned A, original, Apache-2.0.

A documentation build checker for Sphinx and Read the Docs. Sphinx is a system that turns source files into documentation websites, while Read the Docs is a hosting and build service for them.

In plain words
What is it for?
Use it to find documentation roots, run available build and check targets, and report the severity of problems.
Why use it?
It exposes build errors, warnings, broken links, and configuration problems before documentation is published.

Skill for Claude CodeCodex

About the project

Canonical Copilot Collections is a repository for organizing and distributing GitHub Copilot instructions, prompts, agents, and skills across Canonical repositories. Teams configure repositories to subscribe to shared collections, such as Python, documentation, or Juju development guidance, and keep those assets synchronized.

canonical/copilot-collections · 29 stars · on GitHub

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.

agentmods
npx agentmods add skills/canonical/copilot-collections/documentation-build
Any agent
npx skills add canonical/copilot-collections --skill documentation-build
Clone the repo
git clone --depth 1 https://github.com/canonical/copilot-collections

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 documentation-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/canonical/copilot-collections/documentation-build.svg)](https://agentmods.dev/skills/canonical/copilot-collections/documentation-build)
Your own site
<a href="https://agentmods.dev/skills/canonical/copilot-collections/documentation-build"><img src="https://agentmods.dev/badge/skills/canonical/copilot-collections/documentation-build.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 691 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.00691
Opus 5 $0.00017 $0.00345
Sonnet 5 $0.00007 $0.00138
Haiku 4.5 $0.00003 $0.00069

Measured 5d ago against content hash a2726a22549c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

documentation-build 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 5d 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.

skills/documentation-build/SKILL.md · 97 lines

How it starts

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

Documentation Build Validation

Scope

Build validation only: detect documentation build configuration, run applicable build targets, collect all errors and warnings, and categorise by severity.

Inputs

  • Repository root.

Actions

  1. Identify documentation directory: The docs/ directory is the default location for Sphinx documentation. If not found, search common doc roots in this order: doc/, documentation/, site/, docs-src/. If still not found, perform a bounded search for conf.py (max depth 4) and use its parent as the docs root.

  2. Detect build configuration: Check for the presence of:

    • .readthedocs.yaml
    • docs/conf.py
    • Makefile targets in the docs/ directory

    If RTD artefacts are absent in the target repository, report "not applicable" in findings and exit cleanly.

  3. Run build targets (when applicable):

    cd docs
    make clean
    make html
    

    Run additional checks for targets that exist. Check each target before running to avoid false failures:

    # Check and run each target if available
    for target in spelling linkcheck woke lint-md; do
      if make -n $target 2>/dev/null; then
        make $target
      fi
    done
    
  4. Capture output and handle failures: If any command fails:

    1. Capture the full error output from stderr and stdout
    2. Run make clean to reset build state
    3. Retry the failed build command once
    4. If retry fails, STOP and report all captured errors
    5. Do not proceed to content analysis until build succeeds

    Warnings must be collected and reported, but are not blocking unless the repository explicitly treats warnings as errors.

  5. Categorise findings by severity:

    • Errors: Build failures, broken links, missing files.
    • Warnings: Deprecation notices, missing references, formatting issues.
    • Info: Suggestions, minor notices.
  6. Verify completion: Confirm the validation completed:

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

Subscribe to this mod's changes

documentation-build is a skill published in the GitHub repository canonical/copilot-collections (29 stars, last pushed 2d ago), licensed Apache-2.0. It adds 34 tokens to every session and 691 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-30.

Related

Other skills, from other repositories

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

baoyu-youtube-transcript

Downloads YouTube video transcripts/subtitles and cover images by URL or video ID. Supports multiple languages, translation, chapters, and speaker identification. Caches raw data for fast re-formatting. Use when user asks to "get YouTube transcript", "download subtitles", "get captions", "YouTube字幕", "YouTube封面"…

JimLiu/baoyu-skills · 107 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

gog-slides

Google Slides operations through gog.

openclaw/gogcli · 11 tokens

read

Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…

tw93/Waza · 78 tokens