agentleFS
fmindfmind/dot/skills/documentation-site/SKILL.md

documentation-site

Skill10 starsChanged 56 days agoMITView on GitHub

Build Zensical docs and course sites: navigation, API docs, Pages, MkDocs/Hugo migration.

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
  1. Distinctive:

    Use Zensical as the default static site generator for project documentation, courses, and blogs.

    line 15
  2. Distinctive:

    Inspect the project: keep existing content, URLs, and publication rules.

    line 19

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Documentation Sites

Use Zensical as the default static site generator for project documentation, courses, and blogs; keep an existing generator only when the project depends on it or the user asks. course-development owns learning design and executable labs; repository-docs owns README and AGENTS consistency.

Workflow

  1. Inspect the project: keep existing content, URLs, and publication rules. For an MkDocs or Hugo site, follow migration instead of scaffolding over it.
  2. Bootstrap with a locked dependency: check the latest release, then add it as a dev dependency so uv run and uv sync --locked include it. Skip uv init in an existing Python project; run zensical new in a scratch directory when docs/ or zensical.toml already exists, because it never overwrites files.
    uv init --bare <slug> && cd <slug>
    uv add --dev zensical
    uv run zensical new .
  3. Apply the starter: replace the generated files with the zensical.toml, index.md as docs/index.md, extra.css as docs/stylesheets/extra.css, and abbreviations.md as includes/abbreviations.md; delete docs/markdown.md. Fill every <placeholder>, set the real site_url with its hosting prefix, and drop unused sections. The starter enables instant navigation, Copy as Markdown, llms.txt, social cards, a glossary, checked snippets, and minified HTML; configuration explains each feature and the optional ones (blog, tags, redirects, API reference, versions, offline).
  4. Write under docs/: one H1 per page, explicit nav, a section index.md for overviews, relative .md links, and a description in front matter for search and social cards. Use authoring for page types and syntax, and the lesson template for courses.
  5. Wire tasks and ignores: merge mise.toml into the task graph and add site/ and .cache/ to .gitignore. Use dprint for Markdown and python-stack for executable examples.
  6. Validate: uv run --locked zensical build --clean --strict must print No issues found and exit 0. Preview with uv run --locked zensical serve (default localhost:8000) and check navigation, search, both palettes, a 390 px viewport, keyboard use, and code copy; use playwright for screenshots. Run lesson code and external links separately.
  7. Publish: replace the generated .github/workflows/docs.yml with the pinned docs.yml, which builds every pull request strictly and deploys main to GitHub Pages; github-actions owns pins and audits. Enabling Pages or deploying needs publication authority.

Gotchas

  • Diagnostics come first: a strict failure prints the file, line, and column, then a Python traceback; read the head of the output.
  • Strict mode has gaps: it catches missing pages, anchors, snippets (check_paths), and unresolved autorefs, but unclosed fences and unknown icon shortcodes build silently. Review the rendered pages.
  • site_url is load-bearing: llmstxt aborts without it; instant navigation, previews, and the sitemap degrade; a wrong prefix breaks social card and llms.txt links.
  • Unsupported plugins are silently ignored: Zensical never runs MkDocs plugin code. Check the plugin list for the locked version before relying on one. gen-files, hooks, exclude_docs, draft_docs, and not_in_nav are unsupported.
  • Check features before enabling them: some theme features exclude each other, offline builds drop several, and fonts, Mermaid, and analytics contact third parties; check configuration before enabling one.
  • Some layouts and modes are unsupported: docs_dir cannot be .; uv's symlink link mode is unsupported; serve has no strict mode, and a busy port fails with Address already in use (pass -a 127.0.0.1:<port>).
  • Keep Zensical locked: Zensical is pre-1.0 (0.0.x) and releases often; keep uv.lock committed, upgrade with uv lock --upgrade-package zensical, and rebuild --clean. The CI template stays cache-free as upstream advises. Tested on 0.0.67.
  • Preserve existing site branding: the starter applies fmind/theme tokens to the light scheme and Google Sans fonts. Preserve an existing site's identity; follow fmind-visuals for Fmind logos and assets.

Documentation

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.