Skills for Real Engineers. Straight from my .agents directory.
swarm
Agent skill fromlangchain-ai/langchain-skills
Dispatches many independent items in parallel: create a table, fan out to subagents, aggregate results. One row = one unit of work.
How to install swarm
install swarm
# install the langchain-skills pack with the skills CLI
npx skills add langchain-ai/langchain-skills# or add only this skill to Claude Code: copy the folder
config/skills/swarm/
# into
~/.claude/skills/swarm/ (all projects)
.claude/skills/swarm/ (one project)
1# Swarm23Process many independent items in parallel. `create` builds a table handle;4`run` fans work out across rows and merges results back. One row = one unit5of work — swarm handles batching automatically.67## Flow891. **Create.** Build a table from a source — files, a glob pattern, or10 pre-parsed records. One row per item. Returns a handle.112. **Run.** Dispatch an `instruction` template across rows. Results are merged12 back into the table. Returns `{ completed, failed, skipped, failures }`.133. **Aggregate.** Use `rows()` and plain JS to count, filter, or summarize.14 Do not spawn additional subagents for aggregation.154. **Retry.** Re-run with `filter: { column: "<col>", exists: false }` to16 reprocess only failed rows.1718## Choosing a source1920**`glob` / `filePaths`** — one file = one row. Use when each file is an21independent unit of work. Each row gets `{ id, file }`; the subagent reads22the file itself via the `{file}` placeholder.2324**`tasks`** — pass pre-built records directly. Use when the data lives inside25a file (JSONL, CSV, JSON array). Read and parse the file first inside26`eval`, then pass the records. One record = one row — do not group27multiple items into a single row.2829For small files (under ~500 lines), parse and create in one block:3031```javascript32const { create } = await import("@/skills/swarm");33const raw = await tools.readFile({ file_path: "/data.jsonl" });34const records = raw.trim().split("\n").map(l => JSON.parse(l));35…
Excerpt shown under the repository's MIT license.
More skills in langchain-skills
Keep exploring
Similar skill repositories
39 skills
An agentic skills framework & software development methodology that works.
15 skills
Public repository for Agent Skills
20 skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
CCCU6 skills
Production-grade engineering skills for AI coding agents.
CCCXCU25 skills
The open-source app everyone uses to manage agents at work
CCCX33 skills
