|
| 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