Skill: slim-rush/skill-registry (version 1.0.0)

--- name: skill-registry description: Local skill registry with trigger-word routing. Organize workspace skills and auto-match by keywords. | 本地技能注册表，基于触发词自动路由。管理 workspace 技能，按关键词匹配执行。 version: 1.0.0 triggers: - "what skills" - "list skills" - "有什么技能" - "你会什么" - "/skills" - "/技能" metadata: author: Slim-Rush license: MIT openclaw: emoji: "📋" category: meta tags: - registry - routing - local - workspace --- # Skill Registry | 技能注册表 Local skill registry with trigger-word based routing for OpenClaw workspaces. 本地技能注册表，基于触发词的自动路由机制。 --- ## Features | 功能特性 | Feature | Description | |---------|-------------| | **Central Registry** | Single `REGISTRY.md` file lists all workspace skills with categories | | **Trigger-word Routing** | Match user input keywords → auto-select skill | | **Skill-aware Execution** | Agent scans triggers before acting | | **Quick Query** | User asks "what skills?" → Agent lists available skills | | 功能 | 说明 | |------|------| | **中央注册表** | 单一 `REGISTRY.md` 文件，分类列出所有技能 | | **触发词路由** | 匹配用户输入关键词 → 自动选择技能 | | **技能感知执行** | Agent 收到任务先扫描触发词 | | **快速查询** | 用户问"有什么技能" → Agent 列出可用技能 | --- ## How It Differs | 与其他方案的区别 | Approach | This Skill | Others (LLM-based) | |----------|------------|-------------------| | Routing Method | Keyword rules | LLM analysis | | Speed | Instant | Requires LLM call | | Scope | Local workspace | ClawHub remote | | Complexity | Simple, predictable | Complex, variable | --- ## Installation | 安装 ### 1. Create Registry | 创建注册表 Copy `REGISTRY.template.md` to `skills/REGISTRY.md` and fill in your skills. 将 `REGISTRY.template.md` 复制为 `skills/REGISTRY.md`，填入你的技能列表。 ### 2. Add Rules | 添加规则 Append `RULES.snippet.md` content to your `RULES.md` or `AGENTS.md`. 将 `RULES.snippet.md` 内容追加到你的 `RULES.md` 或 `AGENTS.md`。 ### 3. Customize Routing Table | 自定义路由表 Edit the trigger-word table in rules to match your skills: 编辑规则中的触发词表，匹配你的技能： ```markdown | Triggers | Skill | Description | |----------|-------|-------------| | video, edit | video-editor | Video editing | | news, daily | daily-news | Daily news digest | ``` --- ## Usage | 使用方法 ### User Queries | 用户查询 | User Says | Agent Action | |-----------|--------------| | "What skills do you have?" | Read REGISTRY.md, list by category | | "有什么技能" | 读取 REGISTRY.md，按分类列出 | | "/skills video" | Return video-related skills only | | "How to use XX skill?" | Read `skills/XX/SKILL.md` | ### Auto-routing Flow | 自动路由流程 ``` User Request → Scan Triggers → Match Found? ↓ Yes: Read SKILL.md → Execute ↓ No: Use general capability ``` --- ## File Structure | 文件结构 ``` skills/ ├── REGISTRY.md # Central registry (you maintain) ├── skill-registry/ │ ├── SKILL.md # This file │ ├── REGISTRY.template.md # Registry template │ └── RULES.snippet.md # Rules to add ├── your-skill-1/ │ └── SKILL.md └── your-skill-2/ └── SKILL.md ``` --- ## Best Practices | 最佳实践 1. **Keep REGISTRY.md updated** — Add new skills when created 2. **Use specific triggers** — Avoid overly broad keywords 3. **Clear categories** — Group by function domain 4. **Regular cleanup** — Remove unused skills --- ## Example | 示例 **User**: Help me make a short video **Agent thinks**: Trigger "video" → matches `video-assembler` **Agent**: Reads `video-assembler/SKILL.md`, executes workflow... **用户**: 帮我做个短视频 **Agent 思考**: 触发词"视频" → 匹配 `video-assembler` **Agent**: 读取 `video-assembler/SKILL.md`，按流程执行...

path: RULES.snippet.md
content: ## Skill Discovery | 技能发现

**When user asks about skills, read `skills/REGISTRY.md` and respond accordingly:**

**当用户询问技能时，读取 `skills/REGISTRY.md` 并按需回复：**

| User Says | Action |
|-----------|--------|
| "what skills" / "有什么技能" / "/skills" | Read REGISTRY.md, list by category |
| "XX related skills" / "/skills XX" | Return related category only |
| "How to use XX skill" | Read `skills/XX/SKILL.md` |

**Trigger-word Routing Table | 触发词路由表：**

| Triggers | Skill | Description |
|----------|-------|-------------|
| example1, example2 | example-skill | Example description |

> Customize the table above for your skills
> 根据你的技能自定义上表

---

## Skill-Aware Execution | 技能感知执行

**When receiving a task request, follow this flow:**

**收到任务请求时，按以下流程执行：**

```
1. Scan request → Match triggers
2. If matched → Read skills/<name>/SKILL.md
3. Execute per SKILL.md workflow
4. If no match → Use general capability
```

**Examples | 示例：**

| User Says | Agent Thinks | Action |
|-----------|--------------|--------|
| "Help me do XX" | Trigger "XX" → skill-name | Read SKILL.md, execute |
| "Calculate something" | No match | Use general capability |

**Notes | 注意：**
- Skill matching is assistance, not restriction | 技能匹配是辅助，不是限制
- Complex tasks may need multiple skills | 复杂任务可能需要多技能协作
- When uncertain, ask user to confirm | 不确定时可询问用户确认


path: REGISTRY.template.md
content: # Skill Registry | 技能注册表

> Last updated: YYYY-MM-DD
> Usage: When user asks "what skills" / "有什么技能", read this file and summarize by category.

## Quick Commands | 快捷命令

| Command | Effect |
|---------|--------|
| /skills | List all skills by category |
| /skills keyword | Find related skills |
| /技能 | 列出所有技能（分类） |
| /技能 关键词 | 查找相关技能 |

---

## Content Creation | 内容创作类

| Skill | Triggers | Description |
|-------|----------|-------------|
| example-skill | example, demo | Example skill template |

## Information | 信息获取类

| Skill | Triggers | Description |
|-------|----------|-------------|
| | | |

## Tools | 工具类

| Skill | Triggers | Description |
|-------|----------|-------------|
| | | |

## System | 系统类

| Skill | Triggers | Description |
|-------|----------|-------------|
| skill-registry | skills, 技能 | Skill discovery and routing |

---

## Discovery Guide | 发现指南

When user asks about skills:
1. "All skills" → List by category (brief)
2. Specific domain (e.g., "video skills") → Return that category only
3. "How to use XX" → Read `skills/XX/SKILL.md`

用户询问技能时：
1. "所有技能" → 按分类简要列出
2. 特定领域（如"视频技能"）→ 只返回相关类别
3. "XX怎么用" → 读取 `skills/XX/SKILL.md`

---

## Adding New Skills | 添加新技能

1. Create skill directory under `skills/`
2. Write `SKILL.md` (refer to existing skills)
3. Add entry to this file under appropriate category
4. Add triggers to RULES routing table (if auto-routing needed)


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: clean (LOW)