Logo vun Just Do It Swarming

Just Do It Swarming

Communautéit
etr
just-do-it-swarming

Execute all remaining tasks using agent teams for context isolation. Each task runs in its own session. Pass --project <name> to pin the monorepo package for this whole run. Pass --take-over to resume past a possibly-live prior session without asking. Pass --on-unrelated-failure stop-and-ask|expand-and-fix|ignore-and-merge to choose how validation handles gate failures confidently unrelated to the active project (default stop-and-ask). Usage /groundwork:just-do-it-swarming [--project name] [--parallel] [--take-over] [--on-unrelated-failure mode]

Iwwersiicht

Editeuretr
Repositorygroundwork
Skill-Nummjust-do-it-swarming
Stären
45
Forks
4
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum etr op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Just Do It Swarming an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/etr/groundwork/tree/main/skills/just-do-it-swarming
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/etr/groundwork.git /tmp/groundwork
mkdir -p .claude/skills
cp -r /tmp/groundwork/skills/just-do-it-swarming .claude/skills/just-do-it-swarming
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Just Do It Swarming an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Just Do It Swarming automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Just Do It Swarming net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Swarming Batch Task Execution

Executes all remaining tasks using agent teams for context isolation. Each task runs in a separate teammate session with its own context window. Teammates are full Claude Code sessions that can spawn subagents (Plan, task-executor, 9 validators), solving the context accumulation problem of inline batch execution.

When to use this vs /groundwork:just-do-it:

  • Use this (/groundwork:just-do-it-swarming) for large batches (>5 tasks) where context accumulation is a concern
  • Use /groundwork:just-do-it for small batches or when agent teams are not available

Requirement: Agent teams must be enabled (CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS: "1" in settings.json env section).

Model: Teammates spawn with model: "opus" for extended context.

Pre-flight: Model Recommendation

Your current effort level is {{effort_level}}.

Skip this step silently if effort is high, xhigh, or max (the scale is low < medium < high < xhigh < max, so xhigh and max are already above high) AND you are Sonnet or Opus. If effort is low or medium (i.e. below high), you MUST show the recommendation prompt — regardless of model. If you are not Sonnet or Opus, you MUST show the recommendation prompt - regardless of effort level.

Otherwise → use AskUserQuestion:

json
{
  "questions": [{
    "question": "Do you want to switch? Team orchestration with worktree coordination across agents benefits from consistent reasoning.\n\nTo switch: cancel, run `/effort high` (and `/model sonnet` if on Haiku), then re-invoke this skill.",
    "header": "Recommended: Sonnet or Opus at high effort",
    "options": [
      { "label": "Continue" },
      { "label": "Cancel — I'll switch first" }
    ],
    "multiSelect": false
  }]
}

If the user selects "Cancel — I'll switch first": output the switching commands above and stop. Do not proceed with the skill.

Workflow

Step 0: Resolve Project Context

Before loading tasks, ensure project context is resolved:

  1. Explicit project argument (highest precedence): If the invocation arguments include --project <name> and <name> is configured in .groundwork.yml, that project is authoritative for this entire run. Resolve its root directly from .groundwork.yml (<repo root>/<configured path>); do not read or consult {{project_name}}. If the invocation arguments include --on-unrelated-failure <mode> (stop-and-ask, expand-and-fix, or ignore-and-merge), remember it for this entire run: it is recorded in each teammate spawn prompt (ON UNRELATED FAILURE: line). An invalid mode value → stop the run with a usage error.
    • Do NOT invoke select-project, do NOT persist or change the stored selection, and do NOT run the CWD mismatch check below. Other sessions may be running concurrently on different packages and must not be disturbed by a global switch.
    • Substitute the resolved project's paths for the template vars everywhere below: <project root>/specs for {{specs_dir}} and <project root>/.groundwork-plans for {{plans_dir}}.
    • Thread the project explicitly through every downstream invocation instead of relying on the shared selection: call the worktree helper as node ${CLAUDE_PLUGIN_ROOT}/lib/worktree-identity.js TASK-NNN --project <name>, prefix other lib calls with GROUNDWORK_PROJECT=<name>, and record the project in each teammate spawn prompt (ACTIVE PROJECT: line) so teammates resolve the same project.
    • Then skip directly to Step 1.
  2. Monorepo check: Does .groundwork.yml exist at the repo root?
    • If yes → Is {{project_name}} non-empty?
      • If empty → Invoke Skill(skill="groundwork:select-project") to select a project, then restart this skill. (select-project is interactive setup for a single session — never run it when an explicit --project was provided; item 0 already resolved the project in that case.)
      • If set → Project is {{project_name}}, specs at {{specs_dir}}/.
    • If no → Continue (single-project repo).
  3. CWD mismatch check (monorepo only):
    • Skip if not in monorepo mode or if the project was just selected in item 1 above.
    • If CWD is the repo root → fine, proceed.
    • Check which project's path CWD falls inside (compare against all projects in .groundwork.yml).
    • If CWD is inside the selected project's path → fine, proceed.
    • If CWD is inside a different project's path → warn via AskUserQuestion:

      "You're working from <cwd> (inside [cwd-project]), but the selected Groundwork project is [selected-project] ([selected-project-path]/). What would you like to do?"

      • "Switch to [cwd-project]"
      • "Stay with [selected-project]" If the user switches, invoke Skill(skill="groundwork:select-project").
    • If CWD doesn't match any project → proceed without warning (shared directory).
  4. Proceed with the resolved project context. All {{specs_dir}}/ paths will resolve to the correct location.

Step 1: Load and Analyze Tasks

  1. Read the tasks file to find all tasks:

    • Single file: {{specs_dir}}/tasks.md
    • Directory: {{specs_dir}}/tasks/ (aggregated in sorted order)
  2. Parse all tasks and extract:

    • Task ID (e.g., TASK-001)
    • Title
    • Status (Not Started, In Progress, Complete, Blocked)
    • Dependencies (Blocked by: field)
  3. Build dependency graph and calculate execution order:

    • Topological sort respecting dependencies
    • Blocked tasks cannot execute until dependencies complete
  4. Sweep and resume gate: Run node ${CLAUDE_PLUGIN_ROOT}/lib/task-resume.js sweep (add --project <name> in monorepos) and auto-clean only the cleanable entries per ${CLAUDE_PLUGIN_ROOT}/references/task-resume-protocol.md. An In Progress task whose node ${CLAUDE_PLUGIN_ROOT}/lib/task-resume.js check <TASK-NNN> reports existing work is in flight from a prior session — assign it to a teammate before any Not Started task (the embedded workflow's resume gate continues it at the right phase). Append --take-over to the check when this skill's invocation carried it; a soft standdown then proceeds without asking, while heartbeat-worker-alive still stands down.

Detection: Check for file first (takes precedence), then directory.

Step 2: Present Summary and Confirm

Present a summary to the user:

Swarming Batch Execution Summary

Mode: Agent Teams (swarming) Total tasks: X Already complete: Y Remaining: Z

Context Isolation

Each task runs in a separate teammate session with its own context window:

  • Teammates are full Claude Code sessions with the complete system prompt
  • Each teammate can spawn subagents (Plan, task-executor, 9 validation agents)
  • Context is fully isolated between tasks — no accumulation in the lead's conversation
  • Changes merged after each task completes

Worktree Isolation

Each task also executes in an isolated git worktree:

  • Branch and working directory: resolved per task via the worktree-identity helper (node ${CLAUDE_PLUGIN_ROOT}/lib/worktree-identity.js TASK-NNN) — project-qualified in monorepos (task/<project>/TASK-NNN, <repo>/.worktrees/<project>-TASK-NNN)
  • Branch created from current HEAD
  • Changes merged automatically after each task completes successfully
  • Worktrees cleaned up after successful merge

Execution Order

  1. TASK-NNN: [Title]
  2. TASK-NNN: [Title] ...

Blocked Tasks (will execute after dependencies complete)

  • TASK-NNN: [Title] (blocked by TASK-XXX)

Ask for confirmation before proceeding.

If user declines, stop and suggest alternatives:

  • /groundwork:just-do-it for inline execution (no agent teams required)
  • /groundwork:work-on N to work on a specific task
  • /groundwork:work-on-next-task to work on just the next available task

Step 2.5: Validate Agent Teams Enabled

Before creating the team, verify agent teams are available by checking if the team creation tools are accessible.

If agent teams are not enabled:

"Agent teams are required for swarming mode but are not enabled. To enable them, add this to your settings.json:

json
{
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
  }
}

Alternatively, use /groundwork:just-do-it for inline batch execution (no agent teams required)."

Stop here if not enabled.

Step 2.7: Load Execute-Task Workflow

Before spawning any teammates, load the work-on skill content so it can be embedded in each teammate's prompt:

  1. Find the skill file: Use Glob to find **/work-on/SKILL.md within the groundwork plugin directory.
  2. Read the file: Use the Read tool to read the entire file.
  3. Extract the body: Skip the YAML frontmatter (the --- delimited block at the top of the file) and keep everything after it. This is the work-on workflow content.
  4. Store as EXECUTE_TASK_WORKFLOW: Hold this content for use in the teammate spawn prompts below.

CRITICAL: Embed the workflow VERBATIM. Do not summarize, condense, rewrite, or adapt the workflow text. The teammate needs the full, unmodified workflow to follow it step-by-step. Summarization loses gate conditions (e.g. mandatory validation before merge) that prevent broken tasks from being merged.

Step 3: Create Team and Execute

Determine execution mode from the user's argument or request:

  • Sequential (default): One task at a time, each in its own teammate session. Clean context per task.
  • Parallel (if --parallel argument or user requests it): Independent tasks execute simultaneously in separate teammates.
Sequential Mode (Default)

Create an agent team. Then for each remaining task in dependency order:

  1. Read the task section from {{specs_dir}}/tasks.md (or aggregated from {{specs_dir}}/tasks/) to extract the full task definition (goal, action items, acceptance criteria, dependencies).

  2. Announce start: "Starting TASK-NNN: [Title] (teammate session)"

  3. Update task status to **Status:** In Progress in the tasks file.

  4. Spawn a teammate with model: "opus" to execute the task. The teammate's spawn prompt must include:

    You are executing a single task as part of an automated batch run.
    
    GROUNDWORK_BATCH_MODE=true — do NOT use AskUserQuestion. Proceed automatically.
    
    PROJECT ROOT: [absolute path to project root]
    SPECS DIR: {{specs_dir}}
    ACTIVE PROJECT: [project name from Step 0 — teammates must use this project, not change the shared selection]
    [Only when the invocation carried --on-unrelated-failure <mode>, include the line below]
    ON UNRELATED FAILURE: [mode — treat this as the embedded workflow's --on-unrelated-failure flag value: thread it into the workflow's Step 4 validate invocation and its merge reporting exactly as its flag parsing specifies]
    
    TASK IDENTIFIER: TASK-NNN
    TASK TITLE: [Title]
    
    TASK DEFINITION:
    [Full task section from tasks file: goal, action items, acceptance criteria, dependencies]
    
    EXECUTE-TASK WORKFLOW:
    [EXECUTE_TASK_WORKFLOW loaded in Step 2.7]
    
    INSTRUCTIONS:
    1. Follow the EXECUTE-TASK WORKFLOW above starting from Step 1 (Parse Task Identifier).
       - Skip Step 0 (context already resolved by the lead) — but still run its
         resume gate item for this task: `node ${CLAUDE_PLUGIN_ROOT}/lib/task-resume.js check TASK-NNN`
         (add `--project <name>` in monorepos) and act on the one-line JSON per
         `${CLAUDE_PLUGIN_ROOT}/references/task-resume-protocol.md` (skip the
         phases it says are done; stand down when live_owner is not none).
       - TASK IDENTIFIER and TASK DEFINITION are provided above — use them directly.
       - GROUNDWORK_BATCH_MODE is true — auto-proceed all confirmations.
    2. When all the steps of the workflow are complete, report:
       - Success: "TASK-NNN: SUCCESS — [one-line summary]"
         Include validation results per agent:
         VALIDATION: code-quality=[N] test-quality=[N] security=[N] spec-alignment=[N] architecture=[N] simplification=[N] housekeeping=[N] performance=[N] design-consistency=[N]
         (where [N] is the number of iterations each agent required to pass)
         When validation returned PASSED-WITH-WAIVERS, also include one WAIVED line per waived gate
         (`WAIVED: <gate> — <one-line evidence>`) so the lead can report it; never present a waived gate as passed.
       - Failure: "TASK-NNN: FAILURE — [one-line reason]"
  5. Wait for teammate to complete. Monitor via the shared task list.

  6. Collect result from the teammate's completion message.

  7. Verify workflow compliance: Parse the teammate's completion message for validation evidence.

    • Look for the VALIDATION: line with per-agent iteration counts (e.g., code-quality=2 test-quality=1 ...).
    • If the validation line is present: proceed to step 8.
    • If the validation line is missing: send the teammate a correction via SendMessage:

      "Your completion report is missing the VALIDATION line with per-agent iteration counts. Run the validation loop (Step 7.5 of the work-on workflow) and report back with: VALIDATION: code-quality=[N] test-quality=[N] security=[N] spec-alignment=[N] architecture=[N] simplification=[N] housekeeping=[N] performance=[N] design-consistency=[N]"

    • Wait for the teammate to respond and re-collect the result.
    • If the teammate's second response still lacks the validation line: mark the task as failed with reason "Teammate did not complete validation".
  8. Update task status:

    • Success → **Status:** Complete in the tasks file
    • Failure → STOP immediately (see failure handling below)
  9. Shut down the teammate before spawning the next one. This ensures each task gets a completely clean context.

  10. Log result: "Completed TASK-NNN: [Title] — [one-line summary]"

On Failure: Report the failed task, reason, tasks completed this session, and tasks remaining. Note that the failed task's worktree is preserved at its reported <worktree_path> for investigation. Clean up the team.

Parallel Mode (--parallel)
  1. Build dependency groups: Partition tasks into levels based on the dependency graph. Level 0 = tasks with no dependencies. Level 1 = tasks whose dependencies are all in Level 0. Etc.

  2. Process one level at a time:

    For each dependency level:

    a. Determine the independent tasks in this level that are not yet complete.

    b. Cap concurrency: Spawn at most 5 teammates simultaneously (to control token cost). If more tasks than the cap, queue the rest.

    c. Spawn teammates for each task in the level, each with model: "opus" and the same spawn prompt as sequential mode.

    d. Wait for all teammates in this level to complete. As teammates finish, collect results. If any task fails, stop spawning new teammates but let running teammates finish.

    e. Verify workflow compliance for each teammate before shutting it down:

    • Parse the teammate's completion message for the VALIDATION: line with per-agent iteration counts.
    • If present: update task status to Complete.
    • If missing: send the teammate a correction via SendMessage:

      "Your completion report is missing the VALIDATION line with per-agent iteration counts. Run the validation loop (Step 7.5 of the work-on workflow) and report back with: VALIDATION: code-quality=[N] test-quality=[N] security=[N] spec-alignment=[N] architecture=[N] simplification=[N] housekeeping=[N] performance=[N] design-consistency=[N]"

    • Wait for the teammate to respond and re-check.
    • If the teammate's second response still lacks the validation line: mark the task as failed with reason "Teammate did not complete validation".

    f. Shut down all teammates in this level before proceeding to the next.

  3. Continue to next dependency level only after all tasks in the current level are complete.

On Failure in Parallel Mode: Report the failed task(s). If multiple tasks in the same level fail, report all of them. Stop processing further levels. Clean up the team.

Step 4: Completion Report

Clean up the agent team, then report:

markdown
## Swarming Batch Execution Complete

**Mode:** Agent Teams (swarming)

**Session Summary:**
- Tasks completed: X
- Total tasks complete: Y/Z
- All worktrees merged and cleaned up
- Agent team cleaned up

### Completed Tasks
| Task | Title | Branch | Status |
|------|-------|--------|--------|
| TASK-001 | [Title] | task/TASK-001 | Merged |
| TASK-002 | [Title] | task/TASK-002 | Merged |
...

### Worktree Summary
- Worktrees created: X
- Successfully merged: X
- Cleaned up: X

### Context Isolation Summary
- Teammate sessions spawned: X
- Each task ran in its own context window
- Lead context remained clean throughout execution

### Next Steps
- Run `/source-product-specs-from-code` to update specs with any implementation changes
- Plan next phase if milestone complete
- Review merged changes with `git log --oneline -10`

Edge Cases

SituationResponse
No tasks file"Tasks file not found. Run /groundwork:create-tasks to generate tasks."
No remaining tasks"All tasks are already complete! Nothing to execute."
All remaining blocked"All remaining tasks are blocked. Cannot proceed automatically."
Single task remainingExecute normally (still uses a teammate for context isolation)
Agent teams not enabledReport error and suggest enabling or using /groundwork:just-do-it
Teammate crashes/hangsReport failure for that task, preserve worktree, clean up team, stop batch
Merge conflict in teammateTeammate reports failure, lead stops batch and reports the conflict

Heefeg gestallte Froen

Wat mécht de KI-Skill Just Do It Swarming?

Execute all remaining tasks using agent teams for context isolation. Each task runs in its own session. Pass --project <name> to pin the monorepo package for this whole run. Pass --take-over to resume past a possibly-live prior session without asking. Pass --on-unrelated-failure stop-and-ask|expand-and-fix|ignore-and-merge to choose how validation handles gate failures confidently unrelated to the active project (default stop-and-ask). Usage /groundwork:just-do-it-swarming [--project name] [--parallel] [--take-over] [--on-unrelated-failure mode]

Firwat Just Do It Swarming op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Just Do It Swarming besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Just Do It Swarming an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/etr/groundwork/tree/main/skills/just-do-it-swarming an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Just Do It Swarming benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Just Do It Swarming benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Just Do It Swarming domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Just Do It Swarming gratis?

Jo. De Skill gëtt vum etr ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇