원클릭으로
gen-docs
Update λPIC Sphinx documentation after meaningful code changes that affect product behavior, API, or user experience.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Update λPIC Sphinx documentation after meaningful code changes that affect product behavior, API, or user experience.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | gen-docs |
| description | Update λPIC Sphinx documentation after meaningful code changes that affect product behavior, API, or user experience. |
This repository maintains Sphinx-based documentation under docs/source/. Documentation is written in reStructuredText (.rst) and built with Sphinx (theme: Furo). API reference pages use autodoc / automodule to pull content directly from Python docstrings.
Use this skill to update the corresponding documentation whenever the codebase has changes that affect user-facing behavior, public API, or simulation usage.
This skill depends on the following being in place. If any are missing, stop and report to the user before continuing:
docs/source/ directory with Sphinx configuration (conf.py) set up.makefile present at repository root (used for build/test targets).Inspect changes
git log main..HEAD --oneline — commits on the current branchgit diff main..HEAD --stat — file-level scopeUnderstand user-facing impact
For each change, read the actual implementation when needed; do not infer behavior from commit messages alone. Skip:
If after the scan you conclude there is no user-facing impact, say so and stop.
Update docstrings in source code (if API changed)
Because API reference pages (api.rst, simulation.rst, species.rst, callbacks.rst, core.rst) use autodoc / automodule, the primary documentation for classes and functions lives in their Python docstrings.
Parameters, Returns, Attributes, Examples, etc.lambdapic/callbacks/.Update narrative documentation (if behavior or usage changed)
Edit the affected .rst pages under docs/source/:
introduction.rst — for high-level concept or getting-started changesinstallation.rst — for dependency or install procedure changesexample.rst — for new examples or changes to existing examples in example/write_callbacks.rst — for changes to callback authoring patternsextension.rst — for changes to the extension/plugin mechanismAI_prompt.rst / AI_prompt.md — for changes to the AI prompt referenceMatch the existing reStructuredText style and section hierarchy.
Build and verify docs locally
If a make docs target exists, run:
make docs
If it does not exist, run Sphinx directly:
sphinx-build -b html docs/source docs/build
Check for warnings (Sphinx warnings often indicate broken cross-references or autodoc failures). Fix them before finishing.
To serve docs locally for visual review:
python -m http.server -d docs/build 8000
.rst files. The .rst API pages should remain thin wrappers (automodule, autoclass, autofunction).Parameters:, Returns:, Examples:). Use type hints in code; Napoleon will pick them up.example.rst uses literalinclude to pull code from example/. If you update an example script, the docs will auto-update on rebuild; verify the rendered output looks correct.:ref:, :doc:, :class:, :func:) rather than hard-coding URLs or module paths..rst files when autodoc will generate it from docstrings..rst wrappers and forgetting to update the underlying Python docstrings.If the root makefile does not yet have doc targets, consider adding:
.PHONY: docs docs-serve
docs:
sphinx-build -b html docs/source docs/build
docs-serve:
python -m http.server -d docs/build 8000