mkdocs-style
Skill8 starsChanged 19 days agoMITView on GitHub
Install or refresh the shared MkDocs Material style layer (Ink & Indigo on warm paper). Use when setting up or restyling a docs project.
In this repository20 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- home/CLAUDE.mdCLAUDE.md
- run-claude-code-configSkill
- adrSkill
- api-designSkill
- commitSkill
- django-patternsSkill
- docker-patternsSkill
- eow-reviewSkill
- git-workflowSkill
- hotfixSkill
- infrastructureSkill
- laterSkill
- project-setupSkill
- prSkill
- refinementSkill
- security-patternsSkill
- standupSkill
- statusSkill
- testing-patternsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Only needed for non-standard layouts.
- Very specific: line 56
Delete keys now owned by the parent: theme.name, theme.features, theme.palette, theme.font, theme.icon.repo, the whole markdown_extensions …
- Very specific: line 62
Keep: INHERIT, site metadata, plugins, nav, extra.social/extra.tags, validation, docs_dir/site_dir, dev_addr, and branding keys …
- Distinctive: line 65
Delete any superseded palette CSS the project carried before.
- Very specific: line 66
Check logo/favicon contrast: the light header is warm paper (#faf8f3) — a white or very light logo asset becomes invisible.
- Very specific: line 70
If the project's content might use --8<-- literally, grep for it — pymdownx.snippets in the shared layer activates include syntax.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
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>— wherecustom.csslands, 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
- Resolve the config repo:
CONFIG_REPO="$(dirname "$(readlink ~/.claude/skills)")"(the skills directory is a symlink into the repo). Rungit -C "$CONFIG_REPO" pull --ff-onlyfirst so the payload is current. Determine the css destination if
--css-destwas not given:- Default:
docs/stylesheets/custom.css. - Generated-docs projects (e.g. a
scripts/build-docs-tree.shthat symlinks assets into a git-ignoreddocs/): use the committed source directory that is exposed asstylesheets/in the docs tree (career-portfolio:mkdocs-theme/stylesheets/custom.css).
- Default:
- Run the installer:
"$CONFIG_REPO/scripts/install-mkdocs-style.sh" --target . [--css-dest <path>](add--dry-rununder--check, then alsodiffthe two vendored files against the payload and report; stop here in check mode). 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 wholemarkdown_extensionsblock,extra_css(unless the project needs extra stylesheets — then keep it as a deliberate whole-list override withstylesheets/custom.cssfirst and a comment saying so), andextra.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. Prefertheme.icon.logowith 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.snippetsin the shared layer activates include syntax.
- Delete keys now owned by the parent:
- Verify:
- Strict build via the project's own entry point (
make check,make ci,make docs-build, oruv 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 --statand summarise what changed visually (palette, features gained/lost) so the user can sign off.
- Strict build via the project's own entry point (
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.

