Loading...
Loading...
Recovers interrupted webnovel tasks with precise workflow state tracking. Detects interruption point and provides safe recovery options. Activates when user wants to resume or /webnovel-resume.
npx skill4agent add lingfengqaq/webnovel-writer webnovel-resume.webnovel/state.jsoncd$PROJECT_ROOT = (Resolve-Path ".").PathTask Recovery Progress:
- [ ] Step 1: Load Recovery Protocol (cat "${CLAUDE_PLUGIN_ROOT}/skills/webnovel-resume/references/workflow-resume.md")
- [ ] Step 2: Load Data Specification (cat "${CLAUDE_PLUGIN_ROOT}/skills/webnovel-resume/references/system-data-flow.md")
- [ ] Step 3: Confirm Sufficient Context
- [ ] Step 4: Detect Interruption State
- [ ] Step 5: Display Recovery Options (AskUserQuestion)
- [ ] Step 6: Execute Recovery
- [ ] Step 7: Continue Task (Optional)references/workflow-resume.mdreferences/system-data-flow.mdcat "${CLAUDE_PLUGIN_ROOT}/skills/webnovel-resume/references/workflow-resume.md"cat "${CLAUDE_PLUGIN_ROOT}/skills/webnovel-resume/references/system-data-flow.md"| Step | Difficulty | Recovery Strategy |
|---|---|---|
| Step 1 | ⭐ | Re-execute directly |
| Step 1.5 | ⭐ | Redesign |
| Step 2A | ⭐⭐ | Delete semi-finished products and restart |
| Step 2B | ⭐⭐ | Continue adaptation or return to 2A |
| Step 3 | ⭐⭐⭐ | User's decision: Review or skip |
| Step 4 | ⭐⭐ | Continue polishing or delete and rewrite |
| Step 5 | ⭐⭐ | Re-run (idempotent) |
| Step 6 | ⭐⭐⭐ | Check staging area and decide to commit/rollback |
python "${CLAUDE_PLUGIN_ROOT}/scripts/workflow_manager.py" detect🔴 Interrupted Task Detected:
Task: /webnovel-write 7
Interruption Location: Step 2 - In the middle of chapter content generation
Completed:
✅ Step 1: Context Loading
Incomplete:
⏸️ Step 2: Chapter Content (1500 words written)
⏹️ Step 3-7: Not started
Recovery Options:
A) Delete semi-finished products and restart from Step 1 (Recommended)
B) Roll back to Ch6 and discard all progress of Ch7
Please select (A/B):python "${CLAUDE_PLUGIN_ROOT}/scripts/workflow_manager.py" cleanup --chapter {N} --confirm
python "${CLAUDE_PLUGIN_ROOT}/scripts/workflow_manager.py" cleargit -C "$PROJECT_ROOT" reset --hard ch{N-1:04d}
python "${CLAUDE_PLUGIN_ROOT}/scripts/workflow_manager.py" clear/{original_command} {original_args}Recovery Options:
A) Re-execute dual-chapter review (Cost: ~$0.15) ⚠️
B) Skip review and proceed to the next chapter (Can be reviewed later)⚠️ state.json may be partially updated
A) Check and repair state.json
B) Roll back to the previous chapter (Safe)⚠️ Interruption has lasted over 1 hour
High risk of context loss
It is recommended to restart instead of continuing the unfinished content