gh-action-gen
由 branexp 提供
Git & GitHub简介
Generate GitHub Actions workflows from plain English.
描述
该技能的功能
Generates GitHub Actions workflow YAML from a plain English description. Handles common patterns like testing, building, deploying, and scheduled jobs. Run via npx with no install required.
Avoids searching for workflow templates by generating a complete, ready-to-use YAML file from a single description instead of assembling it from multiple sources.
何时使用
- Setting up CI for a new repo without writing YAML
- Generating a Docker build and push workflow to ECR
- Scheduling a nightly database backup job
- Running ESLint and Prettier checks on pull requests
- Automating deployment on push to main
示例工作流
User asks: build docker image and push to ECR
- 1
Parses the plain English description to identify the workflow intent
- 2
Selects appropriate GitHub Actions triggers and job structure
- 3
Generates Docker build steps with layer caching configured
- 4
Adds AWS credential handling via repository secrets
- 5
Writes the complete workflow YAML to the specified output file
A .github/workflows/deploy.yml file with a Docker build and ECR push workflow, with caching and secret references
前置要求
- OPENAI_API_KEY environment variable (requires an OpenAI account)
安装
clawhub install branexp/gh-action-gen运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。