name: github-to-skill version: 2.0.1 description: GitHub 專案轉 OpenClaw 技能參考指南 - 提供轉換流程說明(純文件,無可執行程式碼) license: MIT-0 metadata: skill-author: OpenClaw Community created: 2026-03-27 updated: 2026-03-31 type: documentation
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: - 發現優秀的 GitHub 專案想複用到 OpenClaw / Find great GitHub projects to reuse in OpenClaw - 學習如何封裝開原始碼為技能 / Learn how to package open-source code as skills - 理解 OpenClaw 技能結構 / Understand OpenClaw skill structure
考慮因素 / 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 definition | SKILL.md | OpenClaw 技能必需檔案 / Required for OpenClaw |
| 入口檔案 / Entry point | index.js, main.py | 程式入口 / Program entry |
| 依賴配置 / Dependency config | package.json, requirements.txt | 依賴宣告 / Dependency declaration |
| 文件 / Documentation | README.md | 使用說明 / Usage instructions |
| 原始碼 / Source code | src/, lib/, .js, .py | 功能實現 / Functionality |
需要排除的檔案 / Files to Exclude:
| 檔案 / File | 原因 / Reason |
|---|---|
| .env | 可能包含敏感資訊 / May contain sensitive info |
| .key, .pem | 金鑰檔案 / Key files |
| node_modules/ | 依賴包目錄 / Dependencies directory |
| .git/ | 版本控制 / Version control |
參考目錄結構 / Reference Directory Structure:
新技能目錄/
├── 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 Reference |
|---|---|---|
| Python | requirements.txt | pip install -r requirements.txt |
| Node.js | package.json | npm install |
⚠️ 注意事項 / Notes: - 檢查依賴是否可信 / Verify dependencies are trusted - 評估依賴衝突風險 / Assess dependency conflict risks - 考慮使用虛擬環境 / Consider using virtual environments
驗證步驟參考 / Verification Steps Reference:
重啟 OpenClaw 檢視技能列表 / Restart OpenClaw and check skill list
7w4.net提供免費和付費技能下載。
功能測試 / Functionality testing
檢查是否有錯誤 / Check for errors
依賴驗證 / Dependency verification
不應包含的檔案 / Files to Exclude:
| 檔案模式 / Pattern | 原因 / Reason |
|---|---|
| .env | 環境變數(可能含 API Key)/ Environment vars |
| .key, .pem, *.crt | 加密金鑰 / Encryption keys |
| credentials | 憑據 / Credentials |
| secrets | 機密資訊 / Secrets |
常見許可證 / Common Licenses:
| 許可證 / License | 是否可用 / Usable | 注意事項 / Notes |
|---|---|---|
| MIT | ✅ 是 / Yes | 保留版權宣告 / Retain copyright notice |
| Apache-2.0 | ✅ 是 / Yes | 包含專利授權 / Includes patent grant |
| BSD | ✅ 是 / Yes | 類似 MIT / Similar to MIT |
| GPL | ⚠️ 注意 / Caution | 衍生作品需開源 / Derivatives must be open |
| 專有 / Proprietary | ❌ 否 / No | 禁止複用 / Reuse prohibited |
---
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 | 更新內容 / Changes |
|---|---|---|
| 2.0.1 | 2026-03-31 | 純文件指南,移除所有可執行命令 / Documentation-only, removed all executable commands |
| 2.0.0 | 2026-03-31 | 改為純文件技能 / Converted to documentation-only |
| 1.0.6 | 2026-03-27 | 初始版本(含可執行程式碼)/ Initial release (with executable code) |
作者 / Author: OpenClaw Community
更新日期 / Updated: 2026-03-31
版本 / Version: 2.0.1
型別 / Type: 純文件參考指南 / Documentation-Only Reference Guide
這個 Skill 質量中等偏上。它用清晰的步驟說明如何將 GitHub 專案轉換成技能,包含很多實用的注意事項,比如許可證選擇、敏感檔案處理等,對新手比較友好。優點是內容全面、結構有條理,而且有中英文對照。但它只是一個說明書性質的指南,沒有實際能用的工具程式碼,想用它完成真正的轉換工作還得靠自己動手。總的來說適合學習參考,但實際用途有限。