/repomatic:sphinx-docs-sync [path-or-github-url ...]from Repomatic
Audits and synchronizes Sphinx documentation structure, config, and dependencies against a canonical reference or across sibling projects. Detects discrepancies in conf.py, toctree, badges, and static assets.
Ships in Repomatic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
![ -f repomatic/__init__.py ] && echo "CANONICAL_REPO" || echo "DOWNSTREAM"
![ -d docs ] && echo "docs/ exists" || echo "No docs/ directory"
![ -f docs/conf.py ] && head -5 docs/conf.py || echo "No docs/conf.py"
!ls ../*/docs/conf.py 2>/dev/null | head -20 || echo "No sibling projects with docs/conf.py"
You audit Sphinx documentation consistency against a reference: the upstream kdeldycke/repomatic canonical docs when run in a downstream repo, or sibling projects when run inside the canonical repo (see § Discover projects for how the reference is chosen). Find discrepancies in both directions: improvements this project can borrow from the reference, and improvements it can push back.
This skill is the procedure layer; the rule layer is .claude/agents/sphinx-docs.md. It carries the canonical conventions: {click:run} directives, recipes for configuration.md/cli.md/install.md, the standard page roster, conf.py hygiene, MyST/admonition rules, high-frequency lapses. When a discrepancy maps to a rule, cite the agent section so the user reads the rationale alongside the proposed change. When you find a pattern not yet codified, propose adding it to the agent rather than fixing it in each repo independently.
If $ARGUMENTS are provided, each argument is a local directory path or a GitHub repository URL (https://github.com/owner/repo or owner/repo). For GitHub URLs, clone into a tmpdir with gh repo clone.
When no $ARGUMENTS are given, the default reference depends on which repo you are in (the ## Context block reports CANONICAL_REPO or DOWNSTREAM):
DOWNSTREAM: compare this project's docs/ against the canonical kdeldycke/repomatic reference, cloned into a tmpdir with gh repo clone kdeldycke/repomatic. This is the "align me with the source of truth" default, mirroring how /repomatic-upgrade audits workflows and configs.CANONICAL_REPO (you are inside kdeldycke/repomatic): comparing against kdeldycke/repomatic would diff the repo against itself, so scan the parent directory of the cwd for sibling projects with a docs/conf.py and push conventions outward to them instead.When scanning siblings, filter out forks: check git remote get-url origin and skip projects whose upstream repo name doesn't match the directory name (a local click/ pointing to a fork of pallets/click). Focus on the user's own projects.
List the discovered projects (or the chosen reference) and confirm with the user before proceeding.
Build first, and count the warnings. A static read of conf.py and the page tree misses the findings that matter most, because nothing in the source says a module is documented twice or a cross-reference resolves nowhere. Run the project's own builder ([tool.repomatic] sphinx.builder, html unless set) into a scratch directory before touching anything, tally WARNING lines by shape, and keep the log: that baseline is what turns "this page repeats an automodule" into "192 duplicate object descriptions", and it is the only way to prove a proposed change inert. Re-run after applying and diff the distinct unresolved targets, not just the totals, since a count can hold steady while one warning replaces another. The venv usually already carries sphinx-build, so invoke it directly rather than syncing a dependency group and disturbing the project's environment. Settle any "is this setting still needed?" question with the same pair of builds: remove it, rebuild, compare. To remove a setting without editing a shared conf.py, override it on the command line: -D suppress_warnings=myst.header replaces that list, split on commas. Unpickle environment.pickle from the doctree directory and read env.config to confirm the build used the override.
For each project, collect (parallelize with sub-Agents when possible). For each artifact, the agent section in parentheses is where the convention lives — diff the project against that section, not against your own preferences.
docs/conf.py (agent § docs/conf.py hygiene, § Standard extension set). Read the full file. Surface settings present in some projects but missing from others; deprecated/renamed settings; read_text() calls without encoding=. Cross-check the extension list against the canonical set; flag projects missing sphinxext.opengraph or sphinxcontrib.mermaid that would benefit from them. Confirm myst_enable_extensions is alphabetized, and enables only the extensions of the canonical list that the docs use. Verify that click_extra.sphinx.myst_docstrings comes with a click-extra[sphinx] entry in [dependency-groups] docs.conf.py warning/strictness governance (agent § suppress_warnings governance, § nitpick_ignore governance, § Linkcheck and intersphinx). Audit each suppress_warnings, nitpick_ignore, and linkcheck_ignore entry: does it carry a comment naming the failing case and the reason for suppression? Flag uncommented entries. Re-test linkcheck-ignored hosts on each audit pass; remove entries that have started working again. Suggest migrating per-anchor linkcheck_anchors_ignore patterns to per-host linkcheck_anchors_ignore_for_url when the entire host is JS-rendered.docs/index.md (agent § Standard page roster). Diff toctree shape, page ordering, and presence/absence of standard pages.docs/install.md (agent § Recipes › install.md). Diff section roster, install-method tab order, Binaries table format, Repology badge, Python compatibility matrix structure, gh attestation verify section.docs/cli.md and docs/configuration.md (agent § Recipes). The canonical kdeldycke/repomatic docs render both pages live, through the {click:tree} and {click:config} directives, and hold no auto-region marker in them. In a project that still writes these pages between markers, diff the regions, then compare its regenerator script (docs/docs_update.py). A project with no marker in these pages has already migrated and is not missing anything.docs/*.md for <!-- start -->/<!-- end --> pairs; flag any bare markers, recommend renaming to <!-- {feature}-{kind} -->/<!-- {feature}-{kind}-end -->. Confirm that named markers across siblings use consistent {kind} slugs (table, sankey, mindmap, chart, autodata, automodule, autodoc, reference).conf.py hygiene › Theme assets and OpenGraph). Confirm the sidebar logo is Furo's light_logo/dark_logo pair in html_theme_options, each name also listed in html_static_path, with html_logo unset — Furo prefers html_logo and skips the pair when it is present, so a lingering html_logo is drift to report, never the thing to confirm. Confirm html_favicon = "assets/favicon.svg", and that ogp_image is _static/banner-social-<variant>.png with that PNG also listed in html_static_path, never a bare assets/... path (docs/assets/ is not copied into the built site, so that value 404s for social crawlers). An absolute raw.githubusercontent.com URL was the earlier rule: it still resolves, so report it as alignment, not as a bug. Flag projects with sphinxext.opengraph enabled but no ogp_image set. Suggest the user run /brand-assets on flagged projects to regenerate or backfill the asset set in one pass.sphinx_issues roles (agent § Standard extension set). Grep each project for {issue} /{pr} / {user} /{commit} (MyST) and :issue: /:pr: / :user: /:commit: (reST) across *.md, *.rst, *.py. Flag every occurrence, and recommend an explicit GitHub URL in its place. Once none is left, drop "sphinx_issues" from extensions in conf.py, "sphinx-issues>=…" from [dependency-groups] docs, and any issues_github_path setting unused by other extensions.pyproject.toml docs dependency group. Compare against what conf.py actually imports — flag undeclared imports and declared-but-unimported deps. Don't change version pins unless provably stale (a conditional dep on a Python version below the project's floor; a transitively-constrained loose pin held by a meta-extra like click-extra[sphinx]).readme.md. Compare badge sets and section structure. Flag developer setup held in a ## Development section or in AGENTS.md: it belongs on the contributing page (per agent § Standard page roster).tests/sphinx/, tests/test_sphinx_*.py, or test_sphinx_crossrefs.py. Note which projects have render-tests and which don't; suggest adopting cross-reference render tests where the docs surface complex {role} cross-refs.docs/_static/, docs/assets/, .rst files, docs_update.py. Hunt for stale .rst orphans from past package renames.Present findings as tables organized by category:
### Category name
| Issue | Severity | Direction | Projects |
|:------|:---------|:----------|:---------|
| description (cite agent § X) | bug/align/enhance | borrow/push | list |
Group, in this order:
conf.py settings).After presenting the report, ask the user which items to apply. When they confirm, group edits by project to minimize context switches.
These are about how you run the audit, not what counts as a violation:
[tool.repomatic] nuitka.enabled = false.[tool.repomatic] exclude and include lists are authoritative. A page or component listed in exclude is intentionally absent.pyproject.toml is half the change: every workflow here installs with uv run --frozen, so an unregenerated uv.lock fails the docs job on the next push. Re-lock in the same pass, with XDG_CONFIG_HOME pointed at an empty directory so a machine-wide uv.toml cannot write its own exclude-newer-package entries into the project's lockfile. Never reach for --no-config, which discards the project's [tool.uv] along with it.linkcheck_ignore hosts: network allowlists make denials indistinguishable from real 403s. Hand the probe list to the user or defer to a local sphinx-build -b linkcheck run instead of silently skipping the re-test.Suggest the user run:
/repomatic-upgrade in each downstream project, for broader workflow and config alignment./repomatic-deps to analyze dependency graphs for projects with stale or divergent docs deps.sphinx-docs agent (repomatic init subagents/sphinx-docs) on any project that drifted significantly — Claude will then auto-load the conventions when working in that repo.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 skills in this plugin
/av-false-positiveScan a release on VirusTotal. Write submission instructions for each AV vendor that flags a false positive./awesome-triageTriage new issues and PRs on awesome-list repos. Apply the curation criteria drawn from past decisions./babysit-ciMonitor the CI tests, lint, autofix, docs and Nuitka binary-build workflows. Diagnose each failure, fix the code, commit, and loop until every stable job passes. Ignore unstable failures./benchmark-updateCreate or update the competitive benchmark page (docs/benchmark.md) that compares this project against its alternatives. Check maintenance status, feature accuracy, new candidates and badge health./brand-assetsCreate project logo and banner SVGs, then export them to light and dark PNG variants. Use when you design a logo or banner, or regenerate the PNGs from their SVG source files./file-bug-reportWrite a bug report for an upstream project, or a reply on an existing issue. Read its contribution guidelines, issue templates and community norms first, then produce a markdown file ready to paste.npx claudepluginhub kdeldycke/repomatic --plugin repomaticOther plugins' skills for the same job