当前位置: 首页 > Skill >

skill-creator-enhanced

skill-creator-enhanced

1.0.0 2026.11.26 浏览:993
获取Skill文件查看使用说明
作者:江景许可证:
本文目录展开

Skill Creator Plus

Enhanced skill creator with templates, validation, publishing workflow, and quality gates.

Features

  • Skill Templates: Ready-to-use templates for common skill types
  • Validation Rules: Quality gates before publishing
  • Publishing Workflow: ClawHub integration
  • Best Practices: Proven patterns and anti-patterns
  • Testing Framework: Validate skills before release

Quick Reference

Step Action Command
1 Plan skill Define purpose, audience, triggers
2 Create structure Use templates
3 Write SKILL.md Follow guidelines
4 Add resources Scripts, references, assets
5 Validate Run validation
6 Test Real-world testing
7 Publish ClawHub publish

Skill Anatomy

Directory Structure

skill-name/
├── SKILL.md (required)
├── scripts/ (optional)
│   └── helper.py
├── references/ (optional)
│   └── guide.md
└── assets/ (optional)
    └── template.txt

SKILL.md Structure

---
name: skill-name
description: "Clear description of what the skill does and when to use it."
metadata:
  author: your-name
  version: 1.0.0
  tags: tag1, tag2
  compatibility: opencode
  license: MIT
---

# Skill Name

## Overview
Brief overview of the skill.

## Features
- Feature 1
- Feature 2

## Usage
How to use the skill.

## Examples
Concrete examples.

Skill Templates

Knowledge Skill

---
name: knowledge-skill
description: "Domain knowledge for [topic]. Use when user asks about [specific topics]."
metadata:
  author: your-name
  version: 1.0.0
  tags: knowledge, domain
  compatibility: opencode
  license: MIT
---

# [Topic] Knowledge

## Overview
Brief overview of the domain.

## Key Concepts
- Concept 1: Definition
- Concept 2: Definition

## Common Patterns
1. Pattern 1: Description
2. Pattern 2: Description

## References
- [link1](url1)
- [link2](url2)

Workflow Skill

---
name: workflow-skill
description: "Automated workflow for [task]. Use when user wants to [action]."
metadata:
  author: your-name
  version: 1.0.0
  tags: workflow, automation
  compatibility: opencode
  license: MIT
---

# [Task] Workflow

## Overview
Brief overview of the workflow.

## Steps
1. Step 1: Description
2. Step 2: Description
3. Step 3: Description

## Commands
```bash
command1
command2

Error Handling

  • Error 1: Solution
  • Error 2: Solution

### Tool Integration Skill

```yaml
---
name: tool-skill
description: "Integration with [tool/API]. Use when working with [tool]."
metadata:
  author: your-name
  version: 1.0.0
  tags: tool, integration
  compatibility: opencode
  license: MIT
---

# [Tool] Integration

## Overview
Brief overview of the tool.

## Setup
1. Install: `command`
2. Configure: `command`
3. Verify: `command`

## Usage
```bash
tool-command

API Reference

  • Method 1: Description
  • Method 2: Description

Examples

# Example 1
command

# Example 2
command

## Validation Rules

### Required Fields

- [ ] `name`: Skill name (lowercase, hyphens)
- [ ] `description`: Clear, comprehensive description

### Description Quality

- [ ] What the skill does
- [ ] When to use it (triggers)
- [ ] Specific use cases
- [ ] No vague language

### Structure Quality

- [ ] SKILL.md under 500 lines
- [ ] Progressive disclosure
- [ ] No extraneous files
- [ ] Clear organization

### Content Quality

- [ ] Imperative/infinitive form
- [ ] Concise examples
- [ ] No duplication
- [ ] Actionable instructions

## Publishing Workflow

### 1. Prepare

```bash
# Validate skill
clawhub validate skill-name

# Test locally
# Use skill in real scenarios

2. Publish

# Publish to ClawHub
clawhub publish skill-name --version "1.0.0"

# With options
clawhub publish skill-name 
  --name "Skill Display Name" 
  --slug "skill-slug" 
  --version "1.0.0" 
  --tags "tag1,tag2"

3. Verify

# Check publication
clawhub search skill-name

# Sync to local
clawhub sync

Quality Gates

Pre-Publish Checklist

  • SKILL.md follows template
  • Description is comprehensive
  • No extraneous files
  • Examples are clear
  • Scripts are tested
  • References are accurate
  • License is specified

Post-Publish Verification

  • Skill appears in ClawHub search
  • Installation works
  • Skill triggers correctly
  • Instructions are clear
  • Examples work

Common Patterns

Pattern 1: Progressive Disclosure

# Skill Name

## Quick Start
Basic usage example.

## Advanced Features
- Feature 1: See [FEATURE1.md](FEATURE1.md)
- Feature 2: See [FEATURE2.md](FEATURE2.md)

Pattern 2: Domain Organization

skill-name/
├── SKILL.md
└── references/
    ├── domain1.md
    ├── domain2.md
    └── domain3.md

Pattern 3: Conditional Loading

# Skill Name

## Basic Usage
Simple example.

## Advanced Usage
For complex scenarios, see [ADVANCED.md](ADVANCED.md).

Anti-Patterns

Anti-Pattern Problem Fix
Too verbose Context bloat Keep under 500 lines
No examples Unclear expectations Add concrete examples
Extraneous files Clutter Remove unnecessary files
Vague description Poor triggering Be specific
No progressive disclosure Loading overhead Split into references

Testing Framework

Test Cases

  1. Trigger Test: Does the skill activate correctly?
  2. Instruction Test: Are instructions clear?
  3. Example Test: Do examples work?
  4. Error Test: Are errors handled?

Test Script

#!/bin/bash
# test-skill.sh

SKILL_NAME=$1

echo "Testing skill: $SKILL_NAME"

# Validate structure
clawhub validate $SKILL_NAME

# Test installation
clawhub install $SKILL_NAME

# Verify installation
ls -la ~/.openclaw/workspace/skills/$SKILL_NAME

echo "Test complete"

Best Practices

  1. Start simple - Begin with basic skill, iterate
  2. Be specific - Clear triggers and instructions
  3. Add examples - Concrete use cases
  4. Test thoroughly - Real-world testing
  5. Document well - Clear SKILL.md
  6. Publish regularly - Share improvements
  7. Gather feedback - Iterate based on usage

ClawHub Integration

Search Skills

clawhub search "query"

Install Skills

clawhub install skill-name

Publish Skills

clawhub publish skill-name

Sync Skills

clawhub sync

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Skill Creator Plus
    • Features
    • Quick Reference
    • Skill Anatomy
      • Directory Structure
      • SKILL.md Structure
    • Skill Templates
      • Knowledge Skill
      • Workflow Skill
    • Error Handling
    • API Reference
    • Examples
      • 2. Publish
      • 3. Verify
    • Quality Gates
      • Pre-Publish Checklist
      • Post-Publish Verification
    • Common Patterns
      • Pattern 1: Progressive Disclosure
      • Pattern 2: Domain Organization
      • Pattern 3: Conditional Loading
    • Anti-Patterns
    • Testing Framework
      • Test Cases
      • Test Script
    • Best Practices
    • ClawHub Integration
      • Search Skills
      • Install Skills
      • Publish Skills
      • Sync Skills
  • 项目或源文件

相关 Skill

更多
NextJS Frontend Development + Integration NextJS Frontend Development + Integration Generate production-ready Next.js projects with TypeScript, Tailwind CSS, shadcn/ui, and API integration. Use when the user asks to build, create, develop, or scaffold a Next.js application, web app, full-stack project, or frontend with backend integration. Prioritizes modern stack (Next.js 14+, TypeScript, shadcn/ui, axios, react-query) and best practices. Also triggers on requests to add features, integrate APIs, or extend existing Next.js projects.
Two Factor Authentication Best Practices Two Factor Authentication Best Practices 该技能为使用 Better Auth 的 twoFactor 插件实施安全的双因素认证(2FA)提供指导和强制规则。
docker-plus docker-plus Enhanced Docker with Dockerfile templates, multi-stage builds, security hardening, production best practices, Docker Compose patterns, and troubleshooting guides.
HR每日精选日报 HR每日精选日报 Generate a professional HR daily briefing report as a beautifully designed HTML page. Use when the user requests an HR daily report, HR industry news digest, human resources trend analysis, HR best practices compilation, or HR case study review. Covers insights from top consulting firms (McKinsey, Deloitte, BCG, Mercer, WTW), deep dives into HR functional modules (recruitment, performance, compensation, talent development, employee relations, HR planning) and the three-pillar model (HRBP, COE, S
Apply Git branching, commit, and pull request best practices through Git Workflow Skill Apply Git branching, commit, and pull request best practices through Git Workflow Skill 为代理提供一个便携式的 Git 工作流手册,涵盖分支策略、提交规范、拉取请求、合并选择和 CI 敏感协作。