draft-embedded-pipeline-state
Keep short-production resume state directly inside the working draft artifact so each stage can mark done or failed status, record artifact paths, and safely…
by 45ck★ 21 GitHub stars
Install draft-embedded-pipeline-state in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Draft Embedded Pipeline State
Use When
- A short pipeline needs safe resume behavior.
- The agent reruns the same draft multiple times across stages.
- Stage state should travel with the working artifact rather than live in scattered side files.
Core Rule
- Put pipeline state inside the draft artifact itself.
- The artifact that defines the work should also record what has already completed.
Inputs
- draft artifact: JSON or equivalent structured working file
- ordered stage list
- per-stage artifacts or errors
Outputs
- updated draft with embedded pipeline state
- per-stage records: status, timestamp, artifact paths, and failure notes
- resume-safe stage summary
Workflow
- Initialize an internal pipeline-state object on first run.
- After each successful stage, record
done, timestamp, and artifact references. - After each failed stage, record
failedand the failure reason. - On rerun, skip stages already marked done unless forced.
- Keep the summary human-readable enough that an agent can inspect the artifact and know where to resume.
Good Pattern
- one durable working artifact carries both plan and stage state
- reruns skip cleanly completed stages
- artifacts are discoverable from the state record
- failure state is explicit instead of implied by missing files
Bad Pattern
- separate hidden state files with no clear relation to the draft
- rerunning everything because the pipeline cannot tell what succeeded
- missing artifact paths after a stage is marked done
- state reset without explicit force behavior
Pair With
- Use with
partial-regenerationandretry-with-cachefor resume and rerun behavior. - Pair with
executive-producer-sendbackwhen stage state needs richer gate decisions.
Aggregated From
rushindrasinha/youtube-shorts-pipelineverticals/state.py- embedded draft-state patterns from short-form pipelines
Validation Checklist
- Stage state lives inside the working draft artifact.
- Completed stages can be skipped safely on rerun.
- Failed stages retain the error reason.
- Artifact references are recorded where downstream stages can find them.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the draft-embedded-pipeline-state skill do?
Keep short-production resume state directly inside the working draft artifact so each stage can mark done or failed status, record artifact paths, and safely skip completed work on rerun.
How do I install the draft-embedded-pipeline-state skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the draft-embedded-pipeline-state skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…