setup-ci

Automate GitHub Actions CI/CD setup for Node.js with pnpm caching and Cloudflare Pages deployment.

Updated Mar 23, 2026
One-click install
npx skills add https://github.com/mia-cx/.agents --skill setup-ci
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: setup-ci
Source: https://github.com/mia-cx/.agents/tree/main/skills/setup-ci
Command: npx skills add https://github.com/mia-cx/.agents --skill setup-ci

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the boilerplate CI/CD setup for Node.js projects by provisioning GitHub Actions workflows, pnpm caching, and deployment to Cloudflare Pages via Wrangler, reducing manual configuration.

Core Features & Use Cases

  • Scaffolds .github/workflows/ with two workflows: CI (runs on PRs) and Deploy (runs on push to main)
  • Implements a pnpm caching strategy with a store-dir inside node_modules
  • Automatically detects project shape (package.json scripts, Wrangler config, Node version) and configures workflows accordingly
  • Generates ci.yml and deploy.yml with steps for checkout, pnpm setup, node setup, caching, install, lint, typecheck, test, build, and deployment
  • Provides guidance to adapt workflows to projects lacking certain scripts or config and to set up necessary secrets (CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID)

Quick Start

Apply this skill to generate GitHub Actions CI/CD workflows and Cloudflare deployment configuration for your repository.

Frequently Asked Questions about setup-ci

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up GitHub Actions CI/CD for a Node.js project with pnpm caching?

Setting up GitHub Actions CI/CD with pnpm caching involves scaffolding .github/workflows/ files that configure the pnpm store-dir inside node_modules, adding steps for checkout, pnpm setup, and installation to automate PR-based lint, test, and build validation.

Can I deploy to Cloudflare Pages using GitHub Actions and Wrangler?

Yes, you can deploy to Cloudflare Pages using GitHub Actions and Wrangler by generating a deploy.yml workflow triggered on push to main, requiring secrets like CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID to authorize the Wrangler deployment step.

Do I need a wrangler config file to automate Cloudflare Pages deployment?

A wrangler config file is optional for Cloudflare Pages deployment. The setup auto-detects your project shape, but providing a wrangler config alongside package.json allows the generated workflows to adapt more accurately to your specific deployment requirements.

What GitHub secrets do I need to configure for Cloudflare Pages deployment?

You need to configure the CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID GitHub secrets to enable Cloudflare Pages deployment. These secrets authorize the Wrangler deployment step within your generated GitHub Actions workflow.

How does pnpm store-dir configuration improve GitHub Actions CI?

Pnpm store-dir configuration improves GitHub Actions CI by placing the pnpm store inside node_modules, which optimizes the caching strategy and speeds up dependency installation steps during lint, test, and build validation workflows.

What if my Node.js project is missing certain package.json scripts for the CI workflow?

If your Node.js project is missing certain package.json scripts, the CI setup provides guidance to adapt the generated workflows. It auto-detects available scripts and configures the lint, typecheck, test, and build steps accordingly to prevent workflow failures.