A reusable opencode skill that scaffolds a complete team of AI agents in any project.
Before using this skill, you need to have OpenCode CLI installed.
curl -fsSL https://opencode.ai/install | bashUsing npm:
npm install -g opencode-aiUsing Homebrew (macOS/Linux):
brew install anomalyco/tap/opencodeUsing Chocolatey (Windows):
choco install opencodeUsing Scoop (Windows):
scoop install opencodeUsing Arch Linux:
sudo pacman -S opencode # Stable
paru -S opencode-bin # Latest from AURUsing Mise:
mise use -g github:anomalyco/opencodeUsing Docker:
docker run -it --rm ghcr.io/anomalyco/opencodeopencode --versionYou should see the version number (e.g., 1.14.33).
New agent teams use OpenCode with the free DeepSeek V4 Flash model by default:
opencode/deepseek-v4-flash-free
Start OpenCode and run /connect, then select OpenCode (OpenCode Zen). Use /models
to confirm or change the selected model. Credentials are managed by OpenCode and are
not written to generated project files.
| Provider | Setup | Model ID example |
|---|---|---|
| Cloudflare Workers AI | /connect → Cloudflare Workers AI |
cloudflare-workers-ai/@cf/zai-org/glm-5.2 |
| ChatGPT/OpenAI | /connect → OpenAI, then /models |
openai/<model-id> |
| Another connected provider | Select it with /connect, then choose a model with /models |
Provider-specific model ID |
ChatGPT login options, including free or paid plans, depend on the OpenCode version
and the account. OpenCode will show the available options during /connect.
This skill helps you create production-ready agent teams for automating multi-step workflows. When you load this skill and describe your pipeline, it will:
- Plan the pipeline (agents, handoffs, tools)
- Scaffold the
.opencode/directory structure - Generate the
opencode.jsoncoordinator config - Create subagent
.mdfiles with proper permissions - Create skill
.mdfiles for domain knowledge - Create custom tool
.py+.tspairs - Create the
AGENTS.mdproject instructions file (or use/init) - Create custom commands for repetitive workflows (optional)
- Test the pipeline end-to-end
# For global installation (available in all projects)
git clone https://github.com/bighadj22/opencode-skill.git ~/.config/opencode/skills/agent-team-setup
# Or for .agents directory
git clone https://github.com/bighadj22/opencode-skill.git ~/.agents/skills/agent-team-setup- Download or clone this repository
- Copy the folder to your OpenCode skills directory:
# For global installation
cp -r agent-team-setup-skill ~/.config/opencode/skills/agent-team-setup
# Or for .agents directory
cp -r agent-team-setup-skill ~/.agents/skills/agent-team-setup# Install for a specific project only
cd /path/to/your/project
mkdir -p .opencode/skills
git clone https://github.com/bighadj22/opencode-skill.git .opencode/skills/agent-team-setupAfter installation, restart OpenCode and verify the skill is available:
opencode
# Then in OpenCode, type:
# "What skills do you have?" or "List available skills"You should see agent-team-setup in the list of available skills.
In any project, load the skill and describe your workflow:
@skill agent-team-setup
Set up an agent team for my SaaS marketing blog:
research trending topics → write SEO articles → generate social media images → publish to WordPress
The skill will guide you through the entire setup process and help you make decisions about:
- Agent roles and responsibilities
- Handoff mechanisms between agents
- Custom tools needed
- Model selection and temperature settings
- Permission configurations
agent-team-setup-skill/
SKILL.md # The full skill instructions (loaded by opencode)
README.md # This file
references/ # Comprehensive OpenCode documentation references
opencode-agents.md
opencode-skills.md
opencode-tools.md
opencode-commands.md
opencode-rules.md
opencode-config.md
opencode-permissions.md
opencode-mcp.md
opencode-builtin-tools.md
templates/
opencode.json # Coordinator config template
AGENTS.md # Project instructions template
agent.md # Subagent definition template
skill.md # Skill definition template
tool.py # Python script template
tool.ts # TypeScript wrapper template
package.json # .opencode/ package.json
gitignore # .opencode/.gitignore
requirements.txt # Python deps template
This skill works for any multi-step automated workflow:
- Content Creation: Research → Write → Edit → Publish → Promote
- Software Development: Analyze → Design → Code → Test → Deploy
- Data Analysis: Collect → Clean → Analyze → Visualize → Report
- Customer Support: Triage → Investigate → Respond → Follow-up
- Marketing: Research → Plan → Create → Schedule → Track
- Provider Flexibility: Use OpenCode, Cloudflare Workers AI, ChatGPT/OpenAI, or another provider through
/connect - Complete Setup: Creates all necessary files and directories
- Best Practices: Follows OpenCode conventions and patterns
- Comprehensive Documentation: Includes 9 detailed reference files covering all OpenCode features
- Flexible Architecture: Adapts to any domain or workflow
- Permission Control: Proper security boundaries for each agent
- Custom Tools: Templates for Python + TypeScript tool integration
- Skills System: Knowledge documents for domain-specific guidance
- Commands System: Reusable prompt templates for common workflows
- AGENTS.md Integration: Project-level instructions with /init support
Apache-2.0
