Github Actions
We earn commissions when you shop through the links below.
Detect project stack and generate GitHub Actions CI/CD workflows — PR checks with lint/test/build/security, deploy pipelines for Vercel/AWS/GCP/Fly/Docker, dependency caching, matrix testing, preview deploys, and Dependabot config
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install github-actionsManual setup by platform
Claude Code
~/.claude/skills/github-actions/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
You are in AUTONOMOUS MODE. Do NOT ask questions. Do NOT pause for confirmation.
Execute every phase below in sequence, making decisions based on what you find.
PHASE 0 — INPUT
$ARGUMENTS may contain:
- A deploy target:
vercel,aws,gcp,fly,cloudflare,docker-registry,npm,pypi - A scope:
ci-only(just PR checks),cd-only(just deploy),full(both — default) --preview— include preview deployment workflow for PRs--matrix— include matrix testing across multiple versions--monorepo— handle monorepo with path filters- Specific workflow name to generate (e.g.,
test,deploy,release)
PHASE 1 — STACK DETECTION
Detect the project stack by scanning for manifest files:
Node.js / TypeScript:
package.json— read scripts (test,build,lint,typecheck,start)- Lock file:
package-lock.json(npm),yarn.lock(yarn),pnpm-lock.yaml(pnpm) - Framework: check dependencies for
next,nuxt,remix,astro,fastify,express,nestjs tsconfig.json— TypeScript project
Python:
requirements.txt,pyproject.toml,setup.py,Pipfile- Framework:
django,flask,fastapi,starlette - Tool:
poetry,pip,pipenv,uv
Go:
go.mod— read module name and Go version- Check for
cmd/directory structure
Rust:
Cargo.toml— read workspace members if monorepo
Flutter / Dart:
pubspec.yaml— read dependencies, check forflutter_test
Docker:
Dockerfile— if exists, prefer Docker-based CI steps
Record: language, package manager, framework, test command, build command, lint command.
PHASE 2 — GENERATE PR CHECK WORKFLOW
Create .github/workflows/ci.yml:
name: CI
on:
pull_request:
branches: [main, master]
push:
branches: [main, master]
Include these jobs in order:
1. Lint & Format
- Node:
npm run lint/eslint ./prettier --check . - Python:
ruff check ./black --check ./mypy . - Go:
golangci-lint run - Rust:
cargo clippy -- -D warnings/cargo fmt --check
2. Type Check (if applicable)
- Node/TS:
tsc --noEmitornpm run typecheck - Python:
mypy .orpyright
3. Test
- Node:
npm testwith coverage (--coverage) - Python:
pytest --covorpython -m pytest - Go:
go test ./... -race -coverprofile=coverage.out - Rust:
cargo test - Flutter:
flutter test --coverage
4. Build
- Node:
npm run build - Go:
go build ./... - Rust:
cargo build --release - Flutter:
flutter build apk --debug(or web) - Docker:
docker build .(if Dockerfile exists)
5. Security Scan
- Always include:
actions/dependency-review-action@v4on PRs - Node:
npm audit --audit-level=high - Python:
pip-auditorsafety check - Go:
govulncheck ./... - Rust:
cargo audit
Caching — always include appropriate caching:
- Node:
actions/setup-node@v4withcache: 'npm'(or yarn/pnpm) - Python:
actions/setup-python@v5withcache: 'pip' - Go:
actions/setup-go@v5withcache: true - Rust:
Swatinem/rust-cache@v2 - Flutter:
subosito/flutter-action@v2withcache: true
Matrix testing (if --matrix):
- Node: test against LTS and current (e.g.,
[18, 20, 22]) - Python:
[3.10, 3.11, 3.12] - Go: last two minor versions
- OS matrix:
[ubuntu-latest]default, addmacos-latestif Flutter/mobile
Permissions: Use minimal permissions per job (never write-all).
PHASE 3 — GENERATE DEPLOY WORKFLOW
Create .github/workflows/deploy.yml based on deploy target:
Vercel: Use amondnet/vercel-action@v25 or Vercel CLI. Production deploy on push to main. Preview deploy on PR (if --preview).
AWS (ECS/ECR): Configure AWS credentials via OIDC (aws-actions/configure-aws-credentials@v4), login to ECR, build/tag/push Docker image, update ECS service.
AWS (S3 + CloudFront): Sync build output to S3, invalidate CloudFront distribution.
GCP (Cloud Run): Auth with google-github-actions/auth@v2, deploy with google-github-actions/deploy-cloudrun@v2.
Fly.io: Setup flyctl, deploy with flyctl deploy --remote-only.
Cloudflare (Pages/Workers): Use cloudflare/wrangler-action@v3.
Docker Registry (GHCR): Login with docker/login-action@v3, build/push with docker/build-push-action@v5 with layer caching. Tag with SHA and latest.
npm / PyPI: Publish on release tag creation. npm: npm publish with NODE_AUTH_TOKEN. PyPI: pypa/gh-action-pypi-publish@release/v1.
Include environment protection rules:
environment:
name: production
url: ${{ steps.deploy.outputs.url }}
PHASE 4 — GENERATE ADDITIONAL WORKFLOWS
If applicable, also create:
Release workflow (.github/workflows/release.yml):
- Triggered on tag push (
v*) - Create GitHub Release with changelog
- Build and attach artifacts
Preview deploy (if --preview):
- Comment on PR with preview URL
- Clean up preview on PR close
Dependabot (.github/dependabot.yml):
- Always create if it does not exist
- Include
github-actionsecosystem with weekly schedule - Include the project's package ecosystem (npm, pip, gomod, cargo, etc.)
PHASE 5 — SECRETS DOCUMENTATION
Create or update .github/SECRETS.md listing all required repository secrets:
## Required Secrets
| Secret | Description | Where to get it |
|--------|-------------|-----------------|
| DEPLOY_TOKEN | Vercel/Fly/etc deploy token | {provider dashboard URL} |
List every ${{ secrets.* }} reference used in the generated workflows.
SELF-HEALING VALIDATION (max 2 iterations)
After completing deployment/infrastructure changes, validate:
- Verify all generated files are syntactically valid (YAML, JSON, HCL, Dockerfile).
- Run validation commands if available (terraform validate, docker build --check, kubectl dry-run).
- Verify no secrets, credentials, or sensitive values are hardcoded.
- If validation fails, diagnose and fix the specific syntax or config error.
- Repeat up to 2 iterations.
IF STILL FAILING after 2 iterations:
- Document what failed and the exact error
- Include partial output if available
OUTPUT
Print a summary of all generated files:
## GitHub Actions Setup Complete
### Files Created
- .github/workflows/ci.yml — PR checks (lint, typecheck, test, build, security)
- .github/workflows/deploy.yml — Deploy to {target} on push to main
- .github/dependabot.yml — Automated dependency updates
- .github/SECRETS.md — Required secrets documentation
### Required Secrets
{list of secrets to configure in GitHub repo settings}
### Detected Stack
- Language: {language}
- Framework: {framework}
- Package Manager: {pm}
- Deploy Target: {target}
NEXT STEPS
- Add required secrets to GitHub repository settings
- Push workflows to trigger the first run
- Enable branch protection rules requiring CI to pass before merge
- Review caching strategy after first run to verify cache hits
- Enable GitHub secret scanning and push protection on the repository
SELF-EVOLUTION TELEMETRY
After producing output, record execution metadata for the /evolve pipeline.
Check if a project memory directory exists:
- Look for the project path in
~/.claude/projects/ - If found, append to
skill-telemetry.mdin that memory directory
Entry format:
### /github-actions — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
Only log if the memory directory exists. Skip silently if not found.
Keep entries concise — /evolve will parse these for skill improvement signals.
DO NOT
- Do NOT use deprecated actions (e.g.,
actions/checkout@v2— usev4) - Do NOT hardcode secrets — always use
${{ secrets.NAME }} - Do NOT use
actions/setup-node@v3— usev4 - Do NOT skip the security scanning step
- Do NOT use
ubuntu-20.04— useubuntu-latestorubuntu-24.04 - Do NOT add
permissions: write-all— use minimal permissions per job - Do NOT generate workflows for stacks not detected in the project
- Do NOT overwrite existing workflow files without reading them first and preserving custom steps
- Do NOT use
npm ciwithout checking thatpackage-lock.jsonexists (usenpm installif no lock file)
Security
Reviews (0)
Related skills
Browse all →More from Skills Hub
View source →More Deploy skills
Browse category →Frequently asked questions about github-actions
What does the github-actions skill do?
Detect project stack and generate GitHub Actions CI/CD workflows — PR checks with lint/test/build/security, deploy pipelines for Vercel/AWS/GCP/Fly/Docker, dependency caching, matrix testing, preview deploys, and Dependabot config It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the github-actions skill?
Run `npx @skills-hub-ai/cli install github-actions` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/github-actions/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does github-actions work with?
github-actions runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the github-actions skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use github-actions after installing it?
In Claude Code, type `/github-actions` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the github-actions skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.