Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

teamwork-clean

verified

This skill should be used when agents need to reset a teamwork project's execution state while preserving metadata. Use before starting a new project in the same session, after a failed project, or when task/verification state is corrupted. Cleans tasks/, verification/, workers/ directories while keeping project.json intact.

View on GitHub

Marketplace

hardworker-marketplace

mnthe/hardworker-marketplace

Plugin

teamwork

productivity

Repository

mnthe/hardworker-marketplace
2stars

plugins/teamwork/skills/teamwork-clean/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/mnthe/hardworker-marketplace/blob/main/plugins/teamwork/skills/teamwork-clean/SKILL.md -a claude-code --skill teamwork-clean

Installation paths:

Claude
.claude/skills/teamwork-clean/
Powered by add-skill CLI

Instructions

# Teamwork Clean

## Overview

Teamwork-clean resets a project's execution state to start fresh while preserving project metadata and history.

### Core Principles

1. **Surgical deletion** - Only removes execution artifacts (tasks, verification, workers)
2. **Metadata preservation** - Project identity, goal, and creation timestamp remain intact
3. **Idempotent operation** - Safe to run multiple times, won't clean already-cleaned projects
4. **Fresh start marker** - Adds `cleaned_at` timestamp to track cleanup history

### 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 (duplicate tasks, conflicting claims, orphaned locks)

**DON'T use teamwork-clean for:**
- Normal project completion (state is valuable)
- Abandoning a project (use project deletion instead)
- Fixing a single task (use task-update --release instead)
- Active projects with workers running (stop workers first)

---

## What Gets Cleaned

The clean operation **deletes** these directories completely:

| Directory | Contents | Impact |
|-----------|----------|--------|
| `tasks/` | All task files (*.json) | Task definitions, status, evidence, claims |
| `verification/` | Verification results (wave-*.json, final.json) | Wave and final verification history |
| `workers/` | Worker state and logs | Worker session tracking, activity history |

**After cleanup**: These directories no longer exist. You start with a blank slate for execution.

---

## What's Preserved

The clean operation **preserves** project metadata:

| File | Preserved Data | Changes |
|------|---------------|---------|
| `project.json` | - Project name and team<br>- Goal description<br>- Creation timestamp

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
9846 chars