Translate OpenClaw TypeScript skills to Amplifier-native SKILL.md format using LLM-powered gene transfer
This skill teaches you to port OpenClaw (OC) TypeScript skills to Amplifier-native SKILL.md format. The process is LLM-powered gene transfer — you extract the intent and workflows from OC source, then rewrite them using Amplifier's tool ecosystem. You are NOT transpiling TypeScript to Python. You are translating capability intent from one platform to another.
Read the OC skill's three source files:
| OC File | What It Contains | What You Extract |
|---|---|---|
SKILL.md | User-facing instructions, workflows, examples | Core intent, step sequences, domain knowledge |
index.ts | Tool schemas, API calls, TypeScript logic |
| Which APIs are called, parameters, response handling |
config.json | Configurable parameters, API keys, defaults | What secrets/env vars are needed |
Do NOT try to understand the full TypeScript implementation. Focus on what the skill does, not how the OC runtime executes it.
Map OC concepts to Amplifier equivalents:
| OpenClaw Concept | Amplifier Equivalent | Notes |
|---|---|---|
index.ts tool definitions | bash, web_fetch, sandbox tool calls | Amplifier agents call tools directly; no custom tool schemas |
config.json parameters | Secrets via tool-secrets (set_secret/get_secret) | API keys → secrets (category: api_key); other config → env vars or inline |
OC SKILL.md instructions | Amplifier SKILL.md body | Preserve workflows, adapt platform references |
OC runTool() / callAPI() | web_fetch for HTTP APIs, bash for CLI tools | Direct tool invocation, no middleware |
| OC skill config UI | Onboarding recipe step or inline prompting | Skills don't have config UIs; use recipes or ask-on-first-use |
OC context.user / context.config | secrets get_secret / memory search_memories | User context comes from Amplifier's memory and secrets systems |
| OC scheduled triggers | Cron jobs via gateway CronScheduler | Map OC intervals to cron expressions |
Key translation rules:
API calls: OC callAPI(url, params) → Amplifier web_fetch(url) with proper headers. Store API keys via secrets set_secret name="service/api_key" value="..." category="api_key".
File operations: OC file handling → Amplifier bash with standard CLI tools (curl, jq, python3). For complex file generation (DOCX, PDF), use the existing document skills as patterns.
External CLIs: OC skills that shell out → Amplifier bash directly. Check if the CLI is installed first.
Stateful workflows: OC skills with multi-step state → Use memory store_memory for persistence across sessions, or instruct the agent to track state in conversation.
Platform-specific features: Discard OC-specific features (OC runtime hooks, OC plugin system, OC UI components). Replace with Amplifier equivalents or note as "not applicable."
Write the new SKILL.md with:
---