A proper parallel dispatch primitive for Claude. You build a table from files, globs, or records, then fan out work across rows with templated instructions and structured output. Each row is one unit of work. The framework handles batching automatically and merges results back into columns. Good for classification, extraction, or review tasks over dozens to hundreds of items. You can chain multiple passes to accumulate columns, filter to retry failures, then aggregate with plain JavaScript. The key insight is knowing when to use direct model calls versus full subagent loops. Most tasks don't need tools or iteration, and the default path is much faster and cheaper. For large files you'll split parsing and dispatch across eval blocks to avoid truncation.

skills.sh installs
9.5K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add langchain-ai/langchain-skills --skill swarm --agent claude-code

Installs into .claude/skills of the current project.

Files

Swarm

Process many independent items in parallel. create builds a table handle; run fans work out across rows and merges results back. One row = one unit of work — swarm handles batching automatically.

Flow

  1. Create. Build a table from a source — files, a glob pattern, or pre-parsed records. One row per item. Returns a handle.
  2. Run. Dispatch an instruction template across rows. Results are merged back into the table. Returns { completed, failed, skipped, failures }.
  3. Aggregate. Use rows() and plain JS to count, filter, or summarize. Do not spawn additional subagents for aggregation.
  4. Retry. Re-run with filter: { column: "<col>", exists: false } to reprocess only failed rows.

Choosing a source

glob / filePaths — one file = one row. Use when each file is an independent unit of work. Each row gets { id, file }; the subagent reads the file itself via the {file} placeholder.

Sponsors

Details

Repository
github.com/langchain-ai/langchain-skills
Categories
AI & Agent Building, Automation & Workflows
First seen
Jul 14, 2026

More from langchain-ai/langchain-skills

All 15
1railwayapp avataruse-railwayrailwayapp/railway-skillsOperate Railway infrastructure: sign up for or sign in to a Railway account, create projects, provision services and databases, manage object storage buckets, d9.4Kskills.sh installs
2jimliu avatarbaoyu-imaginejimliu/baoyu-skillsAI image generation with OpenAI GPT Image 2, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI GLM-Image, MiniMax, Jimeng, Seedream and Replicate APIs. Supports9.3Kskills.sh installs
3callstackincubator avatargithubcallstackincubator/agent-skillsGitHub patterns using gh CLI for pull requests, stacked PRs, code review, branching strategies, and repository automation. Use when working with GitHub PRs, mer9.1Kskills.sh installs
4github avatarwhat-context-neededgithub/awesome-copilotAsk Copilot what files it needs to see before answering a question8.9Kskills.sh installs
5crewaiinc avatargetting-startedcrewaiinc/skillsCrewAI architecture decisions and project scaffolding. Use when starting a new crewAI project, choosing between LLM.call() vs Agent.kickoff() vs Crew.kickoff() 8.9Kskills.sh installs
6superagent-ai avatarskill-securitysuperagent-ai/skillsAudit an AI agent skill for security risks before installing or trusting it. Runs a deterministic scanner (regex patterns, Python AST analysis, source-to-sink t8.7Kskills.sh installs