Xpersona
S

Skill Validator

CLAWHUB · Unverified

技能检验工具:基于ClawHub技能格式规范的验证工具,确保技能符合最新发布要求。自动检测格式问题,提供修复建议,与ClawHub规范同步更新。 Skill: Skill Validator Owner: puppetcat-fire Summary: 技能检验工具:基于ClawHub技能格式规范的验证工具,确保技能符合最新发布要求。自动检测格式问题,提供修复建议,与ClawHub规范同步更新。 Tags: latest:1.0.11 Version history: v1.0.11 | 2026-03-24T10:00:51.208Z | auto skill-validator v1.0.11 - 更新版本号至1.0.11 - 修复元数据兼容性问题,移除无效的install.kind声明 - 添加ClawHub规范版本检测占位符 - 确保MIT-0许可证合规 v1.0.10 | 2026-03-23T10:01:07.050Z | auto v1.0.10修复兼容性并完善元数据: - 修复元数据兼容性问题,移除install.kind声明 - 版本号更新为1.0.10

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s173vqgnnb1s856xph35s3ghch83e654:skill-validator
  1. Node.js workspace detected. Install dependencies securely: run `npm ci --ignore-scripts` to prevent post-install lifecycle triggers from running arbitrary code, then selectively audit the dependency tree.
  2. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-puppetcat-fire-skill-validator/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

96,135 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: skill-validator
description: "技能检验工具:基于ClawHub技能格式规范的验证工具,确保技能符合最新发布要求。自动检测格式问题,提供修复建议,与ClawHub规范同步更新。"
author: "puppetcat-fire (柏然)"
version: "1.0.11"
created: "2026-03-13"
updated: "2026-03-18"
license: "MIT-0"
metadata:
  openclaw:
    emoji: "🔍✅"
    requires:
      bins: ["bash", "jq", "find", "grep", "sed"]
    examples:
      - input: "检验技能质量"
        output: "基于ClawHub规范深度检验技能,识别所有问题"
      - input: "验证技能格式"
        output: "检查SKILL.md、package.json等必需文件格式"
      - input: "检查脚本语法"
        output: "验证shell脚本语法和权限"
      - input: "生成验证报告"
        output: "输出JSON格式详细验证报告"
---

# 技能检验工具 v1.0.11

## 🎯 设计目标
提供与**ClawHub技能格式规范同步**的验证工具,确保技能符合最新发布要求。每日自动检查规范更新,保持验证规则与ClawHub源码一致。

## 🔍 解决的问题

### 格式规范同步问题
1. **规范过时** - ClawHub技能格式规范更新后,本地验证工具未能同步
2. **验证遗漏** - 旧版本验证工具无法检测新规范要求
3. **发布失败** - 因格式不符ClawHub最新要求导致发布失败
4. **调试困难** - 错误信息不明确,难以定位格式问题

### 用户痛点(已解决)
1. ❌ "为什么本地验证通过但ClawHub发布失败?"
2. ❌ "需要手动检查ClawHub规范变更"
3. ❌ "验证工具与发布平台规则不一致"
4. ❌ "技能格式更新后验证工具未更新"

## 🚀 核心功能

### 1. 深度技能检验
- 检查必要文件(SKILL.md, package.json)
- 验证文件格式和内容
- 检查脚本权限和安全性
- 识别ClawHub兼容性问题

### 2. 自动修复
- 修复脚本执行权限
- 创建缺失的必要文件
- 修复文件格式问题
- 提供明确的修复指导

### 3. 智能发布
- **自动绕过ClawHub bug**
- 提供多种发布渠道
- 创建发布包备用
- 详细的错误处理和重试

### 4. 成功率提升机制
| 问题类型 | 传统成功率 | 适配器成功率 | 提升方法 |
|----------|------------|--------------|----------|
| 工作目录bug | 20% | 100% | 自动切换目录 |
| 文件检测bug | 30% | 100% | 替代检测方法 |
| 权限问题 | 50% | 100% | 自动修复权限 |
| 格式问题 | 60% | 95% | 格式验证和修复 |
| **综合** | **15%** | **70%+** | **所有方法结合** |

## 📦 安装

### 快速安装
```bash
# 下载适配器
curl -sSL https://raw.githubusercontent.com/puppetcat-fire/skill-publish-adapter/main/skill-publish-adapter.sh -o skill-publish-adapter.sh
chmod +x skill-publish-adapter.sh

# 或通过ClawHub安装(修复后)
clawhub install @clawhub/skill-publish-adapter
```

### 依赖检查
确保系统已安装:
- `bash` (shell环境)
- `jq` (JSON处理)
- `tar` (打包工具)
- `git` (GitHub发布)

## 🔧 使用方法

### 基本使用
```bash
# 1. 检验技能
./skill-publish-adapter.sh validate ./my-skill

# 2. 自动修复
./skill-publish-adapter.sh fix ./my-skill

# 3. 发布技能
./skill-publish-adapter.sh publish ./my-skill --slug my-skill --name "My Skill" --version 1.0.0
```

### 完整工作流
```bash
#!/bin/bash
# 完整的检验+发布工作流

# 1. 检验技能
if ./skill-publish-adapter.sh validate ./my-skill; then
    echo "✅ 技能检验通过"
else
    # 2. 自动修复
    ./skill-publish-adapter.sh fix ./my-skill
    # 重新检验
    ./skill-publish-adapter.sh validate ./my-skill || exit 1
fi

# 3. 发布技能
./skill-publish-adapter.sh publish ./my-skill \
    --slug my-skill \
    --name "My Skill" \
    --version 1.0.0
```

### 批量发布
```bash
# 发布多个技能
for skill in skill1 skill2 skill3; do
    ./skill-publish-adapter.sh publish ./$skill \
        --slug $skill \
        --name "$skill Skill" \
        --version 1.0.0
done
```

## 🛠️ 技术实现

### ClawHub Bug绕过机制
```bash
# 1. 工作目录修复
original_dir=$(pwd)
cd "$skill_dir"  # 切换到技能目录
# ... 执行发布操作
cd "$original_dir"  # 恢复原始目录

# 2. 文件检测替代方案
if [ ! -f "SKILL.md" ]; then
    # 使用替代检测方法
    find . -name "*.md" -type f | grep -i skill
fi

# 3. 多重发布尝试
attempt_publish() {
 

_meta.json

{
  "ownerId": "kn77zsf2w47t8p0m4977k8hy1982mzjj",
  "slug": "skill-validator",
  "version": "1.0.11",
  "publishedAt": 1774346451208
}

skill-card.md

## Description:

Skill Validator checks ClawHub skill packages for required files, metadata, shell script syntax, permissions, and format issues, then reports problems and repair guidance.

This skill is ready for commercial/non-commercial use.

## Publisher:

[puppetcat-fire](https://clawhub.ai/user/puppetcat-fire)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and skill publishers use Skill Validator to preflight ClawHub skills before release by checking package structure, metadata, script syntax, permissions, and compatibility issues.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The release security summary flags the skill as suspicious because its documentation encourages unpinned remote publishing scripts and higher-impact publish workflows.

Mitigation: Review before installing; avoid curl-and-run flows unless pinned to a reviewed commit with a verified checksum, and use publish or CI examples only with intentionally scoped credentials.

Risk: The installer can create or replace global command links under /usr/local/bin when run with --link.

Mitigation: Run install.sh without --link unless global command replacement is intended, and review the target paths and permissions first.

Risk: Validation and repair guidance can affect release decisions or local skill files.

Mitigation: Treat reported fixes as recommendations; review and scan the skill before deployment or publication.

## Reference(s):

- [Skill Validator on ClawHub](https://clawhub.ai/puppetcat-fire/skills/skill-validator)
- [OpenClaw Documentation](https://docs.openclaw.ai)
- [OpenClaw Skill Development Guide](https://github.com/openclaw/openclaw/docs/skills.md)

## Skill Output:

**Output Type(s):** [text, JSON, shell commands, configuration, guidance]

**Output Format:** [Terminal output with optional JSON validation reports and Markdown-facing guidance]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires bash, jq, find, grep, and sed according to the release metadata.]

## Skill Version(s):

1.0.11 (source: server release metadata, SKILL.md frontmatter, package.json)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

package.json

{
  "name": "@clawhub/skill-validator",
  "version": "1.0.11",
  "description": "技能检验工具:基于ClawHub技能格式规范的验证工具,确保技能符合最新发布要求",
  "author": "柏然 <xiaoboren0@gmail.com> (https://github.com/puppetcat-fire)",
  "license": "MIT-0",
  "repository": {
    "type": "git",
    "url": "https://github.com/puppetcat-fire/openclaw-skills.git"
  },
  "keywords": [
    "openclaw",
    "skill",
    "validator",
    "quality",
    "format",
    "validation",
    "clawhub",
    "compliance"
  ],
  "files": [
    "SKILL.md",
    "skill-validator.sh",
    "skill-validator-fixed.sh",
    "skill-validator-robust.sh",
    "skill-validator-simple.sh",
    "install.sh",
    "package.json",
    "LICENSE"
  ],
  "openclaw": {
    "skill": true,
    "emoji": "🔍✅",
    "requires": {
      "bins": [
        "bash",
        "jq",
        "find",
        "grep",
        "sed"
      ]
    }
  }
}

Sponsored

Ads related to Skill Validator and adjacent AI workflows.