- Home
- Skills
- DevOps & Cloud
- DevOps CI/CD — GitHub Actions & GitLab Pipelines
DevOps CI/CD — GitHub Actions & GitLab Pipelines
by Pavithran
The base agent can draft a workflow — badly: unpinned actions, no timeouts, no cache, a deploy step inside a matrix.
$10
DevOps CI/CD — GitHub Actions & GitLab Pipelines
Example session with this skill installed
My GitHub Actions pipeline is failing with a 'Resource not accessible' error when trying to comment on a PR. Here is my workflow file.
- Read your context and instructions
- Compiled the devops ci cd
I have analyzed your GitHub Actions workflow and identified a permissions mismatch. The default GITHUB_TOKEN lacks the necessary scopes for pull request interactions.
Diagnostic Report
Pipeline: GitHub Actions — .github/workflows/pr-comment.yml
Validator: 1 error(s), 0 warning(s), 1 info note(s) — Fixed
Verified: Parsed and validator clean
What it does: Runs tests on PRs and attempts to post a coverage summary.
What I did NOT do: I did not modify your coverage.py script.
Fixed Workflow
name: CI
on:
pull_request:
branches: [ main ]
permissions:
contents: read
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: pytest --cov=./ > coverage.txt
- name: Comment on PR
uses: thollander/actions-comment-pull-request@v2
with:
filePath: coverage.txt
Next steps
- Replace the content of
.github/workflows/pr-comment.ymlwith the code block above. - Push the change to your branch to trigger the updated permission set.
- Verify the "Comment on PR" step now shows a green checkmark in the Actions tab.
Connects securely to your tools. The creator never sees your data.
About this skill
Every team ends up with the same pipeline problems: the workflow that worked for months and then broke for no visible reason, the deploy that ran three times, the secret that printed to the log, the build that re-downloads the world on every run. The base agent can draft a workflow — badly: unpinned actions, no timeouts, no cache, a deploy step inside a matrix. This skill does it properly, from your real workflow file: 1) Validate first. A workflow linter (validate_workflow.py, standard library only, with a built-in YAML parser for when PyYAML isn't installed) checks the file and reports every defect with a code and a fix: missing triggers, jobs with no runner, steps that do nothing, unpinned actions, secrets echoed to the log, the removed set-output command, pull_request_target, deploys inside a matrix, caches with no key, deploy jobs with no environment, and more. 2) Generate a starter. A pipeline generator (generate_pipeline.py) builds a boring, correct workflow from a few answers — platform, language, test and lint commands, matrix versions, deploy target. Pinned actions, a timeout on every job, caching keyed on the lockfile, secrets as env vars, and a deploy job that runs once, after the tests pass. 3) Diagnose from the log. A failure-diagnosis order (read the failing step, classify the failure, reproduce locally, bisect the config change) plus a table of the usual suspects — lockfile drift, stale cache, an action that moved, an expired secret, a runner image that changed — and what each common error message actually means. What's inside: SKILL.md (step-by-step process, decision criteria for GitHub Actions vs GitLab CI, good/bad examples, pass/fail criteria), two Python scripts (standard library only — no network, no credentials), three reference guides (GitHub Actions patterns, GitLab CI patterns, secrets/caching/failure diagnosis), and three full before/after examples with real validator output. Tested, honestly: 40 checks, 40 passed — 6 valid workflows pass clean, 14 broken workflows flag their defects, 6 generated workflows parse and pass clean, 3 example before/after pairs verified, and a real git repo's generated pipeline simulated step by step (clone, install, lint, test — 5 tests passed). The full evidence, including the 6 defects found and fixed during testing, is in TEST-REPORT.md. The limits are stated there too: no workflow was run on a live GitHub Actions or GitLab runner (act/Docker weren't available), and the skill text itself hasn't been run inside every agent yet. Works in Claude, ChatGPT, Cursor, Codex and Gemini CLI — any agent that reads SKILL.md. Python 3.8+ only; no installs, no accounts.
Supports GitHub Actions and GitLab CI only. No support for Jenkins, CircleCI, or Azure DevOps. Does not write application code or infrastructure-as-code like Terraform.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Software
Python
Git
Permissions
What's inside
Frequently Asked Questions
New in DevOps & Cloud
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.