GitHub to OpenClaw Skill Conversion Reference Guide
本技能为纯文档指南,不包含任何可执行代码。
This skill is documentation-only, containing no executable code.
本指南提供将 GitHub 项目转换为 OpenClaw 技能的 参考流程,帮助用户理解转换过程中需要考虑的各个环节。
This guide provides a reference process for converting GitHub projects to OpenClaw skills, helping users understand the considerations involved.
适用场景 / Use Cases:
考虑因素 / Considerations:
因素 / Factor说明 / Description许可证 / License确认是否允许复用(MIT/Apache/BSD 通常可以)/ Verify reuse is allowed项目规模 / Project size评估转换工作量 / Estimate conversion effort依赖复杂度 / Dependency complexity评估依赖安装难度 / Assess dependency installation difficulty代码质量 / Code quality检查代码是否规范 / Check code quality
需要识别的文件类型 / File Types to Identify:
类别 / Category文件示例 / Examples用途 / Purpose技能定义 / Skill definitionSKILL.mdOpenClaw 技能必需文件 / Required for OpenClaw入口文件 / Entry pointindex.js, main.py程序入口 / Program entry依赖配置 / Dependency configpackage.json, requirements.txt依赖声明 / Dependency declaration文档 / DocumentationREADME.md使用说明 / Usage instructions源代码 / Source codesrc/, lib/, *.js, *.py功能实现 / Functionality
需要排除的文件 / Files to Exclude:
文件 / File原因 / Reason.env可能包含敏感信息 / May contain sensitive info*.key, *.pem密钥文件 / Key filesnode_modules/依赖包目录 / Dependencies directory.git/版本控制 / Version control
参考目录结构 / Reference Directory Structure:
text
新技能目录/
├── SKILL.md # 技能定义(必需)/ Skill definition (required)
├── package.json # Node.js 项目元数据 / Node.js metadata
├── README.md # 使用说明 / Usage instructions
├── index.js # 入口文件(如适用)/ Entry point (if applicable)
└── src/ # 源代码目录 / Source code directory
常见依赖类型 / Common Dependency Types:
类型 / Type配置文件 / Config File安装方式参考 / Installation ReferencePythonrequirements.txtpip install -r requirements.txtNode.jspackage.jsonnpm install
⚠️ 注意事项 / Notes:
验证步骤参考 / Verification Steps Reference:
不应包含的文件 / Files to Exclude:
文件模式 / Pattern原因 / Reason.env环境变量(可能含 API Key)/ Environment vars*.key, *.pem, *.crt加密密钥 / Encryption keyscredentials凭据 / Credentialssecrets机密信息 / Secrets
常见许可证 / Common Licenses:
许可证 / License是否可用 / Usable注意事项 / NotesMIT✅ 是 / Yes保留版权声明 / Retain copyright noticeApache-2.0✅ 是 / Yes包含专利授权 / Includes patent grantBSD✅ 是 / Yes类似 MIT / Similar to MITGPL⚠️ 注意 / Caution衍生作品需开源 / Derivatives must be open专有 / Proprietary❌ 否 / No禁止复用 / Reuse prohibited
markdown
---
name: 技能名
version: 1.0.0
description: 技能功能描述
license: MIT
metadata:
skill-author: 作者名
source: GitHub 仓库链接(如适用)
---
# 技能名称
## 功能说明
(描述技能的功能和用途)
## 使用方式
(说明如何使用)
## 依赖
(列出需要的包)
A: 检查项目根目录。如没有,需创建新的 SKILL.md 文件。
A: 取决于原项目许可证。MIT/Apache/BSD 通常允许复用,GPL 要求衍生作品开源。
A: 考虑使用虚拟环境(Python)或本地 node_modules(Node.js)隔离依赖。
A: 检查 SKILL.md 格式是否正确,重启 OpenClaw,查看日志。
版本 / Version日期 / Date更新内容 / Changes2.0.12026-03-31纯文档指南,移除所有可执行命令 / Documentation-only, removed all executable commands2.0.02026-03-31改为纯文档技能 / Converted to documentation-only1.0.62026-03-27初始版本(含可执行代码)/ Initial release (with executable code)
作者 / Author: OpenClaw Community
更新日期 / Updated: 2026-03-31
版本 / Version: 2.0.1
类型 / Type: 纯文档参考指南 / Documentation-Only Reference Guide