mnthe/hardworker-marketplace/teamwork-clean
Claude Code and agent skill by mnthe/hardworker-marketplace
- community
Checking that the SKILL.md file is still in the repository.
Reset and clean up teamwork project state. Use when project is stuck, failed, or needs a fresh start. Uses native TeamDelete API for cleanup.
Install
npx vskill@latest install mnthe/hardworker-marketplace/teamwork-cleanSKILL.md
The same SKILL.md was published earlier as mnthe/hardworker-marketplace/teamwork-clean.
Teamwork Clean
Overview
Teamwork-clean resets a project to start fresh by cleaning up team and task state.
Core Principles
- Native API cleanup - Uses
TeamDelete()to remove team and all associated tasks - Idempotent operation - Safe to run multiple times
- Clean shutdown - Sends shutdown messages to active workers before cleanup
Use Case
When task state becomes inconsistent, workflow fails, or you need to restart execution with the same project configuration.
When to Use
USE teamwork-clean for:
- Starting a new run in the same project (multiple attempts at same goal)
- Recovering from failed orchestration or stuck workers
- Cleaning up after testing or experimentation
- Resolving state corruption (stuck tasks, orphaned workers)
DON'T use teamwork-clean for:
- Normal project completion (state is valuable)
- Fixing a single task (release the task instead)
- Active projects with workers running (shut down workers first)
Cleanup Process
Step 1: Shutdown Active Workers
Before cleaning, send shutdown messages to all active teammates:
Step 2: Delete Team
Use the native TeamDelete API to remove the team and all associated tasks:
This removes:
- All task definitions and their status
- Task ownership and dependency information
- Team metadata
Step 3: Recreate (Optional)
If restarting with the same goal, create a new team:
What Gets Cleaned
| Item | Method | Impact | |
|---|---|---|---|
| All tasks | TeamDelete() | Task definitions, status, evidence, ownership | |
| Team state | TeamDelete() | Team metadata and configuration | |
| Worker associations | TeamDelete() | Worker-to-team bindings |
After cleanup: The team no longer exists. You start with a blank slate.
What's Preserved
| Item | Why | |
|---|---|---|
| Project files on disk | Code changes remain in the git repository | |
| Git history | All commits from previous run are preserved | |
| Project metadata files | Plugin-level project.json if used by project-create.js |
Usage
Command Invocation
Workflow: Clean and Restart
Workflow: After Failed Project
Agent Guidance
Decision-Making Checklist
Before recommending /teamwork-clean, verify:
- Is the project stuck?
- Check task status for stalled tasks (in_progress for too long)
- Check if workers are idle with no available tasks
- Are workers stopped?
- Cleaning while workers are active causes undefined behavior
- Send shutdown messages first, then clean
- Is cleanup the right solution?
- Single stuck task -> Release the task (TaskUpdate with status="open", owner="")
- Want to abandon project entirely -> TeamDelete is sufficient
- Just checking status -> Use
/teamwork-statusonly
When to Recommend Clean
| Situation | Recommend Clean? | Alternative | |
|---|---|---|---|
| First project attempt failed | Yes | Clean and retry | |
| Multiple tasks stuck | Yes | Shutdown workers, clean, restart | |
| Single task needs retry | No | Release the task | |
| Want to change goal | Yes | Clean and start with new goal | |
| Checking progress | No | Use /teamwork-status |
Related Commands
| Command | Purpose | When to Use | |
|---|---|---|---|
/teamwork | Start or resume project | After cleaning, to begin fresh execution | |
/teamwork-status | Check project progress | Before cleaning, to diagnose issues |
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 repositoryCheckingplugins/teamwork/skills/teamwork-clean/SKILL.md
Popularity
- 7-day trend score
- 0
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/mnthe/hardworker-marketplace/teamwork-clean)