Agent skill

Documentation Structure

by canonical in canonical/workshop

Validates documentation structural integrity including heading hierarchy, metadata, file naming, navigation, and cross-references.

GPL-3.0Auto-check passed

Install Documentation Structure

skills CLI
$ npx skills add canonical/workshop --skill documentation-structure -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install canonical/workshop documentation-structure --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/canonical/workshop.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/documentation-structure .claude/skills/documentation-structure && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
documentation-structure
GitHub stars
114
Token cost
~704 tokens
SKILL.md length
308 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
GPL-3.0

At a glance

Validates documentation structural integrity including heading hierarchy, metadata, file naming, navigation, and cross-references.

  • Works in 6 steps: File Naming → Metadata → Directory Placement → …
  • Checking documentation organization
  • SKILL.md covers Scope, Inputs, Actions and Constraints, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Documentation Structure is an agent skill from canonical/workshop. Validates documentation structural integrity including heading hierarchy, metadata, file naming, navigation, and cross-references. Use when checking documentation organization or validating toctree structure.

Its SKILL.md is about 700 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Workshops are secure, fast, and composable development environments that come agent-ready. The licence is GPL-3.0.

When your agent uses it

  • Checking documentation organization
  • Validating toctree structure

Example prompts

  • “Use the documentation-structure skill to validate documentation structural integrity including heading hierarchy, metadata, file naming, navigation…”
  • “/documentation-structure”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. File Naming
  2. Metadata
  3. Directory Placement
  4. Navigation
  5. Cross-References
  6. Verification

What it can do on your machine

Read from SKILL.md and the folder at commit 0b41ee9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Documentation Structure loads about 704 tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 308 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~58
When it runs · the whole SKILL.md, loaded when a task matches
~704

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from canonical/workshop at commit 0b41ee9, republished under its GPL-3.0 licence (© canonical). 308 words, ~704 tokens.

Download SKILL.mdSave it as .claude/skills/documentation-structure/SKILL.md (or your agent's skills folder).
name
documentation-structure
description
Validates documentation structural integrity including heading hierarchy, metadata, file naming, navigation, and cross-references. Use when checking documentation organization or validating toctree structure.

Documentation Structure Audit

Scope

Document structure only: heading hierarchy, section ordering, presence of required sections (introduction, prerequisites, steps, reference), file naming, metadata blocks, navigation, and cross-references.

Inputs

  • Documentation file(s) under review.
  • Documentation directory structure.
  • Diataxis classification output (from the documentation-diataxis skill, when run as part of the orchestrated review).

Actions

  1. File Naming:

    Verify files use lowercase with dashes and the correct extension for their syntax (for example, connect-vscode.rst for reST, connect-vscode.md for MyST).

  2. Metadata:

    Ensure every page has required metadata near the top when the repository's docs conventions require it: .. meta:: after the anchor label for reST, or the MyST equivalent (front matter or meta directive) for Markdown sources.

  3. Directory Placement:

    Confirm the file is located in the directory matching its intended Diataxis category (for example, tutorials in tutorial/, how-to guides in how-to/).

  4. Navigation:

    Ensure new pages are added to the toctree.

  5. Cross-References:

    • Prefer stable reference roles (:ref: for reST, {ref}/{numref} for MyST) over page-level links.
    • Flag uses of :doc:/{doc} (or equivalents) except for index-like pages that are unlikely to be moved or renamed.
    • Suggest adding links to improve documentation discoverability.
    • Verify cross-references resolve correctly.
  6. Verification:

    Confirm the structural audit completed:

    • File naming checked for all files
    • Metadata presence verified
    • Directory placement validated (using Diataxis classification if available)
    • Navigation structure checked (toctree entries)
    • Cross-references validated

    State the completion status:

    • ✓ Structure audit complete: [N] violations found
    • OR ✓ Structure audit complete: No violations found

Constraints

  • Do not modify files during the audit; this is a read-only review.
  • Do not invent metadata requirements; check against repository's documented conventions.
  • Focus on structural issues only; do not flag style preferences.
  • When Diataxis classification is available (from orchestrated review), use it to validate directory placement. Otherwise, infer from directory name.

Output

A list of structural or metadata violations covering file naming, metadata, directory placement, navigation, and cross-reference issues.

© canonical, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/documentation-structure of canonical/workshop.

Open the folder on GitHubat commit 0b41ee9

Compare with similar skills

Documentation Structure next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Documentation Structure compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Documentation Structure this skillcanonical/workshop114—~704Automated safety check: PassGPL-3.0
Heading Hierarchythedaviddias/Front-End-Checklist74k—~516Automated safety check: PassMIT
Validate Integrationsimstudioai/sim30k—~8.7kAutomated safety check: PassApache-2.0
Validating Backup Integrity For Recoverymukul975/Anthropic-Cybersecurity-Skills34k—~1.9kAutomated safety check: PassApache-2.0
Heading Structurekostja94/marketing-skills1k—~903Automated safety check: PassMIT
Bio Structural Biology Structure ValidationGPTomics/bioSkills1.2k1 repos~5.9kAutomated safety check: PassMIT

Similar skills

  • Heading Hierarchy

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Use logical heading hierarchy.

    74k GitHub stars~516 tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Validate Integration

    simstudioai/sim

    Validate an existing Sim integration (tools, block, registry, and resolved-secret/model-input boundaries) against the service's API docs and Sim execution conventions

    30k GitHub stars~8.7k tokensUpdated today
    DevelopmentAuto-check passed
  • Validating Backup Integrity For Recovery

    mukul975/Anthropic-Cybersecurity-Skills

    Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery…

    34k GitHub stars~1.9k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Heading Structure

    kostja94/marketing-skills

    When the user wants to write or optimize H1-H6, fix heading hierarchy, improve content structure, rewrite an H1, or align headings with page intent.

    1k GitHub stars~903 tokensUpdated 2 days ago
    Marketing & SEOAuto-check passed
  • Judges whether a macromolecular model (or a region of it) is reliable enough to build on, using resolution, R-free, B-factors, MolProbity geometry, and predicted-model confidence with Bio.PDB.

    1.2k GitHub starsUsed in 1 repo~5.9k tokens
    Research & ScienceAuto-check passed
  • Validating Database Integrity

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to ensure database integrity through comprehensive data validation.

    2.8k GitHub stars~1.9k tokensUpdated today
    Data & AnalyticsAuto-check passed

More from canonical/workshop

  • Documentation Build

    canonical/workshop

    Validates documentation builds successfully. An agent skill from canonical/workshop.

    114 GitHub stars~762 tokensUpdated today
    Auto-check passed
  • Documentation Review

    canonical/workshop

    Performs comprehensive documentation review including build validation, Diataxis analysis, structure audit, accuracy verification, and style compliance.

    114 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Documentation Style

    canonical/workshop

    Enforces project documentation style guide compliance for tone, voice, terminology, punctuation, and formatting.

    114 GitHub stars~714 tokensUpdated today
    Auto-check passed
  • Documentation Verify

    canonical/workshop

    Verifies documentation accuracy by cross-referencing claims, CLI commands, API signatures, and configuration against source code.

    114 GitHub stars~932 tokensUpdated today
    Auto-check passed
  • Documentation Diataxis

    canonical/workshop

    Analyzes documentation against Diataxis framework (Tutorial, How-to, Reference, Explanation).

    114 GitHub stars~1.6k tokensUpdated today
    Auto-check passed

Questions about Documentation Structure

What does Documentation Structure do?

Validates documentation structural integrity including heading hierarchy, metadata, file naming, navigation, and cross-references. Documentation Structure is an agent skill from canonical/workshop. Validates documentation structural integrity including heading hierarchy, metadata, file naming, navigation, and cross-references.

When should I use Documentation Structure?

Documentation Structure fits situations like: checking documentation organization; validating toctree structure.

How do I install Documentation Structure in Claude Code?

Run `npx skills add canonical/workshop --skill documentation-structure -a claude-code`. Or copy the skill folder (.github/skills/documentation-structure in canonical/workshop) into .claude/skills/documentation-structure in your project. Claude Code loads it when a task matches its description.

How do I install Documentation Structure in Codex?

Run `npx skills add canonical/workshop --skill documentation-structure -a codex`. Or copy the skill folder (.github/skills/documentation-structure in canonical/workshop) into .agents/skills/documentation-structure in your project. Codex loads it when a task matches its description.

Can I use Documentation Structure in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add canonical/workshop --skill documentation-structure -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/documentation-structure, .gemini/skills/documentation-structure, .github/skills/documentation-structure and .opencode/skills/documentation-structure in your project.

What does Documentation Structure need to run?

SKILL.md names no scripts, command-line tools or credentials: Documentation Structure is instructions for the agent only.

Does Documentation Structure access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Documentation Structure safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Documentation Structure use?

Documentation Structure is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Documentation Structure use?

About 704 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Documentation Structure?

Skills that share tags, products or a category with Documentation Structure: Heading Hierarchy (thedaviddias/Front-End-Checklist, 74k stars), Validate Integration (simstudioai/sim, 30k stars), Validating Backup Integrity For Recovery (mukul975/Anthropic-Cybersecurity-Skills, 34k stars) and Heading Structure (kostja94/marketing-skills, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Documentation Structure?

canonical (a GitHub organization) maintains it in canonical/workshop, which has 114 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 8, 2026.

Source: canonical/workshop on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.