vakandi/eliaagent/elia-subworker-creator
Claude Code and agent skill by vakandi/eliaagent
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Create a new autonomous subworker in the EliaAI system. A subworker is an AI agent with its own personality (stored in ~/.config/opencode/agents/), its own detailed prompt (in subworkers/<name>/PROMPT.md), and an entry in the subworker server config (subworkers/server/app/config/subworkers.json) which schedules and triggers it (Docker FastAPI on port 5656). This skill handles the FULL pipeline: opencode.json registration → agent personality file → PROMPT.md → subworkers.json declaration → SUBWORKERS_SYSTEM.md update. Use this whenever the user says "create a subworker", "add a new agent", "make a promoter", "new sub-worker", "add subworker", or any request to create a scheduled autonomous agent for the EliaAI ecosystem. DO NOT attempt to create subworkers without this skill — the procedure has many interdependencies and forgetting any one step will break the system.
Install
npx vskill@latest install vakandi/eliaagent/elia-subworker-creatorSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as vakandi/eliaagent/elia-subworker-creator.
EliaAI Subworker Creator
Why This Skill Exists
This session, multiple mistakes were made creating a subworker because the full procedure has 7 interdependent steps across 4 different locations. Forgetting even one step (like registering in opencode.json) silently breaks the subworker. This skill enforces the complete, verified pipeline.
Main Agent Designation (Elia as a Subworker)
New feature (August 2026): Elia, the main agent, is now also a subworker — the main one. The logic and code are identical to any other subworker; only the designation differs ("main" title or not).
subworkers/main-agent.json={"name":"elia"}designates the main agent (default"elia"if file missing).- The subworker popup (ui_electron) shows a MAIN badge + ★/✕ edit button to set/unset which agent is main.
- The subworker server (Docker FastAPI, port 5656) uses
workspace+prompt_filefromsubworkers.json:
the main agent gets repo root as workspace (~/EliaAI) instead of subworkers/<name>/workspace/.
- Elia's prompt lives at
subworkers/elia/PROMPT.md(moved from repo root without editing) — the standard
subworker location, referenced via prompt_file: PROMPT.md in subworkers.json.
To create or designate a main agent: same pipeline as any subworker, then ensure subworkers/main-agent.json names it. Default is Elia — no action needed for the standard setup.
Overview — The 6-Step Pipeline
Each step references files from previous steps. Doing them in order is critical.
Runtime: the Docker FastAPI server (elia-subworker-srv, port 5656) reads subworkers.json, schedules each subworker, and triggers runs via POST /trigger/{name}. No trigger shell scripts, no LaunchAgent plists — scheduling lives in the server.
Step 0: READ FIRST — Understand the existing patterns
Before creating anything, read these reference files to understand the conventions:
Also read 1-2 existing subworkers to match the style:
Step 1: Register agent in opencode.json
Add the agent entry to opencode.json. The name MUST match what you use everywhere else.
Conventions:
name: kebab-case, descriptive (e.g.,your-brand-suppliers,mirrorpay-telegram)mode:primaryfor scheduled autonomous agents,subagentfor agents called by other agentscolor: hex color for terminal displaymodel:opencode/big-pickle(default)prompt_append: ALWAYS start with"**FIRST: Read ~/EliaAI/subworkers/<name>/PROMPT.md pour ton workflow complet.**"
⚠️ Critical: The prompt_append references the PROMPT.md path — make sure this path uses the EXACT same <name>.
Step 2: Create agent personality file (~/.config/opencode/agents/<name>.md)
The agent personality file in ~/.config/opencode/agents/ serves as the agent's identity and is loaded when the subworker triggers. ALWAYS include YAML frontmatter.
YAML frontmatter fields:
name: Must match the name in opencode.jsonslug: Same as namedescription: Short descriptionmodel:opencode/big-pickletemperature: 0.2-0.3 for focused, 0.5+ for creativemode:primary
Body content — what to include:
- Identity (who they are, 1-2 sentences)
- Mission (what they do, in one sentence)
- Key skills or tools they use
- Behavioral rules
- Anti-patterns (must-avoid behaviors)
Example:
Path: ~/.config/opencode/agents/<name>.md
Step 3: Create PROMPT.md (subworkers/<name>/PROMPT.md)
Create the detailed workflow document. This is the MAIN file the agent reads at runtime.
Location: ~/EliaAI/subworkers/<name>/PROMPT.md
Required sections:
- SOURCE DE VÉRITÉ — List all personality files to read first (from
~/.config/opencode/agents/) - MISSION — What this subworker does
- RUN CYCLE — How long each run takes (max duration)
- WORKFLOW — Step-by-step instructions
- OUTILS — What tools they can use (Discord channels, Jira, etc.)
- REPORTING — How to report results (Discord format)
- LIMITATIONS — What they must NOT do
⚠️ NEVER include a personality.md in the subworker folder. Personalities go in ~/.config/opencode/agents/ only. The PROMPT.md references those files in SOURCE DE VÉRITÉ.
Naming conventions:
- Subworker folder name = agent name (kebab-case)
PROMPT.mdinside (notprompt.md, notinstructions.md)
Step 4: Declare the subworker in subworkers.json (server schedule)
Add an entry to ~/EliaAI/subworkers/server/app/config/subworkers.json. The Docker FastAPI server (elia-subworker-srv, port 5656) reads this file, schedules the subworker, and runs it with opencode run -d <workspace> -a <agent_id> <prompt_file>.
Required fields per entry:
name: must match the agent name (kebab-case)enabled:true/false(serves as the on/off switch — no.enabledflag file anymore)schedule:{"type": "interval", "hours": [...], "minute": 0}or a cron expressionagent_id: the opencode agent name (same asname)workspace: working directory for the run. The main agent (elia) gets repo root
~/EliaAI; other subworkers use ~/EliaAI/subworkers/<name>/workspace/
prompt_file:PROMPT.md(path relative to workspace)timeout_minutes,max_retries,mcp_servers,notify_discord: optional per subworker
Template:
Trigger: POST http://127.0.0.1:5656/trigger/<name> (the server replaces the old trigger_<name>.sh scripts). Status via GET /status, run logs via the server.
Step 5: Enable the subworker (subworkers.json "enabled": true)
New subworkers are created with "enabled": false. To activate one, set "enabled": true in subworkers.json and restart the server (docker compose restart in subworkers/server/). The server's scheduler starts the subworker on its schedule; manual trigger stays POST /trigger/<name> regardless of the schedule.
Step 6: Update SUBWORKERS_SYSTEM.md
Edit ~/EliaAI/subworkers/SUBWORKERS_SYSTEM.md to register the new subworker:
- Key Differences table — Add a new column for the subworker with: Business, Focus, Platforms, Interval, Hours, Max output
- Directory Structure — Add the new folder and log entries
⚠️ NEVER overwrite SUBWORKERS_SYSTEM.md — always edit it in place. Use the edit tool to add insertions to the existing sections.
Step 7: Verify the server picks it up
The subworker is disabled by default ("enabled": false). After declaring it in subworkers.json:
Only set "enabled": true (and restart the server) if the user explicitly asks to activate the subworker. Manual trigger works regardless of the schedule: curl -s -X POST http://127.0.0.1:5656/trigger/<name>
Common Mistakes — DO NOT REPEAT
| Mistake | Consequence | Correct | |
|---|---|---|---|
Creating personality.md in subworker/ folder | Wrong location, agent won't find it | Put in ~/.config/opencode/agents/<name>.md | |
Forgetting to register in opencode.json | opencode run -a <name> fails silently | Register BEFORE creating other files | |
Overwriting SUBWORKERS_SYSTEM.md | Destroys existing subworker docs | Use edit tool to modify in place | |
Wrong agent name in prompt_append | Agent reads wrong PROMPT.md | Verify name matches exactly | |
Not declaring in subworkers.json | Server never schedules the subworker | Add entry with workspace + prompt_file | |
| Referencing personality.md in PROMPT.md | File doesn't exist at that path | Reference ~/.config/opencode/agents/<name>.md | |
| Skipping any of the 7 steps | Subworker silently broken | Run through all 7 steps in order | |
| Creating agent file in subworkers/ | Not registered in opencode.json | Agent files go in ~/.config/opencode/agents/ | |
Using permissions (plural) in workspace/opencode.json | ConfigInvalidError, agent won't launch | Use permission (singular, tool-level) or omit entirely | |
| Forgetting workspace/opencode.json has no path-level security | Agent CAN read/write outside workspace | Workspace isolation = -d flag + PROMPT.md instruction, not config | |
Using old trigger_<name>.sh / plist pipeline | Duplicates scheduling outside the server | Declare in subworkers.json; server schedules + triggers |
Verification Checklist
Before saying the subworker is ready, verify ALL of these:
Config validation: Before declaring a subworker ready, verify the entry with the server:
Use this checklist in your response to confirm completion.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/elia-subworker-creator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vakandi/eliaagent/elia-subworker-creator)