mkdocs-style
/mkdocs-style
Install or refresh the shared MkDocs Material style layer (Ink & Indigo on warm paper). Use when setting up or restyling a docs project.
- Author
- edjchapman ↗
- Repository
- claude-code-config ↗
- Licence
- MIT
- Last repository change
- 23.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Install or refresh the shared MkDocs Material style layer (Ink & Indigo on warm paper). Use when setting up or restyling a docs project.
Arguments
/mkdocs-style [--css-dest <path>] [--check]
Original author description
Install or refresh the shared MkDocs Material style layer (Ink & Indigo on warm paper). Use when setting up or restyling a docs project.
How it works
- Arguments
- How the layer works
- Steps
SKILL.md preview
---
name: mkdocs-style
description: Install or refresh the shared MkDocs Material style layer (Ink & Indigo on warm paper). Use when setting up or restyling a docs project.
argument-hint: "[--css-dest <path>] [--check]"
---
Install or update the shared MkDocs style layer in the current project, then
reconcile the project's `mkdocs.yml` with it.
## Arguments
`$ARGUMENTS`
- `--css-dest <path>` — where `custom.css` lands, relative to the project root.
Only needed for non-standard layouts; see step 2.
- `--check` — report drift only: dry-run the installer and diff the vendored
files against the payload. Make no changes.
## How the layer works
The canonical assets live in the claude-code-config repo under `tooling/mkdocs/`:
a partial parent config (`mkdocs.style.yml`: theme, features, palette, fonts,
markdown_extensions, `extra_css`, `extra.generator: false`) and the palette
stylesheet (`custom.css`). A project consumes them via MkDocs native config
inheritance — `INHERIT: mkdocs.style.yml` at the top of its `mkdocs.yml`.
MkDocs merges the child config **onto** the parent: mappings merge per-key
(child wins), but **lists replace wholesale**. So the project must not redefine
`theme.features`, `theme.palette`, `theme.font`, `markdown_extensions`, or
`extra_css` — unless it deliberately owns the whole list (and then `extra_css`
must still include `stylesheets/custom.css`). Per-project branding keys
(`theme.favicon`, `theme.logo`, `theme.icon.logo`) merge safely and stay in the
project.
## Steps
1. Resolve the config repo: `CONFIG_REPO="$(dirname "$(readlink ~/.claude/skills)")"`
(the skills directory is a symlink into the repo). Run
`git -C "$CONFIG_REPO" pull --ff-only` first so the payload is current.
2. Determine the css destination if `--css-dest` was not given:
- Default: `docs/stylesheets/custom.css`.
- Generated-docs projects (e.g. a `scripts/build-docs-tree.sh` that symlinks
assets into a git-ignored `docs/`): use the committed source directory that
is exposed as `stylesheets/` in the docs tree (career-portfolio:
`mkdocs-theme/stylesheets/custom.css`).
3. Run the installer:
`"$CONFIG_REPO/scripts/install-mkdocs-style.sh" --target . [--css-dest <path>]`
(add `--dry-run` under `--check`, then also `diff` the two vendored files
against the payload and report; stop here in check mode).
4. Reconcile `mkdocs.yml` — the judgment work the script only warns about:
- Delete keys now owned by the parent: `theme.name`, `theme.features`,
`theme.palette`, `theme.font`, `theme.icon.repo`, the whole
`markdown_extensions` block, `extra_css` (unless the project needs extra
stylesheets — then keep it as a deliberate whole-list override with
`stylesheets/custom.css` first and a comment saying so), and
`extra.generator`.
- Keep: `INHERIT`, site metadata, plugins, nav, `extra.social`/`extra.tags`,
validation, docs_dir/site_dir, dev_addr, and branding keys
(`theme.favicon`, `theme.logo`, `theme.icon.logo`).
- Delete any superseded palette CSS the project carried before.
- Check logo/favicon contrast: the light header is warm paper (`#faf8f3`) —
a white or very light logo asset becomes invisible. Prefer
`theme.icon.logo` with a Material icon (inline SVG, `currentColor`, adapts
to both schemes) over a fixed-colour image.
- If the project's content might use `--8<--` literally, grep for it —
`pymdownx.snippets` in the shared layer activates include syntax.
5. Verify:
- Strict build via the project's own entry point (`make check`, `make ci`,
`make docs-build`, or `uv run mkdocs build --strict`).
- Spot-check the merged config:
`uv run python -c "from mkdocs.config import load_config; c = load_config(); print(c['theme'].name, len(c['markdown_extensions']))"`
- Show `git diff --stat` and summarise what changed visually (palette,
features gained/lost) so the user can sign off.
Versions
The database has no other skills named mkdocs-style.
Database snapshot: 13.11.2026 · package version 830d239f6887 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100mkdocs
MkDocs is a Python static site generator that builds a documentation site from Markdown files and one mkdocs.yml, most often with the Material for MkDocs theme. Use when a user asks to create project documentation, configure MkDocs themes, add search and navigation, customize… - 100mkdocs-config-generator
Generate mkdocs config generator operations. Auto-activating skill for Technical Documentation. Triggers on: mkdocs config generator, mkdocs config generator Part of the Technical Documentation skill category. Use when configuring systems or services. Trigger with phrases like… - 100mkdocs
Build project documentation sites with MkDocs static site generator. USE WHEN user mentions mkdocs, documentation site, docs site, project documentation, OR wants to create, configure, build, or deploy documentation using Markdown. Covers installation, configuration, theming,… - 100mkdocs-shadcn
mkdocs-shadcn 主题 Markdown 排版与项目编排。当用户需要编写或修改 mkdocs-shadcn 主题的文档、配置 mkdocs.yml、或询问排版语法时,使用此技能。触发词:mkdocs、shadcn、排版、配置、Markdown、文档、admonition、details、tab、提示框、折叠、标签页、格式化、模板。 - 100scientific-documentation
Use when the user asks about setting up docs for a Python package, configuring Sphinx or MkDocs, writing NumPy-style docstrings, or deploying to Read the Docs. Set up and maintain documentation for scientific Python packages. Covers Sphinx, MkDocs, NumPy-style docstrings,… - 100documentation
This skill should be used when the user is setting up MkDocs Material, configuring mkdocstrings, writing docstrings, generating API reference pages, structuring documentation with the Diataxis framework, deploying docs to GitHub Pages or ReadTheDocs, or writing a README. Covers…