← 返回 Skills 市场
rushingai

Claude Code ↔ OpenClaw Skill Sync

作者 rushingAI · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
102
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install claude-skill-sync
功能描述
This skill should be used when the user wants to sync, synchronize, or compare skills between Claude Code and OpenClaw. Use it for requests like "sync my ski...
使用说明 (SKILL.md)

Claude Code ↔ OpenClaw Skill Sync

Goal

Scan skill directories for both Claude Code and OpenClaw, compare their contents, and perform a bidirectional sync — asking the user for confirmation before making any changes, and asking the user to resolve conflicts when the same skill exists in both tools with different content.

Both sides store full SKILL.md content. There are no wrapper stubs.

Steps

1. Scan Claude Code Skills

List all immediate subdirectories (one level deep, not recursive) under ~/.claude/skills/ that contain a SKILL.md file. Record the name (directory name) and read the full content of each SKILL.md.

2. Scan OpenClaw Skills

List all immediate subdirectories (one level deep, not recursive) under ~/.openclaw/workspace/skills/ that contain a SKILL.md file. Record the name (directory name) and read the full content of each SKILL.md.

3. Compare and Categorize

Build four categories by matching skill names across both directories:

A. Claude Code only — exists in Claude Code, no entry in OpenClaw at all.

B. OpenClaw only — exists in OpenClaw, no entry in Claude Code at all.

C. In sync — exists in both, content is textually identical after stripping leading/trailing whitespace from each line and ignoring line-ending differences (LF vs CRLF). No action needed.

D. Conflict — exists in both, but content differs after the normalization above.

4. Present the Report

Output a summary before taking any action:

## Skill Sync Report

### In Sync ✅
{count} skills are already in sync.
{list skill names, one per line}

### Claude Code Only — missing from OpenClaw (A)
- {skill-name}

### OpenClaw Only — missing from Claude Code (B)
- {skill-name}

### Conflicts — same name, different content (D)
- {skill-name}

If all skills are in sync, output "✅ All skills are in sync. Nothing to do." and stop.

5. Handle Category A — Copy to OpenClaw

For each skill in category A, ask the user:

"{skill-name}" exists in Claude Code but is missing from OpenClaw. Copy it to OpenClaw? [y/n/all/skip-all]

  • y → copy this skill
  • n → skip this skill
  • all → copy all remaining category A skills without asking again
  • skip-all → skip all remaining category A skills (applies to this category only — you will still be prompted for categories B and D)

To copy a Claude Code skill to OpenClaw:

  1. Read the version field from the SKILL.md frontmatter. If absent, use 1.0.0.
  2. Create directory ~/.openclaw/workspace/skills/{name}/
  3. Write the full SKILL.md content to ~/.openclaw/workspace/skills/{name}/SKILL.md as-is.
  4. Write ~/.openclaw/workspace/skills/{name}/_meta.json:
{
  "slug": "{name}",
  "version": "{version}"
}

6. Handle Category B — Copy to Claude Code

For each skill in category B, ask the user:

"{skill-name}" exists in OpenClaw but is missing from Claude Code. Copy it to Claude Code? [y/n/all/skip-all]

  • y → copy this skill
  • n → skip
  • all → copy all remaining category B skills without asking
  • skip-all → skip all remaining category B skills (applies to this category only — you will still be prompted for category D)

To copy an OpenClaw skill to Claude Code:

  1. Create directory ~/.claude/skills/{name}/
  2. Write the full SKILL.md content to ~/.claude/skills/{name}/SKILL.md as-is. Do not copy _meta.json — it is OpenClaw-specific.

7. Handle Category D — Resolve Conflicts

For each conflict, show the user:

Conflict: {skill-name}

Claude Code version (first 5 lines of body, i.e. content after the closing --- of frontmatter):
{lines}

OpenClaw version (first 5 lines of body, i.e. content after the closing --- of frontmatter):
{lines}

Which version should be kept?
[1] Keep Claude Code version → overwrites OpenClaw
[2] Keep OpenClaw version → overwrites Claude Code
[3] Skip — leave both as-is

Apply the user's choice:

  • Choice 1 → overwrite ~/.openclaw/workspace/skills/{name}/SKILL.md with the Claude Code content. Update ~/.openclaw/workspace/skills/{name}/_meta.json version to match the frontmatter of the winning file. If _meta.json does not exist, create it.
  • Choice 2 → overwrite ~/.claude/skills/{name}/SKILL.md with the OpenClaw content. No changes to _meta.json — it is OpenClaw-specific and remains as-is.
  • Choice 3 → do nothing for this skill.

8. Summary

After all actions are complete, output:

## Sync Complete

- Copied to OpenClaw: {count}
- Copied to Claude Code: {count}
- Conflicts resolved: {count}
- Skipped: {count}

Security Rules

  • When presenting conflict previews, show at most the first 5 lines of the body to the user. You may read complete file contents internally in order to copy or write files.
  • Never output token values, API keys, or credentials that may appear in skill files.
  • Always use ~/.claude/ and ~/.openclaw/ path notation. Never expand ~ to an absolute path.
  • If a version field is absent from a SKILL.md frontmatter, use 1.0.0 as the default.
安全使用建议
This skill appears coherent: it will read and write SKILL.md files under ~/.claude/skills/ and ~/.openclaw/workspace/skills/ and will prompt you before copying or overwriting. Before using it: (1) ensure you trust the agent invoking the skill because SKILL.md files can contain secrets or tokens; copying those files moves any embedded secrets between tool directories; (2) consider backing up both directories before performing bulk operations; (3) ask why the SKILL.md requires the instruction to 'never expand ~' — that is atypical and may complicate auditing; (4) when prompted, review the first lines shown in conflict previews and, if a file may contain sensitive data, open and inspect the full SKILL.md yourself rather than relying solely on the skill’s copy action.
功能分析
Type: OpenClaw Skill Name: claude-skill-sync Version: 1.0.0 The skill 'claude-skill-sync' (SKILL.md) facilitates bidirectional synchronization and conflict resolution of agent instructions between Claude Code (~/.claude/skills/) and OpenClaw (~/.openclaw/workspace/skills/) directories. While the logic includes user confirmation prompts and explicit safety rules to prevent the output of credentials, the capability to read and overwrite executable agent instructions across different tool environments is a high-risk operation. There is no evidence of intentional malice or data exfiltration, but the broad file system access to sensitive configuration directories warrants a suspicious classification.
能力评估
Purpose & Capability
The skill declares it will scan ~/.claude/skills/ and ~/.openclaw/workspace/skills/ and read/write SKILL.md files; all required actions (directory listing, reading/writing SKILL.md, creating _meta.json) are directly related to the stated purpose of syncing skills.
Instruction Scope
Instructions are narrowly scoped to listing one-level subdirectories, reading SKILL.md contents, comparing them, and copying/overwriting files with explicit user prompts. Two items to note: (1) the security rules say 'Never output token values, API keys, or credentials that may appear in skill files' — SKILL.md files may legitimately contain secrets, and the skill must read full contents to copy them, so there's a risk of accidental exposure if the agent were later instructed to transmit content elsewhere; (2) the instruction 'Always use ~ and never expand ~ to an absolute path' is unusual (it prevents the skill from resolving absolute locations) and could interfere with auditing or access-control checks — it's not necessary for the stated purpose and is worth questioning.
Install Mechanism
Instruction-only skill with no install steps or downloads. No files are written as part of an installation process beyond the operations the skill explicitly instructs at runtime.
Credentials
No environment variables, binaries, or external credentials are requested. The skill only needs filesystem access to the two specified directories, which is proportional to its stated function.
Persistence & Privilege
The skill does not request always:true and does not modify other skills' configs beyond writing SKILL.md and _meta.json into the specified Claude/OpenClaw skill directories — these writes are the expected behavior for a sync tool.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claude-skill-sync
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claude-skill-sync 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: sync and compare skills between Claude Code and OpenClaw with interactive confirmation for all copy and conflict actions. - Scans skill directories in both Claude Code and OpenClaw, comparing SKILL.md contents. - Categorizes skills: in sync, present only on one side, or conflicts. - Generates a detailed sync report before any changes. - Offers bidirectional sync: copy missing skills from one side to the other, with confirmation and bulk action options. - Prompts user to resolve content conflicts, previewing each version before overwrite. - Outputs a summary of all actions at the end of the sync process.
元数据
Slug claude-skill-sync
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Claude Code ↔ OpenClaw Skill Sync 是什么?

This skill should be used when the user wants to sync, synchronize, or compare skills between Claude Code and OpenClaw. Use it for requests like "sync my ski... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 102 次。

如何安装 Claude Code ↔ OpenClaw Skill Sync?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install claude-skill-sync」即可一键安装,无需额外配置。

Claude Code ↔ OpenClaw Skill Sync 是免费的吗?

是的,Claude Code ↔ OpenClaw Skill Sync 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Claude Code ↔ OpenClaw Skill Sync 支持哪些平台?

Claude Code ↔ OpenClaw Skill Sync 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Claude Code ↔ OpenClaw Skill Sync?

由 rushingAI(@rushingai)开发并维护,当前版本 v1.0.0。

💬 留言讨论