← スキル一覧に戻る

sphinx-docs
by parthspatel
A set of Claude skills for excellence
⭐ 0🍴 0📅 2026年1月22日
SKILL.md
name: sphinx-docs description: Generates documentation using Sphinx and reStructuredText. Supports API docs, user guides, and architecture documentation. Use when creating project documentation, API references, or technical guides.
Sphinx Documentation
Quick Setup
mkdir docs && cd docs
sphinx-quickstart --no-sep --project "My Project" --author "Team"
Project Structure
docs/
├── conf.py # Configuration
├── index.rst # Root document
├── requirements.txt # Doc dependencies
├── Makefile
├── api/ # API reference
├── guides/ # User guides
└── architecture/ # Architecture docs
conf.py (Essential)
project = 'My Project'
extensions = [
'sphinx.ext.autodoc', # Auto-generate from docstrings
'sphinx.ext.napoleon', # Google/NumPy style docstrings
'sphinx.ext.viewcode', # Source links
'sphinx_copybutton', # Copy button for code
'myst_parser', # Markdown support
]
source_suffix = {'.rst': 'restructuredtext', '.md': 'markdown'}
html_theme = 'sphinx_rtd_theme'
requirements.txt
sphinx>=7.0
sphinx-rtd-theme>=2.0
sphinx-copybutton>=0.5
myst-parser>=2.0
RST Basics
Document Structure
Page Title
==========
Section
-------
Subsection
^^^^^^^^^^
Paragraph text with **bold** and *italic*.
.. note::
A note callout.
.. warning::
A warning callout.
Links and References
External: `Link text <https://example.com>`_
Internal: :doc:`other-page`
Reference: :ref:`label-name`
Code Blocks
.. code-block:: python
def hello():
print("Hello")
.. code-block:: bash
npm install
Tables
.. list-table::
:header-rows: 1
* - Header 1
- Header 2
* - Cell 1
- Cell 2
Toctree
.. toctree::
:maxdepth: 2
:caption: Contents
guides/getting-started
guides/configuration
api/index
index.rst Template
Welcome to My Project
=====================
.. toctree::
:maxdepth: 2
:caption: Guides
guides/getting-started
guides/configuration
.. toctree::
:maxdepth: 2
:caption: Reference
api/index
.. toctree::
:maxdepth: 1
changelog
API Documentation
API Reference
=============
.. automodule:: mypackage
:members:
:undoc-members:
.. autoclass:: mypackage.Client
:members:
:special-members: __init__
CLI Documentation
Command Reference
=================
.. option:: -c, --config <path>
Configuration file path.
.. option:: -v, --verbose
Enable verbose output.
Example::
myapp --config config.yaml serve
Build Commands
# Build HTML
make html
# Watch mode (auto-rebuild)
sphinx-autobuild . _build/html
# Check links
make linkcheck
# Clean
make clean
Hosting
GitHub Pages
# .github/workflows/docs.yml
name: Docs
on:
push:
branches: [main]
paths: [docs/**]
permissions:
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install -r docs/requirements.txt
- run: make -C docs html
- uses: actions/upload-pages-artifact@v3
with:
path: docs/_build/html
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@v4
id: deployment
Read the Docs
# .readthedocs.yaml
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.11"
sphinx:
configuration: docs/conf.py
python:
install:
- requirements: docs/requirements.txt
Integration with Diagrams
Include PlantUML/Mermaid diagrams:
.. uml::
@startuml
Alice -> Bob: Hello
@enduml
.. mermaid::
flowchart LR
A --> B
Requires: sphinxcontrib-plantuml, sphinxcontrib-mermaid
スコア
総合スコア
45/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
○言語
プログラミング言語が設定されている
0/5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です