Ghdoc
This skill should be used when the user asks to "add documentation", "set up docs", "create a docs site", "add mkdocs", "generate github pages docs", "scaffold documentation", "update the docs", "refresh documentation", "audit docs", "check docs compliance", or mentions wanting MkDocs, ProperDocs, Material theme, or unified documentation. Provides the organization documentation standard, unified page structure, color schemes, page templates, audit checklist, and maintenance procedures for generating and maintaining documentation sites.From its SKILL.md
npx -y skills add wlame/mkdocs-skill --skill ghdocAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
10.0 KB, as published. Nobody here has run it
ghdoc — Organization Documentation Standard
This skill encodes the organization-wide documentation standard for MkDocs + Material for MkDocs sites deployed to GitHub Pages. Use it when generating, reviewing, or modifying documentation sites.
Quick Reference
Stack: MkDocs 1.6.x + Material for MkDocs 9.7.x + curated plugins
Theme: Material with light/dark toggle (auto-detected from OS preference)
Fonts: Inter (text) + JetBrains Mono (code)
Build: mkdocs build --strict in CI — zero warnings allowed
Deploy: GitHub Pages via actions/deploy-pages (unversioned) or mike + gh-pages branch (versioned)
Engines
The site generator is a parameter, not a hardcoded choice. All generated files (config, requirements, workflow, just recipes) take their package, CLI, and theme names from this table:
| Engine | pip packages | CLI binary | Config file | Theme name | Status |
|---|---|---|---|---|---|
mkdocs (default) | mkdocs + mkdocs-material | mkdocs | mkdocs.yml | material | Org baseline — pinned, proven |
properdocs | properdocs + mkdocs-materialx | properdocs | properdocs.yml | materialx | Opt-in — drop-in MkDocs fork; mike versioning unverified |
ProperDocs is the community continuation fork of MkDocs (March 2026, led by the former top MkDocs
maintainer) and MaterialX the matching continuation of the Material theme. Config files and plugins
are compatible; switching engines later is a name swap, not a migration. See the "Engines and
succession" section of references/mkdocs-standard.md for the full context and migration triggers.
State Marker
Every generated site config carries a machine-readable marker as the first line of
mkdocs.yml (or properdocs.yml), recording the choices made at generation time so that re-runs,
audits, and updates are deterministic:
# ghdoc: version=<skill version> engine=<engine> color-scheme=<scheme> versioned=<yes|no> updated=<YYYY-MM-DD>
Rules:
- written by
/ghdocat generation, refreshed (version + updated date) by/ghdoc-update; - parsed with a line match on
^# ghdoc:— space-separatedkey=valuepairs, no other format; - commands read it to recover prior choices instead of re-asking the user;
- a repo whose config has no marker predates the marker or wasn't generated by ghdoc — audits
report this as a warning, and
/ghdoc-updateoffers to infer the values and stamp it.
Unified Page Structure
Every repository's docs must contain these sections (adapt to what applies). This table is the single source of truth for which pages exist and when — commands and agents decide inclusion from the "When" column, not from their own lists:
| Page | Purpose | When |
|---|---|---|
index.md | Tagline, key features, quick-start snippet, nav links | Always |
about.md | Purpose, design goals, why it exists, alternatives comparison | Always |
getting-started.md | Zero-to-working in < 10 minutes | Always |
use-cases/ | 2–5 real-world scenarios with full walkthroughs (index.md + one page per scenario) | Always |
concepts/architecture.md | System components, responsibilities, Mermaid diagram | If more than 2 components |
concepts/data-flow.md | How data moves through the system, sequence diagrams | If data flow is non-trivial |
reference/cli.md | Every command, subcommand, flag, with examples | If CLI tool; split into reference/cli/<command>.md when > 6 top-level commands |
reference/api.md | Every endpoint: method, path, request/response, auth | If REST API; split per-resource when > 10 endpoints |
reference/configuration.md | Every config key: type, default, env var, example | If more than 5 config keys |
reference/api-reference.md | Generated from docstrings via mkdocstrings | If Python package with public API |
operations/deployment.md | Install, Docker, k8s, production checklist | If deployable |
operations/monitoring.md | Metrics, logs, health checks, alerts | If observable |
faq.md | Real questions with clear answers | Only if real questions exist (GitHub issues/discussions, support history, or user-provided) — never invent questions |
troubleshooting.md | Error messages verbatim + fix steps | If real error messages/failure modes were found in source or issues |
changelog.md | Version history (import from CHANGELOG.md if it exists) | Always |
contributing.md | How to contribute, dev setup, PR process | Always |
Page Content Requirements
index.md
- Tagline in H1 (one sentence: what it does and for whom)
- 2-paragraph purpose (problem it solves, how it solves it)
- Feature grid or bullet list (4–8 key features)
- Quick-install snippet in a code block
- Nav cards or links to key sections
about.md
- Detailed project purpose (not a repeat of README)
- Design philosophy (key trade-offs made)
- Comparison table vs. alternatives (if relevant)
- Known limitations
- Project status and roadmap (if public)
getting-started.md
- Prerequisites checklist
- Install steps (tabbed by method: pip, docker, binary, etc.)
- Minimal working example (< 20 lines of real code)
- Expected output with a code block
- Link to next steps
use-cases/*.md (one page per scenario)
- Scenario description (who is doing what, why)
- Full working example with realistic data
- Step-by-step walkthrough
- What to expect (output, side effects)
- Common variations
- Link to relevant reference pages
reference/cli.md
- One H2 per top-level command
- Syntax line:
command subcommand [flags] - Table of flags: flag, type, default, description
- Collapsible examples block (
???details) for each command - Exit codes if non-standard
reference/api.md
- One H2 per resource/group
- For each endpoint:
METHOD /pathas H3, description, auth requirements - Request: headers, query params, body schema as code block
- Response: status codes, body schema, example response
- Tabbed examples (curl, Python, Go, etc.)
reference/configuration.md
- Table per config section: key, type, default, env var, description
- Full example config file in a code block
- Notes on precedence (file vs. env vars vs. CLI flags)
Baseline Plugin Set
Load references/mkdocs-standard.md for the full pinned configuration.
Baseline (every repo):
search, tags, privacy, git-revision-date-localized, git-authors, redirects, glightbox
Add if Python package: mkdocstrings, mkdocstrings-python, autorefs
Add if versioned releases: mike
Color Scheme Options
See references/color-schemes.md for full palette configurations.
| Name | Primary | Accent | Personality |
|---|---|---|---|
indigo (default) | indigo | blue | Professional, trustworthy |
teal | teal | cyan | Modern, clean, technical |
blue-grey | blue-grey | blue | Muted, sophisticated |
deep-purple | deep purple | purple | Creative, bold |
orange | orange | amber | Energetic, open-source |
Mermaid Diagram Standards
Use flowchart TD for architecture overviews:
flowchart TD
A[Input] --> B[Component]
B --> C{Decision}
C -->|yes| D[Output A]
C -->|no| E[Output B]
Use sequenceDiagram for data flow:
sequenceDiagram
participant Client
participant API
participant DB
Client->>API: POST /resource
API->>DB: INSERT
DB-->>API: id
API-->>Client: 201 Created
Content Writing Rules
These rules are the single source of truth for page content quality — content agents read this section directly rather than receiving paraphrased copies:
- Every code example must be copy-pasteable with real command/function names from the source.
- CLI flags must be verbatim from source code — never invented.
- Config keys must match actual config schemas exactly.
- Mark unknown content as
<!-- TODO: add <description> -->— never invent facts. - Use
!!! tipfor non-obvious best practices and!!! warningfor known gotchas — only where a genuine one exists. Never manufacture a tip or warning to decorate a page; a fabricated admonition is worse than none. - Use
!!! notefor important context that isn't a warning. - Use
???(collapsible) for exhaustive parameter lists — show the 3 most common inline. - Use tabbed content for OS-specific or method-specific variants.
- Add a
## Related pagessection at the bottom linking to 2–4 related pages. - FAQ and troubleshooting entries must come from real sources (issues, discussions, error strings in code, user input) — an invented "frequently asked question" is a fact fabrication.
Additional Resources
references/mkdocs-standard.md— full organization standard: rationale, governance, engines-and-succession narrativereferences/unified-structure.md— detailed content spec for each page typereferences/color-schemes.md— full Material palette configurations for each color schemereferences/page-templates.md— ready-to-fill markdown templates for every page typereferences/repo-analysis.md— shared repository-analysis procedure (used by /ghdoc and /ghdoc-update)references/fact-check.md— procedure for verifying documented claims against sourcereferences/audit-checklist.md— the compliance checks behind /ghdoc-auditexamples/mkdocs.yml— complete config template with all options (canonical feature flags)examples/requirements-docs.txt— canonical pinned dependency listexamples/docs-workflow.yml— CI workflow, unversioned docs (Pages artifact deploy)examples/docs-versioned-workflow.yml— CI workflow, versioned docs (mike + gh-pages branch)