/workflow-engineering:pi-mentorfrom workflow-engineering
Design readable and reliable ZX scripts that use Pi as the coding agent and coordinate terminal tools such as gh, fd, rg, and standard shell commands. Use when Codex needs to structure a new script, refine an existing ZX + Pi workflow, separate prompts from orchestration, improve loop clarity, choose prompt file layouts, or document durable lessons about prompt design and script execution for constrained models.
Ships in workflow-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
main.mjs only when it improves readability; it is not mandatory.{{name}}.await $...`` when capturing output.await $({ stdio: "inherit" })...`` when the command should stream directly to the terminal.const result = await $find . -type f; or another command that actually exists in the active shell, then read result.stdout.await $pi -p ${taskPrompt} --model github-copilot/gpt-5-mini --system-prompt ${systemPrompt};.$.shell and $.quote explicitly when the local environment needs that configuration.bash.exe, prefer commands available inside that bash environment instead of assuming Windows PATH tools will execute there.pi is healthy when launched through bash.exe; if it is slow or failing, verify the same command directly in PowerShell before blaming the model.powershell.exe -NoProfile -File helper.ps1 boundary over one huge interpolated command.Use the Pi system prompt for stable behavioral rules:
Use task prompts for step-local work:
Do not bury step-specific details in the system prompt when they belong to the current task only.
artifacts/<script-name>/<run-id>/ when the run has multiple stages or may need retry/debugging.Before:
Read this repository and tell me what to improve.
After:
Stage 1: list candidate files with `fd` or `find` and save the list.
Stage 2: ask Pi to summarize only those files into `artifacts/<script>/<run>/raw-summary.md`.
Stage 3: ask Pi to turn that summary into three prioritized actions.
Stage 4: validate each action with deterministic commands before editing.
Why it helps: weaker models get a smaller prompt at each step, and humans can inspect the intermediate file list and raw summary before trusting the final recommendation.
Before:
Try again, the command failed.
After:
The command failed:
command: npm run validate:prompts
exit: 1
stderr: FAIL prompt-layout-example/task.md: {{input}} is not listed in required_variables
Fix only the prompt metadata or placeholder text needed to make the validator pass. Do not rewrite the script.
Why it helps: the retry prompt includes the exact failed command, the useful error, and a narrow repair scope.
Before: a main.mjs file contains a 100-line inline system prompt followed by two short commands.
After: main.mjs shows the command sequence and loads prompts/system.md plus prompts/review.md with explicit variables.
Why it helps: the script stays readable like a shell runbook, while prompt edits remain easy to diff and validate.
When a useful lesson is discovered:
Aim for scripts where a human can inspect:
without reverse-engineering a prompt framework.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gvillarroel/plugins --plugin workflow-engineering5 skills in this plugin
/jev-batch-decisionsSplits large text documents and record collections into bounded batches, evaluates typed decisions with TypeSafe Jev through OpenRouter, and aggregates the results with deterministic reducers or a recursive Jev decision tree. Use for bulk classification, evidence screening, rubric scoring, and document-wide decision questions./pi-durableBuilds independent Pi Durable applications with persistent event services, reconnectable chat, bounded specialist subagents, and requested trace, population or Pareto evolution. Use for PR agents, durable queues, recovery, Windows/macOS services, or evidence-based improvement of prompts, tools and scripts./