Resume logo

Resume

Community
XuanRanL
resume

Resume an interrupted /article pipeline from its last checkpoint. Reads workspace state.json + verifies artifacts, decides whether to re-run the failing stage or jump forward. Use when /status shows a stuck task, network blip, OpenAI Batch wait, laptop sleep, etc.

Overview

PublisherXuanRanL
Repositoryloamwright-SEO-Skill
Skill nameresume
Stars
52
Forks
9
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by XuanRanL on GitHub. Read the source before you install it.

Installation

Install the Resume AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/subskills/cross-cutting/resume
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/XuanRanL/loamwright-SEO-Skill.git /tmp/loamwright-SEO-Skill
mkdir -p .claude/skills
cp -r /tmp/loamwright-SEO-Skill/subskills/cross-cutting/resume .claude/skills/resume
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Resume in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Resume on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Resume is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Resume

The user got interrupted mid-/article (network blip, batch wait, laptop sleep, manual ctrl-C). This skill picks up where it left off.

When to invoke

  • /resume (defaults to most-recent in-progress task)
  • /resume <task_id> (specific task)
  • After /status shows a stuck or stale task
  • Auto-suggest in error.json's recovery field

How to invoke

Step 1: Plan the resume (dry-run first)

bash
python -m scripts._core.resume_handler --task-id <id> --dry-run

This outputs:

━━ Resume plan for abc123 ━━━━━━━━━━━━━━━━━
  Currently at:  build / image-generation-queued
  Will resume:   build / images-injected
  ✓ Verified (2):
    • image_prompts.json
    • batch_id.json
  → Stage complete; jumping to next stage
  ETA:           18m42s
  Cost left:     ~$0.74

  Next: Re-invoke L2 phase 'build' for task abc123, resuming at stage 'images-injected'.

Step 2: Execute the resume

Invoke the L2 phase orchestrator named by next_phase in the plan, with the task workspace pointing at the existing one:

  • next_phase = research → invoke phase-research SKILL with --resume <task_id>
  • next_phase = plan → invoke phase-build SKILL with --resume <task_id>
  • next_phase = build → invoke phase-build SKILL with --resume <task_id>
  • next_phase = optimize → invoke phase-optimize SKILL with --resume <task_id>
  • next_phase = publish → invoke phase-publish SKILL with --resume <task_id>
  • next_phase = monitor → invoke phase-monitor SKILL with --resume <task_id>

Each L2 reads existing artifacts and skips completed sub-steps (Stage-based guard).

Decision logic (in resume_handler.py)

For task with Stage X:
  If all expected artifacts for Stage X exist:
    → jump forward to Stage X+1 (the stage that hadn't started)
  Else:
    → re-run Stage X (it didn't finish)

This is deterministic — same input always produces same plan.

When resume is NOT possible

ConditionWhy
Task state = "completed"Nothing to resume
Task state = "abandoned"User explicitly tombstone'd it
state.json corrupted / unreadableNo checkpoint to resume from
Workspace directory deletedSame — nothing to resume

In these cases, --dry-run exits 1 with reason. User should /article fresh.

Resume edge cases

Image batch still pending

If Stage = image-generation-queued and batch_id exists but no images yet:

  • Resume doesn't re-submit batch (costs $)
  • It polls existing batch_id every 60s
  • If batch failed → resubmit
  • If batch succeeded → download images + jump to images-injected

Cost budget exhausted mid-pipeline

If yesterday's budget exhausted and that's why task paused:

  • Today's budget refreshed automatically (daily reset at UTC 00:00)
  • Resume proceeds normally
  • If budget still exhausted: error.json surfaces config.yaml edit path

WP publish 5xx

If publish stage failed with 5xx:

  • Resume re-tries with exponential backoff
  • Each retry checks WP for partial state (post already created? media uploaded?)
  • Uses wp_publisher's 7-step rollback if state is incoherent

What this skill does NOT do

  • ❌ Restart from scratch (use /article instead — workspace gets fresh task_id)
  • ❌ Fix the underlying cause of failure (just resumes; doesn't debug)
  • ❌ Edit artifacts (read-only diagnosis + dispatch)
  • ❌ Skip mandatory quality gates (resume respects veto state)

Composition with /status

/status                 → shows abc123 stuck at images-injected, idle 12m
↓
/resume abc123 --dry-run → confirms 2 artifacts ✓, ETA 18m
↓
/resume abc123           → actually picks up

Cost guarantee

Resume never re-runs completed stages → no double-billing. The cost-estimator delta = original estimate − cost-so-far ≈ what /resume will burn.

Frequently asked questions

What does the Resume AI skill do?

Resume an interrupted /article pipeline from its last checkpoint. Reads workspace state.json + verifies artifacts, decides whether to re-run the failing stage or jump forward. Use when /status shows a stuck task, network blip, OpenAI Batch wait, laptop sleep, etc.

Why use Resume on TypingMind?

Because you install it once and use it with any model. Resume is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Resume in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/subskills/cross-cutting/resume. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Resume?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Resume?

As many as you like. As long as a model supports skills, you can use Resume with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Resume AI skill free?

Yes. It is published on GitHub by XuanRanL under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇