labali-deterministic-script-writer
Use this skill when the user says things like:
- "Freeze my task into a script."
- "Make this executable directly next time."
- "No repeated reasoning, just run."
This is a prompt-and-spec skill. It defines deterministic script specs clearly and simply.
Runtime Inputs
intent: required task goal from user request.environment: optional runtime context (OS, toolchain, auth state, paths).constraints: optional hard limits (timeouts, no-network, safety restrictions).
Execution Contract
Phase 1 — Inversion (clarify before generating)
DO NOT proceed to Phase 2 until all required inputs are confirmed.
If environment or constraints are missing and cannot be inferred:
- Ask the user for the target OS/toolchain and any hard limits.
- If the user provides only one sentence, treat it as
intentand represent missing details as explicit required placeholders in the output — do not block on asking.
Phase 2 — Generator (produce the spec)
Execute in fixed order:
- Load
templates/script-spec.md— use it as the canonical output scaffold. - Fill all 6 required sections from the template:
PreconditionsParametersDeterministic StepsStep AssertionsFail-Fast RulesScript Skeleton(runnable shape withstatus/data/error)
- Make all required parameters explicit (or mark as required placeholders).
- Ensure deterministic steps are executable in fixed order with no runtime reasoning loops.
- Make assertions and fail-fast conditions concrete and testable.
- Output the complete spec.
Success Criteria
A response is complete only when:
- All required parameters are explicit (or marked required placeholders).
- Deterministic steps are executable in fixed order.
- Assertions and fail-fast conditions are concrete and testable.
- Script skeleton can run without requiring additional reasoning loops.
NEVER
- Never make model calls, semantic lookups, or candidate retries during execution — runtime reasoning is forbidden.
- Never enter guesswork loops — if required state is missing, fail immediately with an explicit error code.
- Never use non-deterministic ordering or implicit branch conditions — steps must run in fixed order with explicit checks only.
- Never output abstract theory without an accompanying runnable script skeleton.
Resources
- Working style and design boundaries:
references/architecture.md - Copy-ready prompt for this skill:
references/prompt-template.md