Token导航 LogoToken导航TokenDH.com
开发敏感数据clawhub未标认证来源可访问clear审计通过

clawhub-skill-guideClawHub 技能指南

Agent Skill

clawhub-skill-guide 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

15,985

周安装

653

GitHub Stars

公开资料未说明

下载量

5,172
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:clawhub-skill-guide(ClawHub 技能指南)
来源仓库:https://github.com/tdavis009/clawhub-skill-guide
安装命令:
openclaw skills install clawhub-skill-guide
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install clawhub-skill-guide

简介

ClawHub skill guide 协助创建、构建并通过安全扫描的 OpenClaw 技能发布流程全覆盖。

  • 涵盖 frontmatter 模式设定、环境变量声明与依赖关系可视化指导。
  • 内置模板引擎可快速生成标准项目骨架,减少重复劳动。
  • 安装命令:openclaw skills install clawhub-skill-guide;依赖 YAML 解析器与模板渲染库。
  • 生成的代码需根据实际需求调整,不能保证一次性通过所有审核环节。

SKILL.md

name
clawhub-skill-guide
description
>

ClawHub Skill Guide

Publish OpenClaw skills to ClawHub with clean security scanner ratings. This guide supplements the built-in skill-creator skill with ClawHub-specific publishing knowledge — especially frontmatter schema and scanner compliance.

Note: The built-in skill-creator says "Do not include any other fields in YAML frontmatter." That guidance is outdated. ClawHub supports and the scanner requires additional fields like env, metadata, requires, etc. This guide documents the complete frontmatter schema.

Quick Reference

Skill Anatomy

my-skill/
├── SKILL.md              # Core instructions (required, under 500 lines)
├── scripts/              # Executable code (optional)
├── references/           # Docs loaded on demand (optional)
└── assets/               # Templates, images, non-context files (optional)

Frontmatter Fields

FieldRequiredPurpose
nameLowercase, hyphens, under 64 chars
descriptionTrigger text with keywords
envWhen credentials neededArray of env var declarations
metadataAlternative env formatOpenClaw-specific metadata
requiresWhen dependencies existHuman-readable requirement list
homepageOptionalSource/docs URL
categoryOptionalSkill category
emojiOptionalDisplay emoji
versionOptionalSemver (can also set via CLI)

→ Full schema: references/frontmatter-schema.md

Scanner Categories

#CategoryKey Requirement
1PURPOSE & CAPABILITYDescription matches functionality; credentials declared
2INSTRUCTION SCOPEInstructions on-topic; no auto-config language
3INSTALL MECHANISMNo external downloads; scripts write within workspace
4CREDENTIALSAll env vars declared in frontmatter; sensitive marked
5PERSISTENCE & PRIVILEGENo always:true; config as templates for manual review

→ Deep dive: references/scanner-compliance.md


Creating a Skill

Step 1: Plan Structure

Decide what goes where:

Content TypeLocation
Core workflow, key instructionsSKILL.md body
Detailed reference materialreferences/
Executable automationscripts/
Templates, images, boilerplateassets/

Keep SKILL.md under 500 lines. Move detailed docs to references.

Step 2: Write Frontmatter

This is where most scanner issues originate. Get frontmatter right first.

Important: The local packager (package_skill.py) only allows these top-level frontmatter keys: name, description, license, metadata, allowed-tools. The env: key works on ClawHub's registry but fails local validation. Use the metadata.openclaw format for compatibility with both.

Minimal frontmatter (no credentials needed):

---
name: my-skill
description: >
  What this skill does. Include trigger keywords so the agent
  knows when to activate it. Use when: scenario1, scenario2.
---

With credentials (packager-compatible format):

---
name: my-api-skill
description: >
  Integrates with Example API for data retrieval and analysis.
  Use when: querying example data, generating reports from Example API.
metadata:
  openclaw:
    requires:
      env:
        - EXAMPLE_API_KEY
      bins:
        - curl
    primaryEnv: EXAMPLE_API_KEY
    env:
      - name: EXAMPLE_API_KEY
        description: "API key for Example service"
        required: true
      - name: EXAMPLE_BASE_URL
        description: "Base URL for Example API (default: https://api.example.com)"
        required: false
---

Note: If you skip the local packager and publish directly with npx clawhub publish, the direct env: top-level array also works (some published skills use this). But the metadata.openclaw format works everywhere.

→ All supported fields and formats: references/frontmatter-schema.md

Step 3: Write Body

Structure the body for progressive disclosure:

  1. Quick Start — Minimal steps to use the skill
  2. Prerequisites — Table of requirements (if any)
  3. Security Notes — Script safety, credential handling (if applicable)
  4. How It Works — Core instructions
  5. File Reference — List bundled resources with descriptions

Keep instructions imperative. Challenge every paragraph: "Does the agent really need this?"

Step 4: Add Scripts (If Needed)

Follow safe patterns to pass the scanner:

  • Only write within the skill workspace
  • No network calls unless explicitly declared and justified
  • No obfuscated code
  • Document line count and purpose in SKILL.md
  • Include "inspect before running" warning

→ Full patterns: references/script-safety.md

Step 5: Validate and Package

# Validate structure
python3 ~/.npm-global/lib/node_modules/openclaw/skills/skill-creator/scripts/package_skill.py ./my-skill

# Check manually:
# - Frontmatter has name + description
# - env declarations match actual credential usage
# - No personal data or test artifacts
# - SKILL.md under 500 lines

Step 6: Publish and Check Scanner

# Verify auth
npx clawhub whoami

# Publish
npx clawhub publish ./my-skill \
  --slug my-skill \
  --name "My Skill" \
  --version 1.0.0 \
  --changelog "Initial release" \
  --tags latest

# Check scanner results
npx clawhub inspect my-skill

→ Full workflow: references/publish-workflow.md


Frontmatter Quick Guide

The Three Env Declaration Formats

ClawHub supports three ways to declare environment variables. All are valid; the metadata.openclaw format is recommended for compatibility with both the local packager and the ClawHub scanner.

Format 1 — Direct env: array (richest data, but fails local packager):

env:
  - name: MY_API_KEY
    description: "API key for the service"
    required: true
    sensitive: true

Works with npx clawhub publish but NOT with package_skill.py validation.

Format 2 — metadata.openclaw.env (recommended — works everywhere):

metadata:
  openclaw:
    env:
      - name: MY_API_KEY
        description: "API key for the service"
        required: false

Format 3 — metadata.openclaw.requires:

metadata:
  openclaw:
    requires:
      env:
        - MY_API_KEY
      bins:
        - curl
    primaryEnv: MY_API_KEY

Format 1 gives the scanner the most information (including sensitive flag) and produces the cleanest scan results.

Description Best Practices

The description is the primary trigger mechanism. Include:

  • What the skill does (concrete actions)
  • Keywords matching user queries
  • "Use when:" clause listing activation scenarios

Bad: "Helps with APIs."

Good:

description: >
  Query and manage Example API resources including users, projects,
  and billing data. Generates reports, monitors usage, and handles
  authentication. Use when: querying Example API, generating usage
  reports, managing API resources, checking billing status.

Scanner Compliance Quick Guide

1. PURPOSE & CAPABILITY ✓

  • Description accurately reflects what the skill does
  • All credentials declared in frontmatter env or metadata
  • No undeclared external service dependencies

2. INSTRUCTION SCOPE ✓

  • Instructions stay on-topic for the skill's stated purpose
  • No language about automatically applying config changes
  • Privileged operations marked as "requires manual review"
  • If using requireMention:false, document data exposure implications

3. INSTALL MECHANISM ✓

  • No curl, wget, or network downloads in scripts
  • Scripts only write within the skill workspace directory
  • Include "inspect before running" notes for all scripts
  • No obfuscated or minified executable code

4. CREDENTIALS ✓

  • Every env var the skill uses is declared in frontmatter
  • Sensitive credentials marked sensitive: true
  • No requests for credentials unrelated to the skill's purpose
  • Prerequisites table lists all required accounts/keys

5. PERSISTENCE & PRIVILEGE ✓

  • No always:true in config recommendations
  • Config changes presented as templates for manual review
  • Multi-user skills recommend agent isolation (separate OpenClaw agent)
  • No persistent background processes or daemons

→ Deep dive with case study: references/scanner-compliance.md


Publishing

Command Reference

# Publish a skill
npx clawhub publish ./skill-dir \
  --slug my-skill \
  --name "Display Name" \
  --version 1.0.0 \
  --changelog "What changed" \
  --tags latest

# Inspect published skill
npx clawhub inspect my-skill
npx clawhub inspect my-skill --files
npx clawhub inspect my-skill --file SKILL.md

# Browse and search
npx clawhub explore
npx clawhub search "keyword"

# Auth
npx clawhub whoami

Version Bumping

When fixing scanner warnings, bump the version and republish:

npx clawhub publish ./skill-dir \
  --slug my-skill \
  --version 1.1.0 \
  --changelog "Fix: declared env vars in frontmatter for clean scan" \
  --tags latest

Common Pitfalls

MistakeScanner ImpactFix
No env declarations when skill uses credentials! CREDENTIALSAdd env vars via metadata.openclaw.env in frontmatter
"Agent automatically applies config" language! INSTRUCTION SCOPEChange to "manual review required"
Scripts without inspection warningℹ INSTALL MECHANISMAdd "inspect before running" note
No agent isolation for multi-user skillsℹ PERSISTENCEAdd security model section
requireMention:false without data exposure docsℹ INSTRUCTION SCOPEDocument what data the skill sees
Description too short / missing keywordsPoor discoverabilityExpand with trigger scenarios
Shipping test DBs or generated filesBloatClean before publishing
Personal data in examplesPrivacy riskUse generic examples

Templates

Ready-to-use SKILL.md templates:

Copy, fill in the placeholders, publish.


File Reference

FilePurpose
references/frontmatter-schema.mdComplete YAML frontmatter field documentation
references/scanner-compliance.mdScanner categories deep dive with case study
references/script-safety.mdSafe script patterns for publication
references/publish-workflow.mdStep-by-step publish and iterate workflow
assets/templates/basic-skill.mdMinimal SKILL.md template
assets/templates/skill-with-scripts.mdTemplate with scripts and env vars
assets/templates/skill-with-config.mdTemplate for config-changing skills

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

70.25%
按下载量换算3,633

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills