CommunityCoding & Developmentgithub.com

github-actions-ci

Generates a GitHub Actions CI workflow for Python, Node.js (npm, pnpm, yarn) or PHP (Composer) projects by detecting manifests, lockfiles, dev tools and scripts - with a runtime version matrix, dependency caching, least-privilege permissions and concurrency cancelling - and reviews existing workflows for common mistakes. Use when the user asks to add CI, set up GitHub Actions, test on several Python/Node/PHP versions, speed up or fix a slow or flaky workflow, or make pull requests run tests automatically.

What is github-actions-ci?

github-actions-ci is a Claude Code agent skill that generates a GitHub Actions CI workflow for Python, Node.js (npm, pnpm, yarn) or PHP (Composer) projects by detecting manifests, lockfiles, dev tools and scripts - with a runtime version matrix, dependency caching, least-privilege permissions and concurrency cancelling - and reviews existing workflows for common mistakes. Use when the user asks to add CI, set up GitHub Actions, test on several Python/Node/PHP versions, speed up or fix a slow or flaky workflow, or make pull requests run tests automatically.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/saizul/oss-maintainer-skills/tree/HEAD/skills/github-actions-ci

Installed? Explore more Coding & Development skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Preview

From the skill README

CI

Documentation

GitHub Actions CI

Every pull request should get lint and test results in a few minutes, on every supported runtime version, without the maintainer doing anything.

When to use

  • A repository has no CI, or CI only runs on one version
  • "Add GitHub Actions", "run tests on PRs", "test on Python 3.11-3.14 / Node 22 and 24 / PHP 8.2-8.4"
  • Reviewing or speeding up an existing workflow

When not to use

  • Deployment or release pipelines with secrets (write them by hand; see the release-checklist skill for release workflows).
  • GitLab CI, CircleCI and others: the generated YAML is GitHub Actions only.

Workflow

  1. Detect what the project uses (scripts/ is relative to this skill):

    python3 scripts/gen_ci.py detect .
    

    It reports the language, install commands, lint and test commands it found (ruff/flake8/mypy/pytest; npm/pnpm/yarn scripts lint, typecheck, build, test; phpstan/phpcs/php-cs-fixer/phpunit/pest or composer test). Confirm that these are the commands the maintainers actually run; check CONTRIBUTING.md and the Makefile.

  2. Choose versions with the user. Defaults: Python 3.11-3.14, Node 22 and 24, PHP 8.2-8.4. Match the versions the project claims to support (requires-python, engines.node, require.php) and drop end-of-life versions.

  3. Generate:

    python3 scripts/gen_ci.py generate . --versions 3.12,3.13,3.14
    python3 scripts/gen_ci.py generate . --lang node --os ubuntu-latest,windows-latest
    python3 scripts/gen_ci.py generate . --output .github/workflows/ci.yml   # refuses to overwrite
    

    For a repository with several languages, run once per language with --lang and rename the jobs, or write separate workflow files.

  4. Review the YAML against the checklist and adjust: services (Postgres, Redis), extra build steps, coverage upload. Keep permissions: contents: read unless a step needs more.

  5. Verify. Run the same install and test commands locally. If actionlint is installed, run it on the file. After pushing, check the run with gh run list --workflow ci.yml and gh run view --log-failed.

  6. Add the badge to the README: [![CI](https://github.com/OWNER/REPO/actions/workflows/ci.yml/badge.svg)](https://github.com/OWNER/REPO/actions/workflows/ci.yml)

Output

  • .github/workflows/ci.yml (or the YAML in chat if the user only wants to see it).
  • What was detected, what you changed by hand, and anything not verified locally.

What the generated workflow contains

  • Triggers: push to the default branch, pull requests, manual workflow_dispatch.
  • concurrency with cancel-in-progress so a new push cancels the old run.
  • Matrix over runtime versions and runner OSes with fail-fast: false.
  • Caching: setup-python pip cache keyed on requirements/pyproject; setup-node cache for npm/pnpm/yarn when a lockfile exists; Composer cache directory with actions/cache.
  • Installs with lockfile-respecting commands (npm ci, pnpm install --frozen-lockfile, composer install --prefer-dist).
  • Action versions: actions/checkout@v7, actions/setup-python@v7, actions/setup-node@v7, actions/cache@v6, shivammathur/setup-php@v2, pnpm/action-setup@v6. Dependabot (security-policy skill) keeps them current.

Individual skills in this repo

This repo contains 6 individual skills — each has its own dedicated page.

contributor-onboarding

Sets up a repository to attract and keep first-time contributors - writes CONTRIBUTING.md from the project's real setup and test commands, generates and validates a consistent GitHub label set (type, status, priority, good first issue, help wanted) with a dry-run script for gh, and turns vague issues into well-scoped good first issues. Use when the user wants more contributors, asks for a CONTRIBUTING guide, labels, or good first issues, or prepares for Hacktoberfest or a launch.

conventional-commits-release

Computes the next semantic version and a Keep a Changelog section from Conventional Commits (feat, fix, perf, revert, breaking changes with ! or BREAKING CHANGE footers), including 0.x rules and prereleases like rc.1, and helps write commit messages that follow the spec. Use when the user asks what the next version should be, wants release notes or a CHANGELOG entry from git history, asks how to word a commit, or wants to adopt Conventional Commits and semver in a project.

issue-triage

Triages a GitHub issue backlog - exports open issues with the gh CLI, sorts them into untriaged, waiting-on-reporter, missing-reproduction, possible-duplicate, stale and good-first-issue buckets, reproduces bugs locally, and drafts kind, consistent replies from templates plus a written stale policy. Use when the user asks to triage, label or clean up issues, answer a bug report, reproduce an issue, deal with a large or stale backlog, or set up a stale-issue policy.

project-launch

Plans and drafts the public launch of an open-source project - a readiness checklist, where to announce (Show HN, relevant subreddits, dev.to, Lobsters, newsletters, awesome lists, social media) and how each community's rules work, plus a script that drafts a Show HN title and first comment, a Reddit post, a dev.to article and a short social post and lints titles for length, hype and rule violations. Use when the user wants to launch, announce, promote or get the first users or stars for a project, or asks how to post on Hacker News, Reddit or dev.to.

readme-writer

Writes or rewrites a project README that converts visitors into users and contributors - one-line pitch, badges, a 60-second quick start, real examples, features, FAQ, contributing and license - and lints it for missing sections, broken relative links, table-of-contents anchors that match no heading, missing alt text and a late first code block. Use when the user asks to write, improve, review or restructure a README, says nobody understands or stars the project, or is preparing an open-source launch.

repo-health-check

Scores a local repository's open-source health from 0 to 100 (README quality, LICENSE, CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, issue and PR templates, CI, tests, changelog, badges, dependency updates) and prints a prioritized fix list. Use when the user asks to audit, review or "make this repo ready for open source", wants to know why a project gets no contributors, is preparing a public launch, or wants a health gate in CI.

Related Skills