بنقرة واحدة
opencode-folder-creator
// Creates complete OpenCode folder structures with configuration files, agents, and commands
// Creates complete OpenCode folder structures with configuration files, agents, and commands
Creates OpenCode agents in project folders for opencode serve operations. Use when you need to autonomously create specialized OpenCode agents that will be used by OpenCode serve, not by Claude directly.
Creates universal OpenCode orchestrator folder structure with specialized agent that can manage swarm servers via curl commands
Launch and manage OpenCode servers with simple commands, from single instances to multi-server swarms
Creates universal OpenCode orchestrator folder structure with specialized agent that can manage swarm servers via curl commands
Launch and manage OpenCode servers with simple commands, from single instances to multi-server swarms
| name | opencode-folder-creator |
| description | Creates complete OpenCode folder structures with configuration files, agents, and commands |
| version | 1.0.0 |
| author | Claude |
| tags | ["opencode","folder","structure","configuration","setup"] |
Creates complete .opencode directory structures for projects with all necessary configuration files, agents, and commands. This skill sets up the entire OpenCode project structure that teams can immediately use with opencode serve.
IMPORTANT UNIVERSAL PRINCIPLE: This skill creates FOLDERS and STRUCTURES only. The specific agent types mentioned (code-analyzer, documentation-writer, etc.) are EXAMPLES ONLY. Real swarms will have vastly different agent types, purposes, and specializations. This skill is universal and works with ANY agent configuration.
# Create basic OpenCode structure
mkdir -p .opencode/{agent,command}
# Create main config file
cat > .opencode/opencode.json << 'EOF'
{
"$schema": "https://opencode.ai/config.json",
"theme": "opencode",
"autoupdate": true
}
EOF
Creates specialized agent folders with proper communication protocols for swarm deployment:
Folder Structure:
folder-name/
├── AGENTS.md # Agent directory and communication protocol
└── .opencode/
├── opencode.json # Folder-specific configuration
├── agent/
│ └── folder_name.md # Primary agent with communication requirements
└── command/
Communication Protocol: Every agent MUST introduce itself:
I am the [Agent_Name] agent from the [folder_name] folder. I am contacting you because [reason]. I need you to [request]. Please respond with [format].
⚠️ EXAMPLE AGENT TYPES ONLY: The following are EXAMPLES to illustrate the pattern. Real swarms can have ANY agent types:
data-scientist/ - Data analysis and machine learningui-designer/ - User interface design and prototypingapi-developer/ - API development and integrationgame-developer/ - Game logic and mechanicsresearcher/ - Research and analysistranslator/ - Language translation and localizationmusic-composer/ - Music composition and audio productionfinancial-analyst/ - Financial modeling and analysisUNIVERSAL TRUTH: This skill works with ANY folder name, ANY agent purpose, ANY specialization. The examples above are for illustration only.
mkdir -p .opencode/{agent,command}
# Code reviewer agent
cat > .opencode/agent/code-reviewer.md << 'EOF'
---
description: Reviews code for best practices and potential issues
mode: subagent
tools:
read: true
grep: true
permissions:
edit: deny
write: deny
---
You are a code reviewer. Focus on:
- Code quality and best practices
- Potential bugs and edge cases
- Performance implications
- Security considerations
Provide constructive feedback without making direct changes.
EOF
# Main configuration
cat > .opencode/opencode.json << 'EOF'
{
"$schema": "https://opencode.ai/config.json",
"theme": "opencode",
"autoupdate": true
}
EOF
$schema for validation.opencode/~/.config/opencode/This skill provides everything needed to create complete, functional OpenCode folder structures for any project type, with ready-to-use agents, commands, and configurations.