[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ADM6BS44VG5FTZVBTX0J4H":3,"skill-same:01M7ADM6BS44VG5FTZVBTX0J4H":54},{"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":32,"commitSha":33,"skillDirectory":34,"forksCount":35,"repositoryHtmlUrl":36,"repositoryHomepageUrl":37,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M7ADM6BS44VG5FTZVBTX0J4H","github-actions",null,"Use when writing or reviewing .github\u002Fworkflows YAML files or debugging CI. GitHub Actions security and best practices - SHA-pinned actions, least-privilege permissions, script injection via PR context, pull_request_target dangers, secrets and OIDC, cache poisoning, matrix and artifacts.","Leostruka\u002Fdevin-bundle","Leostruka","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F81370685?v=4","01M7AD8MAK63VDNAWRDRRRW04N","leandro ostruka","01M7AD8MBS65YDS1KMMV7YPM07",0,"MIT","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fgithub-actions\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: github-actions\ndescription: Use when writing or reviewing .github\u002Fworkflows YAML files or debugging CI. GitHub Actions security and best practices - SHA-pinned actions, least-privilege permissions, script injection via PR context, pull_request_target dangers, secrets and OIDC, cache poisoning, matrix and artifacts.\ntriggers: [user, model]\nallowed-tools: [read, exec, grep, edit]\n---\n\n# GitHub Actions\n\nCI\u002FCD is the most common place to leak secrets and take supply-chain attacks: the YAML is code that runs with credentials. Editing `.github\u002Fworkflows\u002F` requires extra review.\n\n## Triggers and scope\n\n- `on: push`\u002F`pull_request`\u002F`workflow_dispatch`\u002F`schedule`\u002F`workflow_call` - the trigger defines who can run it and with what context.\n- `pull_request` from a fork runs WITHOUT secrets (safe-ish); `pull_request_target` runs with secrets + write token ON FORK CODE = the most dangerous trigger in Actions. Only with restricted `types:` + checkout of the base (never the head) + minimal permissions, or an `environment:` with manual review.\n- `workflow_run`\u002F`workflow_dispatch` with inputs: validate them (`type: choice` when possible).\n- `paths:`\u002F`branches:` filters so a README change does not run the whole CI.\n- `concurrency:` to cancel redundant runs (`cancel-in-progress: true` on PRs).\n\n## Permissions (the default is dangerous)\n\n- The default `GITHUB_TOKEN` has broad permissions. ALWAYS declare `permissions:` at top level or per job - `contents: read` is the floor; add only what is needed (`pull-requests: write`, `packages: write`).\n- Job needing no token: `permissions: {}`.\n- `secrets: inherit` in a reusable workflow leaks everything - pass secrets explicitly.\n\n## Script injection (the classic bug)\n\n- NEVER interpolate PR context into `run:`:\n  `run: echo \"${{ github.event.pull_request.title }}\"` - the title is attacker-controlled, `$(rm -rf ~)` executes.\n  Correct: env var (`env: TITLE: ${{ ... }}` + `echo \"$TITLE\"`) or `github-script` with the value as an argument.\n- Dangerous contexts: `github.event.issue.title`, `.body`, `pull_request.title`, `.head.ref`, `commits.*.message`, `github.head_ref`. Anything an external user controls does NOT go inline into `run:`.\n- Same rule for `env:`\u002F`with:` interpolated directly into `script:` of `actions\u002Fgithub-script`.\n\n## Third-party actions (supply chain)\n\n- Pin by commit SHA, not by tag: `uses: actions\u002Fcheckout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2`. Tags are mutable - the owner can re-point them to malicious code (has happened to popular actions).\n- Trust only official orgs (`actions\u002F*`, `github\u002F*`) or audited vendors; an obscure 3-star action running with your token is risk.\n- `allowed-actions` at repo\u002Forg level restricts what runs.\n- Dependabot for actions updates SHAs (`.github\u002Fdependabot.yml` with `package-ecosystem: github-actions`).\n\n## Secrets and OIDC\n\n- Secrets via `${{ secrets.X }}` - never `echo` (goes to the log); the runner masks, but formatting breaks masking.\n- OIDC (`id-token: write` + aws\u002Fazure\u002Fgcp role) replaces long-lived cloud keys - preferable to static secrets.\n- `environment:` with required reviewers for deploy\u002Fprod jobs.\n- Secrets into a `run:` step indirectly via env (`env: KEY: ${{ secrets.KEY }}`), never inline in the command (the log shows the command, not the env).\n- `ACTIONS_STEP_DEBUG` logs more - do not enable on public repos with secrets.\n\n## Cache and artifacts\n\n- `actions\u002Fcache` keyed by lockfile (`hashFiles('**\u002Fpackage-lock.json')`) + `restore-keys` fallback.\n- Cache poisoning: can a fork `pull_request` write to the shared cache? No - PR cache is isolated from the base branch (but `pull_request_target` is not). Know the difference.\n- Downloading artifacts from another workflow run (`dawidd6\u002Faction-download-artifact`) is a surface - untrusted PR artifacts must not go straight into a release.\n- Shorter `retention-days` for artifacts holding sensitive data.\n\n## Jobs and matrix\n\n- `strategy.matrix` for multi-version\u002Fos; `fail-fast: false` when you want all results.\n- `timeout-minutes` on every job (default 6h = runaway runner bill).\n- `if:` with explicit `success()`\u002F`failure()`\u002F`always()` - default is \"only if previous passed\".\n- `outputs` between jobs via `needs` - never pass secrets through outputs (goes to metadata log).\n- `services:` (postgres\u002Fredis) for real integration tests instead of mocks.\n- `runs-on: ubuntu-latest` ok; self-hosted runner on a public repo = anyone who opens a PR runs code on your machine - NEVER.\n\n## Reusable workflows and composite actions\n\n- `workflow_call` with declared `inputs`\u002F`secrets`; caller passes explicitly (not `secrets: inherit`).\n- Composite action (`action.yml`) for repeated steps; same injection care in `run:`.\n\n## Common review findings\n\n- `pull_request_target` without restriction\u002Fprotected environment.\n- `${{ github.event.* }}` inside `run:` (injection).\n- Missing `permissions:` (full-access token).\n- Floating-tag action (`@v4`, `@main`) instead of SHA.\n- `secrets: inherit` in reusable workflows.\n- Secret echoed\u002Fprinted or passed inline in a command.\n- Self-hosted runner on a public repo.\n- `continue-on-error` hiding real failure in a required check.\n- Checkout of `github.event.pull_request.head.sha` under `pull_request_target` (runs fork code with secrets).\n- CI edited without the task requiring it (change in workflow needs justification in the report).\n\n## Cascade\n\n- Secrets in repo\u002FCI: `security` skill.\n- Pinned versions of actions\u002Fdeps: repository pinning rules (versions >7 days published).\n- CI files are a protected zone: justify edits in the change report.\n- Red CI triage and flow selection: `git-github-adaptive-engineering` orchestrates (flow 5, CI self-healing); this skill owns the workflow YAML rules.\n","# GitHub Actions\n\nCI\u002FCD is the most common place to leak secrets and take supply-chain attacks: the YAML is code that runs with credentials. Editing `.github\u002Fworkflows\u002F` requires extra review.\n\n## Triggers and scope\n\n- `on: push`\u002F`pull_request`\u002F`workflow_dispatch`\u002F`schedule`\u002F`workflow_call` - the trigger defines who can run it and with what context.\n- `pull_request` from a fork runs WITHOUT secrets (safe-ish); `pull_request_target` runs with secrets + write token ON FORK CODE = the most dangerous trigger in Actions. Only with restricted `types:` + checkout of the base (never the head) + minimal permissions, or an `environment:` with manual review.\n- `workflow_run`\u002F`workflow_dispatch` with inputs: validate them (`type: choice` when possible).\n- `paths:`\u002F`branches:` filters so a README change does not run the whole CI.\n- `concurrency:` to cancel redundant runs (`cancel-in-progress: true` on PRs).\n\n## Permissions (the default is dangerous)\n\n- The default `GITHUB_TOKEN` has broad permissions. ALWAYS declare `permissions:` at top level or per job - `contents: read` is the floor; add only what is needed (`pull-requests: write`, `packages: write`).\n- Job needing no token: `permissions: {}`.\n- `secrets: inherit` in a reusable workflow leaks everything - pass secrets explicitly.\n\n## Script injection (the classic bug)\n\n- NEVER interpolate PR context into `run:`:\n  `run: echo \"${{ github.event.pull_request.title }}\"` - the title is attacker-controlled, `$(rm -rf ~)` executes.\n  Correct: env var (`env: TITLE: ${{ ... }}` + `echo \"$TITLE\"`) or `github-script` with the value as an argument.\n- Dangerous contexts: `github.event.issue.title`, `.body`, `pull_request.title`, `.head.ref`, `commits.*.message`, `github.head_ref`. Anything an external user controls does NOT go inline into `run:`.\n- Same rule for `env:`\u002F`with:` interpolated directly into `script:` of `actions\u002Fgithub-script`.\n\n## Third-party actions (supply chain)\n\n- Pin by commit SHA, not by tag: `uses: actions\u002Fcheckout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2`. Tags are mutable - the owner can re-point them to malicious code (has happened to popular actions).\n- Trust only official orgs (`actions\u002F*`, `github\u002F*`) or audited vendors; an obscure 3-star action running with your token is risk.\n- `allowed-actions` at repo\u002Forg level restricts what runs.\n- Dependabot for actions updates SHAs (`.github\u002Fdependabot.yml` with `package-ecosystem: github-actions`).\n\n## Secrets and OIDC\n\n- Secrets via `${{ secrets.X }}` - never `echo` (goes to the log); the runner masks, but formatting breaks masking.\n- OIDC (`id-token: write` + aws\u002Fazure\u002Fgcp role) replaces long-lived cloud keys - preferable to static secrets.\n- `environment:` with required reviewers for deploy\u002Fprod jobs.\n- Secrets into a `run:` step indirectly via env (`env: KEY: ${{ secrets.KEY }}`), never inline in the command (the log shows the command, not the env).\n- `ACTIONS_STEP_DEBUG` logs more - do not enable on public repos with secrets.\n\n## Cache and artifacts\n\n- `actions\u002Fcache` keyed by lockfile (`hashFiles('**\u002Fpackage-lock.json')`) + `restore-keys` fallback.\n- Cache poisoning: can a fork `pull_request` write to the shared cache? No - PR cache is isolated from the base branch (but `pull_request_target` is not). Know the difference.\n- Downloading artifacts from another workflow run (`dawidd6\u002Faction-download-artifact`) is a surface - untrusted PR artifacts must not go straight into a release.\n- Shorter `retention-days` for artifacts holding sensitive data.\n\n## Jobs and matrix\n\n- `strategy.matrix` for multi-version\u002Fos; `fail-fast: false` when you want all results.\n- `timeout-minutes` on every job (default 6h = runaway runner bill).\n- `if:` with explicit `success()`\u002F`failure()`\u002F`always()` - default is \"only if previous passed\".\n- `outputs` between jobs via `needs` - never pass secrets through outputs (goes to metadata log).\n- `services:` (postgres\u002Fredis) for real integration tests instead of mocks.\n- `runs-on: ubuntu-latest` ok; self-hosted runner on a public repo = anyone who opens a PR runs code on your machine - NEVER.\n\n## Reusable workflows and composite actions\n\n- `workflow_call` with declared `inputs`\u002F`secrets`; caller passes explicitly (not `secrets: inherit`).\n- Composite action (`action.yml`) for repeated steps; same injection care in `run:`.\n\n## Common review findings\n\n- `pull_request_target` without restriction\u002Fprotected environment.\n- `${{ github.event.* }}` inside `run:` (injection).\n- Missing `permissions:` (full-access token).\n- Floating-tag action (`@v4`, `@main`) instead of SHA.\n- `secrets: inherit` in reusable workflows.\n- Secret echoed\u002Fprinted or passed inline in a command.\n- Self-hosted runner on a public repo.\n- `continue-on-error` hiding real failure in a required check.\n- Checkout of `github.event.pull_request.head.sha` under `pull_request_target` (runs fork code with secrets).\n- CI edited without the task requiring it (change in workflow needs justification in the report).\n\n## Cascade\n\n- Secrets in repo\u002FCI: `security` skill.\n- Pinned versions of actions\u002Fdeps: repository pinning rules (versions >7 days published).\n- CI files are a protected zone: justify edits in the change report.\n- Red CI triage and flow selection: `git-github-adaptive-engineering` orchestrates (flow 5, CI self-healing); this skill owns the workflow YAML rules.\n",{"name":5,"triggers":24,"description":7,"allowed-tools":27},[25,26],"user","model",[28,29,30,31],"read","exec","grep","edit","main","0032dd465157e15d3ddd16afb75f4fe2dc1a356c","skills\u002Fgithub-actions",1,"https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle","https:\u002F\u002Fleostruka.github.io\u002Fdevin-bundle\u002F","https:\u002F\u002Fgithub.com\u002FLeostruka","2026-11-15 05:19:58",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add Leostruka\u002Fdevin-bundle --skill github-actions",{"tool":46,"command":47},"bunx","bunx skills add Leostruka\u002Fdevin-bundle --skill github-actions",{"tool":49,"command":50},"pnpm","pnpm dlx skills add Leostruka\u002Fdevin-bundle --skill github-actions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fgithub-actions\u002FSKILL.md",true,[],[55,62,69,76,83,90],{"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":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7E0K3MG2XC4FSRV0MK6SFR1","montador-de-ideias","Use when assembling, expanding, or elevating a raw project idea or initial prompt into an ultra-detailed, first-principles dossier and compiled master prompt with journalistic OSINT market research, Tech Lead and Staff Architect justifications, atomic and modular hardening\u002Foptimization, and high-impact contact surfaces.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fmontador-de-ideias\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7E0J7JJWZ8QMK01RZ3B3C9Z","git-github-adaptive-engineering","Use when any task touches git history, GitHub issues\u002FPRs\u002Freleases\u002FCI, repo governance, or branch and merge decisions. Runs the Fase Zero situational-awareness battery, picks one of five delivery flows via the adaptive decision engine, and enforces commit\u002FPR information-density standards. Orchestrates the gh, git-workflows, github-actions, pr, and debug\u002Ffinish skills.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fgit-github-adaptive-engineering\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7E0GJFRPFEVQQMXEM58EWDM","adaptive-agenda-calendar-routine-engine","Use when planning or executing work across hours, days, weeks, or sprints. Turns the calendar into a strict time-blocked agenda (HH:MM-HH:MM blocks carrying a routine profile, expected inputs, and a handoff output artifact), runs the 5-stage cognitive flow (Radar and Hunt -> Triage plus Steve Jobs conception -> workbench manifest -> >=32-cycle loop -> Close plus Open-Minded Scrum), and unfolds macro calendar milestones into micro agenda blocks through extensions\u002Fgcal\u002Fwrapper.py.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Fskills\u002Fadaptive-agenda-calendar-routine-engine\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7AE2K9FTY0BVS48N0A9JFKF","demo","Use when demonstrating a skill in a fixture project.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7AE2G3DP38PTV3B1N7MW5TS","duplicate-skill","Use when testing duplicate skill name detection.","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Fbeta\u002FSKILL.md",[],[],{"skillNo":91,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7AE2DBR8ZHT6T875MJ392GK","https:\u002F\u002Fgithub.com\u002FLeostruka\u002Fdevin-bundle\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdevin-config\u002Fproject\u002F.devin\u002Fskills\u002Falpha\u002FSKILL.md",[],[]]