agentleFS
28672032962867203296/hermes-agent/skills/github/github-workflow/SKILL.md

github-workflow

Skill0 starsChanged 3 months agoMITView on GitHub

GitHub 全工作流:认证→仓库→PR→审查→Issue→CI/CD。统一入口,按需加载子技能。

  • Reads credentials
  • Commits and pushes

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use marketing-psychology, copywriting and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    marketing-psychology

    When the user wants to apply psychological principles, mental models, or behavioral science to marketing. Also use when the user mentions 'psychology,' 'mental models,' 'cognitive bias,' 'persuasion,' 'behavioral science,' 'why people buy,' 'decision-making,' or 'consumer behavior.' This skill provides 70+ mental models organized for marketing application.

    Also in 3 projects that use this

  • SupabaseSkill

    copywriting

    Write or audit UI copy (buttons, labels, empty states, error messages, tooltips, form text) anywhere in the monorepo. Load it before shipping or reviewing any user-facing text — including when copy is incidental to the task, like a new feature that adds buttons, toasts, dialogs, or validation messages.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    git-workflow

    Squad branching model: dev-first workflow with insiders preview channel

    Also in 3 projects that use this

  • SentrySkill

    skill-creator

    Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.

    Also in 4 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

  • BlockSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

    Also in 3 projects that use this

The file

Files
SKILL.md

GitHub 全工作流

一站式 GitHub 操作入口。覆盖从认证到发布的完整生命周期。

快速导航

根据你的需求,加载对应的子技能或直接使用下方命令:

你要做什么加载快捷命令
配置 GitHub 认证skill_view("github-workflow") → 认证章节gh auth status
克隆/创建/Fork 仓库↓ 仓库管理章节gh repo clone, gh repo create
提交代码 + 创建 PR↓ PR 工作流章节gh pr create
审查 PR↓ 代码审查章节gh pr diff, gh pr review
管理 Issue↓ Issue 管理章节gh issue list, gh issue create
查看 CI/CD 状态↓ CI/CD 章节gh run list, gh pr checks
代码库统计加载 codebase-inspectionpygount --format=summary .

认证(github-auth 内容摘要)

检测当前认证状态

gh auth status 2>/dev/null && echo "gh OK" || echo "gh not authed"
grep -q "GITHUB_TOKEN" ${HERMES_HOME:-~/.hermes}/.env 2>/dev/null && echo "Token in .env" || echo "No token"

Token 配置(国内用户推荐)

  1. 去 https://github.com/settings/tokens 创建 Classic PAT
  2. 勾选 repo、workflow、read:org
  3. 存到 D:\Hermes\.env:GITHUB_TOKEN=ghp_xxx

Git 身份配置

git config --global user.name "Your Name"
git config --global user.email "your@email.com"
git config --global credential.helper store

仓库管理(github-repo-management 内容摘要)

克隆

gh repo clone owner/repo
# 或纯 git:
git clone https://github.com/owner/repo.git

创建仓库

gh repo create my-project --public --clone
# 从已有目录推送:
cd /path/to/project && gh repo create my-project --source . --public --push

Fork

gh repo fork owner/repo --clone
# 添加上游:
git remote add upstream https://github.com/owner/repo.git

Release

gh release create v1.0.0 --title "v1.0.0" --generate-notes

Secrets

gh secret set API_KEY --body "value"
gh secret list

PR 工作流(github-pr-workflow 内容摘要)

标准流程

# 1. 从 main 分支
git checkout main && git pull origin main

# 2. 创建特性分支
git checkout -b feat/my-feature

# 3. 提交(用 Conventional Commits 格式)
git add .
git commit -m "feat: add user authentication"

# 4. 推送
git push -u origin HEAD

# 5. 创建 PR
gh pr create --title "feat: add user auth" --body "Closes #42"

# 6. 监控 CI
gh pr checks --watch

# 7. 合并
gh pr merge --squash --delete-branch

提交规范

feat: 新功能
fix: 修 bug
refactor: 重构
docs: 文档
test: 测试
ci: CI/CD
chore: 杂项

代码审查(github-code-review 内容摘要)

审查本地改动

git diff main...HEAD --stat          # 总览
git diff main...HEAD                  # 完整 diff
git diff main...HEAD | grep -n "TODO\|FIXME\|console.log"  # 常见问题扫描

审查 PR

gh pr view 123                # PR 信息
gh pr diff 123                # PR diff
gh pr checkout 123            # 拉取到本地审查
gh pr review 123 --approve    # 批准
gh pr review 123 --request-changes --body "See comments"  # 要求修改

审查检查清单

  • 正确性:功能是否按预期工作?边界情况?
  • 安全性:有无硬编码密钥?输入验证?SQL 注入?
  • 代码质量:命名清晰?无重复逻辑?函数职责单一?
  • 测试:新代码有测试?覆盖 happy path + error case?
  • 性能:无 N+1 查询?无阻塞操作?
  • 文档:公开 API 有文档?README 更新?

Issue 管理(github-issues 内容摘要)

查看

gh issue list --state open --label "bug"
gh issue view 42

创建

gh issue create --title "Bug: xxx" --body "## Steps..." --label "bug"

管理

gh issue edit 42 --add-label "priority:high"
gh issue edit 42 --add-assignee @me
gh issue comment 42 --body "Working on this"
gh issue close 42

Bug Report 模板

## Bug Description
<问题描述>

## Steps to Reproduce
1. <步骤1>
2. <步骤2>

## Expected Behavior
<期望行为>

## Actual Behavior
<实际行为>

CI/CD(Actions)

gh workflow list                    # 列出工作流
gh run list --limit 10              # 最近运行
gh run view <ID> --log-failed       # 查看失败日志
gh run rerun <ID>                   # 重跑
gh workflow run deploy.yml -f env=staging  # 手动触发

国内网络注意事项

  • api.github.com 直连可用(HTTP 200)
  • git clone 走 443 端口经常不通 → 用 gh repo clone 或 HTTPS
  • raw.githubusercontent.com 小文件可行
  • 备选镜像 ghfast.top 对大文件不稳定
  • HuggingFace 被墙 → 用 ModelScope 替代

相关技能

  • [[01-开发流水线]] — 知识图谱中枢节点
  • codebase-inspection — 代码库统计分析(pygount)
  • [[Hermes 管家架构]] — Hermes 整体架构中的 GitHub 角色

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.