[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EN4KPW8GTHF7K4TSG0YNVP":3,"skill-same:01M7EN4KPW8GTHF7K4TSG0YNVP":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EN4KPW8GTHF7K4TSG0YNVP","github-actions-pro",null,"GitHub Actions guidance — workflow design, caching, matrices, OIDC, reusable workflows, and secure CI\u002FCD.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-github-actions-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: github-actions-pro\ndescription: GitHub Actions guidance — workflow design, caching, matrices, OIDC, reusable workflows, and secure CI\u002FCD.\ncategory: development\n---\n\n## Overview\n\nGitHub Actions turns repositories into CI\u002FCD platforms: YAML workflows triggered by git events run jobs on hosted or self-hosted runners, with a marketplace of reusable actions. It's the default CI for open source and a strong choice for private repos — especially where code, issues, and delivery already live on GitHub.\n\nThe failure modes are well known: slow workflows from missing caches, insecure patterns (unpinned actions, overly broad tokens, script injection), and YAML sprawl across dozens of repos. This skill covers designing fast, secure, maintainable Actions workflows.\n\n## When to use\n\n- Setting up CI\u002FCD for a GitHub repository.\n- Speeding up slow workflows (caching, matrices, parallelism).\n- Securing workflows (permissions, OIDC, secret handling, script injection).\n- Creating reusable workflows and composite actions.\n- Deploying from Actions (environments, approvals, OIDC to clouds).\n- Choosing hosted vs self-hosted runners.\n- Migrating from Jenkins\u002FCircleCI\u002FTravis to Actions.\n\n## Core concepts\n\n- **Events trigger workflows.** `push`, `pull_request`, `workflow_dispatch`, `schedule`, `release` — design triggers deliberately. `pull_request` from forks runs in a restricted context; `pull_request_target` is powerful and dangerous (it checks out attacker-controlled code with base-repo permissions — understand it before using).\n- **Jobs, steps, runners.** Jobs run in parallel on runners (unless `needs` chains them); steps run sequentially within a job. `runs-on` selects the runner; matrices multiply jobs across versions\u002Fplatforms.\n- **Least-privilege tokens.** `GITHUB_TOKEN` gets only the permissions the workflow needs — set `permissions:` explicitly at workflow or job level. The default broad token is a supply-chain risk.\n- **Pin actions.** Reference third-party actions by full commit SHA, not mutable tags — tags can be moved or compromised. Use Dependabot\u002FRenovate to keep SHAs updated.\n- **Script injection.** Never interpolate untrusted input (`github.event.pull_request.title`, issue bodies) into `run:` scripts — it's code execution. Use environment variables (which aren't evaluated) instead of inline `${{ }}` in scripts.\n- **Caching.** `actions\u002Fcache` (or built-in caches in setup actions) for dependencies and build outputs; key caches on lockfiles with restore-keys for partial hits. Cache poisoning from PRs: don't let untrusted PRs write to caches that privileged workflows read.\n- **Artifacts.** `upload-artifact`\u002F`download-artifact` pass build outputs between jobs; retention limits control storage costs. Artifacts are for CI handoff, not long-term storage.\n- **Environments.** Named environments (staging, production) with protection rules: required reviewers, wait timers, branch restrictions. Deployments get tracked with URLs and history.\n- **Reusable workflows.** `workflow_call` extracts common CI (lint\u002Ftest\u002Fbuild) into one repo called by many — the DRY mechanism for org-wide pipelines. Inputs\u002Fsecrets typed explicitly.\n- **Composite actions.** Bundle steps (not jobs) into reusable units for repeated step sequences within workflows.\n- **OIDC to clouds.** Federated credentials let Actions assume AWS\u002FGCP\u002FAzure roles without stored secrets — configure the trust policy once, no long-lived keys ever.\n- **Concurrency.** `concurrency` groups cancel superseded runs (PR pushes) — stops wasting minutes on obsolete commits. Essential for busy repos.\n- **Self-hosted runners.** For special hardware, private networks, or cost at scale — but they're persistent machines running untrusted code; isolate, ephemeral-ize, and never share with privileged workflows carelessly.\n- **Secrets management.** Org\u002Frepo\u002Fenvironment secret scopes; environment secrets for production credentials; audit secret access. Prefer OIDC over secrets wherever the cloud supports it.\n- **Dependabot for actions.** Keep pinned SHAs and action versions updated automatically — stale actions accumulate vulnerabilities.\n\n## Practical workflow\n\n1. **Start with triggers and permissions.** `on: pull_request` + `push` to main; top-level `permissions: contents: read`; elevate per job only where needed.\n   ```yaml\n   on:\n     pull_request:\n     push: { branches: [main] }\n   permissions: { contents: read }\n   concurrency:\n     group: ${{ github.workflow }}-${{ github.ref }}\n     cancel-in-progress: true\n   ```\n2. **Build the CI pipeline.** Jobs: lint → test (matrix across versions) → build. Cache dependencies keyed on lockfiles; fail fast on lint before burning test minutes.\n   ```yaml\n   jobs:\n     test:\n       runs-on: ubuntu-latest\n       strategy: { matrix: { node: [20, 22] }, fail-fast: false }\n       steps:\n         - uses: actions\u002Fcheckout@\u003Csha>\n         - uses: actions\u002Fsetup-node@\u003Csha>\n           with: { node-version: \"${{ matrix.node }}\", cache: npm }\n         - run: npm ci && npm test\n   ```\n3. **Pin everything.** Third-party actions by SHA; update via Dependabot. Your own reusable workflows by ref.\n4. **Separate build from deploy.** CI builds and publishes immutable artifacts\u002Fimages; CD workflows (triggered on release or main) deploy them through environment gates.\n5. **Gate production.** Environments with required reviewers and branch policies; deployments recorded with URLs; manual approval for production, automated for staging.\n6. **Use OIDC for cloud access.** Configure the cloud trust policy for the repo\u002Fenvironment; `aws-actions\u002Fconfigure-aws-credentials` (or GCP\u002FAzure equivalents) with `role-to-assume` — no stored keys.\n   ```yaml\n   permissions: { id-token: write, contents: read }\n   steps:\n     - uses: aws-actions\u002Fconfigure-aws-credentials@\u003Csha>\n       with: { role-to-assume: arn:aws:iam::123:role\u002Fdeployer, aws-region: us-east-1 }\n   ```\n7. **Extract reusable workflows.** Org-wide CI patterns in a `.github` repo or platform repo; `workflow_call` with typed inputs; version by tag\u002FSHA.\n8. **Monitor and optimize.** Workflow run times, queue times, cache hit rates, and minutes spend; self-hosted runner health if applicable; failed-run notifications routed to the owning team.\n\n## Common pitfalls\n\n- **Broad default permissions** — `GITHUB_TOKEN` with write access everywhere; set explicit minimal permissions.\n- **Unpinned actions** — `@v4` tags that can move; pin SHAs, update with Dependabot.\n- **Script injection** — `${{ github.event.* }}` interpolated into `run:` scripts; use env vars.\n- **`pull_request_target` misuse** — checking out PR code with privileged tokens; understand the trust boundary.\n- **No concurrency cancel** — every push running full CI; cancel superseded runs.\n- **Cache poisoning** — PRs writing caches consumed by privileged runs; scope caches per trust level.\n- **Long-lived cloud secrets** — static keys in repo secrets; OIDC federation instead.\n- **Secrets in logs** — echoing secrets or verbose output leaking them; mask and minimize.\n- **Self-hosted runners for public repos** — persistent machines executing fork PR code; use ephemeral, isolated runners.\n- **No environment protection** — production deploys without approvals; environments with reviewers.\n- **Minutes sprawl** — unoptimized matrices and missing caches; measure and trim.\n- **Artifacts as storage** — relying on artifact retention for releases; publish to a registry instead.\n- **Monolithic workflow files** — thousand-line YAML; split into reusable workflows and composite actions.\n","## Overview\n\nGitHub Actions turns repositories into CI\u002FCD platforms: YAML workflows triggered by git events run jobs on hosted or self-hosted runners, with a marketplace of reusable actions. It's the default CI for open source and a strong choice for private repos — especially where code, issues, and delivery already live on GitHub.\n\nThe failure modes are well known: slow workflows from missing caches, insecure patterns (unpinned actions, overly broad tokens, script injection), and YAML sprawl across dozens of repos. This skill covers designing fast, secure, maintainable Actions workflows.\n\n## When to use\n\n- Setting up CI\u002FCD for a GitHub repository.\n- Speeding up slow workflows (caching, matrices, parallelism).\n- Securing workflows (permissions, OIDC, secret handling, script injection).\n- Creating reusable workflows and composite actions.\n- Deploying from Actions (environments, approvals, OIDC to clouds).\n- Choosing hosted vs self-hosted runners.\n- Migrating from Jenkins\u002FCircleCI\u002FTravis to Actions.\n\n## Core concepts\n\n- **Events trigger workflows.** `push`, `pull_request`, `workflow_dispatch`, `schedule`, `release` — design triggers deliberately. `pull_request` from forks runs in a restricted context; `pull_request_target` is powerful and dangerous (it checks out attacker-controlled code with base-repo permissions — understand it before using).\n- **Jobs, steps, runners.** Jobs run in parallel on runners (unless `needs` chains them); steps run sequentially within a job. `runs-on` selects the runner; matrices multiply jobs across versions\u002Fplatforms.\n- **Least-privilege tokens.** `GITHUB_TOKEN` gets only the permissions the workflow needs — set `permissions:` explicitly at workflow or job level. The default broad token is a supply-chain risk.\n- **Pin actions.** Reference third-party actions by full commit SHA, not mutable tags — tags can be moved or compromised. Use Dependabot\u002FRenovate to keep SHAs updated.\n- **Script injection.** Never interpolate untrusted input (`github.event.pull_request.title`, issue bodies) into `run:` scripts — it's code execution. Use environment variables (which aren't evaluated) instead of inline `${{ }}` in scripts.\n- **Caching.** `actions\u002Fcache` (or built-in caches in setup actions) for dependencies and build outputs; key caches on lockfiles with restore-keys for partial hits. Cache poisoning from PRs: don't let untrusted PRs write to caches that privileged workflows read.\n- **Artifacts.** `upload-artifact`\u002F`download-artifact` pass build outputs between jobs; retention limits control storage costs. Artifacts are for CI handoff, not long-term storage.\n- **Environments.** Named environments (staging, production) with protection rules: required reviewers, wait timers, branch restrictions. Deployments get tracked with URLs and history.\n- **Reusable workflows.** `workflow_call` extracts common CI (lint\u002Ftest\u002Fbuild) into one repo called by many — the DRY mechanism for org-wide pipelines. Inputs\u002Fsecrets typed explicitly.\n- **Composite actions.** Bundle steps (not jobs) into reusable units for repeated step sequences within workflows.\n- **OIDC to clouds.** Federated credentials let Actions assume AWS\u002FGCP\u002FAzure roles without stored secrets — configure the trust policy once, no long-lived keys ever.\n- **Concurrency.** `concurrency` groups cancel superseded runs (PR pushes) — stops wasting minutes on obsolete commits. Essential for busy repos.\n- **Self-hosted runners.** For special hardware, private networks, or cost at scale — but they're persistent machines running untrusted code; isolate, ephemeral-ize, and never share with privileged workflows carelessly.\n- **Secrets management.** Org\u002Frepo\u002Fenvironment secret scopes; environment secrets for production credentials; audit secret access. Prefer OIDC over secrets wherever the cloud supports it.\n- **Dependabot for actions.** Keep pinned SHAs and action versions updated automatically — stale actions accumulate vulnerabilities.\n\n## Practical workflow\n\n1. **Start with triggers and permissions.** `on: pull_request` + `push` to main; top-level `permissions: contents: read`; elevate per job only where needed.\n   ```yaml\n   on:\n     pull_request:\n     push: { branches: [main] }\n   permissions: { contents: read }\n   concurrency:\n     group: ${{ github.workflow }}-${{ github.ref }}\n     cancel-in-progress: true\n   ```\n2. **Build the CI pipeline.** Jobs: lint → test (matrix across versions) → build. Cache dependencies keyed on lockfiles; fail fast on lint before burning test minutes.\n   ```yaml\n   jobs:\n     test:\n       runs-on: ubuntu-latest\n       strategy: { matrix: { node: [20, 22] }, fail-fast: false }\n       steps:\n         - uses: actions\u002Fcheckout@\u003Csha>\n         - uses: actions\u002Fsetup-node@\u003Csha>\n           with: { node-version: \"${{ matrix.node }}\", cache: npm }\n         - run: npm ci && npm test\n   ```\n3. **Pin everything.** Third-party actions by SHA; update via Dependabot. Your own reusable workflows by ref.\n4. **Separate build from deploy.** CI builds and publishes immutable artifacts\u002Fimages; CD workflows (triggered on release or main) deploy them through environment gates.\n5. **Gate production.** Environments with required reviewers and branch policies; deployments recorded with URLs; manual approval for production, automated for staging.\n6. **Use OIDC for cloud access.** Configure the cloud trust policy for the repo\u002Fenvironment; `aws-actions\u002Fconfigure-aws-credentials` (or GCP\u002FAzure equivalents) with `role-to-assume` — no stored keys.\n   ```yaml\n   permissions: { id-token: write, contents: read }\n   steps:\n     - uses: aws-actions\u002Fconfigure-aws-credentials@\u003Csha>\n       with: { role-to-assume: arn:aws:iam::123:role\u002Fdeployer, aws-region: us-east-1 }\n   ```\n7. **Extract reusable workflows.** Org-wide CI patterns in a `.github` repo or platform repo; `workflow_call` with typed inputs; version by tag\u002FSHA.\n8. **Monitor and optimize.** Workflow run times, queue times, cache hit rates, and minutes spend; self-hosted runner health if applicable; failed-run notifications routed to the owning team.\n\n## Common pitfalls\n\n- **Broad default permissions** — `GITHUB_TOKEN` with write access everywhere; set explicit minimal permissions.\n- **Unpinned actions** — `@v4` tags that can move; pin SHAs, update with Dependabot.\n- **Script injection** — `${{ github.event.* }}` interpolated into `run:` scripts; use env vars.\n- **`pull_request_target` misuse** — checking out PR code with privileged tokens; understand the trust boundary.\n- **No concurrency cancel** — every push running full CI; cancel superseded runs.\n- **Cache poisoning** — PRs writing caches consumed by privileged runs; scope caches per trust level.\n- **Long-lived cloud secrets** — static keys in repo secrets; OIDC federation instead.\n- **Secrets in logs** — echoing secrets or verbose output leaking them; mask and minimize.\n- **Self-hosted runners for public repos** — persistent machines executing fork PR code; use ephemeral, isolated runners.\n- **No environment protection** — production deploys without approvals; environments with reviewers.\n- **Minutes sprawl** — unoptimized matrices and missing caches; measure and trim.\n- **Artifacts as storage** — relying on artifact retention for releases; publish to a registry instead.\n- **Monolithic workflow files** — thousand-line YAML; split into reusable workflows and composite actions.\n",{"name":5,"category":24,"description":7},"development","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-github-actions-pro",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill github-actions-pro",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill github-actions-pro",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill github-actions-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-github-actions-pro\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]