← 返回 Skills 市场
branexp

GitHub Action Generator

作者 branexp · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
1442
总下载
0
收藏
5
当前安装
2
版本数
在 OpenClaw 中安装
/install gh-action-gen
功能描述
Generate GitHub Actions workflows from plain English. Use when setting up CI.
使用说明 (SKILL.md)

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:

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.

安全使用建议
This tool legitimately uses the OpenAI API to generate workflow YAML, but the registry record failed to declare that requirement. Before installing or running: (1) be aware you must provide OPENAI_API_KEY — the CLI will call OpenAI with that key; use a key with minimal privileges or billing limits if possible. (2) Review the included source (src/index.ts, dist/index.js) — it shows calls to OpenAI and writes files only where requested (--install). (3) Verify the package identity (check the upstream GitHub repo URL in package.json) and npm package integrity before running npx. (4) When using --install, inspect the generated workflow YAML for secret usage, unintended credential insertion, or deployment steps that could push images or credentials. If you want to avoid exposing a production key, run it locally with a throwaway/limited key or review the code and simulate the request flow first.
功能分析
Type: OpenClaw Skill Name: gh-action-gen Version: 1.0.1 This skill is classified as suspicious due to two critical vulnerabilities: a prompt injection vulnerability against the underlying OpenAI model and an arbitrary file write capability. The `src/index.ts` file directly interpolates user input (`description`) into the prompt sent to OpenAI, allowing a malicious user to bypass system instructions and potentially generate non-YAML or malicious YAML content. Furthermore, the `src/cli.ts` file allows writing the AI-generated output to an arbitrary file path specified by the `--output` option. When combined, these vulnerabilities could lead to remote code execution if a malicious user crafts an input that tricks the AI into generating executable code, which is then written to a sensitive location.
能力评估
Purpose & Capability
The stated purpose — generating GitHub Actions workflows — matches the code and CLI behavior. The code (src/index.ts / dist/index.js) calls OpenAI to produce YAML and the CLI writes or prints workflow files, which is coherent with the description.
Instruction Scope
SKILL.md and the CLI usage are narrowly scoped to generating workflow YAML and optionally writing to .github/workflows/. The instructions do not instruct reading unrelated files or exfiltrating local data. Note: SKILL.md explicitly states 'Needs OPENAI_API_KEY' and the code reads process.env.OPENAI_API_KEY, so runtime requires that secret.
Install Mechanism
There is no install spec in the registry (instruction-only behavior), and the package is a normal Node CLI (package.json, dist/*). The skill does not download code from arbitrary URLs at install time. Running via npx will fetch the npm package (normal behaviour) — no high-risk remote install pattern was found in the files provided.
Credentials
The skill requires an OpenAI API key at runtime: src/index.ts and dist/index.js instantiate OpenAI with process.env.OPENAI_API_KEY. However the registry metadata lists no required environment variables or primary credential — an explicit mismatch. Requesting an API key is proportionate to using OpenAI, but the missing declaration is an incoherence that could confuse users about what secrets they'll need to supply.
Persistence & Privilege
The skill does not request persistent/automatic inclusion (always:false). It can write files into the repository when invoked with --install, which is expected for a workflow generator and is user-initiated; no evidence it modifies other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gh-action-gen
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gh-action-gen 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Fix: name field now matches slug for auto-update compatibility
v1.0.0
Initial publish
元数据
Slug gh-action-gen
版本 1.0.1
许可证
累计安装 5
当前安装数 5
历史版本数 2
常见问题

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。

💬 留言讨论