Recipe prepare implementation

From shinpr/codex-workflows · View interactive version

Recipe prepare implementation is an AI agent skill from the GitHub repository shinpr/codex-workflows. Prepare repository-local execution tools when the user requests setup or a concrete build capability is unavailable.

How to use this skill

Skill file

Required Skills [LOAD BEFORE EXECUTION]

Before loading required skills, use wc -c to size the files and set both exec_command.max_output_tokens and the outer // @exec: {"max_output_tokens": N} budget to accommodate their contents, including the combined output of batched reads. Split oversized reads upfront; recover any truncated content before proceeding.

  1. [LOAD IF NOT ACTIVE] subagents-orchestration-guide — capability failure resolution and caller-return rules

Purpose

Run this optional side path when the user explicitly requests setup or Orchestrator Escalation Resolution identifies one concrete missing repository-local capability. Prepare existing repository-local tools needed to execute the approved Work Plan, then return a capability summary to the caller.

Work plan: $ARGUMENTS

Scope

Repository-local preparation includes existing project mechanisms for:

Feature implementation, new product behavior, external account creation, credential acquisition, organizational approval, production access, deployment, and release execution remain in their owning workflows. The caller continues with the capabilities available after this side path.

Process

  1. Resolve the exact Work Plan path from $ARGUMENTS, or from the build caller when invoked as its side path.
  2. Read repository manifests, lockfiles, checked-in setup documentation, and scripts that control commands used by the Work Plan.
  3. Select the smallest existing setup commands that enable the planned repository checks.
  4. Execute those commands and capture their observable results.
  5. Classify each planned capability as available or unavailable with concrete evidence.
  6. Return the capability summary to the caller. In a build flow, unavailable capabilities become task-local verification limitations handled through Orchestrator Escalation Resolution. The approved Work Plan and its implementation task set remain unchanged.

Use the active execution plan when one exists. When setup has multiple dependent commands and no plan exists, create one and update it through completion.

Output

Environment Preparation Result
Status: completed
Work Plan: [path]
Available:
- [capability]: [command or evidence]
Unavailable:
- [capability]: [concrete reason]
Caller action: continue with available capabilities

Completion Check

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.