github-actions-gen
Installation
SKILL.md
GitHub Actions CI/CD 生成器
触发条件
当用户要求创建 CI/CD 流水线、GitHub Actions workflow、自动化部署配置时激活。
工作流程
1. 项目分析
- 检测项目语言和框架(package.json / requirements.txt / go.mod / Cargo.toml 等)
- 识别现有 CI 配置(.github/workflows/)
- 分析项目结构:单体仓库 or 单项目、monorepo 工具(nx / turborepo / lerna)
- 检测测试框架(jest / pytest / go test / cargo test)
2. 流水线设计
根据项目类型生成对应 workflow:
通用流水线模板:
ci.yml— 代码检查 + 测试(push/PR 触发)release.yml— 版本发布(tag 触发)
Related skills