360 Secure SkillHub
360 安全技能中心

Basebuilder

核心功能是基于最佳实践模板生成结构完整的OpenClaw技能目录,包含元数据、CLI入口、测试套件等模块。典型场景为开发者快速创建符合规范的新技能,通过命令行输入技能名称(必填,小写连字符格式)和可选描述,输出可直接修改适配的技能目录,支持后续注册安装。

evanfoglia
evanfoglia
热度 8.64
最近更新 2026-07-08 07:04:02
分类:开发依赖:读写文件应用场景:代码生成 / 模板

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add basebuilder
Metadata
name
basebuilder
description
Scaffold new OpenClaw skills with best-practice templates.
homepage
https://github.com/openclaw/basebuilder
metadata
{"openclaw":{"emoji":"🛠️","requires":{"bins":["node"]},"install":[{"id":"copy","kind":"copy","source":"skills/basebuilder","destination":"~/.openclaw/skills/basebuilder","label":"Install Basebuilder skill"}]}}

Basebuilder Skill

Basebuilder creates new OpenClaw skills from a proven template.

Usage

openclaw skill basebuilder new <skill-name> [description]

This creates a new skill directory with:

  • SKILL.md (metadata)
  • index.js (CLI entrypoint)
  • lib/ (helper modules)
  • references/ (documentation)
  • tests/ (test suite)
  • README.md (usage guide)

Options:

  • <skill-name>: lowercase, hyphenated (e.g., "my-skill")
  • [description]: short description for SKILL.md

Example:

openclaw skill basebuilder new email-sender "Send emails via SMTP"

After creation:

  1. Edit SKILL.md and index.js for your specific logic
  2. Add tool permissions in openclaw.json (if needed)
  3. Test with node skills/email-sender/index.js --help
  4. Register with OpenClaw: openclaw skill install email-sender

Notes

  • Basebuilder itself is a skill; it lives in skills/basebuilder/
  • The generated skill uses Node.js and follows OpenClaw conventions
  • Includes logging, error handling, and memory-db examples
  • See references/template-index.js for the starter code