Template for creating new OpenClaw skills
- TypeScript 97.2%
- Shell 2.8%
| .forgejo/workflows | ||
| scripts | ||
| src | ||
| .gitignore | ||
| bun.lock | ||
| install.sh | ||
| package.json | ||
| README.md | ||
| SKILL.md | ||
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。