Template for creating new OpenClaw skills
  • TypeScript 97.2%
  • Shell 2.8%
Find a file Use this template
2026-05-26 18:16:02 +08:00
.forgejo/workflows Use Forgejo checkout without GitHub action 2026-05-08 10:44:00 +08:00
scripts chore: remove auth-cli and update setup 2026-05-26 18:16:02 +08:00
src chore: remove auth-cli and update setup 2026-05-26 18:16:02 +08:00
.gitignore feat: initial skill template 2026-03-14 10:35:01 +08:00
bun.lock chore: remove auth-cli and update setup 2026-05-26 18:16:02 +08:00
install.sh chore: remove auth-cli and update setup 2026-05-26 18:16:02 +08:00
package.json chore: remove auth-cli and update setup 2026-05-26 18:16:02 +08:00
README.md chore: remove auth-cli and update setup 2026-05-26 18:16:02 +08:00
SKILL.md chore: remove auth-cli and update setup 2026-05-26 18:16:02 +08:00

template-skill

新 skill 的基础模版。需要调用业务 API 时,统一使用 @clawd/auth-runtime

认证边界

客户在 Web 管理台获得平台 Key 后,写入:

~/.yuanwei/auth.json

skill 不保存 token、不读取旧环境变量、不实现自己的授权流程。业务请求统一通过

import { createSkillClient } from '@clawd/auth-runtime';

const client = createSkillClient({ dryRun: false });
const res = await client.post('/ecom/your/endpoint', { param: 'value' });

纯本地 skill 不需要依赖 @clawd/auth-runtime