kjuhwa/skills-hub/async-subagent-resume-on-missing-artifact
Claude Code and agent skill by kjuhwa/skills-hub
- community
Checking that the SKILL.md file is still in the repository.
When an async subagent is reported "completed" but its final message hints at unfinished work (e.g., "Now let me build…"), verify the expected on-disk artifact before moving on; if missing, use SendMessage to the agent id to finalize rather than re-dispatching a fresh agent.
Install
npx vskill@latest install kjuhwa/skills-hub/async-subagent-resume-on-missing-artifactSKILL.md
The same SKILL.md was published earlier as kjuhwa/skills-hub/async-subagent-resume-on-missing-artifact.
Resume an async subagent instead of re-dispatching
Async subagents can be marked "completed" even when their final user-facing message is a mid-thought like "I have all the data needed. Now let me build…". Their in-memory plan may have not resulted in an actual file write. Re-dispatching a brand new agent loses all the setup context.
Protocol
- Always verify artifact on disk after an async agent reports completion and you expect a file:
``bash ls -la docs/expected-artifact.json ``
- If missing and the result message looks truncated / mid-action:
- Do NOT spawn a fresh agent.
- Call
SendMessageto the agent's id with a pointed follow-up:
`` SendMessage({ to: "<agentId>", message: "The file docs/x.json was not actually written. Please use the Write tool to save the complete output you built. Report back with the final summary." }) ``
- The runtime will resume the agent from its transcript — all prior analysis is preserved.
- Wait for the completion notification; verify artifact appears on disk.
When to give up and re-dispatch
- Two SendMessage rounds without the file appearing.
- Agent responds that the data it built is no longer in context.
- In those cases, dispatch a fresh agent with a simpler, more explicit "write the file first, summarize after" prompt.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/workflow/async-subagent-resume-on-missing-artifact/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kjuhwa/skills-hub/async-subagent-resume-on-missing-artifact)