CI-Gen for Openclaw

CI-Gen is an intelligent workflow generator that analyzes your project's stack to create optimized, production-ready GitHub Actions CI/CD pipelines.

llcsamih
v1.0.0
Apr 8, 2026
0
870
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install cicd-generator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install cicd-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is CI-Gen?

CI-Gen is a specialized utility within the Openclaw Skills ecosystem designed to eliminate the manual overhead of configuring continuous integration and deployment. By scanning your project root for signals like package.json, pyproject.toml, or Dockerfiles, it identifies your specific technology stack and generates tailored YAML configurations.

The skill goes beyond basic templates by implementing industry best practices such as concurrency management, aggressive dependency caching, and parallel job execution. Whether you are deploying a Next.js frontend to Vercel, a Python backend to a VPS, or a complex monorepo using Turborepo, CI-Gen ensures your pipelines are secure, fast, and scalable.

CI-Gen Use Cases

  • Setting up initial CI/CD for a new repository to automate testing and linting.
  • Migrating manual deployment processes to automated GitHub Actions workflows.
  • Configuring matrix testing across multiple Node.js or Python versions to ensure cross-version compatibility.
  • Implementing path-based filtering for monorepos to reduce CI run times and costs.
  • Standardizing Docker build-and-push pipelines with automatic semantic versioning tags.

How CI-Gen Works

  1. Stack Detection: The skill performs parallel glob checks to identify package managers, frameworks (Next.js, Nuxt, SvelteKit), and languages (Go, Rust, Python, Node.js).
  2. Requirement Analysis: It extracts metadata such as Node/Python versions and available scripts (test, lint, build) to avoid creating 'dead' jobs.
  3. User Configuration: It prompts for the deployment target (Vercel, Railway, SSH, Docker Registry) and environment preferences.
  4. Workflow Generation: It writes optimized .github/workflows/ files using the latest action versions (e.g., actions/checkout@v6).
  5. Security Checklist: It generates a specific list of GitHub Secrets that the user must configure based on the chosen deployment path.

CI-Gen Setup

To start using this feature within your Openclaw Skills environment, simply trigger the agent in your project root:

# Example triggers to initiate the generation
openclaw run ci-gen --goal "set up CI/CD for this repo"

Ensure you have the GitHub CLI installed or sufficient permissions to create the .github/workflows/ directory.

CI-Gen Data Schema & Taxonomy

CI-Gen organizes its output into the standard GitHub directory structure and provides a clear mapping of detected signals:

File/Directory Purpose
.github/workflows/ci.yml Main CI pipeline for linting, type-checking, and testing.
.github/workflows/deploy.yml CD pipeline triggered on pushes to the main branch or tags.
.github/workflows/docker.yml Specialized workflow for containerized builds and registry pushes.

Metadata Taxonomy:

  • Project Signals: Identifies stacks via files like pnpm-workspace.yaml, Cargo.toml, or vercel.json.
  • Placeholder Replacement: Dynamically replaces values like NODE_VERSION and PACKAGE_MANAGER with real project data.

CI-Gen Advanced Features

  • Monorepo Optimization: Automatic path filters using dorny/paths-filter to prevent unnecessary builds in large workspaces.
  • Matrix Strategy Management: Configures fail-fast: false builds so multi-version testing doesn't stop on the first failure.
  • Automated Caching: Pre-configures actions/setup-node and actions/setup-python with built-in caching for npm, pnpm, yarn, and pip.
  • Smart Concurrency: Implements concurrency groups to automatically cancel redundant runs on the same branch, saving GitHub Actions minutes.
  • Deployment Gatekeeping: Uses GitHub Environments for production jobs to allow for manual approval gates.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*