Skip to content

Commit 1db165c

Browse files
authored
Merge pull request #18 from lvzhaobo/feat/add-generate-github-workflow
feat: add generate-github-workflow skill (en + zh)
2 parents d434935 + 458d3c5 commit 1db165c

2 files changed

Lines changed: 130 additions & 0 deletions

File tree

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
name: generate-github-workflow
3+
title: 生成 GitHub 工作流
4+
description: 交互式生成 GitHub Actions 工作流文件。支持 AI 代码审查(Qoder Action)、CI 测试、ECS 部署三大模板,并提供 GitHub 配置指引。
5+
source: community
6+
author: Lv Zhaobo
7+
githubUrl: https://github.com/lvzhaobo/ai-coding-skills/tree/main/skills/generate-github-workflow
8+
category: automation
9+
tags:
10+
- GitHub Actions
11+
- CI/CD
12+
- 工作流
13+
- 自动化部署
14+
- 代码审查
15+
- DevOps
16+
roles:
17+
- developer
18+
- architect
19+
featured: false
20+
popular: false
21+
isOfficial: false
22+
installCommand: |
23+
git clone https://github.com/lvzhaobo/ai-coding-skills
24+
cp -r ai-coding-skills/skills/generate-github-workflow ~/.qoder/skills/
25+
date: 2026-04-11
26+
---
27+
28+
## 使用场景
29+
30+
- 新项目需要配置 CI/CD 流水线
31+
- 为 PR 添加 AI 代码审查(Qoder Action)
32+
- 自动化部署到 ECS/云服务器
33+
- 配置代码质量检查(lint/test/security)
34+
- Workshop 教学中演示 GitHub Actions
35+
36+
## 核心能力
37+
38+
- **3 大内置模板**:AI 代码审查、CI 测试、ECS 部署
39+
- **交互式问答**:根据技术栈、分支、路径等信息定制生成
40+
- **Qoder Action 集成**:PR 触发 AI 审查,支持大小检测和语言配置
41+
- **GitHub 配置指引**:输出 Secrets 配置、Permissions 设置和验证方法
42+
- **灵活扩展**:模板之外的需求,描述后按相同流程生成
43+
44+
## 示例
45+
46+
```
47+
用户:帮我配置 GitHub Actions 做 AI 代码审查
48+
49+
Agent:几个确认问题:
50+
1. 主分支?→ main
51+
2. 审查语言?→ Chinese
52+
3. 大型 PR 跳过阈值?→ 1000 行
53+
54+
[生成 .github/workflows/ai-code-review.yml]
55+
56+
✅ 工作流已生成!
57+
下一步:在 GitHub Secrets 中配置 QODER_PERSONAL_ACCESS_TOKEN
58+
```
59+
60+
## 注意事项
61+
62+
- 纯知识型 SKILL,生成 YAML 文件,不调用外部 API
63+
- 使用 `actions/checkout@v4` 等最新版 Action
64+
- YAML 中禁止硬编码密钥/Token,统一使用 `${{ secrets.* }}`
65+
- 部署工作流同时支持自动触发和手动 `workflow_dispatch`
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
name: generate-github-workflow
3+
title: Generate GitHub Workflow
4+
description: Interactively generate GitHub Actions workflow files. Supports AI code review (Qoder Action), CI testing, and ECS deployment templates with GitHub configuration guidance.
5+
source: community
6+
author: Lv Zhaobo
7+
githubUrl: https://github.com/lvzhaobo/ai-coding-skills/tree/main/skills/generate-github-workflow
8+
category: automation
9+
tags:
10+
- github-actions
11+
- ci-cd
12+
- workflow
13+
- deployment
14+
- code-review
15+
- devops
16+
roles:
17+
- developer
18+
- architect
19+
featured: false
20+
popular: false
21+
isOfficial: false
22+
installCommand: |
23+
git clone https://github.com/lvzhaobo/ai-coding-skills
24+
cp -r ai-coding-skills/skills/generate-github-workflow ~/.qoder/skills/
25+
date: 2026-04-11
26+
---
27+
28+
## Use Cases
29+
30+
- Set up CI/CD pipelines for new projects
31+
- Add AI code review (Qoder Action) to pull requests
32+
- Automate deployment to ECS/cloud servers
33+
- Configure code quality checks (lint/test/security)
34+
- Demonstrate GitHub Actions in workshops
35+
36+
## Core Capabilities
37+
38+
- **3 Built-in Templates**: AI Code Review, CI Tests, Deploy to ECS
39+
- **Interactive Q&A**: Collects project info (tech stack, branches, paths) before generation
40+
- **Qoder Action Integration**: PR-based AI code review with size check and language config
41+
- **GitHub Config Guide**: Outputs Secrets setup, Permissions config, and verification steps
42+
- **Flexible Extension**: Describe any workflow need beyond templates for custom generation
43+
44+
## Example
45+
46+
```
47+
User: Help me set up GitHub Actions for AI code review
48+
49+
Agent: A few questions:
50+
1. Main branch? → main
51+
2. Review language? → Chinese
52+
3. Skip threshold for large PRs? → 1000 lines
53+
54+
[Generates .github/workflows/ai-code-review.yml]
55+
56+
✅ Workflow generated!
57+
Next: Configure QODER_PERSONAL_ACCESS_TOKEN in GitHub Secrets
58+
```
59+
60+
## Notes
61+
62+
- Pure knowledge skill — generates YAML files, no external API calls
63+
- Uses `actions/checkout@v4` and latest Action versions
64+
- Never hardcodes secrets/tokens in YAML — always uses `${{ secrets.* }}`
65+
- Deployment workflows include both auto-trigger and manual `workflow_dispatch`

0 commit comments

Comments
 (0)