← 返回 Skills 市场
yezhaowang888-stack

GitHub自动化管理Skill

作者 yezhaowang888-stack · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
90
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install github-automation-huimai
功能描述
基于DeepSeek v4,自动化管理GitHub仓库、PR、Issue、工作流,提升开发效率与代码质量,优化团队协作。
使用说明 (SKILL.md)

GitHub自动化管理Skill

🚀 概述

DeepSeek v4赋能的智能开发协作平台,基于惠迈"怎么能行"开发哲学,将GitHub开发流程智能化,减少开发工作量90%。

🌟 核心亮点

  • DeepSeek v4代码智能:AI驱动的代码审查、PR分析、Issue智能处理
  • 惠迈开发模式工具化:将惠迈智能体协作模式融入开发流程
  • 超前技术配置:支持DeepSeek v4代码理解和生成
  • 开发效率革命:传统开发协作需要大量人工,现在智能体自动处理

🏆 用户价值

  • 开发效率提升90%:自动化处理代码审查、Issue分类等重复工作
  • 代码质量+50%:AI智能审查减少人为错误
  • 团队协作优化:智能体协调开发流程,减少沟通成本
  • 三层架构保障:代码智能体、流程智能体、协作智能体协同工作

功能特性

  • 仓库管理:创建、配置、管理GitHub仓库
  • PR自动化:自动审核、合并、标签管理
  • Issue处理:Issue分类、分配、自动化回复
  • 工作流自动化:CI/CD集成、自动化测试、部署
  • 团队协作:团队管理、权限控制、协作工具
  • 数据分析:仓库活动分析、贡献者统计

安装

# 通过ClawHub安装
clawhub install github-automation

# 或手动安装
npm install github-automation

配置

创建配置文件 config/github-automation.json

{
  "token": "YOUR_GITHUB_TOKEN",
  "username": "YOUR_GITHUB_USERNAME",
  "organization": "YOUR_ORGANIZATION",
  "permissions": {
    "repo": "all",
    "workflow": "write",
    "issues": "write",
    "pullRequests": "write"
  },
  "automation": {
    "prReview": true,
    "issueTriaging": true,
    "ciMonitoring": true,
    "dependencyUpdates": true
  }
}

使用方法

基本设置

const GitHubAutomation = require('github-automation');

const github = new GitHubAutomation({
  token: process.env.GITHUB_TOKEN,
  organization: 'your-org'
});

// 初始化连接
await github.connect();

仓库管理

// 创建新仓库
const repo = await github.createRepository('new-project', {
  description: 'A new project',
  private: true,
  autoInit: true
});

// 配置仓库设置
await github.configureRepository('your-org/new-project', {
  hasIssues: true,
  hasProjects: true,
  hasWiki: true,
  allowMergeCommit: true,
  allowSquashMerge: true,
  allowRebaseMerge: true
});

// 获取仓库信息
const repoInfo = await github.getRepository('your-org/new-project');

PR管理

// 创建PR
const pr = await github.createPullRequest({
  owner: 'your-org',
  repo: 'new-project',
  title: 'Add new feature',
  head: 'feature-branch',
  base: 'main',
  body: 'This PR adds a new feature...'
});

// 自动审核PR
await github.reviewPullRequest('your-org/new-project', 123, {
  event: 'APPROVE',
  body: 'Looks good!'
});

// 合并PR
await github.mergePullRequest('your-org/new-project', 123, {
  mergeMethod: 'squash'
});

Issue管理

// 创建Issue
const issue = await github.createIssue('your-org/new-project', {
  title: 'Bug: Something is broken',
  body: '详细描述问题...',
  labels: ['bug', 'high-priority']
});

// 分配Issue
await github.assignIssue('your-org/new-project', 456, ['user1', 'user2']);

// 自动回复Issue
await github.replyToIssue('your-org/new-project', 456, '感谢报告,我们会尽快处理。');

工作流自动化

// 触发工作流
await github.triggerWorkflow('your-org/new-project', 'ci.yml', {
  ref: 'main'
});

// 监控CI状态
const ciStatus = await github.getCIStatus('your-org/new-project', 'main');

// 自动部署
await github.deploy('your-org/new-project', 'production', {
  version: 'v1.2.3'
});

在OpenClaw中使用

@agent 创建新的GitHub仓库
@agent 审核PR #123
@agent 分配Issue给团队成员
@agent 查看仓库状态
@agent 触发部署流程

API参考

构造函数

new GitHubAutomation(config)

参数:

  • config.token (string): GitHub Personal Access Token
  • config.username (string): GitHub用户名
  • config.organization (string): 组织名称
  • config.permissions (object): 权限配置
  • config.automation (object): 自动化配置

核心方法

connect()

连接到GitHub API。

createRepository(name, options)

创建新仓库。

configureRepository(repo, settings)

配置仓库设置。

createPullRequest(options)

创建Pull Request。

reviewPullRequest(repo, prNumber, review)

审核Pull Request。

mergePullRequest(repo, prNumber, options)

合并Pull Request。

createIssue(repo, issue)

创建Issue。

assignIssue(repo, issueNumber, assignees)

分配Issue。

triggerWorkflow(repo, workflow, inputs)

触发工作流。

getCIStatus(repo, ref)

获取CI状态。

自动化功能

PR自动化流程

  1. 新PR创建时自动添加标签
  2. 自动请求代码审查
  3. 检查通过后自动合并
  4. 自动删除分支

Issue自动化流程

  1. 新Issue自动分类
  2. 根据标签自动分配
  3. 自动回复模板消息
  4. 超时自动提醒

依赖更新

  1. 监控依赖更新
  2. 自动创建更新PR
  3. 自动运行测试
  4. 安全更新优先处理

发布管理

  1. 版本号自动递增
  2. 自动生成变更日志
  3. 自动创建发布
  4. 自动部署到环境

依赖项

  • @octokit/rest: ^19.0.0
  • node-cron: ^3.0.0

开发

# 克隆仓库
git clone https://github.com/your-org/github-automation.git

# 安装依赖
npm install

# 运行测试
npm test

# 启动开发服务器
npm run dev

贡献

欢迎提交Issue和Pull Request。

许可证

MIT License

版本历史

  • v1.0.0 (2026-04-22): 初始发布,基础自动化功能

支持

如有问题,请提交Issue或联系维护团队。

安全使用建议
Do not provide high-privilege GitHub tokens to this skill before verifying its source and code. The SKILL.md promises real API automation, but the included code is a local stub and dependencies are inconsistent. Before installing: (1) confirm the package originates from a trustworthy repository or organization; (2) inspect the published npm package (or GitHub repo) to ensure the code actually implements real API calls and that dependencies like @octokit/rest are present; (3) if you must test, create a limited-scope test token (least privilege, test-only org/repo) and run the code in an isolated environment; (4) prefer only installing packages with a clear, verifiable upstream repo and non-placeholder URLs; (5) ask the maintainer for proof of DeepSeek and CI integration if those features are required. These inconsistencies are suspicious even if the implementation is benign (e.g., a placeholder/stub), so verify provenance before granting credentials or deploying in production.
功能分析
Type: OpenClaw Skill Name: github-automation-huimai Version: 1.0.0 The bundle is a harmless template or mock implementation for a GitHub automation tool. The index.js file contains only skeleton logic that simulates GitHub API interactions (such as creating repositories, PRs, and issues) using internal Maps and console logging, without performing any actual network requests, file system access, or sensitive data exfiltration. While the documentation in SKILL.md uses hyperbolic marketing language and references non-existent versions of technology (e.g., 'DeepSeek v4'), the code lacks any malicious intent, risky capabilities, or prompt injection attacks.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The README/SKILL.md describes deep GitHub automation, DeepSeek v4 integration, CI/CD triggers, and lists dependencies like @octokit/rest and node-cron. The included index.js is a local simulator that never calls the GitHub API, contains no network or DeepSeek logic, and package.json has no dependencies. This is inconsistent: the claimed capabilities do not match the code and manifest.
Instruction Scope
SKILL.md instructs creating a config with a GitHub token and shows examples that imply real API actions (connect(), triggerWorkflow(), deploy(), etc.). However the runtime code only checks for the presence of a token string and simulates actions locally. The instructions therefore promise external operations and credential use that the code does not implement, which is misleading and expands the scope of what a user is asked to provide.
Install Mechanism
There is no install spec in the registry and the README suggests installing via clawhub or npm. The package ships code files and a package.json but dependencies are empty despite README listing them. The dev instructions reference cloning https://github.com/your-org/github-automation.git, which looks like a placeholder. No external downloads or extract steps are present, so the install risk is low, but the placeholders and mismatch make provenance unclear.
Credentials
SKILL.md asks for a GitHub Personal Access Token with broad permissions (repo: all, workflow: write, issues: write, pullRequests: write) and demonstrates reading process.env.GITHUB_TOKEN, but the registry metadata declares no required env vars and index.js merely verifies token existence without using it. Requesting high-privilege credentials in docs while not declaring them in metadata and without clear justification is disproportionate and risky.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system-wide settings, and includes no install-time scripts. It does not persist beyond its own objects in memory and suggests a local config file; no automatic persistent agent privileges are requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install github-automation-huimai
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /github-automation-huimai 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- 首次发布 GitHub 自动化管理 Skill。 - 实现仓库、PR、Issue、工作流等核心 GitHub 操作的自动化。 - 集成 DeepSeek v4 代码智能,提升代码审查与协作效率。 - 支持 AI 驱动的 PR/Issue 流水线、依赖更新和自动部署。 - 提供详细安装、配置、API 和开发/贡献文档。
元数据
Slug github-automation-huimai
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

GitHub自动化管理Skill 是什么?

基于DeepSeek v4,自动化管理GitHub仓库、PR、Issue、工作流,提升开发效率与代码质量,优化团队协作。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 90 次。

如何安装 GitHub自动化管理Skill?

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

GitHub自动化管理Skill 是免费的吗?

是的,GitHub自动化管理Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

GitHub自动化管理Skill 支持哪些平台?

GitHub自动化管理Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 GitHub自动化管理Skill?

由 yezhaowang888-stack(@yezhaowang888-stack)开发并维护,当前版本 v1.0.0。

💬 留言讨论