From datascience
Add or fix footnotes in a notebook or markdown file using Jupyter-compatible anchor pattern
How this command is triggered — by the user, by Claude, or both
Slash command
/datascience:apply-footnotes path to file and what to footnote, e.g. 'notebooks/01-kj-analysis.ipynb add citations for papers mentioned'This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Apply Footnotes Read the `datascience:footnotes` skill first - it is the single source of truth for the footnote pattern. Do NOT duplicate its content here. Add Jupyter-compatible footnotes to a notebook or markdown file. Converts inline references to superscript anchor links with a footnote section. ## What to do 1. Read the target file 2. Identify what needs footnotes based on user's request: - Paper references mentioned in prose - Technical claims that need sources - Acronyms or terms that need definition - Data sources that need attribution - User-specified items 3...
Read the datascience:footnotes skill first - it is the single source of truth for the footnote pattern. Do NOT duplicate its content here.
Add Jupyter-compatible footnotes to a notebook or markdown file. Converts inline references to superscript anchor links with a footnote section.
Read the target file
Identify what needs footnotes based on user's request:
For each footnote:
[<sup>N</sup>](#fnN) at the reference point in text<span id="fnN"><sup>N</sup> Footnote content.</span><br> to footnote sectionIf no footnote section exists, create one:
## Footnotes markdown cell at the end, or --- separator in the same cell--- separator + footnotes at the bottomNumber footnotes sequentially: fn1, fn2, fn3...
If the file has broken footnotes:
id on spans -> add them[1] references -> convert to [<sup>1</sup>](#fn1) pattern<br> between them -> add breaks[^1] syntax (not supported in Jupyter) -> convert to anchor patternnpx claudepluginhub stellarshenson/claude-code-plugins --plugin datascience