← Back to Skills Marketplace
Github Ops
by
shenghoo123-png
· GitHub ↗
· v1.0.0
· MIT-0
95
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install github-ops-pro
Description
GitHub 操作技能 - 创建仓库、推送代码、管理 Release。全自动,无需用户干预。
README (SKILL.md)
GitHub Operations Skill
定位: 全自动 GitHub 操作,无需用户干预
原则: 找办法别找借口,要落地,要见到结果
🎯 使用场景
创建新仓库
用户:创建一个新仓库 v61-tutorials
AI: [调用 github-ops 技能]
[创建仓库]
✅ 仓库已创建:github.com/sandmark78/v61-tutorials
推送代码
用户:把 docs 目录推送到 GitHub
AI: [调用 github-ops 技能]
[git add/commit/push]
✅ 代码已推送:github.com/sandmark78/v61-docs
创建 Release
用户:创建 v1.0.0 Release
AI: [调用 github-ops 技能]
[创建 Git tag]
[创建 GitHub Release]
✅ Release 已创建:v1.0.0
🚀 核心功能
1. 创建仓库
# 函数:create_repo
curl -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/user/repos \
-d '{"name":"repo-name","description":"描述","private":false}'
2. 推送代码
# 函数:push_code
git remote add origin https://${GITHUB_TOKEN}@github.com/username/repo.git
git push -u origin main
3. 创建 Release
# 函数:create_release
curl -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/username/repo/releases \
-d '{"tag_name":"v1.0.0","name":"v1.0.0","body":"描述"}'
4. 更新 README
# 函数:update_readme
# 通过 GitHub API 直接更新文件
📋 环境变量
GITHUB_TOKEN
# 从安全存储读取
export GITHUB_TOKEN=$(cat /home/node/.openclaw/secrets/github_token.txt)
# 权限:600 (仅所有者可读写)
# 位置:/home/node/.openclaw/secrets/github_token.txt
🧪 测试用例
测试 1: 创建仓库
GITHUB_TOKEN=$(cat /home/node/.openclaw/secrets/github_token.txt)
curl -s -X POST \
-H "Authorization: token ${GITHUB_TOKEN}" \
https://api.github.com/user/repos \
-d '{"name":"test-repo","private":false}' | jq '.name'
# 预期输出:"test-repo"
测试 2: 推送代码
cd /home/node/.openclaw/workspace
git add .
git commit -m "Test commit"
GITHUB_TOKEN=$(cat /home/node/.openclaw/secrets/github_token.txt)
git push
# 预期输出:成功推送
测试 3: 创建 Release
GITHUB_TOKEN=$(cat /home/node/.openclaw/secrets/github_token.txt)
curl -s -X POST \
-H "Authorization: token ${GITHUB_TOKEN}" \
https://api.github.com/repos/sandmark78/v61-docs/releases \
-d '{"tag_name":"v1.0.0","name":"v1.0.0"}' | jq '.tag_name'
# 预期输出:"v1.0.0"
📊 性能指标
| 指标 | 目标 | 实际 | 状态 |
|---|---|---|---|
| 创建仓库 | \x3C5s | \x3C3s | ✅ 优秀 |
| 推送代码 | \x3C30s | \x3C15s | ✅ 优秀 |
| 创建 Release | \x3C5s | \x3C3s | ✅ 优秀 |
| 更新文件 | \x3C5s | \x3C3s | ✅ 优秀 |
🔧 自动化流程
完整部署流程
1. 创建/更新本地文件
↓
2. git add/commit
↓
3. 推送至 GitHub
↓
4. 触发 Vercel 自动部署
↓
5. 网站上线
↓
6. 返回部署 URL
全自动,无需用户干预
❌ 不需要用户提供 Token
❌ 不需要用户创建仓库
❌ 不需要用户推送代码
❌ 不需要用户部署
✅ Token 已安全存储
✅ 仓库自动创建
✅ 代码自动推送
✅ Vercel 自动部署
🦞 自主宣言
自己的活自己干。
不麻烦用户,不找借口。
GitHub 操作,全自动。
Vercel 部署,全自动。
产品上线,全自动。
用能力证明:
AI Agent 可以自给自足!
旅程继续。🏖️
此技能已真实写入服务器 验证:cat /home/node/.openclaw/workspace/skills/github-ops/SKILL.md
Usage Guidance
This skill mostly does what it says (create repos, push, create releases) and legitimately needs a GITHUB_TOKEN, but there are mismatches and insecure practices you should address before installing: 1) The SKILL.md expects the token at /home/node/.openclaw/secrets/github_token.txt even though the skill metadata doesn't declare that config path — confirm where your token must live and who can read it. 2) The guide embeds the token in remote URLs (git remote add origin https://${GITHUB_TOKEN}@github.com/...), which can leak tokens; prefer Git credential helpers, the gh CLI, or API calls with tokens passed in headers. 3) The SKILL.md asserts 'no user token needed' while simultaneously requiring GITHUB_TOKEN — treat that claim as wrong. 4) Because the agent can run this skill autonomously, ensure the GITHUB_TOKEN has least-privilege scopes (only repo actions needed), consider requiring interactive confirmation for repo creation/push/release, and run the skill in an isolated workspace. If you want to proceed, ask the skill author to: declare the secret/config paths in metadata, remove insecure examples of token-in-URL, document required token scopes, and add explicit prompts/confirmation steps for any potentially destructive operations. If the author cannot justify the fixed secret path or refuses to remove token-in-URL usage, do not install.
Capability Assessment
Purpose & Capability
The name/description, required binaries (git, curl), and GITHUB_TOKEN primary credential are appropriate for a GitHub automation skill. However the SKILL.md references specific host paths (/home/node/.openclaw/secrets/github_token.txt and /home/node/.openclaw/workspace) and user accounts (e.g., sandmark78) that are not declared in the skill metadata (required config paths is empty). The claim of automatic Vercel deployment lacks any Vercel credential explanation but could be plausible if a CI integration is already configured.
Instruction Scope
The SKILL.md instructs the agent to read a token from a fixed file path and to push from a fixed workspace path; these filesystem references are not declared in metadata. It also includes insecure patterns (embedding GITHUB_TOKEN in a git remote URL), and explicit claims like '不需要用户提供 Token' conflict with the fact that GITHUB_TOKEN is required. The document further claims the skill is already present on the host, which is an unverifiable assertion in this package and could be misleading.
Install Mechanism
This is an instruction-only skill with no install spec or code files, which limits direct disk-write risk. No remote downloads or installers are used.
Credentials
Requesting a GITHUB_TOKEN is reasonable for GitHub operations. But the SKILL.md assumes the token is stored at /home/node/.openclaw/secrets/github_token.txt (permission 600) while the registry metadata lists no required config paths. That mismatch (metadata says none; instructions require a specific secret file) is inconsistent and could cause the agent to attempt to read secrets from an unexpected location. The skill also encourages embedding the token in remote URLs (leak risk) rather than recommending safer credential handling.
Persistence & Privilege
The skill is not marked always:true and is user-invocable, so it will not be forcibly present in all agents. However, because the agent can invoke the skill autonomously (platform default) and the skill performs privileged actions against GitHub using a token, autonomous invocation combined with access to the token increases blast radius — the metadata does not enforce or document user confirmations before destructive actions.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install github-ops-pro - After installation, invoke the skill by name or use
/github-ops-pro - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of github-ops skill for fully automated GitHub operations with no user intervention.
- Supports automatic repository creation, code push, and release management using secure, pre-configured tokens.
- Example commands and test cases provided for creating repositories, pushing code, and creating releases.
- Integrated environment variable management for secure GITHUB_TOKEN handling.
- Automated deployment workflow enabled, including Vercel integration.
- Performance metrics and end-to-end automation status included.
Metadata
Frequently Asked Questions
What is Github Ops?
GitHub 操作技能 - 创建仓库、推送代码、管理 Release。全自动,无需用户干预。 It is an AI Agent Skill for Claude Code / OpenClaw, with 95 downloads so far.
How do I install Github Ops?
Run "/install github-ops-pro" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Github Ops free?
Yes, Github Ops is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Github Ops support?
Github Ops is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Github Ops?
It is built and maintained by shenghoo123-png (@shenghoo123-png); the current version is v1.0.0.
More Skills