bashrusakh/opencode-agents/resource-lifecycle
Claude Code and agent skill by bashrusakh/opencode-agents
- community
Checking that the SKILL.md file is still in the repository.
Use when the workflow deliberately creates temporary worktrees, branches, files, processes, evidence workspaces, or hosted resources that require cleanup reconciliation. Root AGENTS.md supplies authorization/gates; this skill owns lifecycle mechanics.
Install
npx vskill@latest install bashrusakh/opencode-agents/resource-lifecycleSKILL.md
The same SKILL.md was published earlier as bashrusakh/opencode-agents/resource-lifecycle.
Resource lifecycle
This skill governs lifecycle/reconciliation after resource mutation is authorized; it does not authorize creating, rebinding, relocating, or transferring task-relevant resources. The applicable role/assignment/workflow gate must already permit that state transition.
What enters the lifecycle
Track resources deliberately created or repurposed by the current workflow for temporary execution, isolation, verification, or evidence: temporary worktrees/checkouts, local branches, temp files/directories, local servers/processes, generated evidence files, and temporary hosted/publication resources. Ordinary project/tool-managed caches and incidental build outputs are not automatically workflow-owned.
Ownership
Creation creates a cleanup obligation. The creator owns cleanup by default; explicit handoff transfers it. A delegated specialist cleans safe local temporary resources before returning or reports each remaining resource/status. If the specialist fails before reporting cleanup, status is unknown; the workflow owner reconciles known/discoverable resources before claiming completion. Pre-existing resources are never implicitly owned because they look temporary.
Reconciliation
Track related resources independently: a worktree, local branch, remote ref, process, local evidence file, and hosted artifact are separate identities. Before completion, every known workflow-created temporary resource is exactly one of:
Prefer cleanup after the last consumer. Auto-clean a local resource only when workflow ownership is established, it is no longer needed, it contains no unique/unpreserved state, and removal stays within authorized local scope. Never force cleanup across uncertain ownership or unique state. Remote/published/shared teardown retains its destructive/publication gate; creation/publication authorization does not automatically authorize later deletion.
For visual evidence, preserve the durable screenshot/result first, stop temporary processes, verify worktree/branch state is disposable, clean safe local resources, and reconcile any remote/hosted resource separately. Durable evidence and its temporary execution environment are different resources.
Security
- Security scanPassed, 100 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/resource-lifecycle/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
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/bashrusakh/opencode-agents/resource-lifecycle)