Przejdź do treści
Biblioteka skilli
DevOps i chmura · Przegląd i audyt

pr-quality-devops

/pr-quality-devops

Ocenia lokalny diff pod kątem ryzyka CI/CD, pipeline'u budowania i infrastruktury, z werdyktem PASS, WARN lub CRITICAL_FAIL.

Repozytorium
ai-agents ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
1
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.

Co robi i kiedy

Ocenia lokalny diff pod kątem ryzyka CI/CD, pipeline'u budowania i infrastruktury, z werdyktem PASS, WARN lub CRITICAL_FAIL.

Argumenty

/pr-quality-devops base-branch
Oryginalny opis (EN)

Evaluate a local diff for CI/CD, build pipeline, and infrastructure risk, and return a PASS/WARN/CRITICAL_FAIL verdict. Use when you say `devops review my changes`, `run the devops gate`, or `is this workflow change safe`. Do NOT use to run all six axes (use pr-quality-all), and do NOT use to author the pipeline itself (use the devops agent).

Jak działa

  1. Triggers
  2. Arguments
  3. Criteria
  4. Process
  5. What this axis looks for
  6. Output Format
  7. Verification
  8. Anti-Patterns
  9. Extension Points
Sekcje z nagłówków SKILL.md, w oryginale · 107 linii, 856 słów
Podgląd SKILL.md
---
name: pr-quality-devops
version: 1.0.0
description: Evaluate a local diff for CI/CD, build pipeline, and infrastructure risk, and return a PASS/WARN/CRITICAL_FAIL verdict. Use when you say `devops review my changes`, `run the devops gate`, or `is this workflow change safe`. Do NOT use to run all six axes (use pr-quality-all), and do NOT use to author the pipeline itself (use the devops agent).
license: MIT
allowed-tools: Bash(git:*), Read, Grep, Glob, mcp__serena__*
argument-hint: base-branch
user-invocable: true
metadata:
  routing:
    role: nested-helper
    invoker: pr-quality-all
    trigger: pr-quality-all invokes pr-quality-devops as one of its six axes
    user-facing: true
---

# PR Quality Gate: DevOps

<!-- vendor-portability: contributor-facing pre-push gate for the rjmurillo/ai-agents
     repo itself. It intentionally reads .github/prompts/pr-quality-gate-devops.md
     (the canonical axis criteria) and emits against
     .agents/schemas/pr-quality-gate-output.schema.json; both live upstream only,
     so this skill's audience is repo contributors, not plugin consumers
     (ADR-083). -->

Run the devops axis of the quality gate against your working changes, before you
push, using the canonical axis criteria.

Migrated from the pr-quality/devops command under ADR-064, which makes skills the
single user-invocable surface and renames the namespaced sub-command
pr-quality/devops to pr-quality-devops. The command file is gone, so its path is named
here in plain text rather than as a citation to something a reader could open.

## Triggers

`devops review my changes`, `run the devops gate`, `is this workflow change safe`, `pr-quality devops`

## Arguments

Base branch: $ARGUMENTS

If `$ARGUMENTS` names a branch, diff against it. Otherwise default to `main`.

## Criteria

Apply the criteria from: @.github/prompts/pr-quality-gate-devops.md

That file is the canonical axis definition and the one definition this skill reads. Do not
paraphrase it from memory: read it, then judge the diff against what it says.

## Process

1. Run `git branch --show-current` to name the current branch.
2. Resolve the base branch from `$ARGUMENTS`, defaulting to `main`. Reject an
   empty value or one starting with `-` (Git parses a leading dash as an
   option, not a ref), then resolve it to a commit with
   `BASE_SHA=$(git rev-parse --verify --quiet "<base_branch>^{commit}")`. An
   unresolved or rejected ref is a hard stop: report it and do not fall back
   to an empty diff. Use `$BASE_SHA` in every git command below, not the
   branch name: the branch can move between this step and a later diff, and
   the SHA cannot.
3. Build the changed-file list from tracked changes
   (`git diff "$BASE_SHA" --name-only`) plus untracked files
   (`git ls-files --others --exclude-standard`); the local review scope is
   uncommitted changes, and a tracked-only diff misses a change set that is
   entirely new files. Read each untracked file's full content directly, since
   it carries no diff against the base.
4. Run `git diff "$BASE_SHA"` to read the full diff of tracked changes.
5. Judge the diff against every criterion in the axis file. Findings are
   additive: a criterion that fails does not end the pass, because the author
   needs the whole list in one round rather than one finding per round.
6. Emit the verdict block, then the JSON block.

## What this axis looks for

This axis reads the diff for an Action pinned to a floating tag, logic embedded in workflow YAML, a path filter on a whole-tree check, a step that swallows a failure into a green exit, and a secret reachable from a fork.

That list orients the read. The axis file is authoritative when the two differ.

## Output Format

Provide your verdict in EXACTLY this format. Do not add preambles, explanations, or additional text before the verdict:

```text
VERDICT: [PASS|WARN|CRITICAL_FAIL]
MESSAGE: [One sentence summary]

[Detailed findings following prompt structure]
```

Then emit a fenced JSON block conforming to `.agents/schemas/pr-quality-gate-output.schema.json` with `"agent": "devops"`.

## Verification

- [ ] The axis file was read this run, not recalled
- [ ] The diff was taken against `$BASE_SHA`, not the base branch name or `HEAD~1`
- [ ] The base ref was rejected if empty or leading-dash, and resolved to `$BASE_SHA` before any `git diff`
- [ ] Untracked files were included in the changed-file list, not only the tracked diff
- [ ] Every criterion in the axis file was judged, including the ones that passed
- [ ] Each finding names a file and a line, not a general concern
- [ ] The verdict block is the first thing emitted, with no preamble
- [ ] The JSON block validates against the schema and carries `"agent": "devops"`

## Anti-Patterns

| Avoid | Why | Instead |
|-------|-----|---------|
| Stopping at the first CRITICAL_FAIL | Findings are additive, so an early stop hides the rest and buys the author a second round | Record the verdict and keep judging the remaining criteria |
| Judging from memory of the axis | The criteria change and the recalled version is the one that was true once | Read `@.github/prompts/pr-quality-gate-devops.md` every run |
| A finding with no file and line | The author cannot act on it, so it reads as an opinion and gets skipped | Cite `path:line` and quote the offending span |
| A preamble before the verdict | The block is parsed by `pr-quality-all`, so leading prose breaks the merge | Emit `VERDICT:` first, every time |
| PASS on a diff you could not read | An unread diff is an unmeasured one, and PASS says the opposite | Emit CRITICAL_FAIL and name what blocked the read |

## Extension Points

- **New criterion.** Add it to `.github/prompts/pr-quality-gate-devops.md`, which
  this skill reads, so there is one definition to keep current.
- **Different base.** Step 2 resolves the base from `$ARGUMENTS`; a project that
  merges into something other than `main` changes that default alone.
- **Another consumer.** The JSON block is schema-bound, so a new reader parses it
  without this skill changing.

Wersje

RepozytoriumWynikLicencja
Ta strona · rjmurillo/ai-agents100MIT
rjmurillo/ai-agents100MIT
rjmurillo/ai-agents100MIT

Migawka bazy z 13.11.2026 · wersja paczki abfb85289481 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100pr-quality-analyst
    Ocenia lokalny diff pod kątem jakości kodu, zasięgu zmian i kosztu utrzymania, i zwraca werdykt PASS, WARN lub CRITICAL_FAIL.
  • 100pr-quality-analyst
    Ocenia lokalny diff pod kątem jakości kodu, zasięgu zmiany i kosztu utrzymania, zwracając werdykt PASS, WARN lub CRITICAL_FAIL.
  • 96managing-devops-pipeline
    Zarządza buildami w platformie CI/CD BlueShield (蓝盾): sprawdza historię i status oraz uruchamia nowe buildy.
  • 95devops-pipeline
    Podpowiada wzorce CI/CD i infrastruktury: workflow GitHub Actions, Docker, manifesty Kubernetes, moduły Terraform i strategie wdrożeń.
  • 91kubesphere-devops-pipeline
    Tworzy, uruchamia i nadzoruje potoki CI/CD w KubeSphere DevOps, także przez API i monitorowanie przebiegów.
  • 90dx-devops-test-pipeline-configure
    Konfiguruje testy w pipeline DevOps Center: włącza dostawcę testów, synchronizuje nowe zestawy i tworzy bramki jakości na etapach.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.