single-agent
Guide one Swarms Agent, its memory, skills, marketplace, prompt caching, and support objects.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- single-agent
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guide one Swarms Agent, its memory, skills, marketplace, prompt caching, and support objects.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/api-reference.md4.2 KB
- 参考文档references/troubleshooting.md1.6 KB
- 参考文档references/workflows.md2.7 KB
03 SKILL.md 正文
Single Agent
Use this sub-skill when the user wants to create, configure, inspect, or debug one Swarms Agent and the objects that travel with it.
Owns these workflows
- Build a new
Agentwith the right model, loop count, tools, and output type. - Attach skills from a
skills_dirand decide when to load them statically or dynamically. - Turn on or tune memory, context compression, fallback models, streaming, prompt caching, and multimodal input.
- Load or publish marketplace prompts.
- Work with the support objects that make a single agent usable:
Conversation,Artifact,SkillsManager,ContextCompressor,LLMManager, andAgentMarketplaceHandler.
Does not own
- CLI command parsing or YAML/markdown file loaders; use
cli-loadersfor those. - Tool schema conversion, BaseTool, or MCP server/client details; use
tools-mcp. - Multi-agent orchestration, routing, debate, group chat, or swarm planning; use
multi-agent-workflows.
Read this sub-skill when the request mentions
Agent,run,run_stream,max_loops,interactive,autosave, oroutput_type.skills_dir,SkillsManager,persistent_memory,context_compression, orWORKSPACE_DIR.marketplace_prompt_id,SWARMS_API_KEY, or prompt marketplace workflows.prompt_caching,cache_config, model fallback, or provider-specific parameter behavior.Conversation,Artifact,add_memory, or state save/load issues.
Working shape
- Decide whether the task is a minimal agent, a skills-enabled agent, a memory-backed agent, or a provider-specific live run.
- Check the user’s model, key, and workspace assumptions before recommending runtime settings.
- Prefer a minimal offline smoke check first; only move to live provider execution if the user has keys and wants a real model call.
- Use the bundled references for constructor knobs, workflow examples, and failure recovery.
What to read next
references/api-reference.mdfor the confirmedAgentsignature and the main support-object APIs.references/workflows.mdfor common single-agent recipes.references/troubleshooting.mdfor workspace, key, fallback, and marketplace failures.scripts/agent_smoke.pyfor a local offline import and support-object check.
Typical user questions this sub-skill should answer
- How do I create one agent that remembers state across runs?
- How do I load a skill folder or choose relevant skills for a task?
- Why is my agent not writing memory files where I expect?
- Why did a prompt-caching or provider call fail even though the agent built successfully?
- How do I attach a marketplace prompt without hand-editing the system prompt?
Route boundaries
- If the task starts with a command such as
swarms agentorswarms setup-check, route tocli-loaders. - If the user is really asking for a workflow of multiple agents, route to
multi-agent-workflows. - If the user is mainly converting functions to tools or attaching MCP, route to
tools-mcp.
Acceptance checklist
- The response should name the relevant
Agentfields and support objects. - The answer should mention any required env vars or workspace assumptions.
- The answer should give a concrete recovery path for missing keys, missing workspace, or invalid skill directories.
- If live execution is requested, the answer should say which provider credentials are required before a model call can succeed.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.