zensical-setup
Skill1 starsChanged 7 months agoMITView on GitHub
Add Zensical (the Rust-powered successor to Material for MkDocs) to a new or existing project — generate zensical.toml, scaffold docs/, migrate an existing mkdocs.yml, and wire a GitHub Pages deploy workflow, idempotently, without clobbering existing config.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- AI-Riksarkivet/ra-mcptheir own version, first seen Feb 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- AI-Riksarkivet/ra-mcp★ 26same 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 repository36 other files it gives its agents.
- skills/backend-best-practices/AGENTS.mdAGENTS.md
- adr-writerSkill
- application-healthchecksSkill
- backend-best-practicesSkill
- bspec-prd-discoverySkill
- bspec-story-implementationSkill
- bspec-story-reviewSkill
- bspec-story-syncSkill
- bspec-technical-architectureSkill
- bspec-workflowSkill
- conventional-commitsSkill
- copier-scaffoldSkill
- devenvSkill
- direnvSkill
- docker-composeSkill
- dockerfileSkill
- docker-setupSkill
- docs-writerSkill
- github-actions-dockerSkill
- gitleaks-setupSkill
- golang-developmentSkill
- golang-slogSkill
- golang-testingSkill
- playwright-devenvSkill
- project-webappSkill
- readme-writerSkill
- release-drafter-setupSkill
- release-drafterSkill
- release-notesSkill
- renovate-pr-triageSkill
- renovate-setupSkill
- structured-loggingSkill
- summarize-articleSkill
- summarize-youtube-videoSkill
- tailwind-v4Skill
- vicinae-extensionsSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use when asked to "set up Zensical", "add Zensical docs", "migrate from MkDocs/Material for MkDocs to Zensical", or "bootstrap a docs site" …
- Very specific: line 29
Check for zensical.toml, mkdocs.yml/mkdocs.yaml, an existing docs/ directory, and .github/workflows/*.yml that already build/deploy docs.
- Very specific: line 30
If zensical.toml already exists: zensical new itself refuses to run (errors if the config file is already there) — read the existing file, …
- Very specific: line 31
If only mkdocs.yml/mkdocs.yaml exists (MkDocs or Material for MkDocs project, no Zensical yet): this is a migration, not a fresh install — …
- Distinctive: line 78
Don't paste every commented-out option from the bootstrap template — set only what the project analysis in step 3 justifies:
- Very specific: line 133
All three commands accept -f/--config-file to point at a config file outside the default resolution order.
- Distinctive: line 173
Before wiring this in, confirm the repo's GitHub Pages source is set to "GitHub Actions" (Settings → Pages) — that's an …
- Distinctive: line 177
Ensure the build output directory is ignored — check for an existing entry before adding:
- Distinctive: line 187
Not for authoring documentation content itself — this skill sets up the tool, not the docs.
- Very specific: line 188
Not a full mkdocs.yml → zensical.toml translator for every possible MkDocs plugin — flag plugins with no known Zensical equivalent rather …
- Distinctive: line 189
Not for provisioning GitHub Pages / custom domain DNS — those are repo/account-level settings to hand back to the user.
- Very specific: line 190
Not a substitute for the Zensical docs on advanced topics (custom theme packaging, multi-language sites, mkdocstrings-style auto-doc …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Zensical Setup — add or migrate to Zensical documentation tooling
Use when asked to "set up Zensical", "add Zensical docs", "migrate from MkDocs/Material for MkDocs to Zensical", or "bootstrap a docs site" on a project that wants one. Reference: zensical.org/docs, github.com/zensical/zensical.
Zensical is the Rust/Python static site generator built by the Material for MkDocs team as its next-generation successor — same theme lineage, millisecond differential builds, and it can read an existing mkdocs.yml directly so migration doesn't require a rewrite on day one.
Use Alongside
github-actions-docker— if the project wants more than the default Pages deploy workflow (e.g. a PR preview build), that skill owns the broader CI pattern; this skill only wires the minimaldocs.ymlZensical ships by default.renovate-setup/gitleaks-setup— if already run, reuse whatever label/schedule conventions they established rather than inventing new ones for the docs workflow.
When to Use
- Repo has no docs tooling yet and the user wants a Markdown-driven site.
- Repo already uses MkDocs or Material for MkDocs (
mkdocs.ymlpresent) and the user wants to move to Zensical. - Repo has Zensical already but
zensical.tomllooks like an untouched default and the user wants it tuned.
Procedure
1. Detect existing setup first — never blind-overwrite
- Check for
zensical.toml,mkdocs.yml/mkdocs.yaml, an existingdocs/directory, and.github/workflows/*.ymlthat already build/deploy docs. - If
zensical.tomlalready exists:zensical newitself refuses to run (errors if the config file is already there) — read the existing file, report what's configured, and ask whether to leave, extend, or replace before touching it. - If only
mkdocs.yml/mkdocs.yamlexists (MkDocs or Material for MkDocs project, no Zensical yet): this is a migration, not a fresh install — see step 3.
2. Confirm Python tooling
Zensical is a Python package with a Rust core; it requires Python ≥ 3.10. Check python3 --version and how the repo manages Python (pyproject.toml, requirements.txt, .python-version, uv.lock) to install consistently with the rest of the project rather than introducing a second convention:
# pip, inside a venv
python3 -m venv .venv && source .venv/bin/activate
pip install zensical
# uv (preferred if the repo already uses uv)
uv add --dev zensical
# conda/mamba
conda install -c conda-forge zensicalA Docker image is also published at zensical/zensical on Docker Hub if the project prefers not to install a local toolchain.
3. Fresh install vs. migration
Fresh install (no existing docs config):
zensical new [directory]This scaffolds, without overwriting anything already present:
.
├─ .github/workflows/docs.yml # GitHub Pages deploy workflow
├─ docs/
│ ├─ index.md
│ └─ markdown.md
└─ zensical.tomlMigration from mkdocs.yml (Material for MkDocs already in place):
- Zensical reads
mkdocs.yml/mkdocs.yamlnatively —zensical build/zensical servewill pick it up automatically if nozensical.tomlexists (config file resolution order:zensical.toml→mkdocs.yml→mkdocs.yaml), so the site can run unchanged as a first step. - For a project that wants to commit to Zensical long-term, port the config to
zensical.toml(TOML is the recommended format going forward) rather than leavingmkdocs.ymlas the source of truth indefinitely — translate themkdocs.ymltop-level keys into the[project]table (see step 4), andtheme:options into[project.theme]. - Flag to the user: plugin/extension parity with the MkDocs ecosystem is still growing (Zensical is young — check the current plugin list in the docs before assuming a
mkdocs-*plugin the project relies on already works), so a straight migration should be validated withzensical build --strictbefore trusting it in CI.
4. zensical.toml — core [project] fields
Don't paste every commented-out option from the bootstrap template — set only what the project analysis in step 3 justifies:
[project]
site_name = "Documentation" # required
site_description = "…"
site_author = "…"
site_url = "https://example.com/" # set if publishing online
copyright = """
Copyright © 2026 The authors
"""
# docs_dir = "docs" # default; cannot be "."
# site_dir = "site" # default; this is the build output, gitignore it
[project.theme]
# variant = "classic" # default is "modern"; "classic" = traditional Material for MkDocs look
language = "en"
features = [
"content.code.copy",
"content.code.select",
"navigation.instant",
"navigation.instant.prefetch",
"navigation.tracking",
"navigation.top",
"search.highlight",
]
[[project.theme.palette]]
scheme = "default"
toggle.icon = "lucide/sun"
toggle.name = "Switch to dark mode"
[[project.theme.palette]]
scheme = "slate"
toggle.icon = "lucide/moon"
toggle.name = "Switch to light mode"Notes:
- Navigation: if no
navarray is set, Zensical derives it from thedocs_dirdirectory structure — only add an explicitnav = [...]if the project needs an order or grouping the file tree doesn't already express. [project.theme.icon].logogives a built-in icon (e.g."lucide/smile") if there's no project logo yet; a real logo file goes in[project.theme]aslogo = "assets/logo.png"(path relative todocs_dir).[project.markdown_extensions.*]mirrors PyMdown Extensions config (admonition,pymdownx.superfences,pymdownx.tabbed, etc.) — only add entries the content actually uses; don't cargo-cult the full bootstrap list into a project that won't use e.g.arithmatexormermaidfences.
5. Preview and build
zensical serve # dev server, default http://localhost:8000, live reload
zensical serve -o # also opens the browser
zensical serve -a 0.0.0.0:8080 # custom bind address/port
zensical build # one-shot build to site_dir (default: site/)
zensical build -c # --clean: clear cache before building
zensical build -s # --strict: abort the build on warnings — use in CIAll three commands accept -f/--config-file to point at a config file outside the default resolution order. Note serve --strict is currently a no-op upstream (prints a warning) — only build --strict actually enforces it, so CI validation should call build, not rely on serve.
6. Deploy workflow
The scaffolded .github/workflows/docs.yml builds and publishes to GitHub Pages on push to main/master:
name: Documentation
on:
push:
branches:
- master
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/configure-pages@v6
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: 3.x
- run: pip install zensical
- run: zensical build --clean
- uses: actions/upload-pages-artifact@v5
with:
path: site
- uses: actions/deploy-pages@v5
id: deploymentIf the repo already has a docs/CI workflow (from a prior MkDocs setup or github-actions-docker), don't add a second one — update the existing job's build step to zensical build --clean instead. If it doesn't deploy to GitHub Pages (e.g. Netlify/Cloudflare Pages/S3), swap the publish steps but keep pip install zensical && zensical build --clean as the build step, and add zensical build --strict as a separate PR-check job so broken docs fail CI before merge rather than only failing at deploy time.
Before wiring this in, confirm the repo's GitHub Pages source is set to "GitHub Actions" (Settings → Pages) — that's an account/repo-setting change outside this skill's scope, flag it rather than assuming it's already set.
7. .gitignore
Ensure the build output directory is ignored — check for an existing entry before adding:
/site/(Adjust the path if site_dir was customized in step 4.)
Non-Goals
- Not for authoring documentation content itself — this skill sets up the tool, not the docs.
- Not a full
mkdocs.yml→zensical.tomltranslator for every possible MkDocs plugin — flag plugins with no known Zensical equivalent rather than guessing at a silent drop. - Not for provisioning GitHub Pages / custom domain DNS — those are repo/account-level settings to hand back to the user.
- Not a substitute for the Zensical docs on advanced topics (custom theme packaging, multi-language sites,
mkdocstrings-style auto-doc plugins) — link out rather than re-deriving them here.
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.

