exec
Execute a calcified .calcifier/recipe.py pipeline. Use when the user asks to "run a calcified skill", "exec a calcifier recipe", or wants deterministic playback of a pinned skill.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 22
- Forks
- 0
01 前言 Front Matter
- name
- exec
- description
- Execute a calcified .calcifier/recipe.py pipeline. Use when the user asks to "run a calcified skill", "exec a calcifier recipe", or wants deterministic playback of a pinned skill.
- allowed-tools
- Bash
02 资源文件 2
03 SKILL.md 正文
calcifier:exec — run a calcified recipe
Runs a calcified .calcifier/recipe.py. The recipe is a Python module with a single @recipe-decorated entry function whose body composes @step-decorated typed phases with ordinary Python control flow. The runtime captures a per-step trace (including agent calls and their typed outputs) and prints a pass/fail summary.
calcifier exec refuses to run a recipe whose complete-file sha256 isn't in the current user's Calcifier trust store. The first run on any recipe — and the first run after any edit — must pass --trust to record local consent.
When to invoke
- The user asks to "run a calcified skill", "exec the recipe", "replay the calcifier pipeline".
- The user is operating on a SKILL.md that already has a
.calcifier/recipe.pynext to it.
Inputs
- Path to a
recipe.py(most commonly<skill-dir>/.calcifier/recipe.py). - Any inputs the recipe declares as parameters of its
@recipefunction. Pass them via--input key=value(repeatable). If the recipe declares a parameter without a default and the user did not supply a value, ASK before running — do not invent values.
Procedure
- Run
calcifier --versionto confirm install. - Read the recipe and inspect the signature of the
@recipe-decorated function. Each parameter is a recipe input; required inputs are those without a default. - Collect missing required inputs from the user, then run:
The first run also needscalcifier exec <recipe-path> --input k1=v1 --input k2=v2--trust(after the user has reviewed the recipe). Agent-backed recipes require--agent-config <agents.json>. - Read the printed run summary. The summary lists every
@stepinvocation in execution order with pass/fail, duration, and (on failure) thefail()reason or the exception type. - If the run failed, point the user at the failing step and suggest
calcifier debug <recipe>for verbose logs.
Notes
- Agents are read-only and return typed data. Deterministic declared host operations perform and verify generated filesystem mutations.
- Independent model fan-out uses
parallel(). Workers do not mutate shared state; ordinary Python merges their results. - Every agent-backed recipe declares whole-run call and wall budgets, and agent-config v1 declares per-role timeouts. Every attempted call, including a parse retry, is charged.
- The recipe file MUST end with
if __name__ == "__main__": raise SystemExit(<name>.cli())so direct execution preserves a failing exit code. - Generated filesystem mutations use declared primitives beneath
output_root;--dry-run hardstops a mutating generated recipe before any agent call.
Output
A line-by-line summary of the run, ending in a single verdict line (OK or FAIL).
04 同仓库更多 Skills
support
暂无简介
text-search
Find the files in a workspace that mention a phrase and explain each match.
style-review
Review a document against the team style guide and list concrete fixes.
release-notes
Write release notes for the merged changes in a workspace.
release-digest
Produce a short digest of the release notes for a workspace.
update
Re-calcify a SKILL.md and unified-diff the result against the on-disk recipe. Use when the user asks to "check calcifier drift", "diff a recipe against its skill", or "update a calcified recipe".