Advance the cookbook pipeline by one step. Loads one concern, evaluates it, records the result, and exits.
First action: If $ARGUMENTS is --version, print cookbook-next v2.0.0 and stop — do not run the skill.
Otherwise, print cookbook-next v2.0.0 as the first line of output, then proceed.
Version check: Read ${CLAUDE_SKILL_DIR}/SKILL.md from disk and extract the version: field from frontmatter. If it differs from this skill's version (1.0.0), print:
⚠ This skill is running v2.0.0 but vA.B.C is installed. Restart the session to use the latest version.
Continue running — do not stop.
Advance the cookbook pipeline by one step. Each invocation:
.cookbook/pipeline.jsonpipeline-concerns.json/cookbook-next again for the next stepThis keeps per-step context minimal (~10 lines of pipeline data + one guideline file).
/cookbook-next — advance to the next step
/cookbook-next skip — mark the current step as N/A and advance
Read .cookbook/pipeline.json. If it does not exist, print: "No active pipeline. Run /cookbook-start first." and stop.
Extract: phase, current_step, total_steps, steps, task_description, results.
Find the current step number from the steps array using the index current_step - 1.
If current_step exceeds the length of steps, the pipeline is complete. Print the summary and stop:
=== Pipeline Complete ===
Phase: <phase>
Task: <task description>
Results:
Applicable: <count> concerns
N/A: <count> concerns
Applicable concerns:
<numbered list with step number, concern name, and notes>
State saved to .cookbook/pipeline.json.
If phase is planning, also print: "Run /cookbook-start implementation to begin the implementation pipeline."
Stop after printing the summary.
Read ../agentic-cookbook/workflows/pipeline-concerns.json. Find the entry whose step field matches the current step number from the steps array.
If the file does not exist, print: "Pipeline concerns file not found." and stop.
Print the concern header:
--- Step <current_step>/<total_steps>: <concern name> (<category>) ---
Summary: <summary>
If $ARGUMENTS contains skip, record the result as N/A and go to Step 7.
Read the guideline file at the path specified in the concern's guideline_path. If the file does not exist, print: "Guideline file not found: <path>. Marking as N/A." and record as N/A, then go to Step 7.
Strip the YAML frontmatter — only present the content section to save context.
For "always" concerns (core-engineering, testing categories):
Present the guideline content, then evaluate:
For "ask" concerns (opt-in category):
Present the concern's prompt to the user. Based on their response:
The concern was already evaluated during planning. Now review the code:
git diff or read relevant files)Ask the user to confirm the assessment before recording.
Append to the results array in .cookbook/pipeline.json:
{
"step": <step number>,
"concern": "<concern name>",
"status": "applicable" | "na",
"notes": "<brief explanation>",
"timestamp": "<ISO 8601>"
}
Increment current_step by 1. Write the updated state to .cookbook/pipeline.json.
Step <current_step - 1>/<total_steps>: <concern> — <applicable/N/A>
Run /cookbook-next to continue, or /cookbook-next skip to skip the next step.
<remaining> steps remaining.
../agentic-cookbook/. Only read from it.