/install gh-action-gen
GitHub Action Generator
Stop copy-pasting workflow YAML from StackOverflow. Describe what you want and get a working GitHub Actions workflow.
One command. Zero config. Just works.
Quick Start
npx ai-github-action "test and deploy on push to main"
What It Does
- Generates complete GitHub Actions workflow files
- Handles common patterns like test, build, deploy
- Includes caching for faster runs
- Supports multiple deploy targets
Usage Examples
# Test and deploy
npx ai-github-action "test and deploy on push to main"
# PR checks
npx ai-github-action "run eslint and prettier on PRs" --install
# Docker workflow
npx ai-github-action "build docker image and push to ECR" -o deploy.yml
# Scheduled job
npx ai-github-action "run database backup every night at 2am"
Best Practices
- Use secrets - never hardcode credentials
- Cache dependencies - saves minutes per run
- Fail fast - run quick checks first
- Use matrix builds - test multiple node versions
When to Use This
- Setting up CI for a new repo
- Adding deployment automation
- Creating custom workflows
- Learning GitHub Actions syntax
Part of the LXGIC Dev Toolkit
This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work.
Find more:
- GitHub: https://github.com/LXGIC-Studios
- Twitter: https://x.com/lxgicstudios
- Substack: https://lxgicstudios.substack.com
- Website: https://lxgicstudios.com
Requirements
No install needed. Just run with npx. Node.js 18+ recommended. Needs OPENAI_API_KEY environment variable.
npx ai-github-action --help
How It Works
Takes your plain English description and generates GitHub Actions YAML with the right triggers, jobs, and steps. The AI knows common patterns and best practices for different workflows.
License
MIT. Free forever. Use it however you want.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gh-action-gen - 安装完成后,直接呼叫该 Skill 的名称或使用
/gh-action-gen触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
GitHub Action Generator 是什么?
Generate GitHub Actions workflows from plain English. Use when setting up CI. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1442 次。
如何安装 GitHub Action Generator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gh-action-gen」即可一键安装,无需额外配置。
GitHub Action Generator 是免费的吗?
是的,GitHub Action Generator 完全免费(开源免费),可自由下载、安装和使用。
GitHub Action Generator 支持哪些平台?
GitHub Action Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 GitHub Action Generator?
由 branexp(@branexp)开发并维护,当前版本 v1.0.1。