mnthe/hardworker-marketplace/teamwork-clean

Claude Code and agent skill by mnthe/hardworker-marketplace

Trust tier 2
  • community
LLM review pending
Source check pending

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-clean

SKILL.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
  1. Native API cleanup - Uses TeamDelete() to remove team and all associated tasks
  2. Idempotent operation - Safe to run multiple times
  3. 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:

python
# Notify all workers to stop
SendMessage(
type="shutdown_request",
recipient="worker-backend",
content="Project cleanup in progress. Please stop."
)
SendMessage(
type="shutdown_request",
recipient="worker-frontend",
content="Project cleanup in progress. Please stop."
)
Step 2: Delete Team

Use the native TeamDelete API to remove the team and all associated tasks:

python
# Delete team (removes all tasks and team state)
TeamDelete()

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:

python
# Create fresh team
TeamCreate(team_name="<team-name>", description="<project goal>")
# Recreate tasks from scratch
TaskCreate(subject="...", description="...")

What Gets Cleaned

ItemMethodImpact
All tasksTeamDelete()Task definitions, status, evidence, ownership
Team stateTeamDelete()Team metadata and configuration
Worker associationsTeamDelete()Worker-to-team bindings

After cleanup: The team no longer exists. You start with a blank slate.


What's Preserved

ItemWhy
Project files on diskCode changes remain in the git repository
Git historyAll commits from previous run are preserved
Project metadata filesPlugin-level project.json if used by project-create.js

Usage

Command Invocation
bash
/teamwork-clean
Workflow: Clean and Restart
bash
# 1. Check current status
/teamwork-status
# 2. Clean the project
/teamwork-clean
# 3. Start fresh
/teamwork "same goal or updated goal"
Workflow: After Failed Project
bash
# Project failed, want to retry with different approach
/teamwork-clean
# Orchestrator will plan from scratch
/teamwork "updated goal with more context"

Agent Guidance

Decision-Making Checklist

Before recommending /teamwork-clean, verify:

  1. Is the project stuck?
  • Check task status for stalled tasks (in_progress for too long)
  • Check if workers are idle with no available tasks
  1. Are workers stopped?
  • Cleaning while workers are active causes undefined behavior
  • Send shutdown messages first, then clean
  1. 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-status only
When to Recommend Clean
SituationRecommend Clean?Alternative
First project attempt failedYesClean and retry
Multiple tasks stuckYesShutdown workers, clean, restart
Single task needs retryNoRelease the task
Want to change goalYesClean and start with new goal
Checking progressNoUse /teamwork-status

Related Commands

CommandPurposeWhen to Use
/teamworkStart or resume projectAfter cleaning, to begin fresh execution
/teamwork-statusCheck project progressBefore 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mnthe/hardworker-marketplace/teamwork-clean/badge)](https://verified-skill.com/skills/mnthe/hardworker-marketplace/teamwork-clean)

Something wrong with this skill or its page? Tell us.