{"id":"562402eb-41d8-47db-a725-826ba8814ef2","shortId":"WhmSzu","kind":"skill","title":"github-actions-templates","tagline":"Production-ready GitHub Actions workflow patterns for testing, building, and deploying applications.","description":"# GitHub Actions Templates\n\nProduction-ready GitHub Actions workflow patterns for testing, building, and deploying applications.\n\n## Do not use this skill when\n\n- The task is unrelated to github actions templates\n- You need a different domain or tool outside this scope\n\n## Instructions\n\n- Clarify goals, constraints, and required inputs.\n- Apply relevant best practices and validate outcomes.\n- Provide actionable steps and verification.\n- If detailed examples are required, open `resources/implementation-playbook.md`.\n\n## Purpose\n\nCreate efficient, secure GitHub Actions workflows for continuous integration and deployment across various tech stacks.\n\n## Use this skill when\n\n- Automate testing and deployment\n- Build Docker images and push to registries\n- Deploy to Kubernetes clusters\n- Run security scans\n- Implement matrix builds for multiple environments\n\n## Common Workflow Patterns\n\n### Pattern 1: Test Workflow\n\n```yaml\nname: Test\n\non:\n  push:\n    branches: [ main, develop ]\n  pull_request:\n    branches: [ main ]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n\n    strategy:\n      matrix:\n        node-version: [18.x, 20.x]\n\n    steps:\n    - uses: actions/checkout@v4\n\n    - name: Use Node.js ${{ matrix.node-version }}\n      uses: actions/setup-node@v4\n      with:\n        node-version: ${{ matrix.node-version }}\n        cache: 'npm'\n\n    - name: Install dependencies\n      run: npm ci\n\n    - name: Run linter\n      run: npm run lint\n\n    - name: Run tests\n      run: npm test\n\n    - name: Upload coverage\n      uses: codecov/codecov-action@v3\n      with:\n        files: ./coverage/lcov.info\n```\n\n**Reference:** See `assets/test-workflow.yml`\n\n### Pattern 2: Build and Push Docker Image\n\n```yaml\nname: Build and Push\n\non:\n  push:\n    branches: [ main ]\n    tags: [ 'v*' ]\n\nenv:\n  REGISTRY: ghcr.io\n  IMAGE_NAME: ${{ github.repository }}\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n      packages: write\n\n    steps:\n    - uses: actions/checkout@v4\n\n    - name: Log in to Container Registry\n      uses: docker/login-action@v3\n      with:\n        registry: ${{ env.REGISTRY }}\n        username: ${{ github.actor }}\n        password: ${{ secrets.GITHUB_TOKEN }}\n\n    - name: Extract metadata\n      id: meta\n      uses: docker/metadata-action@v5\n      with:\n        images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}\n        tags: |\n          type=ref,event=branch\n          type=ref,event=pr\n          type=semver,pattern={{version}}\n          type=semver,pattern={{major}}.{{minor}}\n\n    - name: Build and push\n      uses: docker/build-push-action@v5\n      with:\n        context: .\n        push: true\n        tags: ${{ steps.meta.outputs.tags }}\n        labels: ${{ steps.meta.outputs.labels }}\n        cache-from: type=gha\n        cache-to: type=gha,mode=max\n```\n\n**Reference:** See `assets/deploy-workflow.yml`\n\n### Pattern 3: Deploy to Kubernetes\n\n```yaml\nname: Deploy to Kubernetes\n\non:\n  push:\n    branches: [ main ]\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n\n    steps:\n    - uses: actions/checkout@v4\n\n    - name: Configure AWS credentials\n      uses: aws-actions/configure-aws-credentials@v4\n      with:\n        aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}\n        aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n        aws-region: us-west-2\n\n    - name: Update kubeconfig\n      run: |\n        aws eks update-kubeconfig --name production-cluster --region us-west-2\n\n    - name: Deploy to Kubernetes\n      run: |\n        kubectl apply -f k8s/\n        kubectl rollout status deployment/my-app -n production\n        kubectl get services -n production\n\n    - name: Verify deployment\n      run: |\n        kubectl get pods -n production\n        kubectl describe deployment my-app -n production\n```\n\n### Pattern 4: Matrix Build\n\n```yaml\nname: Matrix Build\n\non: [push, pull_request]\n\njobs:\n  build:\n    runs-on: ${{ matrix.os }}\n\n    strategy:\n      matrix:\n        os: [ubuntu-latest, macos-latest, windows-latest]\n        python-version: ['3.9', '3.10', '3.11', '3.12']\n\n    steps:\n    - uses: actions/checkout@v4\n\n    - name: Set up Python\n      uses: actions/setup-python@v5\n      with:\n        python-version: ${{ matrix.python-version }}\n\n    - name: Install dependencies\n      run: |\n        python -m pip install --upgrade pip\n        pip install -r requirements.txt\n\n    - name: Run tests\n      run: pytest\n```\n\n**Reference:** See `assets/matrix-build.yml`\n\n## Workflow Best Practices\n\n1. **Use specific action versions** (@v4, not @latest)\n2. **Cache dependencies** to speed up builds\n3. **Use secrets** for sensitive data\n4. **Implement status checks** on PRs\n5. **Use matrix builds** for multi-version testing\n6. **Set appropriate permissions**\n7. **Use reusable workflows** for common patterns\n8. **Implement approval gates** for production\n9. **Add notification steps** for failures\n10. **Use self-hosted runners** for sensitive workloads\n\n## Reusable Workflows\n\n```yaml\n# .github/workflows/reusable-test.yml\nname: Reusable Test Workflow\n\non:\n  workflow_call:\n    inputs:\n      node-version:\n        required: true\n        type: string\n    secrets:\n      NPM_TOKEN:\n        required: true\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v4\n    - uses: actions/setup-node@v4\n      with:\n        node-version: ${{ inputs.node-version }}\n    - run: npm ci\n    - run: npm test\n```\n\n**Use reusable workflow:**\n```yaml\njobs:\n  call-test:\n    uses: ./.github/workflows/reusable-test.yml\n    with:\n      node-version: '20.x'\n    secrets:\n      NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n```\n\n## Security Scanning\n\n```yaml\nname: Security Scan\n\non:\n  push:\n    branches: [ main ]\n  pull_request:\n    branches: [ main ]\n\njobs:\n  security:\n    runs-on: ubuntu-latest\n\n    steps:\n    - uses: actions/checkout@v4\n\n    - name: Run Trivy vulnerability scanner\n      uses: aquasecurity/trivy-action@master\n      with:\n        scan-type: 'fs'\n        scan-ref: '.'\n        format: 'sarif'\n        output: 'trivy-results.sarif'\n\n    - name: Upload Trivy results to GitHub Security\n      uses: github/codeql-action/upload-sarif@v2\n      with:\n        sarif_file: 'trivy-results.sarif'\n\n    - name: Run Snyk Security Scan\n      uses: snyk/actions/node@master\n      env:\n        SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}\n```\n\n## Deployment with Approvals\n\n```yaml\nname: Deploy to Production\n\non:\n  push:\n    tags: [ 'v*' ]\n\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    environment:\n      name: production\n      url: https://app.example.com\n\n    steps:\n    - uses: actions/checkout@v4\n\n    - name: Deploy application\n      run: |\n        echo \"Deploying to production...\"\n        # Deployment commands here\n\n    - name: Notify Slack\n      if: success()\n      uses: slackapi/slack-github-action@v1\n      with:\n        webhook-url: ${{ secrets.SLACK_WEBHOOK }}\n        payload: |\n          {\n            \"text\": \"Deployment to production completed successfully!\"\n          }\n```\n\n## Reference Files\n\n- `assets/test-workflow.yml` - Testing workflow template\n- `assets/deploy-workflow.yml` - Deployment workflow template\n- `assets/matrix-build.yml` - Matrix build template\n- `references/common-workflows.md` - Common workflow patterns\n\n## Related Skills\n\n- `gitlab-ci-patterns` - For GitLab CI workflows\n- `deployment-pipeline-design` - For pipeline architecture\n- `secrets-management` - For secrets handling\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.","tags":["github","actions","templates","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding"],"capabilities":["skill","source-sickn33","skill-github-actions-templates","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/github-actions-templates","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 34768 github stars · SKILL.md body (7,704 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-23T18:51:22.888Z","embedding":null,"createdAt":"2026-04-18T21:37:57.682Z","updatedAt":"2026-04-23T18:51:22.888Z","lastSeenAt":"2026-04-23T18:51:22.888Z","tsv":"'/.github/workflows/reusable-test.yml':658 '/configure-aws-credentials':368 '/coverage/lcov.info':211 '1':132,530 '10':589 '18':160 '2':216,395,413,538 '20':162,663 '3':335,545 '3.10':485 '3.11':486 '3.12':487 '3.9':484 '4':452,551 '5':557 '6':566 '7':570 '8':577 '9':583 'access':373,377,383,387 'across':96 'action':3,9,19,25,46,73,89,367,533 'actions/checkout':166,254,358,490,632,694,770 'actions/setup-node':174,635 'actions/setup-python':497 'add':584 'app':448 'app.example.com':767 'appli':65,420 'applic':17,33,774 'appropri':568 'approv':579,745 'aquasecurity/trivy-action':702 'architectur':838 'ask':878 'assets/deploy-workflow.yml':333,810 'assets/matrix-build.yml':526,814 'assets/test-workflow.yml':214,806 'autom':104 'aw':362,366,372,381,390,400 'aws-access-key-id':371 'aws-act':365 'aws-region':389 'aws-secret-access-key':380 'best':67,528 'boundari':886 'branch':140,145,229,290,346,678,682 'build':14,30,108,124,217,224,240,305,454,458,464,544,560,816 'cach':182,320,325,539 'cache-from':319 'cache-to':324 'call':608,655 'call-test':654 'check':554 'ci':189,645,826,830 'clarif':880 'clarifi':59 'clear':853 'cluster':118,408 'codecov/codecov-action':207 'command':781 'common':128,575,819 'complet':802 'configur':361 'constraint':61 'contain':260 'content':248 'context':312 'continu':92 'coverag':205 'creat':85 'credenti':363 'criteria':889 'data':550 'depend':186,507,540 'deploy':16,32,95,107,115,336,341,349,415,436,445,743,748,756,773,777,780,799,811,833 'deployment-pipeline-design':832 'deployment/my-app':426 'describ':444,857 'design':835 'detail':78 'develop':142 'differ':51 'docker':109,220 'docker/build-push-action':309 'docker/login-action':263 'docker/metadata-action':279 'domain':52 'echo':776 'effici':86 'ek':401 'env':233,738 'env.image':284 'env.registry':267,283 'environ':127,763,869 'environment-specif':868 'event':289,293 'exampl':79 'expert':874 'extract':274 'f':421 'failur':588 'file':210,728,805 'format':712 'fs':708 'gate':580 'get':430,439 'gha':323,328 'ghcr.io':235 'github':2,8,18,24,45,88,721 'github-actions-templ':1 'github.actor':269 'github.repository':238 'github/codeql-action/upload-sarif':724 'github/workflows/reusable-test.yml':601 'gitlab':825,829 'gitlab-ci-pattern':824 'goal':60 'handl':844 'host':593 'id':276,375,379 'imag':110,221,236,282 'implement':122,552,578 'input':64,609,883 'inputs.node':641 'instal':185,506,512,516 'instruct':58 'integr':93 'job':147,239,348,463,622,653,684,755 'k8s':422 'key':374,378,384,388 'kubeconfig':398,404 'kubectl':419,423,429,438,443 'kubernet':117,338,343,417 'label':317 'latest':154,246,355,474,477,480,537,629,691,762 'limit':845 'lint':196 'linter':192 'log':257 'm':510 'maco':476 'macos-latest':475 'main':141,146,230,347,679,683 'major':302 'manag':841 'master':703,737 'match':854 'matrix':123,156,453,457,470,559,815 'matrix.node':171,180 'matrix.os':468 'matrix.python':503 'max':330 'meta':277 'metadata':275 'minor':303 'miss':891 'mode':329 'multi':563 'multi-vers':562 'multipl':126 'my-app':446 'n':427,432,441,449 'name':136,168,184,190,197,203,223,237,256,273,285,304,340,360,396,405,414,434,456,492,505,519,602,673,696,716,730,747,764,772,783 'need':49 'node':158,178,611,639,661 'node-vers':157,177,610,638,660 'node.js':170 'notif':585 'notifi':784 'npm':183,188,194,201,618,644,647,666 'open':82 'os':471 'outcom':71 'output':714,863 'outsid':55 'packag':250 'password':270 'pattern':11,27,130,131,215,297,301,334,451,576,821,827 'payload':797 'permiss':247,569,884 'pip':511,514,515 'pipelin':834,837 'pod':440 'pr':294 'practic':68,529 'product':6,22,407,428,433,442,450,582,750,765,779,801 'production-clust':406 'production-readi':5,21 'provid':72 'prs':556 'pull':143,461,680 'purpos':84 'push':112,139,219,226,228,307,313,345,460,677,752 'pytest':523 'python':482,495,501,509 'python-vers':481,500 'r':517 'read':249 'readi':7,23 'ref':288,292,711 'refer':212,331,524,804 'references/common-workflows.md':818 'region':391,409 'registri':114,234,261,266 'relat':822 'relev':66 'request':144,462,681 'requir':63,81,613,620,882 'requirements.txt':518 'resources/implementation-playbook.md':83 'result':719 'reusabl':572,598,603,650 'review':875 'rollout':424 'run':119,150,187,191,193,195,198,200,242,351,399,418,437,466,508,520,522,625,643,646,687,697,731,758,775 'runner':594 'runs-on':149,241,350,465,624,686,757 'safeti':885 'sarif':713,727 'scan':121,671,675,706,710,734 'scan-ref':709 'scan-typ':705 'scanner':700 'scope':57,856 'secret':382,386,547,617,665,840,843 'secrets-manag':839 'secrets.aws':376,385 'secrets.github':271 'secrets.npm':668 'secrets.slack':795 'secrets.snyk':741 'secur':87,120,670,674,685,722,733 'see':213,332,525 'self':592 'self-host':591 'semver':296,300 'sensit':549,596 'servic':431 'set':493,567 'skill':38,102,823,848 'skill-github-actions-templates' 'slack':785 'slackapi/slack-github-action':789 'snyk':732,739 'snyk/actions/node':736 'source-sickn33' 'specif':532,870 'speed':542 'stack':99 'status':425,553 'step':74,164,252,356,488,586,630,692,768 'steps.meta.outputs.labels':318 'steps.meta.outputs.tags':316 'stop':876 'strategi':155,469 'string':616 'substitut':866 'success':787,803,888 'tag':231,286,315,753 'task':41,852 'tech':98 'templat':4,20,47,809,813,817 'test':13,29,105,133,137,148,199,202,521,565,604,623,648,656,807,872 'text':798 'token':272,619,667,669,740,742 'tool':54 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'treat':861 'trivi':698,718 'trivy-results.sarif':715,729 'true':314,614,621 'type':287,291,295,299,322,327,615,707 'ubuntu':153,245,354,473,628,690,761 'ubuntu-latest':152,244,353,472,627,689,760 'unrel':43 'updat':397,403 'update-kubeconfig':402 'upgrad':513 'upload':204,717 'url':766,794 'us':393,411 'us-west':392,410 'use':36,100,165,169,173,206,253,262,278,308,357,364,489,496,531,546,558,571,590,631,634,649,657,693,701,723,735,769,788,846 'usernam':268 'v':232,754 'v1':790 'v2':725 'v3':208,264 'v4':167,175,255,359,369,491,535,633,636,695,771 'v5':280,310,498 'valid':70,871 'various':97 'verif':76 'verifi':435 'version':159,172,179,181,298,483,502,504,534,564,612,640,642,662 'vulner':699 'webhook':793,796 'webhook-url':792 'west':394,412 'window':479 'windows-latest':478 'workflow':10,26,90,129,134,527,573,599,605,607,651,808,812,820,831 'workload':597 'write':251 'x':161,163,664 'yaml':135,222,339,455,600,652,672,746","prices":[{"id":"63ceee04-d2c5-4664-a735-354b1639f4d6","listingId":"562402eb-41d8-47db-a725-826ba8814ef2","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T21:37:57.682Z"}],"sources":[{"listingId":"562402eb-41d8-47db-a725-826ba8814ef2","source":"github","sourceId":"sickn33/antigravity-awesome-skills/github-actions-templates","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/github-actions-templates","isPrimary":false,"firstSeenAt":"2026-04-18T21:37:57.682Z","lastSeenAt":"2026-04-23T18:51:22.888Z"}],"details":{"listingId":"562402eb-41d8-47db-a725-826ba8814ef2","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"github-actions-templates","github":{"repo":"sickn33/antigravity-awesome-skills","stars":34768,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-04-23T06:41:03Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"f693b6c1f657f25d224ab7d71527ad5cfa38fe87","skill_md_path":"skills/github-actions-templates/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/github-actions-templates"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"github-actions-templates","description":"Production-ready GitHub Actions workflow patterns for testing, building, and deploying applications."},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/github-actions-templates"},"updatedAt":"2026-04-23T18:51:22.888Z"}}