Awesome-Agent-Skills-for-Empirical-Research execute
Executes all registered notebooks, strips noisy cell metadata, and syncs Jupytext pairs. Use when asked to re-run notebooks or refresh outputs.
install
source · Clone the upstream repo
git clone https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/29-quarcs-lab-project20XXy/dot-claude/skills/execute" ~/.claude/skills/brycewang-stanford-awesome-agent-skills-for-empirical-research-execute && rm -rf "$T"
manifest:
skills/29-quarcs-lab-project20XXy/dot-claude/skills/execute/SKILL.mdsource content
Execute All Notebooks
Execute all registered notebooks, strip noisy metadata, and sync Jupytext pairs.
Steps
- Read
and extract all notebook paths from_quarto.ymlmanuscript.notebooks - For each notebook, execute it:
Record execution time and success/failure for each notebook.uv run jupyter execute --inplace notebooks/<name>.ipynb - After all notebooks execute, strip noisy cell metadata from every
file. Open each.ipynb
as JSON and remove these keys from every cell's.ipynb
object:metadata
(timestamps added byexecution
)jupyter execute
(MyST/Sphinx artifact)_sphinx_cell_id
(VS Code editor state) Save the cleaned JSON back to the file (preserve formatting with 1-space indent).vscode
- Sync all Jupytext
pairs:.mduv run jupytext --sync notebooks/<name>.md - Report a summary table:
- Notebook name
- Status (success / failure)
- Execution time
- Any errors or warnings
Error handling
- If a notebook fails to execute, continue with the remaining notebooks. Report the error at the end.
- If
has no notebooks registered, report "No notebooks found in _quarto.yml" and stop._quarto.yml