basilisk-labs/agentplane/agentplane-task-closure-recovery
Claude Code and agent skill by basilisk-labs/agentplane
- community
Checking that the SKILL.md file is still in the repository.
Use when Agentplane task completion, direct finish, branch_pr integration, hosted-close, close-tail PRs, PR metadata, dirty task artifacts, or remote branch divergence need diagnosis or recovery.
Install
npx vskill@latest install basilisk-labs/agentplane/agentplane-task-closure-recoverySKILL.md
Agentplane Task Closure Recovery
Use This Skill When
agentplane finish,integrate,task hosted-close, ortask hosted-close-prfails.- A
task-close/*PR is duplicated, closed, obsolete, or still open after hosted closure. pr openfails because the remote branch already exists.- A task is DONE locally but artifacts, branch state, or hosted closure disagree.
- Direct-mode finish is blocked by unrelated dirty task artifacts.
First Classification
- Read workflow mode:
- Identify the task state:
- Query incident advice:
Direct Mode
Expected close path:
If finish is blocked:
- Check whether dirty files belong to the active task or another active task.
- Check whether policy/incident mirrors were generated by finish and need allowed staging.
- Do not manually edit
.agentplane/tasks.json. - Do not use branch_pr close-tail commands in direct mode.
Branch PR Mode
Classify before recovery:
- Implementation PR branch:
task/<task-id>/<slug> - Closure PR branch:
task-close/<task-id>/<sha> - Base-side closure already landed: task README has DONE status and close commit exists on main.
Useful commands:
Known Recovery Patterns
Remote Branch Already Exists
If pr open fails after trying to push:
- Compare local branch tip to the remote branch tip.
- If they match, continue PR creation instead of forcing another push.
- If they differ, stop and classify divergence before overwriting anything.
Obsolete Close Tail
If hosted closure already landed on main:
- Treat the canonical close commit on base as a no-op condition.
- Do not create a new manual close-tail PR.
- Clean up only branches/PRs that are proven obsolete.
Dirty Base After Closure
If close paths wrote task artifacts or incident mirrors:
- Confirm the dirty paths are allowed for the closure operation.
- Stage only closure-scoped artifacts.
- Keep unrelated active task dirtiness untouched.
Verification
Minimum evidence:
- task state before and after
- branch/PR state before recovery
- exact command that changed state
- final
git status --short --untracked-files=no - a focused regression test when code changed
Record recovery facts in the task README Findings; promote reusable external incidents only through the incident workflow.
Security
- Security scanPassed, 91 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agentplane-task-closure-recovery/SKILL.md
Popularity
- Repository stars
- 73
- Repository forks
- 9
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. 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/basilisk-labs/agentplane/agentplane-task-closure-recovery)