
Execute
Execute the code in a Stencila document and save the outputs into it.
Install
npx skills add stencila/stencila --skill execute -g -a claude-code -y- Repository
- stencila/stencila914
- Category
- Engineering
- Updated
- 3d ago
- License
- Apache-2.0
- Context cost
- Lightabout 205 tokens
- Runs scripts
- No, instructions only
What it does
Execute the code in a Stencila document and save the outputs into it.
/stencila:execute
Execute the document given in $ARGUMENTS.
Use the stencila CLI path reported in session context; otherwise
${CLAUDE_PLUGIN_OPTION_STENCILA_PATH} if set, else stencila. If no CLI
is available, point the user at /stencila:doctor and stop.
NO_COLOR=1 <stencila> execute <input> --yes
- Execution is staleness-driven: unchanged chunks do not re-run. Add
--force-allwhen the user wants everything re-executed. - When the user only wants to check the document (not update it), add
--no-saveso outputs are not written back. --ignore-errorscontinues past failing chunks.
Afterwards, summarise: which chunks ran, which errored (quote the first
error and locate its chunk), and whether the document was saved. See the
execution skill for staleness and kernel details.
