본문으로 건너뛰기
Skillpedia
에이전트7.3k · #13288

swarms

하는 일

이 스킬은 AI 에이전트를 위한 Swarms 프레임워크로 코드를 작성하는 방법을 에이전트에게 가르칩니다. Python으로 에이전트, 도구, 여러 에이전트가 함께 일하는 워크플로를 만드는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Swarms를 사용해 Python으로 AI 에이전트를 만들고 싶을 때.
  • ✓여러 에이전트가 정해진 워크플로에서 함께 일하기를 원할 때.
  • ✓Swarms 코드가 깨져서 검토하거나 고쳐야 할 때.

스킬 링크

https://github.com/kyegomez/swarms/blob/master/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/kyegomez/swarms/blob/master/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  1. Import from the top level: from swarms import Agent, never from swarms.structs.agent import Agent. The one common exception is PlannerWorkerSwarm (see below).
  2. Every agent needs a unique agent_name — memory files and swarm routing key on it.
  3. Default to max_loops=1. Use a specific integer for production. Use "auto" only for genuinely open-ended work.
  4. Pass tools=None, not tools=[]. An empty list breaks schema generation.
  5. Check examples/ — 586 runnable examples live there. One is probably close to what you need.
  6. Never set streaming_on=True and streaming_callback together. 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

비슷한 스킬