github-actions-templates

Generates GitHub Actions workflow templates for testing, building, and deploying applications.

Updated Aug 11, 2026
One-click install
npx skills add https://github.com/DucCuong159/Realtime-chatapp --skill github-actions-templates-duccuong159
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-actions-templates
Source: https://github.com/DucCuong159/Realtime-chatapp/tree/main/.agent/skills/github-actions-templates
Command: npx skills add https://github.com/DucCuong159/Realtime-chatapp --skill github-actions-templates-duccuong159

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) and references (resource) components.

What problem does it solve? Writing CI/CD pipelines from scratch is error-prone and time-consuming, especially when handling Docker builds, Kubernetes deployments, security scans, and multi-environment matrix testing. ## Core Features & Use Cases - Ready-to-use workflow patterns: Templates for test automation, Docker image building and pushing to registries, Kubernetes deployment, and matrix builds across OS and language versions. - Security and governance: Trivy and Snyk vulnerability scanning, SARIF upload to GitHub Security, environment approval gates, and secrets handling best practices. - Reusable workflows: Callable workflow patterns with typed inputs and secrets for standardizing pipelines across repositories. - Use Case: You need to set up CI for a Node.js project that runs tests on Node 18 and 20, builds a Docker image on merge to main, and deploys to an EKS cluster with a production approval gate. ## Quick Start Ask the assistant to generate a GitHub Actions workflow that runs tests on pull requests and deploys a Docker image to production on tagged releases.

Frequently Asked Questions about github-actions-templates

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

FAQPage Schema
How do I create a GitHub Actions workflow for testing Node.js projects?

Use a test workflow triggered on push and pull_request events with a matrix strategy for Node versions like 18.x and 20.x. Steps include actions/checkout, actions/setup-node with npm caching, npm ci, linting, and running tests with optional Codecov coverage upload.

How to build and push Docker images in GitHub Actions?

Use docker/login-action to authenticate to a registry like ghcr.io, docker/metadata-action to generate tags from branches and semver, and docker/build-push-action with GitHub Actions cache. Grant packages:write permission and use the built-in GITHUB_TOKEN secret.

Can GitHub Actions deploy to a Kubernetes cluster?

Yes, configure cloud credentials with aws-actions/configure-aws-credentials, update kubeconfig via aws eks update-kubeconfig, then run kubectl apply and kubectl rollout status. Add a verification step with kubectl get pods to confirm the deployment.

How do I add security scanning to a CI pipeline?

Add Trivy filesystem scanning via aquasecurity/trivy-action and upload SARIF results to GitHub Security with codeql-action/upload-sarif. You can also run Snyk scans using snyk/actions with a SNYK_TOKEN secret.

What are reusable workflows in GitHub Actions?

Reusable workflows are defined with the workflow_call trigger and accept typed inputs and secrets. Other workflows invoke them with the uses keyword, passing parameters like node-version, which standardizes common pipeline logic across repositories.

When should I not use these GitHub Actions templates?

Avoid them when your task involves a different CI platform like GitLab CI, or when you need environment-specific validation beyond template scope. Always review secrets handling, permissions, and approval gates against your organization's security requirements before deploying.