setup-docs-site

setup-docs-site is a skill for Claude Code from tomzx/agents. It costs 67 tokens per session (2,587 once invoked), scanned A, original, MIT.

A workflow that scaffolds a MkDocs documentation website with an initial structure, Material theme, and GitHub Actions publishing workflow. MkDocs turns written Markdown files into a website.

In plain words
What is it for?
Use it to create the documentation folders, configure the site, and add automated publishing for a Python project with a GitHub repository.
Why use it?
It removes the repetitive setup needed to start a documentation site and publish it through GitHub Pages.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Good fit Use it to create the documentation folders, configure the site, and add automated publishing for a Python project with a GitHub repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tomzx/agents/setup-docs-site
View source ↗ tomzx/agents
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 tomzx/agents --skill setup-docs-site
Clone the repo
git clone --depth 1 https://github.com/tomzx/agents

Made for: Claude Code.

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 setup-docs-site

README.md
[![agentmods](https://agentmods.dev/badge/skills/tomzx/agents/setup-docs-site/github.svg)](https://agentmods.dev/skills/tomzx/agents/setup-docs-site)
Your own site
<a href="https://agentmods.dev/skills/tomzx/agents/setup-docs-site"><img src="https://agentmods.dev/badge/skills/tomzx/agents/setup-docs-site/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 setup-docs-site

Your own site · 80×15
<a href="https://agentmods.dev/skills/tomzx/agents/setup-docs-site"><img src="https://agentmods.dev/badge/skills/tomzx/agents/setup-docs-site.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,587 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 13
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
How audits are shown
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.00067 $0.02587
Opus 5 $0.00034 $0.01293
Sonnet 5 $0.00013 $0.00517
Haiku 4.5 $0.00007 $0.00259

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

Security

Grade A, and why

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

skills/setup-docs-site/SKILL.md · 360 lines

How it starts

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

TODAY=!date +%Y-%m-%d

Setup Docs Site

Scaffolds a MkDocs documentation site with the Material theme, creates the initial content structure under docs/, and adds a GitHub Actions workflow to build and deploy to GitHub Pages.

Does not overwrite existing files. If mkdocs.yml or docs/ already exist, reports what is present and skips or offers to update.

Prerequisites

  • Python project with pyproject.toml (for uv add), or willingness to install MkDocs via pip
  • Git repository with a GitHub remote (for the GHA workflow)
  • uv available in PATH (preferred) or pip
  • Read any files present under .sdlc/context/ for project-level context to populate docs content

Steps

1. Determine the project root

Use $1 if provided, otherwise use the current working directory. Verify it is a git repository:

git rev-parse --is-inside-work-tree

Check for a GitHub remote:

gh repo view --json nameWithOwner --jq '.nameWithOwner' 2>/dev/null

If no GitHub remote, skip the GHA workflow creation and report the limitation.

2. Check existing documentation infrastructure

Check for existing files:

ls mkdocs.yml docs/ README.md .github/workflows/pages*.yml .github/workflows/pages*.yaml 2>/dev/null

If mkdocs.yml exists, report it and skip to Step 5 (content structure). If docs/ exists, report it and merge content rather than overwrite.

3. Install MkDocs dependencies

Detect the package manager and install:

For uv projects (preferred):

uv add --dev mkdocs "mkdocs-material[imaging]"

The [imaging] extra pulls in cairosvg/pillow, which are required by the social plugin to generate social/OpenGraph cards.

For pip projects:

pip install mkdocs "mkdocs-material[imaging]"

Record what was installed.

4. Create mkdocs.yml

Create mkdocs.yml in the project root with the following structure. Derive site_name, site_description, and repo_url from the codebase:

site_name: <project name>
site_description: <one sentence from README or pyproject.toml>
site_url: ""
repo_url: <github remote url>
repo_name: <owner/repo>
edit_uri: edit/main/docs/

extra:
  social:
    - icon: fontawesome/brands/github
      link: <github remote url>

theme:
  name: material
  font:
    text: Open Sans
  palette:
    # Palette toggle for light mode
    - media: "(prefers-color-scheme: light)"
      scheme: default
      primary: white
      accent: green
      toggle:
        icon: material/weather-night
        name: Switch to dark mode
    # Palette toggle for dark mode
    - media: "(prefers-color-scheme: dark)"
      scheme: slate
      primary: black
      accent: green
      toggle:
        icon: material/weather-sunny
        name: Switch to light mode
  features:
    - navigation.instant
    - navigation.tracking
    - navigation.tabs
    - navigation.sections
    - navigation.expand
    - navigation.top
    - search.suggest
    - search.highlight
    - search.share
    - content.action.edit
    - content.action.view
    - content.code.copy
    - content.code.annotate

nav:
  - Home: index.md
  - Getting Started: getting-started.md
  - Reference: reference/
  - Changelog: changelog.md

markdown_extensions:
  - admonition
  - attr_list
  - footnotes
  - md_in_html
  - pymdownx.details
  - pymdownx.highlight:
      anchor_linenums: true
      line_spans: __span
      pygments_lang_class: true
  - pymdownx.inlinehilite
  - pymdownx.snippets
  - pymdownx.superfences
  - pymdownx.tabbed:
      alternate_style: true
  - tables
  - toc:
      permalink: true

plugins:
  - search
  - social

Read the full file on GitHub · 360 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 · 360 lines · 67 tokens per session scan A a437c9757760

Subscribe to this mod's changes

setup-docs-site is a skill published in the GitHub repository tomzx/agents (6 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 2,587 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

import-prom-rule

Bulk import of a Prometheus alert rule YAML file (create a whole set of rules at once). Dedicated to handling a remote URL or local YAML text, automatically parsing the three formats groups / a plain rules array / a single rule. ⚠️ Do not use this skill for single-rule creation — when the user describes a single alert…

ccfos/nightingale · 125 tokens

chinese-git-workflow

A reference for configuring Git with Chinese code-hosting services such as Gitee, Coding.net, GitLab China, and CNB, including SSH, HTTPS, credentials, CI, and repository mirroring.

jnMetaCode/superpowers-zh · 69 tokens

configure-env-variables

Configures environment variables for Power Pages site settings to support ALM across environments. Creates environment variable definitions in Dataverse, guides the user through linking site settings to those variables via the Power Pages Management app, adds the variables to the solution, and generates a…

microsoft/power-platform-skills · 119 tokens

atmos-profiles

Atmos profiles: profile directories, --profile and ATMOSPROFILE activation, profile merge behavior, environment switching, and routing profile-specific auth/toolchain/config overrides.

cloudposse/atmos · 35 tokens

webhook-management

Configure and validate CCAM webhook targets across supported chat, incident, automation, and generic providers. Use when listing provider requirements, creating or updating a target, scoping it to alert rules, sending a test notification, reviewing delivery history, or deleting a target.

hoangsonww/Claude-Code-Agent-Monitor · 56 tokens

monorepo-management

Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.

wshobson/agents · 54 tokens