Skip to content
Back to skills

Catch My Skill

ASecurity

自动检测本地与线上 skill 版本差异 - 支持 ClawHub/GitHub,定期检查更新

  • 14 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 7, 2026
toolsbashnodegitapi

Works with

  • api
  • mcp

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill catch-my-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Catch My Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Catch My Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-catch-my-skill/badge)](https://www.skillsdirectory.com/skills/modbender-catch-my-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: catch-my-skill
description: 自动检测本地与线上 skill 版本差异 - 支持 ClawHub/GitHub,定期检查更新
metadata:
  openclaw:
    emoji: 🎯
---

# Catch My Skill

自动检测本地与线上 skill 版本差异

## 功能

- 📋 **维护两个列表**
  - 本地 skill 列表(含版本)
  - 线上 skill 列表(ClawHub + GitHub)
  
- ⏰ **定时检查**
  - 每半小时自动获取线上版本
  - 对比本地与线上版本差异
  
- 🔔 **版本告警**
  - 本地落后时提醒更新
  - 支持手动触发检查

## 列表文件

| 文件 | 说明 |
|------|------|
| `data/local.json` | 本地 skill 列表 |
| `data/online.json` | 线上 skill 列表 |

## 设计初衷

**高粘性使用** - 只保留用户真正在用的 skills,避免装一堆不用的。

## 初始化流程

```
1. 首次运行 init
   ↓
2. 自动获取线上所有 skills(ClawHub + GitHub)
   ↓
3. 生成完整本地列表(含版本)
   ↓
4. 用户删除不想要的 skill
   ↓
5. 后续只跟踪保留下来的 skills
```

## 用户操作

```bash
# 首次初始化(从线上拉取全部)
/catch-my-skill init

# 删除不想要的 skill(减少跟踪)
/catch-my-skill remove white-stone-mem

# 添加回想跟踪的 skill
/catch-my-skill add elegant-sync

# 检查版本
/catch-my-skill check

# 本地落后时自动更新(任选一个渠道)
/catch-my-skill update elegant-sync
```

## 数据格式

### local.json
```json
{
  "skills": [
    {"name": "white-stone-mem", "version": "1.0.0", "path": "~/.openclaw/skills/white-stone-mem"},
    {"name": "elegant-sync", "version": "1.0.1", "path": "~/.openclaw/skills/elegant-sync"}
  ],
  "updated": "2026-02-28T16:00:00Z"
}
```

### online.json
```json
{
  "clawhub": [
    {"name": "white-stone-mem", "version": "1.0.0", "owner": "russellfei"},
    {"name": "elegant-sync", "version": "1.0.3", "owner": "russellfei"}
  ],
  "github": [
    {"name": "minimax-mcp-call", "version": "1.0.0", "owner": "russellfei", "repo": "russellfei/minimax-mcp-call"}
  ],
  "updated": "2026-02-28T16:00:00Z"
}
```

## 配置

### 自动检查间隔

在 `.backup.env` 中配置:

```bash
# 检查间隔(分钟),默认 30 分钟
CATCH_INTERVAL=30
```

### GitHub 用户名

```bash
GITHUB_USERNAME=russellfei
```

## 工作流程

```
1. 定时触发(每30分钟)
   ↓
2. 获取 ClawHub 线上版本(clawhub inspect)
   ↓
3. 获取 GitHub 线上版本(gh api)
   ↓
4. 对比本地版本
   ↓
5. 输出差异报告
   ↓
6. 本地落后 → 提醒更新
```

## 输出示例

```
=== Skill 版本检查 ===

本地落后需更新:
  ⚠️ elegant-sync: 本地 1.0.1 < 线上 1.0.3

本地已是最新:
  ✅ white-stone-mem: 1.0.0
  ✅ minimax-mcp-call: 1.0.0

线上新技能:
  (无)
```

## 定时任务

自动添加到 crontab:

```bash
# 每30分钟检查
*/30 * * * * node /path/to/catch-my-skill/index.js check >> /home/orangepi/.openclaw/logs/catch-my-skill.log 2>&1
```

## 安装

```bash
# 复制到 skills 目录
cp -r catch-my-skill ~/.openclaw/workspace/skills/

# 初始化
node index.js init
```

## 更新日志

- 2026-02-28: 初始版本

Files in this skill

  • README.md623 B
  • SKILL.md3.3 KB
  • data/local.json372 B
  • data/online.json373 B
  • index.js8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…