swarms
하는 일
이 스킬은 AI 에이전트를 위한 Swarms 프레임워크로 코드를 작성하는 방법을 에이전트에게 가르칩니다. Python으로 에이전트, 도구, 여러 에이전트가 함께 일하는 워크플로를 만드는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓Swarms를 사용해 Python으로 AI 에이전트를 만들고 싶을 때.
- ✓여러 에이전트가 정해진 워크플로에서 함께 일하기를 원할 때.
- ✓Swarms 코드가 깨져서 검토하거나 고쳐야 할 때.
스킬 링크
https://github.com/kyegomez/swarms/blob/master/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“조사, 작성, 검토를 맡는 세 개의 Swarms 에이전트로 이루어진 Python 팀을 만들어서 짧은 보고서를 함께 쓰게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 프레임워크의 Agent 클래스와 준비된 팀 구조를 사용하며, 프레임워크의 규칙과 예제를 따릅니다. 설치된 버전과 세부 사항이 다르면 최신 문서를 확인합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Swarms
Swarms is a multi-agent orchestration framework. Everything is built from one primitive — Agent — which multi-agent structures compose. This document is verified against swarms v14.0.0.
Live documentation
This skill can lag the library. When a signature here disagrees with the installed version, check the current docs:
- Docs MCP server, no key:
https://docs.swarms.world/mcp(claude mcp add --transport http swarms-docs https://docs.swarms.world/mcp) - Marketplace MCP server, Swarms API key for calls:
https://swarms.world/mcp - Plain-text docs: llms.txt (index), llms-full.txt (every page)
Golden rules
- Import from the top level:
from swarms import Agent, neverfrom swarms.structs.agent import Agent. The one common exception isPlannerWorkerSwarm(see below). - Every agent needs a unique
agent_name— memory files and swarm routing key on it. - Default to
max_loops=1. Use a specific integer for production. Use"auto"only for genuinely open-ended work. - Pass
tools=None, nottools=[]. An empty list breaks schema generation. - Check
examples/— 586 runnable examples live there. One is probably close to what you need. - Never set
streaming_on=Trueandstreaming_callbacktogether. Pick one.
Setup
pip install -U swarms
Set the key for whichever provider you use — any LiteLLM model string works:
export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."
export GROQ_API_KEY="..."
export WORKSPACE_DIR="agent_workspace" # where agent state and memory land
Part 1 — The Agent
from swarms import Agent
agent = Agent(
agent_name="Analyst",
agent_description="Analyzes market data and produces summaries.",
system_prompt="You are a precise financial analyst.",
model_name="gpt-5.4",
max_loops=1,
)
result = agent.run("Summarize the state of the semiconductor market.")
Agent.__init__ accepts 90+ parameters. These are the ones that matter:
| Parameter | Type | Default | Purpose |
|---|---|---|---|
agent_name |
str |
"swarm-worker-01" |
Unique identity; keys memory + routing |
agent_description |
str |
generic | How orchestrators decide to route to it |
system_prompt |
str |
built-in | Persona and instructions |
model_name |
str |
"gpt-5.4" |
Any LiteLLM model string |
max_loops |
int | "auto" |
1 |
Iterations, or autonomous mode |
tools |
list[Callable] |
None |
Python functions the agent may call |
temperature |
float |
0.5 |
Sampling temperature |
max_tokens |
int |
model max | Output cap per call |
top_p |
float |
None |
Nucleus sampling |
context_length |
int |
None |
Token budget; triggers compression at 90% |
output_type |
str |
"str-all-except-first" |
Return shape — see below |
streaming_on |
bool |
False |
Stream tokens to stdout |
streaming_callback |
Callable |
None |
Stream tokens to your function |
interactive |
bool |
False |
REPL — prompts the user each loop |
verbose |
bool |
False |
Debug logging |
print_on |
bool |
True |
Print the final output |
autosave |
bool |
False |
Persist agent state after each run |
retry_attempts |
int |
3 |
LLM call retries |
reasoning_effort |
str |
None |
minimal/low/medium/high/xhigh/ultra/max/none |
thinking_tokens |
int |
1024 |
Extended thinking budget (Claude) |
mcp_url / mcp_urls |
str / list[str] |
None |
MCP servers to load tools from |
handoffs |
list[Agent] |
None |
Agents this one may delegate to |
persistent_memory |
bool |
False |
Read/write MEMORY.md across restarts |
context_compression |
bool |
True |
Auto-summarize near the context limit |
plan_enabled |
bool |
False |
Plan before executing |
mode |
str |
"standard" |
"standard", "fast", "interactive" |
fallback_models |
list[str] |
None |
Models to try if the primary fails |
output_type options: "str", "list", "dict", "json", "yaml", "final", "last", "all", "str-all-except-first", "dict-all-except-first", "dict-final", "list-final".
Running
agent.run(task="...") # standard
agent.run(task="...", img="chart.png") # one
자주 묻는 질문
Python 전문가여야 하나요?
Python 지식이 있으면 도움이 되지만, 코딩은 에이전트가 대부분 해 줍니다.
코드가 최신 라이브러리 버전과 맞나요?
라이브러리가 가이드보다 빠르게 바뀔 수 있으므로, 세부 내용이 다르면 에이전트가 최신 문서를 확인해야 한다고 스킬이 설명합니다.
단일 에이전트도 다루나요?
네. 모든 팀은 기본 에이전트 유형 하나로 만들어지므로, 같은 원리가 단일 에이전트에도 적용됩니다.
상세 정보
작성자의 원본 설명
Build agents and multi-agent systems with the Swarms framework — the Agent class, tools, autonomous loops, memory, and the 15+ multi-agent architectures (SequentialWorkflow, ConcurrentWorkflow, GraphWorkflow, HierarchicalSwarm, SwarmRouter, and more). Use whenever writing, reviewing, or debugging code that imports `swarms`.
repo: kyegomez/swarms
인기도
- GitHub 스타
- 7.3k
- 순위
- #13288
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.