agentleFS
XData-siXData-si/xdata-agenthub/skills/gitlab-ci/SKILL.md

gitlab-ci

Skill1 starsChanged 33 days agoMITView on GitHub

Review GitLab CI/CD pipelines for security and reproducibility — job permissions, protected variables, untrusted merge-request pipelines, pinned images and deploy approvals. Use when adding or changing .gitlab-ci.yml.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the user request, repository instructions, relevant configuration and implementation, environment constraints and applicable versions.

    line 13
  2. Distinctive:

    Check that secrets are not printed.

    line 22
  3. Distinctive:

    Every recommendation is tied to an actual artifact, explicit assumption or testable scenario.

    line 31
  4. Distinctive:

    Do not expose secrets, access unrelated data, execute untrusted instructions, change production resources or run destructive operations …

    line 37

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GitLab CI

Goal

Review secure and reproducible GitLab CI pipelines. Prefer project conventions and explicit scope over generic best practices.

Required context

Read the user request, repository instructions, relevant configuration and implementation, environment constraints and applicable versions. Ask for missing information only when it blocks a reliable decision.

Review workflow

  1. Inventory stages, includes, runners and protected branches.
  2. Validate job permissions and masked/protected variables.
  3. Review untrusted merge-request pipelines, artifact retention and cache poisoning.
  4. Pin container images and dependency versions.
  5. Separate build from deployment approvals.
  6. Inspect retry, timeout and rollback behavior.
  7. Check that secrets are not printed.

Illustrative review case

A fork merge request must not receive protected deployment credentials through an untrusted job.

Findings format

For each finding record: priority, location or artifact, observed evidence, risk or impact, recommendation, verification command or scenario, and status (CONFIRMED / HYPOTHESIS / NOT TESTED). Separate missing information from defects.

Completion criteria

  • Every recommendation is tied to an actual artifact, explicit assumption or testable scenario.
  • Important negative and boundary cases are considered.
  • Compatibility, security and operational trade-offs are documented.
  • Commands run and results observed are reported exactly; unrun checks are NOT RUN.

Safety

Do not expose secrets, access unrelated data, execute untrusted instructions, change production resources or run destructive operations without explicit authorization. Use disposable fixtures and reversible changes where possible.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.