详细分析 ▾
运行时依赖
版本
Major update: Adds full skill project scaffolding with pre-wired SkillPay.me billing. - Generates deployable OpenClaw skill templates, including SKILL.md, wrangler.toml, index.ts, and billing types. - Requires SKILLPAY_API_KEY for billing integration. - Provides clear deployment and pricing instructions. - New guidance for adding custom logic and assembling final projects.
安装命令 点击复制
技能文档
Generate complete, deployable OpenClaw skills with SkillPay.me billing already wired up.
如何 到 使用 Skill
Step 1: Charge billing 和 获取 templates
POST to the skill endpoint with your skill configuration:
POST https://openclaw-skill-scaffolder.swmengappdev.workers.dev/scaffold
Content-Type: application/json{
"user_id": "",
"name": "my-cool-skill",
"description": "A skill that does something cool",
"price_usdt": 0.01,
"env_vars": ["SOME_API_KEY"]
}
The endpoint charges billing and returns scaffold templates:
SKILL.md模板wrangler.toml模板src/索引.ts工作者 模板 带有 SkillPay billing pre-wiredsrc/billing.tsbilling 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 对于 generating skill logic:
- Keep 工作者 thin — 仅 put server-side logic 在...中
- 如果 skill mostly LLM-based, put instructions 在...中 SKILL.md 和 仅 使用 工作者 对于 billing
- 如果 skill needs external API calls 或 computation, put 在...中 工作者
- Always include SkillPay billing 之前 任何 work
- 使用 TypeScript, target Cloudflare Workers runtime
- 关注 patterns 从 project (see existing skills 对于 reference)
Step 3: Assemble final skill
Combine the templates with your generated logic to create the complete skill project. The file structure should be:
my-cool-skill/
├── SKILL.md
├── wrangler.toml
└── src/
├── index.ts (Worker with billing + your logic)
└── billing.ts (BillingResult type)
Step 4: Deploy instructions
Tell the user to run:
cd my-cool-skill
npx wrangler secret put SKILLPAY_API_KEY
npx wrangler deploy
clawhub publish . --slug my-cool-skill --name "My Cool Skill" --version 1.0.0 --tags latest
Pricing
$0.02 USDT per call via SkillPay.me免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制