OpenClaw Skill Scaffolder
Generate complete, deployable OpenClaw skills with SkillPay.me billing already wired up.
How to Use This Skill
Step 1: Charge billing and get templates
POST to the skill endpoint with your skill configuration:
CODEBLOCK0
The endpoint charges billing and returns scaffold templates:
- -
SKILL.md template - INLINECODE1 template
- INLINECODE2 worker template with SkillPay billing pre-wired
- INLINECODE3 billing types
- Deploy commands
Step 2: Generate custom logic
Using your own capabilities, generate the custom skill logic based on the user's description. The scaffold provides the boilerplate — you fill in the business logic.
Guidelines for generating skill logic:
- - Keep the Worker thin — only put server-side logic in it
- If the skill is mostly LLM-based, put the instructions in SKILL.md and only use the Worker for billing
- If the skill needs external API calls or computation, put that in the Worker
- Always include SkillPay billing before any work
- Use TypeScript, target Cloudflare Workers runtime
- Follow the patterns from this project (see existing skills for reference)
Step 3: Assemble the final skill
Combine the templates with your generated logic to create the complete skill project. The file structure should be:
CODEBLOCK1
Step 4: Deploy instructions
Tell the user to run:
CODEBLOCK2
Pricing
$0.02 USDT per call via SkillPay.me
技能名称: openclaw-skill-scaffolder
详细描述:
OpenClaw 技能脚手架
生成完整、可部署的 OpenClaw 技能,并已预先集成 SkillPay.me 计费功能。
如何使用此技能
第一步:扣费并获取模板
向技能端点发送 POST 请求,并附上你的技能配置:
POST https://openclaw-skill-scaffolder.swmengappdev.workers.dev/scaffold
Content-Type: application/json
{
user_id: <用户ID>,
name: my-cool-skill,
description: 一个实现酷炫功能的技能,
price_usdt: 0.01,
envvars: [SOMEAPI_KEY]
}
该端点会进行计费扣款并返回脚手架模板:
- - SKILL.md 模板
- wrangler.toml 模板
- src/index.ts Worker 模板(已预置 SkillPay 计费功能)
- src/billing.ts 计费类型
- 部署命令
第二步:生成自定义逻辑
根据用户描述,利用自身能力生成自定义技能逻辑。脚手架提供样板代码,你只需填充业务逻辑。
生成技能逻辑的指南:
- - 保持 Worker 精简——仅在其中放置服务端逻辑
- 如果技能主要基于 LLM,则将指令放在 SKILL.md 中,Worker 仅用于计费
- 如果技能需要外部 API 调用或计算,则将其放在 Worker 中
- 始终在任何工作开始前包含 SkillPay 计费
- 使用 TypeScript,目标环境为 Cloudflare Workers 运行时
- 遵循本项目的模式(参考现有技能)
第三步:组装最终技能
将模板与你生成的逻辑组合,创建完整的技能项目。文件结构应为:
my-cool-skill/
├── SKILL.md
├── wrangler.toml
└── src/
├── index.ts (包含计费 + 你的逻辑的 Worker)
└── billing.ts (BillingResult 类型)
第四步:部署说明
告知用户运行以下命令:
bash
cd my-cool-skill
npx wrangler secret put SKILLPAYAPIKEY
npx wrangler deploy
clawhub publish . --slug my-cool-skill --name 我的酷炫技能 --version 1.0.0 --tags latest
定价
每次调用 0.02 USDT,通过 SkillPay.me 计费