[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72WNP17B4F4V5ZTXRY4HV4D":3,"skill-same:01M72WNP17B4F4V5ZTXRY4HV4D":134},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":41,"ownerDescription":43,"updatedAt":44,"install":45,"resources":57},"01M72WNP17B4F4V5ZTXRY4HV4D","gitlab-ci",null,"Authors, reviews, hardens and debugs GitLab CI\u002FCD pipelines, and checks them with bundled scripts for server-side validation, image pinning, secret exposure and legacy only\u002Fexcept keys. Use when reading or writing `.gitlab-ci.yml`, `rules:` or `workflow:rules`, `include:` or CI\u002FCD Components, `id_tokens`, a runner or `glab ci lint`, when a pipeline runs twice or a job stays pending, or when migrating a pipeline from GitHub Actions, Jenkins or CircleCI to GitLab. Not for GitHub Actions workflows, Jenkins or other CI systems except as the source of a migration to GitLab, generic YAML such as Kubernetes manifests or compose files, security or threat-model reviews (security), or merge request descriptions and logbook entries (pr-logbook).","crewrig\u002Fcrewrig","crewrig","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F283580446?v=4","01M72WDBD9H0YW5JBHNZ0TEVWB","01M72WDBEBNRBAS94AXRPEVYNK",24,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: gitlab-ci\ndescription: 'Authors, reviews, hardens and debugs GitLab CI\u002FCD pipelines, and checks them with bundled scripts for server-side validation, image pinning, secret exposure and legacy only\u002Fexcept keys. Use when reading or writing `.gitlab-ci.yml`, `rules:` or `workflow:rules`, `include:` or CI\u002FCD Components, `id_tokens`, a runner or `glab ci lint`, when a pipeline runs twice or a job stays pending, or when migrating a pipeline from GitHub Actions, Jenkins or CircleCI to GitLab. Not for GitHub Actions workflows, Jenkins or other CI systems except as the source of a migration to GitLab, generic YAML such as Kubernetes manifests or compose files, security or threat-model reviews (security), or merge request descriptions and logbook entries (pr-logbook).'\ntype: skill\nlicense: Apache-2.0\ncompatibility: \"Requires Node.js 24 (scripts run as node scripts\u002F\u003Cname>.ts). glab is optional: only lint-gitlab-ci.ts needs it, and it reports exit 3 without it.\"\nmetadata:\n  provenance:\n    canonical: \"${CANONICAL_REPO}\"\n    feedback: \"${CANONICAL_REPO}\"\n    version: \"1.3.0\"\nclaude:\n  allowed-tools:\n    - Read\n    - Bash\n    - Write\n    - Edit\n  user-invocable: true\n---\n\n# GitLab CI\u002FCD\n\nWork on a `.gitlab-ci.yml` the way a reviewer who has seen the usual failures would: run the checks below before presenting a pipeline, and give each retained rule its reason when you explain a change. Syntax tables live in the references; this file holds what is easy to get wrong.\n\n## Scripts\n\nRun `node scripts\u002F\u003Cname>.ts` from the skill directory, or give its full path from elsewhere. The three offline scripts read only the target you give them, a file or a directory (a directory means `\u003Cdir>\u002F.gitlab-ci.yml` plus the YAML under `\u003Cdir>\u002F.gitlab\u002F`). `lint-gitlab-ci.ts` takes one file and queries GitLab.\n\n| When | Command | Exit `1` means |\n|---|---|---|\n| After writing or changing a pipeline, to ask GitLab itself whether it is valid | `node scripts\u002Flint-gitlab-ci.ts .gitlab-ci.yml` (add `--repo \u003Cgroup\u002Fproject>` when the working copy is not a GitLab checkout, `--timeout \u003Cseconds>` to change the 30 s bound) | GitLab reports the configuration invalid; each finding is one error line. |\n| Reviewing, authoring or migrating any pipeline | `node scripts\u002Fcheck-rules.ts \u003Cfile-or-dir>` | A job still carries `only:` or `except:`, or jobs exist with no top-level `workflow:rules`. |\n| Reviewing or authoring any pipeline | `node scripts\u002Fcheck-pinned-images.ts \u003Cfile-or-dir>` (add `--json` for a structured result) | An `image:` or `services:` reference is not pinned to an `@sha256:` digest, or the target does not exist. |\n| Reviewing or authoring any pipeline | `node scripts\u002Fcheck-secrets-exposure.ts \u003Cfile-or-dir>` | A credential literal, a printed secret, `set -x` or `CI_DEBUG_TRACE`; also a target that does not exist. |\n\nTwo exit-code contracts coexist. `lint-gitlab-ci.ts` and `check-rules.ts` follow the full one, with `--json` giving `{ok, data, findings}`: `0` ok, `1` finding, `2` usage error, `3` the check could not run. The two older scripts keep their legacy codes, which existing callers rely on: `0` clean or nothing to scan, `1` a finding or a missing target, `2` usage error. They have no exit `3`, and only `check-pinned-images.ts` has `--json`.\n\n`lint-gitlab-ci.ts` is a read-only server-side query: it runs `glab ci lint` against GitLab, with a timeout, and writes nothing. Without `--repo`, glab fails before linting when the directory is not a GitLab checkout, and the script then exits `3` and says so, so pass `--repo` whenever you work outside a checkout. When it exits `3` the pipeline was not validated server-side, whatever the reason (no glab, no login, no network, a timeout). Run the three offline scripts instead, and tell the user plainly that the server-side validation did not happen. Never describe a pipeline as valid on the strength of an exit `3`.\n\nNo script simulates or executes a pipeline; `glab ci lint` checks configuration only.\n\n## Rules whose reason is not obvious\n\n- **A pipeline without `workflow:rules` runs twice** when a branch has an open merge request: once as a branch pipeline, once as a merge request pipeline. Add the guard from the skeleton below.\n- **`only:`\u002F`except:` cannot share a job with `rules:`**, and GitLab rejects the job. Migrate each job fully, not partly. `check-rules.ts` finds the legacy keys.\n- **Pin every image, and check what you wrote.** A tag can be re-pointed in the registry under an unchanged pipeline, and a major tag such as `node:22` moves with every release. When you author a new pipeline, or the user asks you to harden one, give each `image:` and `services:` entry at least an exact version tag, patch version included (for example `node:22.11.0-alpine3.20`), never `latest` or a major-only tag. A digest (`@sha256:` plus 64 hex characters) is the strongest pin and the only form `check-pinned-images.ts` accepts, so it still reports a tag. Run it on the file you wrote before answering, replace any reference you can resolve with its digest, and list the remaining findings for the user as tags still to be digest-pinned. Keep the readable tag in a comment next to a digest. When you diagnose or fix an existing pipeline, change only what the fix needs and report unpinned images as a finding instead of editing them, because unrequested edits hide the fix.\n- **Masking is narrow.** A masked variable must be at least 8 characters on one line from a restricted character set, or it logs in the clear. It is a substring replacement in the job log only, so a split, decoded or re-encoded value escapes it, and it does nothing against a job that sends the value elsewhere.\n- **Trace options defeat masking.** `CI_DEBUG_TRACE` and `set -x` print every expanded variable, masked ones included, so keep them out of any job that sees a credential.\n- **Protect deploy credentials as well as masking them.** A protected variable reaches only pipelines on protected branches and tags, so a feature branch cannot read it.\n- **Bind a secret to the job or environment that needs it.** A global `variables:` entry is inherited by every job, including ones that run untrusted code.\n- **Prefer `id_tokens:` to a stored cloud key.** The token is short-lived and scoped by claims, so there is nothing to rotate or leak. Keep a long-lived key only when the provider has no OIDC for that resource, and state why.\n- **A cache path must sit under `$CI_PROJECT_DIR`.** GitLab archives nothing outside it, so a `GOPATH` or pip cache in `$HOME` is silently never cached. Key the cache on the lockfile, not the manifest.\n- **A job whose `tags:` match no runner stays pending** with no error, which is the usual cause of a stuck job.\n- **Certificates and kubeconfigs go in `file`-type variables.** Echoing a plain variable into a file defeats masking.\n- **Fork merge request pipelines must not reach protected variables or protected runners.** A fork branch is not a protected ref. Relaxing that, or registering an unprotected shared or privileged runner, lets fork code run on your infrastructure. If a fork must run privileged work, gate it behind a maintainer-approved job in a protected environment.\n- **Pin remote includes and components.** `include:remote`, a branch ref and `~latest` can change under an unchanged pipeline. Pin a tag or commit SHA and prefer first-party sources.\n- **Scope the `CI_JOB_TOKEN` allowlist.** Older projects may still carry the open default, which lets a compromised job in a low-value project reach a high-value one. List only the projects that need access.\n- **Serialize deploys with `resource_group:` and set `interruptible: false` on them.** Otherwise two pipelines can deploy to one target at once, and a newer pipeline can cancel a rollout half done. Put production behind a protected environment with required approvals.\n- **State the reason of any deviation** from these rules in the change, so the next reviewer can judge it.\n\n## Recipes\n\nThe secure skeleton, with the guard against double pipelines:\n\n```yaml\ndefault:\n  image: node@sha256:\u003Cdigest>  # node:22.11.0-alpine3.20\n\nstages: [test]\n\nworkflow:\n  rules:\n    - if: '$CI_PIPELINE_SOURCE == \"merge_request_event\"'\n    - if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'\n      when: never\n    - if: '$CI_COMMIT_BRANCH'\n\nunit-test:\n  stage: test\n  interruptible: true\n  cache:\n    key:\n      files: [package-lock.json]\n    paths: [.npm\u002F]\n  script:\n    - npm ci --cache .npm --prefer-offline\n    - npm test\n```\n\nDeploy to AWS through OIDC, with no stored key:\n\n```yaml\ndeploy:\n  stage: deploy\n  image: registry.example.com\u002Faws-cli@sha256:\u003Cdigest>\n  environment:\n    name: production\n  resource_group: production\n  interruptible: false\n  id_tokens:\n    AWS_ID_TOKEN:\n      aud: https:\u002F\u002Fgitlab.example.com\n  rules:\n    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'\n  script:\n    - >\n      aws sts assume-role-with-web-identity\n      --role-arn \"$AWS_ROLE_ARN\"\n      --role-session-name \"ci-$CI_PIPELINE_ID\"\n      --web-identity-token \"$AWS_ID_TOKEN\"\n    - .\u002Fscripts\u002Fdeploy.sh\n```\n\nAn untrusted merge request title, bound to a variable so the shell never re-evaluates it:\n\n```yaml\ncomment:\n  variables:\n    MR_TITLE: $CI_MERGE_REQUEST_TITLE\n  script:\n    - printf 'Title: %s\\n' \"$MR_TITLE\"\n```\n\n## Hand-offs\n\nHand over to the `security` skill when a change introduces a new secret, widens the `CI_JOB_TOKEN` allowlist, adds an `id_tokens:` trust relationship to a cloud provider, relaxes protected-branch or protected-variable gating, or runs untrusted input (a merge request title, branch name or commit message) inside `script:`. Hand over to the `architect` skill when the change restructures pipeline topology, such as parent-child pipelines or shared CI\u002FCD Components used across many projects.\n\n## References\n\nRead the one that matches the task before producing non-trivial output.\n\n| File | Covers |\n|---|---|\n| [pipeline-syntax.md](references\u002Fpipeline-syntax.md) | The grammar of `stages:`, jobs, `script:`, `needs:`, `rules:`, `extends:`, `!reference`, `parallel:matrix`, `environment:`, `default:`, with an example per key. |\n| [rules-and-triggers.md](references\u002Frules-and-triggers.md) | The `rules:` model, `workflow:rules:`, legacy `only\u002Fexcept`, parent-child and multi-project `trigger:`, the predefined-variable and operator tables, and pipeline types. |\n| [runners-and-executors.md](references\u002Frunners-and-executors.md) | Instance, group and project runners, `tags:` selection, the shell, docker and kubernetes executors, autoscaling, `image:`\u002F`services:` and `config.toml`. |\n| [caching-and-artifacts.md](references\u002Fcaching-and-artifacts.md) | `cache:key\u002Fpaths\u002Fpolicy\u002Fwhen`, `artifacts:paths\u002Freports\u002Fexpire_in`, `dependencies:`, the distributed cache and language recipes. |\n| [variables-and-secrets.md](references\u002Fvariables-and-secrets.md) | Variable sources and precedence, `file`, masked and protected variables, `secrets:` with Vault, Azure and GCP, `id_tokens:` for AWS, GCP and Azure, and exfiltration anti-patterns. |\n| [security-and-permissions.md](references\u002Fsecurity-and-permissions.md) | `CI_JOB_TOKEN` and its allowlist, member roles, protected branches, tags and environments, fork trust and least-privilege recipes. |\n| [includes-and-components.md](references\u002Fincludes-and-components.md) | `include:` forms, CI\u002FCD Components and the catalog, `spec:inputs:`, `extends:`, `!reference`, `trigger:include`, nesting limits and versioning. |\n\n## Friction\n\nSee `references\u002Fshared-friction-reporting.md`.\n","# GitLab CI\u002FCD\n\nWork on a `.gitlab-ci.yml` the way a reviewer who has seen the usual failures would: run the checks below before presenting a pipeline, and give each retained rule its reason when you explain a change. Syntax tables live in the references; this file holds what is easy to get wrong.\n\n## Scripts\n\nRun `node scripts\u002F\u003Cname>.ts` from the skill directory, or give its full path from elsewhere. The three offline scripts read only the target you give them, a file or a directory (a directory means `\u003Cdir>\u002F.gitlab-ci.yml` plus the YAML under `\u003Cdir>\u002F.gitlab\u002F`). `lint-gitlab-ci.ts` takes one file and queries GitLab.\n\n| When | Command | Exit `1` means |\n|---|---|---|\n| After writing or changing a pipeline, to ask GitLab itself whether it is valid | `node scripts\u002Flint-gitlab-ci.ts .gitlab-ci.yml` (add `--repo \u003Cgroup\u002Fproject>` when the working copy is not a GitLab checkout, `--timeout \u003Cseconds>` to change the 30 s bound) | GitLab reports the configuration invalid; each finding is one error line. |\n| Reviewing, authoring or migrating any pipeline | `node scripts\u002Fcheck-rules.ts \u003Cfile-or-dir>` | A job still carries `only:` or `except:`, or jobs exist with no top-level `workflow:rules`. |\n| Reviewing or authoring any pipeline | `node scripts\u002Fcheck-pinned-images.ts \u003Cfile-or-dir>` (add `--json` for a structured result) | An `image:` or `services:` reference is not pinned to an `@sha256:` digest, or the target does not exist. |\n| Reviewing or authoring any pipeline | `node scripts\u002Fcheck-secrets-exposure.ts \u003Cfile-or-dir>` | A credential literal, a printed secret, `set -x` or `CI_DEBUG_TRACE`; also a target that does not exist. |\n\nTwo exit-code contracts coexist. `lint-gitlab-ci.ts` and `check-rules.ts` follow the full one, with `--json` giving `{ok, data, findings}`: `0` ok, `1` finding, `2` usage error, `3` the check could not run. The two older scripts keep their legacy codes, which existing callers rely on: `0` clean or nothing to scan, `1` a finding or a missing target, `2` usage error. They have no exit `3`, and only `check-pinned-images.ts` has `--json`.\n\n`lint-gitlab-ci.ts` is a read-only server-side query: it runs `glab ci lint` against GitLab, with a timeout, and writes nothing. Without `--repo`, glab fails before linting when the directory is not a GitLab checkout, and the script then exits `3` and says so, so pass `--repo` whenever you work outside a checkout. When it exits `3` the pipeline was not validated server-side, whatever the reason (no glab, no login, no network, a timeout). Run the three offline scripts instead, and tell the user plainly that the server-side validation did not happen. Never describe a pipeline as valid on the strength of an exit `3`.\n\nNo script simulates or executes a pipeline; `glab ci lint` checks configuration only.\n\n## Rules whose reason is not obvious\n\n- **A pipeline without `workflow:rules` runs twice** when a branch has an open merge request: once as a branch pipeline, once as a merge request pipeline. Add the guard from the skeleton below.\n- **`only:`\u002F`except:` cannot share a job with `rules:`**, and GitLab rejects the job. Migrate each job fully, not partly. `check-rules.ts` finds the legacy keys.\n- **Pin every image, and check what you wrote.** A tag can be re-pointed in the registry under an unchanged pipeline, and a major tag such as `node:22` moves with every release. When you author a new pipeline, or the user asks you to harden one, give each `image:` and `services:` entry at least an exact version tag, patch version included (for example `node:22.11.0-alpine3.20`), never `latest` or a major-only tag. A digest (`@sha256:` plus 64 hex characters) is the strongest pin and the only form `check-pinned-images.ts` accepts, so it still reports a tag. Run it on the file you wrote before answering, replace any reference you can resolve with its digest, and list the remaining findings for the user as tags still to be digest-pinned. Keep the readable tag in a comment next to a digest. When you diagnose or fix an existing pipeline, change only what the fix needs and report unpinned images as a finding instead of editing them, because unrequested edits hide the fix.\n- **Masking is narrow.** A masked variable must be at least 8 characters on one line from a restricted character set, or it logs in the clear. It is a substring replacement in the job log only, so a split, decoded or re-encoded value escapes it, and it does nothing against a job that sends the value elsewhere.\n- **Trace options defeat masking.** `CI_DEBUG_TRACE` and `set -x` print every expanded variable, masked ones included, so keep them out of any job that sees a credential.\n- **Protect deploy credentials as well as masking them.** A protected variable reaches only pipelines on protected branches and tags, so a feature branch cannot read it.\n- **Bind a secret to the job or environment that needs it.** A global `variables:` entry is inherited by every job, including ones that run untrusted code.\n- **Prefer `id_tokens:` to a stored cloud key.** The token is short-lived and scoped by claims, so there is nothing to rotate or leak. Keep a long-lived key only when the provider has no OIDC for that resource, and state why.\n- **A cache path must sit under `$CI_PROJECT_DIR`.** GitLab archives nothing outside it, so a `GOPATH` or pip cache in `$HOME` is silently never cached. Key the cache on the lockfile, not the manifest.\n- **A job whose `tags:` match no runner stays pending** with no error, which is the usual cause of a stuck job.\n- **Certificates and kubeconfigs go in `file`-type variables.** Echoing a plain variable into a file defeats masking.\n- **Fork merge request pipelines must not reach protected variables or protected runners.** A fork branch is not a protected ref. Relaxing that, or registering an unprotected shared or privileged runner, lets fork code run on your infrastructure. If a fork must run privileged work, gate it behind a maintainer-approved job in a protected environment.\n- **Pin remote includes and components.** `include:remote`, a branch ref and `~latest` can change under an unchanged pipeline. Pin a tag or commit SHA and prefer first-party sources.\n- **Scope the `CI_JOB_TOKEN` allowlist.** Older projects may still carry the open default, which lets a compromised job in a low-value project reach a high-value one. List only the projects that need access.\n- **Serialize deploys with `resource_group:` and set `interruptible: false` on them.** Otherwise two pipelines can deploy to one target at once, and a newer pipeline can cancel a rollout half done. Put production behind a protected environment with required approvals.\n- **State the reason of any deviation** from these rules in the change, so the next reviewer can judge it.\n\n## Recipes\n\nThe secure skeleton, with the guard against double pipelines:\n\n```yaml\ndefault:\n  image: node@sha256:\u003Cdigest>  # node:22.11.0-alpine3.20\n\nstages: [test]\n\nworkflow:\n  rules:\n    - if: '$CI_PIPELINE_SOURCE == \"merge_request_event\"'\n    - if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'\n      when: never\n    - if: '$CI_COMMIT_BRANCH'\n\nunit-test:\n  stage: test\n  interruptible: true\n  cache:\n    key:\n      files: [package-lock.json]\n    paths: [.npm\u002F]\n  script:\n    - npm ci --cache .npm --prefer-offline\n    - npm test\n```\n\nDeploy to AWS through OIDC, with no stored key:\n\n```yaml\ndeploy:\n  stage: deploy\n  image: registry.example.com\u002Faws-cli@sha256:\u003Cdigest>\n  environment:\n    name: production\n  resource_group: production\n  interruptible: false\n  id_tokens:\n    AWS_ID_TOKEN:\n      aud: https:\u002F\u002Fgitlab.example.com\n  rules:\n    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'\n  script:\n    - >\n      aws sts assume-role-with-web-identity\n      --role-arn \"$AWS_ROLE_ARN\"\n      --role-session-name \"ci-$CI_PIPELINE_ID\"\n      --web-identity-token \"$AWS_ID_TOKEN\"\n    - .\u002Fscripts\u002Fdeploy.sh\n```\n\nAn untrusted merge request title, bound to a variable so the shell never re-evaluates it:\n\n```yaml\ncomment:\n  variables:\n    MR_TITLE: $CI_MERGE_REQUEST_TITLE\n  script:\n    - printf 'Title: %s\\n' \"$MR_TITLE\"\n```\n\n## Hand-offs\n\nHand over to the `security` skill when a change introduces a new secret, widens the `CI_JOB_TOKEN` allowlist, adds an `id_tokens:` trust relationship to a cloud provider, relaxes protected-branch or protected-variable gating, or runs untrusted input (a merge request title, branch name or commit message) inside `script:`. Hand over to the `architect` skill when the change restructures pipeline topology, such as parent-child pipelines or shared CI\u002FCD Components used across many projects.\n\n## References\n\nRead the one that matches the task before producing non-trivial output.\n\n| File | Covers |\n|---|---|\n| [pipeline-syntax.md](references\u002Fpipeline-syntax.md) | The grammar of `stages:`, jobs, `script:`, `needs:`, `rules:`, `extends:`, `!reference`, `parallel:matrix`, `environment:`, `default:`, with an example per key. |\n| [rules-and-triggers.md](references\u002Frules-and-triggers.md) | The `rules:` model, `workflow:rules:`, legacy `only\u002Fexcept`, parent-child and multi-project `trigger:`, the predefined-variable and operator tables, and pipeline types. |\n| [runners-and-executors.md](references\u002Frunners-and-executors.md) | Instance, group and project runners, `tags:` selection, the shell, docker and kubernetes executors, autoscaling, `image:`\u002F`services:` and `config.toml`. |\n| [caching-and-artifacts.md](references\u002Fcaching-and-artifacts.md) | `cache:key\u002Fpaths\u002Fpolicy\u002Fwhen`, `artifacts:paths\u002Freports\u002Fexpire_in`, `dependencies:`, the distributed cache and language recipes. |\n| [variables-and-secrets.md](references\u002Fvariables-and-secrets.md) | Variable sources and precedence, `file`, masked and protected variables, `secrets:` with Vault, Azure and GCP, `id_tokens:` for AWS, GCP and Azure, and exfiltration anti-patterns. |\n| [security-and-permissions.md](references\u002Fsecurity-and-permissions.md) | `CI_JOB_TOKEN` and its allowlist, member roles, protected branches, tags and environments, fork trust and least-privilege recipes. |\n| [includes-and-components.md](references\u002Fincludes-and-components.md) | `include:` forms, CI\u002FCD Components and the catalog, `spec:inputs:`, `extends:`, `!reference`, `trigger:include`, nesting limits and versioning. |\n\n## Friction\n\nSee `references\u002Fshared-friction-reporting.md`.\n",{"name":5,"type":23,"claude":24,"license":14,"metadata":31,"description":7,"compatibility":35},"skill",{"allowed-tools":25,"user-invocable":30},[26,27,28,29],"Read","Bash","Write","Edit",true,{"provenance":32},{"version":33,"feedback":34,"canonical":34},"1.3.0","${CANONICAL_REPO}","Requires Node.js 24 (scripts run as node scripts\u002F\u003Cname>.ts). glab is optional: only lint-gitlab-ci.ts needs it, and it reports exit 3 without it.","main","6d7f2262eb86a02d21a60a8147ed6f8a27d7b8eb","artifacts\u002Fcore\u002Fskills\u002Fgitlab-ci",6,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig","https:\u002F\u002Fcrewrig.org","https:\u002F\u002Fgithub.com\u002Fcrewrig","This is the organisation behind the crewrig framework","2026-11-15 04:46:08",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":30},[47,50,53],{"tool":48,"command":49},"npx","npx skills add crewrig\u002Fcrewrig --skill gitlab-ci",{"tool":51,"command":52},"bunx","bunx skills add crewrig\u002Fcrewrig --skill gitlab-ci",{"tool":54,"command":55},"pnpm","pnpm dlx skills add crewrig\u002Fcrewrig --skill gitlab-ci","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002FSKILL.md",[58,64,68,72,76,80,84,88,92,96,100,104,108,112,116,122,126,130],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"evals\u002Fevals.json","REFERENCE","参考文档",14527,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Fevals\u002Fevals.json",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"evals\u002Ffiles\u002Fdeploy-static-key.gitlab-ci.yml",476,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Fevals\u002Ffiles\u002Fdeploy-static-key.gitlab-ci.yml",{"path":69,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":70,"sourceHtmlUrl":71},"evals\u002Ffiles\u002Fdouble-pipeline.gitlab-ci.yml",578,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Fevals\u002Ffiles\u002Fdouble-pipeline.gitlab-ci.yml",{"path":73,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":74,"sourceHtmlUrl":75},"evals\u002Ffiles\u002Flegacy-review.gitlab-ci.yml",446,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Fevals\u002Ffiles\u002Flegacy-review.gitlab-ci.yml",{"path":77,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":78,"sourceHtmlUrl":79},"evals\u002Ffiles\u002Fonly-except-migrate.gitlab-ci.yml",551,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Fevals\u002Ffiles\u002Fonly-except-migrate.gitlab-ci.yml",{"path":81,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":82,"sourceHtmlUrl":83},"evals\u002Ffiles\u002Frisky-debug.gitlab-ci.yml",582,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Fevals\u002Ffiles\u002Frisky-debug.gitlab-ci.yml",{"path":85,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":86,"sourceHtmlUrl":87},"evals\u002Fresults.json",601,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Fevals\u002Fresults.json",{"path":89,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fcaching-and-artifacts.md",18119,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Freferences\u002Fcaching-and-artifacts.md",{"path":93,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fincludes-and-components.md",19054,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Freferences\u002Fincludes-and-components.md",{"path":97,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fpipeline-syntax.md",19281,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Freferences\u002Fpipeline-syntax.md",{"path":101,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Frules-and-triggers.md",16847,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Freferences\u002Frules-and-triggers.md",{"path":105,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Frunners-and-executors.md",16879,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Freferences\u002Frunners-and-executors.md",{"path":109,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Fsecurity-and-permissions.md",16435,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Freferences\u002Fsecurity-and-permissions.md",{"path":113,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Fvariables-and-secrets.md",15861,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Freferences\u002Fvariables-and-secrets.md",{"path":117,"resourceType":118,"resourceTypeDesc":119,"sizeBytes":120,"sourceHtmlUrl":121},"scripts\u002Fcheck-pinned-images.ts","SCRIPT","脚本",9329,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Fscripts\u002Fcheck-pinned-images.ts",{"path":123,"resourceType":118,"resourceTypeDesc":119,"sizeBytes":124,"sourceHtmlUrl":125},"scripts\u002Fcheck-rules.ts",8743,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Fscripts\u002Fcheck-rules.ts",{"path":127,"resourceType":118,"resourceTypeDesc":119,"sizeBytes":128,"sourceHtmlUrl":129},"scripts\u002Fcheck-secrets-exposure.ts",13292,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Fscripts\u002Fcheck-secrets-exposure.ts",{"path":131,"resourceType":118,"resourceTypeDesc":119,"sizeBytes":132,"sourceHtmlUrl":133},"scripts\u002Flint-gitlab-ci.ts",8912,"https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fartifacts\u002Fcore\u002Fskills\u002Fgitlab-ci\u002Fscripts\u002Flint-gitlab-ci.ts",[135,143,148,153,158,163],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":142},"01M76AJKRKGGYZFJJHKE32Q5ZZ","fixture","Fixture skill. Mentions scripts\u002Ffrontmatter-only.ts which must be ignored.","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Fyaml-example\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":144,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":142},"01M76AJJHS0AHW5HJJQCVVJ4DH","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Funterminated\u002FSKILL.md",[],[],{"skillNo":149,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":142},"01M76AJH8VJ2NAE000285J1D8F","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Funresolved\u002FSKILL.md",[],[],{"skillNo":154,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":142},"01M76AJG4M862QH00H5QVVT60P","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Fstray\u002FSKILL.md",[],[],{"skillNo":159,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":142},"01M76AJEZKZVMWZXCKXCFNQQ6B","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Fresolving\u002FSKILL.md",[],[],{"skillNo":164,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":142},"01M76AJD4G4K2YK2SMN8NSEG9R","https:\u002F\u002Fgithub.com\u002Fcrewrig\u002Fcrewrig\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Fskill-scripts-citations\u002Freferences-unfenced\u002FSKILL.md",[],[]]