← 返回 Skills 市场
yezhaowang888-stack

GitHub自动化管理Skill

作者 yezhaowang888-stack · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
74
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install huimai-github-automation
功能描述
基于DeepSeek v4,实现GitHub仓库、PR、Issue及CI/CD自动管理,提升开发效率和代码质量。
使用说明 (SKILL.md)

GitHub自动化管理Skill

🚀 概述

基于惠迈智能体三层架构的开发协作框架,将GitHub开发流程智能化管理,减少重复性工作的手动操作。

🌟 核心亮点

  • 惠迈开发模式工具化:将惠迈智能体协作模式融入开发流程
  • 可扩展设计:预留AI服务接口,支持接入代码审查、Issue分类等智能服务
  • 开发效率革命:传统开发协作需要大量人工,现在智能体自动处理
  • 三层架构保障:代码智能体、流程智能体、协作智能体协同工作

🏆 用户价值

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

功能特性

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

安装

# 通过ClawHub安装
clawhub install huimai-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://gitee.com/yezhaowang888/huimai-skills.git

# 安装依赖
npm install

# 运行测试
npm test

# 启动开发服务器
npm run dev

贡献

欢迎提交Issue和Pull Request。

许可证

MIT License

版本历史

  • v1.0.1 (2026-04-24): 修正描述,强调框架定位
  • v1.0.0 (2026-04-22): 初始发布,基础自动化功能

支持

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

安全使用建议
This package looks inconsistent rather than overtly malicious: it advertises full GitHub automation and DeepSeek integration but the source appears to be a local/mock implementation and the manifest doesn't declare the credentials the README asks for. Before installing or providing any GitHub Personal Access Token: (1) prefer not to use a full-permissions token—create a token with the minimum scopes needed and test on a throwaway/org/test repo; (2) inspect the code yourself (or ask the author) to confirm real API calls exist and where credentials are used; (3) verify the maintainer/source (homepage is missing and source is 'unknown'); (4) avoid giving this skill access to production repos until you confirm it actually implements the advertised behavior and that dependencies are trustworthy. If you need a working GitHub-integrated skill, prefer one with an authoritative source, declared env requirements, and clear dependencies.
功能分析
Type: OpenClaw Skill Name: huimai-github-automation Version: 1.0.1 The bundle provides a mock implementation of a GitHub automation tool. While the documentation (SKILL.md) claims advanced features and dependencies like @octokit/rest, the actual code in index.js contains only placeholder logic and simulated responses with no real network activity, external API calls, or data exfiltration. No malicious patterns, obfuscation, or harmful prompt injection attempts were identified; the code appears to be a harmless functional skeleton or template.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The README/description claims real GitHub automation, CI/CD, and DeepSeek v4 integration. The code (index.js) is a local simulated implementation that does not call the GitHub API or reference DeepSeek; package.json lists no runtime dependencies even though SKILL.md lists @octokit/rest and node-cron. This mismatch suggests the distributed code will not actually perform the claimed remote operations or that files are incomplete/misleading.
Instruction Scope
SKILL.md instructs creating config/github-automation.json and shows examples using process.env.GITHUB_TOKEN and organization settings (wide repo/workflow/issue/PR permissions). However, the registry metadata declares no required env vars or config paths. The instructions expect networked GitHub access and storing a PAT, but the included implementation only simulates behavior locally. The SKILL.md does not instruct reading unrelated system files, but it does request credentials in examples that are not declared.
Install Mechanism
There is no install spec (instruction-only style), but the package includes code and package.json. SKILL.md gives npm install instructions and lists dependencies; package.json has an empty dependencies object. No downloads from external URLs or archives are present. The inconsistency between documented dependencies and package.json is noteworthy but not directly malicious.
Credentials
The documentation expects a GitHub token (GITHUB_TOKEN or config.token) with broad permissions (repo: all, workflow write, issues/pullRequests write) but the skill metadata declares no required environment variables or primary credential. Requesting a high-privilege PAT is proportionate to full automation, but the lack of declaration and the fact the bundled code doesn't actually use the token to contact GitHub is an incoherence and a potential risk if users supply credentials.
Persistence & Privilege
The skill does not request always: true, does not declare any system-wide config changes, and its instructions ask the user to create a local config file in config/github-automation.json. The code does not write to system paths or modify other skills. No elevated persistence is requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install huimai-github-automation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /huimai-github-automation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
v1.0.1: 修正描述,去除不实声明,强调框架定位
v1.0.0
首次发布:GitHub自动化管理Skill,基于惠迈智能体三层架构
元数据
Slug huimai-github-automation
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

GitHub自动化管理Skill 是什么?

基于DeepSeek v4,实现GitHub仓库、PR、Issue及CI/CD自动管理,提升开发效率和代码质量。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 74 次。

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

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

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

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

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

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

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

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

💬 留言讨论