← Back to Skills Marketplace
branexp

GitHub Action Generator

by branexp · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
1442
Downloads
0
Stars
5
Active Installs
2
Versions
Install in OpenClaw
/install gh-action-gen
Description
Generate GitHub Actions workflows from plain English. Use when setting up CI.
README (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.

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gh-action-gen
  3. After installation, invoke the skill by name or use /gh-action-gen
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Fix: name field now matches slug for auto-update compatibility
v1.0.0
Initial publish
Metadata
Slug gh-action-gen
Version 1.0.1
License
All-time Installs 5
Active Installs 5
Total Versions 2
Frequently Asked Questions

What is GitHub Action Generator?

Generate GitHub Actions workflows from plain English. Use when setting up CI. It is an AI Agent Skill for Claude Code / OpenClaw, with 1442 downloads so far.

How do I install GitHub Action Generator?

Run "/install gh-action-gen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is GitHub Action Generator free?

Yes, GitHub Action Generator is completely free (open-source). You can download, install and use it at no cost.

Which platforms does GitHub Action Generator support?

GitHub Action Generator is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created GitHub Action Generator?

It is built and maintained by branexp (@branexp); the current version is v1.0.1.

💬 Comments