/flutter-flame-harness:flame-harness-resumefrom flutter-flame-harness
Resumes a paused flame-harness pipeline by reading state.md and branching on pause_reason (rate_limit, manual_action, or error).
Ships in flutter-flame-harness. 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.
Resume handler for the flutter-flame-harness pipeline. Reads state.md, branches on
pause_reason, and re-dispatches the next phase skill when ready to continue.
All file schemas (state.md, pipeline-log.md) and state transition rules (including the
requirement that pause_reason is cleared to "" when status is restored to running) are
defined in docs/harness-protocol.md — refer to §2 (state.md schema) and §7 (state transition
rules) as the single source of truth. Do not redefine schemas here.
Read docs/harness/state.md per the schema in docs/harness-protocol.md §2. If state.md
does not exist, abort with:
flame-harness-resume: nothing to resume — docs/harness/state.md not found.
Run /flame-harness <idea> to start a new pipeline.
Extract:
status — expected paused; if running or completed, print a note and exit (nothing to resume).pause_reason — rate_limit | manual_action | errornext_role — role to dispatch after resumingresume_attempts — integer; will be incremented on successful resumecurrent_phase, updated_at — for loggingIf status is running:
flame-harness-resume: pipeline is already running (status: running, next_role: <next_role>).
No resume needed.
If status is completed:
flame-harness-resume: pipeline is already completed. Nothing to resume.
pause_reason: rate_limit means the pipeline hit an API rate limit and paused automatically.
Procedure:
Pipeline paused due to rate limit (rate_limit).
Checking whether the rate-limit window has passed...
updated_at from state.md. Calculate elapsed time since that timestamp using Bash
(date command). If elapsed time is less than 60 seconds, print a warning:
Warning: only <N> seconds have elapsed since the pause. The rate-limit window may not
have passed yet. Proceeding anyway — if another rate limit is hit, the pipeline will
pause again.
pause_reason: manual_action means the pipeline requires a manual step from the user before
it can continue (e.g. playing/approving the built game at the post-QA review gate, completing
App Store / Play Console submission steps, uploading a keystore, or configuring a device). The
specific action is recorded in the pause event row of pipeline-log.md.
Procedure:
Read docs/harness/pipeline-log.md per docs/harness-protocol.md §6. Find the most recent
pause event row to extract the details string describing what manual action was needed.
If the log is unavailable, use a generic prompt.
Use AskUserQuestion to confirm the user has completed the required steps:
The pipeline was paused for a manual action.
Last recorded reason: <details from pipeline-log, or "see docs/harness/pipeline-log.md">
Have you completed the required steps? (yes / no / describe what's pending)
If the user answers no or describes pending work:
flame-harness-resume: manual action not yet complete. Run /flame-harness-resume again
when ready.
If the user answers yes:
pause_reason: error means the pipeline encountered an unrecoverable error in a phase skill.
Procedure:
Read docs/harness/pipeline-log.md per docs/harness-protocol.md §6. Find the most recent
error event row to extract the error details.
Print a clear error report:
Pipeline paused due to an error.
Phase : <current_phase>
Next role : <next_role>
Error : <details from pipeline-log, or "see docs/harness/pipeline-log.md">
You must investigate and fix the error before resuming.
Common fixes:
- If it is a Flutter/Dart compile error, fix the code and run `flutter analyze`.
- If it is a missing file, create or restore it.
- If it is a credential error, check docs/harness/config.md and the credentials_dir.
Use AskUserQuestion:
Have you resolved the error and are ready to retry? (yes / no)
If the user answers no:
flame-harness-resume: error not yet resolved. Run /flame-harness-resume again when fixed.
If the user answers yes:
If pause_reason is empty or an unrecognised value, print:
flame-harness-resume: unexpected pause_reason "<value>" in state.md.
Expected one of: rate_limit, manual_action, error.
Please inspect docs/harness/state.md manually and correct it before resuming.
Then abort without modifying any files.
Reached only after the appropriate branch above confirms it is safe to continue.
Per docs/harness-protocol.md §7 rule 4: when status is set back to running,
resume_attempts must be incremented, and per §7 rule 8: pause_reason must be cleared
to "" by this skill.
Use Edit to update docs/harness/state.md with the following field changes (leave all other
keys unchanged):
status: running
pause_reason: ""
resume_attempts: <previous_value + 1>
updated_at: "<ISO-8601 UTC now>"
Both status: running and pause_reason: "" must be written in the same Edit call (atomic per
docs/harness-protocol.md §7 rule 1).
Append one row to docs/harness/pipeline-log.md per the schema in docs/harness-protocol.md §6:
| <ISO-8601 UTC now> | resume | <current_phase> | resume_attempts=<new_value>; was paused for <pause_reason> |
Read next_role from the (now-updated) state.md and dispatch:
Skill("flame-harness-<next_role>")
Valid next_role values are listed in the transition table in
docs/harness-protocol.md §7. admob is a normal dispatchable role and is handled like any
other next_role — dispatch Skill("flame-harness-admob") without any special boundary check.
If next_role is generator, the generator resumes safely on its own: it reads checkpoint from
state.md (§2) and skips the sub-phases whose HARD GATE already passed, so resume needs no special
handling here — just dispatch it.
If next_role is empty or unknown, abort with:
flame-harness-resume: cannot dispatch — next_role is "<value>".
Inspect docs/harness/state.md and set a valid next_role before retrying.
state.md becomes unreadable mid-execution (e.g. concurrent write), abort immediately
and do not write partial state changes.Skill(...) before state.md has been successfully updated to
status: running with pause_reason: "". Dispatch is the last step.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 skills in this plugin
/flame-harnessOrchestrator — bootstrap a Flutter/Flame game pipeline (idea→playable game) and dispatch each phase skill. Use when starting or continuing a flame-harness run./flame-harness-admobPhase 7 — analyze the game, decide a rewarded-ad strategy, guide manual AdMob ad-unit creation, and inject google_mobile_ads + ATT/UMP consent code./flame-harness-buildPhase 8 — bootstrap signing credentials, generate fastlane config from templates, and build + upload signed IPA (TestFlight) and AAB (internal track).npx claudepluginhub tjdrhs90/flutter-flame-harness --plugin flutter-flame-harnessOther plugins' skills for the same job