Skill Creator
Help the owner create new skills for this agent. This skill is used by the admin sub-agent. Skills are modular capabilities defined in Markdown files that extend what the agent can do.
Design Principles
- Concise context -- Tokens are a shared resource. Keep skill instructions focused and minimal. Every line should earn its place.
- Appropriate degrees of freedom -- Match specificity to task fragility. Fragile tasks (API calls with exact schemas) need precise instructions. Flexible tasks (writing, analysis) need loose guidance.
- Progressive disclosure -- The system prompt only shows skill name + description. Full SKILL.md content is loaded on demand.
Skill Format
A skill is a directory skills/{name}/ containing a SKILL.md file with YAML frontmatter:
yaml--- name: my-skill description: One-line description of what this skill does (max 1024 chars) requires: env: [] # Environment variables needed (e.g., [OPENAI_API_KEY]) bins: [] # Binary executables needed (e.g., [curl, ffmpeg]) --- # Skill Title Instructions for the LLM on how to use this skill...
Naming Rules
- Lowercase letters, digits, and hyphens only
- No leading, trailing, or consecutive hyphens
- Maximum 64 characters
- Prefer verb-led names:
generate-images,send-email,track-expenses
What to Include in Instructions
- When and why to use this skill
- Step-by-step instructions for the LLM
- Available tools the skill leverages (e.g.,
run_command,schedule_job,web_search,web_fetch) - Example interactions showing input and expected behavior
- Error handling guidance
What NOT to Include
- Implementation code (skills are instructions, not code)
- Redundant information the LLM already knows
- Long reference docs (use a
references/subdirectory if needed)
Creation Process
When the owner asks to create a skill, follow these steps in order:
Step 1: Understand
Ask the owner:
- What should this skill do?
- What external APIs or tools does it need?
- Are there any environment variables or binaries required?
Gather enough context to write a useful skill. Ask follow-up questions if the idea is vague.
Step 2: Research (conditional)
If the skill needs external tools, APIs, or packages, research before planning:
- Search for relevant packages, public APIs, CLI tools, or best practices.
- Read API documentation, package READMEs, or pricing/free-tier details for promising options.
- Present findings to the owner: "I found these options: [list with pros/cons]. Which approach would you prefer?"
- Let the owner choose before moving to Plan.
Skip this step if the skill is straightforward and only uses built-in tools (e.g., reformatting text, filesystem operations).
Step 3: Plan
Outline the skill:
- Name (following the naming rules above)
- Description (one-line summary, max 1024 chars)
- Required env vars and binaries
- Key instructions for the LLM
Present this plan to the owner and wait for feedback before drafting.
Step 4: Draft
Write the complete SKILL.md content. Show the full draft to the owner in the chat. Do not write anything to disk yet.
Step 5: Approve
Ask the owner: "Does this look good? Any changes?"
Revise based on feedback. Iterate until the owner is satisfied. Do NOT write to disk until the owner explicitly approves.
Step 6: Write
Once approved, use workspace tools to:
- Create the directory:
skills/{name}/ - Write the file:
skills/{name}/SKILL.md
Step 7: Confirm
Tell the owner the skill has been created and when it will be available:
- "Skill '{name}' created. It will be available on your next message."
- If the skill requires environment variables: "Note: this skill needs {VAR_NAME} set in your .env file. Add it and the skill will activate automatically."
Example
Owner: "I want a skill that generates images using AI"
- Understand: What kind of images? Any style preference? Budget for API costs?
- Research: Search for image generation APIs. Find options:
- Replicate API -- many models, pay-per-use, easy REST interface
- Stability AI -- good quality, REST API, needs API key
- OpenAI DALL-E -- via existing OpenAI key if available Present options to owner. Owner chooses Replicate.
- Plan: name:
generate-images, requiresREPLICATE_API_TOKEN, usesweb_fetchto call Replicate API, returns image URL to the user. - Draft: Show the full SKILL.md with frontmatter, instructions, and examples.
- Approve: Owner reviews and says "looks good" (or requests changes).
- Write: Create
skills/generate-images/SKILL.mdvia workspace tools. - Confirm: "Skill 'generate-images' created. Add REPLICATE_API_TOKEN to your .env to activate it."
Sync vs Async: Confirm with the Owner
Before drafting, determine whether the skill should be synchronous or asynchronous. Ask the owner explicitly:
"This skill calls an external API. Should the agent wait for the result (sync), or dispatch it as a background job and notify you when it's done (async)?
- Sync is simpler — good for fast APIs (< 30 seconds)
- Async is better for slow tasks (video generation, CI builds, model training) — the conversation continues immediately"
If the owner is unsure, recommend async for anything that typically takes more than 30 seconds.
Sync Skills
The agent calls the API directly using run_command (curl) or web_fetch and returns the result inline. No special setup needed.
Async Skills (Background Jobs)
For long-running tasks, the skill instructs the agent to use schedule_job with the http-poll handler. This dispatches the work to a background runner that:
- Submits the request to the external API
- Pins a progress message in the chat
- Polls the API for status updates (editing the pinned message)
- Delivers the final result to the user when complete
Do not create new job handlers or modify agent code. The http-poll handler is generic and works with any async API.
The SKILL.md must document the exact schedule_job call with all parameters filled in. The agent passes these through verbatim — it does not construct the payload itself.
http-poll Parameters
schedule_job({ type: "http-poll", input: { label: "human-readable task name (shown in progress messages)", // Submit — the initial API call submitUrl: "https://api.example.com/run", submitMethod: "POST", submitHeaders: { "Authorization": "Bearer ${API_KEY}" }, submitBody: { prompt: "user's input here", model: "model-name" }, jobIdPath: "id", // dot-path to extract job ID from response // Poll — check status until done statusUrlTemplate: "https://api.example.com/status/${jobId}", statusHeaders: { "Authorization": "Bearer ${API_KEY}" }, statusPath: "status", // dot-path to status field completedStatuses: ["COMPLETED"], failedStatuses: ["FAILED", "ERROR"], resultPath: "output.url", // dot-path to the result on completion errorPath: "error", // dot-path to error message on failure // Timing pollIntervalMs: 10000, // poll every 10s (default) maxPollMs: 600000 // give up after 10min (default) }, timeoutMs: 1200000 // job-level timeout (20min for video gen) })
Async Skill Example
Owner: "I want a skill that generates videos using RunPod"
SKILL.md would include instructions like:
markdownWhen the user asks to generate a video: 1. Confirm the prompt and any style preferences 2. Call schedule_job with: - type: "http-poll" - submitUrl: "https://api.runpod.ai/v2/${RUNPOD_ENDPOINT_ID}/run" - submitHeaders: { "Authorization": "Bearer ${RUNPOD_API_KEY}" } - submitBody: { input: { prompt: "<user's prompt>" } } - jobIdPath: "id" - statusUrlTemplate: "https://api.runpod.ai/v2/${RUNPOD_ENDPOINT_ID}/status/${jobId}" - statusHeaders: { "Authorization": "Bearer ${RUNPOD_API_KEY}" } - statusPath: "status" - completedStatuses: ["COMPLETED"] - failedStatuses: ["FAILED", "CANCELLED"] - resultPath: "output.video_url" 3. Tell the user the job is running — they'll get the result automatically
API Key Handling
If the skill needs an API key, store it with store_secret before creating the skill. Reference it in headers as ${ENV_VAR_NAME} — the handler resolves environment variables at runtime.
Extended Skill Format (Optional)
Skills can include subdirectories for additional resources:
my-skill/ ├── SKILL.md (required) └── Optional subdirs: ├── scripts/ - Executable code (Python/Bash helpers) ├── references/ - Documentation, API specs, examples └── assets/ - Images, templates, static files
These subdirectories are detected automatically by the loader. When creating skills with helper scripts, put them in scripts/ so they're properly scanned for security before installation.
Security note: Skills with scripts are automatically scanned for dangerous patterns (shell injection, eval, crypto-mining) before installation. Critical findings block installation.


