docs-site
Skill1 starsChanged 3 months agoMITView on GitHub
Stands up, deploys, or fixes a documentation site on GitHub Pages - generator choice (MkDocs, Sphinx, Docusaurus, Starlight), an API reference built from docstrings via mkdocstrings or autodoc, the official Actions workflow, base-path/.nojekyll/custom-domain pitfalls, versioning. Use for publishing docs to github.io or debugging a broken/unstyled Pages deploy. Not for writing the docs content, the README, or branch protections.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- INERATE/ateliertheir own version, first seen Sep 22, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- INERATE/atelier★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-skillSkill
- publish-repoSkill
- community-healthSkill
- docs-authorSkill
- issue-pr-templatesSkill
- readme-authorSkill
- repo-auditSkill
- repo-discoverabilitySkill
- repo-protectionsSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Don't re-litigate a working generator — fix forward.
- Distinctive: line 72
Check: Run and fix what it reports:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
docs-site
Ships a documentation site that deploys correctly the first time. Models get
this wrong in predictable ways: stale gh-pages-branch workflows from old
blog posts, the official workflow but the Pages source never flipped (green
workflow, 404 site), base paths missed so the site works locally and renders
unstyled on github.io, and versioning bolted onto an incompatible deploy
model. This skill encodes the current official pipeline and the fixes.
When NOT to use
- Writing or restructuring the documentation content →
docs-author(the two compose: pipeline here, prose there). - The README →
readme-author. - Branch rulesets, secret scanning, Actions hardening →
repo-protections. - Repo description/topics/social preview →
repo-discoverability. - Hosting on Read the Docs, Netlify, Vercel, or app deployments → out of scope by design; say so in one line and stop.
Workflow
- Inspect. Ecosystem and language, existing docs config and
docs/tree, existing workflows, whether agh-pagesbranch exists, current Pages state (gh api repos/{owner}/{repo}/pageswhen authenticated). Don't re-litigate a working generator — fix forward. - Choose the generator with
references/generator-choice.md: by ecosystem and needs, not hosting; note the Material-for-MkDocs maintenance-mode caveat for new long-horizon sites. Below the navigational-need threshold, recommend staying README-only and stop. - Configure with the base path first. Project sites serve under
/<repo>/— set the generator'ssite_url/baseUrl/baseper the table inreferences/pages-deploy.md. Turn on strict builds (mkdocs build --strict,sphinx-build -W; Docusaurus throws on broken links by default). Shape the landing page perreferences/generator-choice.md: hero when visitors are still choosing, docs-first when they arrive convinced; ≤2 clicks (ideally 0) from landing to a runnable command. - Pick ONE deploy model — never mix:
- Versioned MkDocs docs via
mike→ branch publishing (gh-pages), with.nojekylland aliases (mike deploy X latest --update-aliases,mike set-default latest). - Everything else → the official artifact workflow: build job
(
configure-pages→ strict build →upload-pages-artifact) then deploy job (deploy-pages) withpermissions: pages: write+id-token: write, environmentgithub-pages, deploying from the default branch only. Start from https://github.com/actions/starter-workflows/tree/main/pages for current action versions rather than hardcoding pins.
- Versioned MkDocs docs via
- Flip the source. Settings → Pages → Source = "GitHub Actions" (or
gh api repos/{owner}/{repo}/pages -X POST -f build_type=workflow;-X PUTif the site exists). A green workflow with a 404 site means this step was skipped. List every manual step you can't perform. - Verify live, not locally. Fetch the deployed
page_url; check styling and a deep link. Symptom → cause → fix table inreferences/pages-deploy.md(base path,.nojekyll, permissions, entry file). - Docs CI. On PRs: strict build + internal link check, blocking, path-filtered to docs changes. External links: scheduled weekly with retries, non-blocking — flaky 403s train people to ignore CI. Deploy never runs from PRs.
- Optional extras, in order of value: custom domain (verify-first
order and exact DNS records in the reference), versioning only when
released versions genuinely differ,
llms.txtas a one-line build plugin (agent-readiness insurance, not SEO). - Check. Run and fix what it reports:
python3 "${CLAUDE_SKILL_DIR}/scripts/check_pages_setup.py"
Output spec
A site reachable at its real URL with styling and working deep links; a workflow with the exact required permissions deploying only from the default branch; strict build + link check gating PRs; one deploy model, stated; every manual settings step listed explicitly for the owner.
Gotchas
- Green workflow, 404 site → Pages source not set to "GitHub Actions" (step 5).
- Works locally, broken on github.io → base path (the #1 failure).
.nojekyllmatters for branch publishing only — Actions artifacts skip Jekyll entirely; branch-mode Jekyll silently drops_-prefixed dirs (Sphinx_static,_next).- Custom domain: with Actions publishing the domain lives in repo settings (CNAME files are ignored); with branch publishing the CNAME file must survive force-pushes. Verify the domain (TXT record) before DNS; a dangling CNAME record is a takeover.
- Branch-mode builds are not triggered by
GITHUB_TOKEN-pushed commits — the site silently never updates. - Hidden files (
.well-known/) are excluded from Pages artifacts by default — the opt-out flag needs a current upload action (versions in the troubleshooting table). - A Pages site is public even from a private repo (plan gating in the reference).
- Old pinned Pages actions hard-fail (artifacts-v4 cutoff); bump majors rather than debugging them.
Files
references/generator-choice.md— decision table, Material maintenance caveat, versioning mechanisms, generated API reference, mixed-language strategy, search, landing-page anatomy.references/pages-deploy.md— verified Pages facts: publishing sources, canonical workflow, base paths, custom domains/DNS, limits, llms.txt status, troubleshooting table.scripts/check_pages_setup.py— deterministic setup check: workflow permissions/triggers, base-path config, gh-pages/.nojekyll, CNAME-mode mismatches; non-zero exit on definite errors.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

