scientific-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…
от uw-ssec★ 33 звезды на GitHubОб этом скилле
Scientific Python Documentation
Setup Workflow
End-to-end sequence for a new project. Run each step and verify before proceeding.
1. Choose framework Sphinx (math-heavy / API-first / PDF needed)
MkDocs + Material (Markdown-native / simpler setup)
Jupyter Book (notebook-centric tutorials)
2. Initialize docs/ sphinx-quickstart docs/ OR mkdocs new .
3. Configure Copy asset template, fill in package name and extensions
assets/sphinx-conf-scientific.py (Sphinx)
assets/mkdocs-scientific.yml (MkDocs)
4. Build locally nox -s docs (warns-as-errors on)
└─ Checkpoint: zero warnings, all pages render
5. Check links nox -s docs_linkcheck
└─ Checkpoint: no broken internal or external links
6. Deploy .readthedocs.yaml → import repo on readthedocs.org
assets/readthedocs.yaml for the config file
└─ Checkpoint: RTD build passes; versioned URL resolves
Resources in This Skill
| File | Contents |
|---|---|
assets/sphinx-conf-scientific.py |
Complete annotated conf.py for scientific Python (all extensions pre-configured) |
assets/mkdocs-scientific.yml |
Complete mkdocs.yml with Material theme, math, mkdocstrings, mkdocs-jupyter |
assets/noxfile-docs.py |
Nox sessions: docs, docs_live, docs_linkcheck, docs_spelling, docs_doctest |
assets/readthedocs.yaml |
.readthedocs.yaml v2 with pip install .[docs], fail_on_warning: true |
assets/index-template.md |
Landing page template (badges, one-liner, install snippet, Diataxis nav) |
references/diataxis-framework.md |
Full Diataxis guide: templates and examples for tutorials, how-to, reference, explanation |
references/sphinx-extensions.md |
Extension-by-extension config: autodoc, autosummary, napoleon, intersphinx, myst_parser, mathjax |
references/docstring-examples.md |
NumPy-style docstrings for functions, classes, generators, modules |
references/notebook-integration.md |
nbsphinx and mkdocs-jupyter: execution options, cell tags, CI considerations |
references/accessible-documentation.md |
Accessibility: alt text, color contrast, heading hierarchy, video captions |
references/common-issues.md |
Build failures, autodoc import errors, intersphinx 404s, RTD environment issues |
scripts/generate-api-docs.py |
Script to generate autosummary stubs from package modules |
Framework Quick-Start Snippets
Sphinx — minimal conf.py additions
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.napoleon", # NumPy/Google docstrings
"sphinx.ext.mathjax",
"sphinx.ext.intersphinx",
"sphinx.ext.viewcode",
"numpydoc",
"myst_parser",
]
html_theme = "pydata_sphinx_theme"
napoleon_numpy_docstring = True
autosummary_generate = True
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
}
See assets/sphinx-conf-scientific.py for the full annotated file including theme options, myst extensions, nbsphinx, and version switcher config.
MkDocs — minimal mkdocs.yml additions
theme:
name: material
plugins:
- mkdocstrings:
handlers:
python:
options:
docstring_style: numpy
- mkdocs-jupyter:
execute: false
markdown_extensions:
- pymdownx.arithmatex:
generic: true
See assets/mkdocs-scientific.yml for the full file including navigation structure, MathJax setup, dark/light mode, and search configuration.
Build commands
# Sphinx (via nox — see assets/noxfile-docs.py)
nox -s docs # build with warnings-as-errors
nox -s docs_live # live reload in browser
nox -s docs_linkcheck # check all links
# Sphinx (direct)
sphinx-build -W -b html docs docs/_build/html
sphinx-autobuild docs docs/_build/html
# MkDocs
mkdocs build --strict
mkdocs serve
NumPy-Style Docstrings
Standard for scientific Python packages. Minimal complete example:
def compute_statistic(data, method="mean", axis=0):
"""
Compute a statistical measure along the specified axis.
Parameters
----------
data : array_like
Input data. Any shape.
method : {'mean', 'median', 'std'}, optional
Statistical method. Default is ``'mean'``.
axis : int or None, optional
Axis along which to compute. Default is 0.
Returns
-------
ndarray
Computed statistic with the same shape as `data` minus `axis`.
Raises
------
ValueError
If `method` is not one of the supported options.
Examples
--------
>>> import numpy as np
>>> compute_statistic(np.array([1, 2, 3, 4, 5]))
3.0
"""
Key conventions:
Установить scientific-documentation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл scientific-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, Diataxis framework, accessibility standards, and documentation hosting with Read the Docs.
Как установить скилл scientific-documentation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scientific-documentation запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic