Guide · Agent skill
How to use the AgentSquad Swift agent skill (agent-squad-swift)
Updated · written with AI from the project's own documentation and checked against our catalogue data
The agent-squad-swift skill is a guide that gives an AI coding agent a working map of the AgentSquad Swift framework, a library for running several AI assistants on an iOS or macOS device. It is written for Swift developers who want the agent to write correct AgentSquad integration code. After following this page you will know how to install the skill, how to ask for help in a way that triggers it, and what to check before letting it touch your project.
Quick start
- 1Download the ZIP. Download the agent-squad-swift ZIP from this page. It contains README.md and SKILL.md.
- 2Unzip into a skills folder. Unzip the folder into ~/.claude/skills/ for all projects, or into .claude/skills/ inside one project.
- 3Or upload it in the Claude apps. In the Claude apps, open Settings, go to Capabilities, then Skills, and upload the skill.
- 4Confirm your stack. Check that you have a Swift 6.2 toolchain, an iOS 16+ or macOS 14+ target, and Swift Package Manager.
- 5Prepare an LLM endpoint. Have an API key and endpoint ready for your provider, such as an OpenAI-compatible service or a local Ollama server.
- 6Ask for a specific task. Describe the feature in plain language, naming AgentSquad and the piece you need, such as routing, tools, storage or voice.
- 7Review the code and endpoints. Read the source signatures the agent cites and check every network endpoint before sending real user data.
What is an agent skill and what does this one do?
An agent skill is a folder of instructions that an AI assistant loads when a task matches the skill's description. This skill is the entry point for work on the AgentSquad Swift framework. Once it is loaded, the agent knows when to use a single agent and when to use several specialists with routing, when to use grounded answers that stay tied to tool results, and how to wire tools, chat storage, tracing and realtime voice.
The skill is a map, not an API reference. It points the agent to the framework source and documentation for exact signatures, so the agent is expected to check those before writing code.
- Chooses between one Agent with no classifier and multiple agents with an LLMClassifier routing each turn.
- Chooses GroundedAgent when answers such as prices, stock or balances must not drift from the data.
- Explains how to add native tools, HTTP tools, MCP servers and a Dakera memory retriever.
- Covers on-device chat storage, summarizing and transforming storage wrappers, and tracing.
- Covers realtime voice assistants and the audio wiring they need.
Install the agent-squad-swift skill
Download the ZIP for this skill from this page. The package contains README.md and SKILL.md. You can install it in one of two ways.
For Claude Code, unzip the folder into ~/.claude/skills/ to make it available in all your projects, or into the .claude/skills/ folder of a single project to share it with that project. For the Claude apps, open Settings, go to Capabilities, and upload the skill under Skills.
- Personal install: unzip into ~/.claude/skills/
- Project install: unzip into .claude/skills/ inside your project folder
- Claude apps: Settings, then Capabilities, then Skills, then upload
Add the AgentSquad package to your Swift project
The skill can write this step for you, but it helps to know the dependency line. The framework is installed with Swift Package Manager from its GitHub repository. The source notes that until the first stable release, the branch main is the install reference. The guidance also says to import only the modules you use, so a plain text chat does not need the audio or MCP modules.
- AgentSquad: core protocols, agents, orchestrator, storage and tracing, with no external dependencies
- AgentSquadMCP: MCP tool support, which pulls in the MCP Swift SDK
- AgentSquadAudio: voice capture and playback, which uses AVFoundation and needs NSMicrophoneUsageDescription
.package(url: "https://github.com/2FastLabs/agent-squad", branch: "main")Trigger the skill with natural requests
You do not need a special command. The skill loads when your request involves building or changing a Swift app that uses the AgentSquad Swift framework. Name the framework and describe the task in plain language. Mentioning the specific piece you need, such as voice, tools or storage, helps the agent pick the right part of the guide.
The skill tells the agent to read exact signatures from the source before writing code, so ask for working code and let it check the source.
- Add a classifier that routes questions between a billing agent and a support agent in my AgentSquad iOS app.
- Make my AgentSquad chat answer stock questions from tool results only, so it cannot make up prices.
- Wire an MCP server into my AgentSquad Swift app as a tool provider.
- Set up FileChatStorage in my SwiftUI app so chat history survives restarts.
- Add realtime voice to my existing AgentSquad app with the microphone and speaker wired correctly.
Check what you need before you start
The skill targets a specific stack. Confirm these requirements first. The framework needs a Swift 6.2 toolchain, an iOS 16 or later or macOS 14 or later target, and Swift Package Manager. You also need an LLM endpoint and an API key for your provider, such as an OpenAI-compatible service or a local Ollama server.
Some features are optional. MCP support needs the MCP Swift SDK. Shared memory needs a Dakera memory server. Tracing needs a backend such as Langfuse or Datadog.
- Required: Swift 6.2 toolchain, iOS 16+ or macOS 14+ target, Swift Package Manager
- Required: an LLM endpoint and API key (for example an OpenAI-compatible service or local Ollama)
- Optional: MCP Swift SDK, Dakera memory server, tracing backend such as Langfuse or Datadog
Safety notes: scripts and network access
This skill does not run scripts. It does use the network, because the framework it describes can send requests to remote services. The framework's ChatCompletionsClient can point its baseURL at OpenAI, Azure, OpenRouter, Groq or a local server, and the DakeraRetriever talks to a self-hosted Dakera REST endpoint.
If your app handles data that must not leave the device, review every endpoint and memory service in your configuration before shipping. Whether data leaves your device depends on how you configure the framework. The skill does not decide that for you.
- Runs scripts: no
- Uses network: yes
- Review every baseURL and memory endpoint before sending user data
- Use TransformingChatStorage to scrub or redact personal data before it is saved
Tips for getting good results
Give the agent the framework context it cannot guess, such as your minimum iOS version and whether you use voice. Ask it to cite the source file it used for any signature, then check that file yourself. For voice work, the source recommends one VoiceProcessedAudioIO instance passed as both input and output, so the assistant's audio is in the echo canceller's reference path.
For long conversations, SummarizingChatStorage can keep agent context small, but the summarizer is supplied by you and summaries are held in memory.
- State your platform target and whether you need voice, storage or tracing up front.
- Ask the agent to read the exact signatures in the framework source before writing code.
- Test on a device for voice features, because echo cancellation depends on the audio setup.
- Keep your API keys out of source files.
What people use it for
- Adding a classifier that routes each user message to one of several specialist agents in an iOS app.
- Building a grounded assistant for prices, stock or balances, where a smaller presenter model speaks only from tool results.
- Connecting an MCP server or a self-hosted Dakera memory server as tool providers.
- Saving on-device chat history with FileChatStorage or DeviceChatStorage and redacting personal data before save.
- Adding realtime voice to an existing Swift app with one shared audio engine for capture and playback.
Frequently asked questions
How do I install the agent-squad-swift skill?
Download the ZIP from this page and unzip it into ~/.claude/skills/ for all projects, or into .claude/skills/ inside a single project. In the Claude apps, you can instead upload it under Settings, then Capabilities, then Skills.
Is the agent-squad-swift skill free to use?
This page does not state a price or licence terms for the skill itself. The item is listed under the Apache-2.0 licence, so check that licence text for the terms that apply to the source code.
What do I need to use AgentSquad Swift?
You need a Swift 6.2 toolchain, an iOS 16+ or macOS 14+ target, and Swift Package Manager. You also need an LLM endpoint and API key, such as an OpenAI-compatible service or a local Ollama server.
Does the skill run scripts or send data over the network?
The skill does not run scripts, but it does use the network. The framework can send requests to remote services such as OpenAI, Azure or a self-hosted Dakera server, so review your endpoints before sending user data.
Can I use this skill for a non-Swift project?
No. The guidance covers only the AgentSquad Swift framework, so it is the wrong tool for other stacks. Use it only for iOS or macOS apps written in Swift.
Why does the skill send me to the source code instead of giving full API signatures?
The skill is designed as a map of what to use and when, not an API reference. It tells the agent to read exact signatures from the framework source and docs, which avoids stale or incorrect function details.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
This skill suits Swift developers building an iOS or macOS app with AgentSquad who want an AI coding assistant to write correct integration code for agents, tools, storage and voice. Skip it if your project is not in Swift, if you need complete API signatures in one place, or if your app cannot send data to external LLM or memory services without a review.
Download the skill