Swarm Improve logo

Swarm Improve

Community
fortunto2
swarm-improve

End-to-end project improvement — plan, branch, delegate execution, verify. Calls /plan for analysis, then delegates fixes to agents. Use when "improve project", "swarm improve", "send agents to fix", "refactor project X", "upgrade project". Do NOT use for planning only (use /plan), single tasks (use /delegate), or own codebase (use /self-evolve).

Overview

Publisherfortunto2
Repositoryrust-code
Skill nameswarm-improve
Stars
46
Forks
12
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by fortunto2 on GitHub. Read the source before you install it.

Installation

Install the Swarm Improve AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/fortunto2/rust-code/tree/master/skills/swarm-improve
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fortunto2/rust-code.git /tmp/rust-code
mkdir -p .claude/skills
cp -r /tmp/rust-code/skills/swarm-improve .claude/skills/swarm-improve
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Swarm Improve in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Swarm Improve on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Swarm Improve is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

/swarm-improve — Multi-Agent Project Improvement

End-to-end workflow: plan → branch → delegate execution → verify.

This is a thin orchestrator. The heavy lifting is in /plan (analysis) and /delegate (execution).

Step 0: Validate Baseline

Before anything else:

  1. cd to the project (absolute path — store it, you'll need it for every delegate)
  2. Read CLAUDE.md or README.md → find the test command
  3. Run tests: bash: make test (or equivalent)

If tests FAIL → HARD STOP. Create one P0 task "fix broken tests" and finish. Do NOT plan improvements on a broken project — all delegate work will fail too.

Step 1: Plan

If .tasks/PLAN.md already exists and is recent (< 24h):

  • Read it, skip to Step 2
  • Tell the user you're using the existing plan

Otherwise, run the /plan workflow inline (this skill has the same tools):

  1. Recon — already done in Step 0
  2. Design dimensions — pick 3+ analysis angles adapted to the goal (not hardcoded)
  3. Check agent availability — try each agent before committing to the plan
  4. Delegate to 3+ diverse agents — agent diversity mandatory (claude + gemini + codex preferred)
  5. Wait — poll every 60s with delegate_status
  6. Synthesize — cross-reference, dedup, create STAR-formatted execution tasks + .tasks/PLAN.md

Use the task tool for all task creation — never write .tasks/ files manually. Files are named YYYYMMDD-NNN-slug.md automatically.

Step 2: Branch

bash: cd <absolute-project-path> && git checkout -b improve/swarm-$(date +%Y%m%d)

All delegate work happens on this branch. Master/main stays clean.

Step 3: Delegate Execution

Read .tasks/PLAN.md for the prioritized task list. Each task has STAR format — Action tells the delegate what to do, Result tells how to verify.

Assign agents by strength, diversify across agents:

Task typePrimaryFallback
Code changes, refactoringclaudegemini
Quick fixes, single-filecodexclaude
Tests, docsclaudecodex
Review, analysisgeminiopencode

Always pass absolute cwd:

delegate_task {agent: "claude", task_path: ".tasks/YYYYMMDD-001-fix-xxx.md", cwd: "/absolute/path/to/project"}
delegate_task {agent: "gemini", task_path: ".tasks/YYYYMMDD-002-refactor-xxx.md", cwd: "/absolute/path/to/project"}

If an agent fails immediately (not installed, auth error) — switch to fallback agent, don't retry the broken one.

Limit: 3 delegates at a time. When one finishes, start the next.

Step 4: Monitor & Collect

Poll every 60s:

bash: sleep 60
delegate_status

When a delegate finishes, read its task file for results:

read_file: <project>/.tasks/YYYYMMDD-001-fix-xxx.md

If a delegate failed — note it, move on. Don't retry in this cycle.

Step 5: Verify

After all delegates finish:

  1. bash: cd <project> && make check (or project's test command)
  2. bash: git log --oneline improve/swarm-*..HEAD — what was committed
  3. bash: git diff --stat main..HEAD — scope of changes

Step 6: Report

finish: "Improvement complete on branch improve/swarm-YYYYMMDD.
- N tasks planned, M completed, K failed
- Agents used: claude, gemini, codex (diversity: N unique)
- Tests: pass/fail
- Files changed: N
- Ready for review: git diff main..improve/swarm-YYYYMMDD"

Gotchas

  1. Baseline MUST pass — HARD STOP if broken — real failure: orchestrator planned 3 tasks on a project with broken tests. All delegates failed because the code didn't compile. Total waste of time and API credits. Run make test FIRST.
  2. Always branch BEFORE delegating — never delegate on master. If working tree is dirty, stash or commit first.
  3. 3 delegates max concurrently — agents compete for CPU, rate limits, API quota. When one finishes, start the next.
  4. Agent diversity on execution too — don't send all tasks to claude. Mix agents: claude for complex edits, codex for simple fixes, gemini for analysis. Real failure: all 3 sent to claude = $0.50+ and no diversity.
  5. Absolute paths everywhere — cwd must be absolute. Task paths in delegate_task are relative to cwd. Real failure: orchestrator cd'd in bash then used relative paths — delegates couldn't find task files.
  6. Use task tool, never write_file for tasks — the task tool generates correct YYYYMMDD-NNN-slug.md names with proper IDs. Real failure: orchestrator created files via write_file with 60-char names, then delegate_task couldn't find them.
  7. Verify MUST run — even if all tasks report success, run the full test suite. Agents may break each other's work through shared file edits.
  8. codex/gemini may not be available — check early. If delegate_task fails for an agent, switch to fallback immediately. Don't waste time retrying broken agents.

Frequently asked questions

What does the Swarm Improve AI skill do?

End-to-end project improvement — plan, branch, delegate execution, verify. Calls /plan for analysis, then delegates fixes to agents. Use when "improve project", "swarm improve", "send agents to fix", "refactor project X", "upgrade project". Do NOT use for planning only (use /plan), single tasks (use /delegate), or own codebase (use /self-evolve).

Why use Swarm Improve on TypingMind?

Because you install it once and use it with any model. Swarm Improve is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Swarm Improve in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/fortunto2/rust-code/tree/master/skills/swarm-improve. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Swarm Improve?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Swarm Improve?

As many as you like. As long as a model supports skills, you can use Swarm Improve with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Swarm Improve AI skill free?

Yes. It is published on GitHub by fortunto2 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇