Skip to content
Back to skills

Qa 11x Docker Certifier

ASecurity

Ephemeral Docker QA execution and certification sub-skill for Standard 11X. Use whenever running linters, typecheckers, unit/integration/mutation/E2E suites, accessibility checks, external SARIF scanners, or workspace cleanups under mandatory non-root Docker Rule Zero.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
developmentpythonrustgojavaphpshellbashsqlreactvue

Works with

  • terminal
  • cli
  • api
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned December 4, 2026

npx -y skills add tecno-consultores/qa-11x --skill qa-11x-docker-certifier --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Qa 11x Docker Certifier?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Qa 11x Docker Certifier
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tecno-consultores-qa-11x-docker-certifier/badge)](https://www.skillsdirectory.com/skills/tecno-consultores-qa-11x-docker-certifier)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: qa-11x-docker-certifier
description: >-
  Ephemeral Docker QA execution and certification sub-skill for Standard 11X. Use whenever running linters,
  typecheckers, unit/integration/mutation/E2E suites, accessibility checks, external SARIF scanners, or workspace
  cleanups under mandatory non-root Docker Rule Zero.
---

# QA 11X Corporate Standard Certifier (Ephemeral Docker Execution)

This skill governs all tests, linters, audits, and cleanups in projects implementing QA 11X.
> **OUTPUT LANGUAGE & DYNAMIC MIRRORING:** Respond in **user's prompt language** (unless `AGENTS.md` fixes it); docs/commits match `README.md`/`CHANGELOG.md` (Spec 19; `.agents/**` English).

---

## 1. Rule Zero: Total Isolation in Docker Containers

- **STRICTLY FORBIDDEN:** Executing `pip`, `uv`, `pytest`, `ruff`, `mypy`, `npm`, `pnpm`, `vitest`, `stryker`, or `playwright` directly on the host machine.
- Unless delegated to an active Companion MCP (`playwright`, `chrome-devtools`, `semgrep`, `serena`, `sonarqube`, `snyk`, `trivy`, `appium`), every validation command MUST execute inside ephemeral containers defined in `docker-compose.qa.yml` via monorepo `Makefile` targets (`make qa-lint`, `make qa-unit`, `make qa-mutation`, `make qa-e2e`, `make qa-perf`, `make qa-bdd`). Offline checks use `--network none`; dependency syncs use lockfile-frozen installs (`uv sync --frozen` / `pnpm install --frozen-lockfile --prefer-offline`, plus `--offline` when `QA_OFFLINE=1`). Pure libraries/CLIs/`<= 3`-endpoint JVM-free stacks may certify BDD contracts with JVM-free runners (`pytest+httpx/pact`, `bats`, `vitest`/Playwright).
- Every new source file (`.py`, `.ts`, `.vue`, `.sh`, `Dockerfile`) MUST include appropriate license headers.

---

## 2. Strict QA 11X Approval Thresholds

| Ecosystem | Tool / Suite | Mandatory Gate | Container Command |
| :--- | :--- | :--- | :--- |
| **Backend (`python/` / `fastapi/`)** | `Ruff` + `Mypy --strict` + `Bandit` | **0 errors / 0 vulnerabilities** | `make qa-lint` |
| **Backend (`python/` / `fastapi/`)** | `Radon` (Cyclomatic Complexity) | **Grade A (`CC <= 5`, `MI >= A`)** | `make qa-lint` |
| **Backend (`python/` / `fastapi/`)** | `Pytest` (Unit Coverage) | **`>= 95.0%` real coverage on `src/`** | `make qa-unit` |
| **Backend (`python/` / `fastapi/`)** | `Mutmut` / `Karate Labs` / `ZAP` | **`MSI >= 80%`**, 0 contract failures, OWASP OSHP & ASVS/WSTG verified | `make qa-mutation` / `make qa-bdd` |
| **Backend (`node-backend/`)** | `ESLint` + `tsc --noEmit` + `Vitest` + `Stryker` + `Pact V4` + `Karate` | **0 errors, `CC <= 5`, `SonarJS <= 15`, `>= 95%` cov, `MSI >= 80%`** | `make qa-lint` / `qa-unit` / `qa-mutation` |
| **Frontend (`vue3/` / `react-frontend/`)** | `tsc`/`vue-tsc --noEmit` + `ESLint` + `SonarJS` | **0 errors, `CC <= 5`, `SonarJS <= 15`, `max-params: 4`** | `make qa-lint` |
| **Frontend (`vue3/` / `react-frontend/`)** | `Vitest` (`@vitest/coverage-v8`) | **`>= 95.0%` lines, functions, branches, statements** | `make qa-unit` |
| **Frontend (`vue3/` / `react-frontend/`)** | `Stryker Mutator` (`perTest` + `--incremental`) | **`MSI >= 80%`**, 0 surviving critical mutants | `make qa-mutation` |
| **Frontend (`vue3/` / `react-frontend/`)** | `Playwright` + `@axe-core/playwright` | **0 WCAG 2.1/2.2 A/AA violations** | `make qa-e2e` |
| **Frontend (`vue3/` / `react-frontend/`)** | `Lighthouse CI` (`lhci autorun`) | **Perf/SEO/BP `>= 0.90`, A11y `>= 0.95`, `CLS = 0`, `INP < 200ms`** | `make qa-perf` |
| **Backend (`php/` 8.2–8.5)** | `PHPStan Level Max` + `Psalm --taint-analysis` + `Pest/PCOV` + `Infection` | **0 errors, PHP Cognitive `<= 9`, `>= 95.0%` cov, `MSI >= 80%`** | `make qa-lint` / `qa-unit` / `qa-mutation` |
| **Bash / DevOps (`bash-scripts/`)** | `ShellCheck` + `shfmt -i 2 -ci` + `BATS-core` + rootless `kcov` (`no-new-privileges:true`, `cap_drop: [ALL]`) | **0 warnings, `>= 95.0%` coverage (`.agents/.cache/coverage/bash.xml`, no `<!DOCTYPE`)** | `make qa-lint` / `qa-unit` |
| **Mobile (`mobile-appium/`)** | `tsc --strict --noEmit` + `node --test` + `Appium 3` / `WDIO` (`base-mobile-appium:26`) | **0 errors, `>= 95.0%` lines / `>= 95.0%` branches, Screenplay & deep-link guards** | `make qa-lint` / `qa-unit` / `qa-e2e` |
| **AI Evals (`ai-evals/`)** | `Pytest` offline contracts + `DeepEval` / `Promptfoo` (Mode 2) | **100% `$0` offline CI + `Hallucination < 0.05` / OWASP LLM Top 10** | `make qa-unit` / `make audit-llm` |
| **Vibe Rescue (`vibe-rescue/`)** | `audit_vibe_prototype.py` + `Pytest` (`sinfallas/base-python-uv:3.15`) | **`VIBE-SEC-001..QA-005`, `CC <= 5`, `>= 95.0%` cov, SQL `FORCE RLS` templates** | `make qa-lint` / `qa-audit-enforce` / `qa-unit` |
| **Backend (`dotnet/` 10–11)** | `Roslyn` (`AnalysisLevel=latest-all`) + `xUnit/Coverlet` + `Stryker.NET` (`sinfallas/base-dotnet:11`) | **0 warnings, `>= 95.0%` Cobertura cov, `MSI >= 80%`, `--locked-mode`** | `make qa-lint` / `qa-unit` / `qa-mutation` |
| **Backend (`java/` 21/25)** | `Checkstyle` + `PMD` + `SpotBugs/FindSecBugs` + `JaCoCo` + `PITest` (`sinfallas/base-java:25`, Maven & Gradle) | **0 errors, `>= 95.0%` JaCoCo cov, `MSI >= 80%`, CycloneDX SBOM** | `make qa-lint` / `qa-unit` / `qa-mutation` |
| **Backend (`go/` 1.26/1.27)** | `golangci-lint` (`gocyclo`/`gocognit`/`gosec`) + `go test -race` + `gremlins` (`sinfallas/base-go:1.27`) | **0 issues, `>= 95.0%` coverprofile, `-mod=readonly`, `MSI >= 80%`** | `make qa-lint` / `qa-unit` / `qa-mutation` |
| **Mobile (`flutter/` 3.50)** | `dart format` + `flutter analyze --fatal-infos` + `flutter test --coverage` + `mutation_test` (`sinfallas/base-flutter:3.50`) | **0 infos/warnings, `>= 95.0%` LCOV cov, `MSI >= 80%`, `flutter_secure_storage`** | `make qa-lint` / `qa-unit` / `qa-mutation` |
| **Backend (`rust/` stable)** | `rustfmt` + `clippy -D warnings` + `cargo-llvm-cov` + `cargo-mutants` + `cargo-deny` (`sinfallas/base-rust:stable`) | **0 warnings, `>= 95.0%` Cobertura cov, `MSI >= 80%`, `--locked`** | `make qa-lint` / `qa-unit` / `qa-mutation` |
| **Security & STIG (All 15 Stacks)** | `DISA ASD STIG V6R5` + `OWASP v4.2` + `Trivy` | Session timeouts (10m/15m), 3-fail lockout, `NFKC`, anti-XXE, WORM, SBOM, Trivy `HIGH/CRITICAL = 0` | `make qa-unit` / `make qa-dast` |

---

## 3. Incremental Mutation Testing, 3-Path Economy & RAM Conservation

1. **Fast Incremental & Per-Test Mutation Execution (`QA-STRYKER-CFG-01`, `mutmut_gates.py`, `QA-SECRET-CONV-01`):**
   - Never run full-suite tests per mutant across untouched files. Configure `"ignoreStatic": true`, `coverageAnalysis: "perTest"`, `--incremental`, `!src/**/*.{unit,spec,test}.*` exclusions in `mutate`, and capped `--concurrency <= 4` in Stryker (`reports/stryker-incremental.json`, injecting a non-root `/tmp/qa-bin/ps` shim in minimal Node containers lacking `procps`); use `--only-covered` in Infection, and `mutmut_gates.py` (`importlib.import_module("tests")`, `src/` target, `MSI >= 80%`) alongside `py-spy` (`qa-profile` opt-in sidecar using `user: "0:0"` + `SYS_PTRACE` + `.:/app:ro` under `yama.ptrace_scope = 2`).
   - Always prefix synthetic test passwords/tokens (`>= 16` chars) with `fake-*`, `dummy-*`, `mock-*`, or `placeholder-*` so fail-fast `verificar-secretos.sh` passes from `qa-lint` onward.
2. **3-Path Proportional Execution & Mandatory Step 6 (Zero Lint Shortcuts):**
   - **Skip Docker QA runs on `DOCS_ONLY` changes** (`skip_if_docs_only: true`).
   - On `MICRO_CHANGE` / `FULL_11X`, **ALWAYS** execute `run_ephemeral_qa(stage="lint")` + `run_ephemeral_qa(stage="unit")` (plus `stage="integration"` / `stage="ci"` tearing up/down ephemeral `postgres:17-alpine` when touching `migrations/`, ORM models, SQL, or `.github/workflows/`). NEVER substitute `make qa-lint` (`ruff` + `mypy --strict --cache-dir=/tmp/mypy` + `vue-tsc` + `eslint`) with partial standalone `ruff` commands.
   - **Cryptographic TDD `RED -> GREEN` Gate (Opt-In):** For bugfixes/features, run `run_ephemeral_qa(stage="unit", expect_red=true)` first (stamping `red_phase_verified: true` in `.agents/.qa-evidence.json` only on real test assertion failure, never `SKIPPED` or infra errors), then pass `require_red_green_evidence=true` to `certify_11x_gate` (`--require-red-green-evidence` in CLI) after GREEN passes.
   - **Mandatory Test Co-Evolution (`QA-TEST-SYNC-01`):** Whenever modifying code, schemas, CLI flags, skills, or catalogs, synchronize and re-execute ALL impacted pre-existing suites (unit, integration, BATS, and Karate `.feature` contracts) inside ephemeral Docker prior to committing.
   - Run the complete multi-stage pyramid (`make qa-all`) on `FULL_11X` architectural changes.
3. **Mandatory Post-QA Cleanup, Non-Root `COVERAGE_FILE=/tmp/.coverage`, `importlib` & Pass-Quiet Output:**
   - Never invoke `pytest -o addopts=""` without explicitly appending `--import-mode=importlib --cov=src --cov-fail-under=95` and `-e PYTHONPATH=/app/src` (preventing `ModuleNotFoundError` on `*.unit.py` / `*.int.py` and preserving coverage enforcement).
   - In hardened non-root containers (`USER 1001`) mounting host volumes (`UID 1000`), always pass `-u "$(id -u):$(id -g)" -e HOME=/tmp -e COVERAGE_FILE=/tmp/.coverage -e UV_CACHE_DIR=/tmp/uv-cache` so `coverage.py` and `uv` write to `/tmp` instead of failing with `sqlite3.DataError: Couldn't use data file '/app/.coverage'` or host bind-mount permission errors.
   - **Rootless Bash `kcov` (`ptrace_scope = 2`, Zero `SYS_PTRACE`):** Run `kcov` under `no-new-privileges:true` + `cap_drop: [ALL]` (never grant `SYS_PTRACE` or `seccomp:unconfined` to `qa-bash`) using `--bash-dont-parse-binary-dir --bash-parse-files-in-dir` with vendored QA-11X `--exclude-pattern` (`/limpieza.sh`, `/instalar-hooks.sh`, `/.agents/`, `/scripts/{verificar-secretos,auditar-infra,auditar-pagespeed,actualizar-grafos-graphify,generar-sbom-cyclonedx,install-skill}.sh`), wrapping `bats` in `/tmp/run-bats.sh` (`export -n BASH_XTRACEFD` + `export BASH_ENV=/tmp/kcov-env.sh` guarded by `[ -p "/proc/${BASHPID}/fd/${KCOV_BASH_XTRACEFD}" ]` without `${0} == /app/*` filters so `source`d scripts, relative paths, and `close_fds`/FD-reusing subprocesses stay accurate and clean), and stripping `<!DOCTYPE` when writing `/tmp/kcov-out` `cobertura.xml` to `.agents/.cache/coverage/bash.xml` (`0600`) for `verify_diff_coverage.py`.
   - **3-Level Post-QA Cleanup (Preserving Human Logs/Reports & Docker Images):**
     - `run_ephemeral_qa` automatically purges **Level-1 technical caches** (`.pytest_cache`, `.mypy_cache`, `.ruff_cache`, `.coverage`, `.stryker-tmp`, `mutants`, `.trivycache`, `.eslintcache`, `.angular`, `.svelte-kit`, `.next`, etc.) after every `PASSED` stage (`auto_clean_caches: true` default) without touching `dist/`, human reports, `.agents/.cache/`, or Docker images.
     - After running coverage or mutation tests, execute `make certify` (`certify_11x_gate`) **before** any `--deep` cleanup, then run safe Level-1 cleanup (`clean_workspace_11x(dry_run=false)` / `make clean` / `./scripts/limpieza.sh`) before local `git commit`.
     - **Level-2 human-readable logs & reports** (`reports/`, `playwright-report/`, `test-results/`, `htmlcov/`, `coverage/`, `coverage_report/`, `allure-*`, `target/`, `wdio-logs/`, `errorShots/`, `.agents/artifacts/PR_VERDICT.md`, `*.log`, `zap-report.*`, `sbom*.json`) are **preserved by default** in normal mode and purged only with explicit `include_reports: true` / `--include-reports` or `--deep`.
     - **Level-3 (`--deep` / `deep_prune: true`)** purges `.agents/.qa-evidence.json`, `.agents/.cache/coverage/`, `.agents/.cache/sarif/`, `.agents/backups/`, `.agents/proposals/`, and `prometheus_data/` while always preserving `certify_state.json` (`BREAKER-42`), `session_checkpoint.json`, `.agents/.cache/qa-11x-last-failure.json`, `.agents/ACTIVE_TASK.md`, `mcp-server/dist`, and `graphify-out/{graph.json,GRAPH_REPORT.md,graph.html,manifest.json}`.
     - **Zero Autonomous Docker Image Removal:** Never delete Docker images automatically in normal, `--include-reports`, or `--deep` runs (`--docker-prune --yes` is strictly human opt-in).
   - **Non-Interactive CI Compose (`QA-DOCKER-TTY-01`):** In `CI=true` pipelines, `deploy*.sh`, and AI agent workflows, always invoke `docker compose ... run --rm -T` to disable pseudo-TTY allocation and prevent `NoDefaultValueProvided` aborts when `process.stdin.isTTY === true` collides with `CI=true`.
   - **GitHub Actions Shell Escaping vs. Makefile/Compose (`QA-CI-ESCAPE-01`):** NEVER paste Makefile/Compose double-dollar expansions (`$$(pwd)`, `$$(id -u)`, `$${VAR}`) into `.github/workflows/*.{yml,yaml}` or `.github/actions/*/action.{yml,yaml}` `run:` steps. GitHub Actions executes `run:` directly in `bash`, where `$$` expands to the shell PID (`<PID>(pwd)` -> Docker `exit code 125`). Always use single-dollar `$(pwd)`, `$(id -u)`, `${VAR}` (exempt intentional heredoc generators via `# qa-ci-escape-ok`).
   - **Sub-Makefile `CURDIR` Boundary (`QA-MAKE-CURDIR-01`):** In subdirectory `Makefile`s (`*/Makefile`, `*/Makefile.example`) invoked via `$(MAKE) -C <subdir>`, NEVER reference Make's inherited `$(PWD)` / `${PWD}` (which retains the caller's parent `PWD` and mounts `..`); always use `$(CURDIR)` (e.g., `HOST_PWD ?= $(CURDIR)`, exempt via `# qa-make-curdir-ok`).
   - **Anti-Ignored-Test Parity Gate (`QA-GITIGNORE-TEST-01`):** `certify_11x_gate` (`zero_ignored_tests`) and Gate 10 of `certify_task_completion.sh` audit `git -c core.quotepath=false status --ignored --porcelain` across the entire repo (walking non-canonical ignored directories) and cross-check candidate polyglot test suites (`*.bats`, `*.feature`, `*.{unit,int,spec,test,e2e}.*`, `test_*.{py,php}`, `*_test.{py,go,dart,rs}`, `*Test.php`, `*{Test,Tests,IT,ITCase}.{java,kt}`, `*{Test,Tests}.cs`, `tests/**/*.rs`) and `*.sh` scripts via `git check-ignore -v --no-index --stdin`. Any match originating in a repo `.gitignore` (excluding personal `.git/info/exclude` / global ignores or `# qa-gitignore-test-ok` on the preceding line) fails certification. Always anchor artifact globs at root with explicit extensions (`/sbom*.cdx.json`, `/trivy-results*.json`) or pair them with explicit test negations (`!test/*.bats`, `!tests/**`).
   - **SDK Transport & Lockfile Image Parity (`QA-CONTRACT-SDK-01`, `QA-DOCKER-LOCK-01`, `QA-HEALTH-01`):** Protocol servers must test real in-process SDK client transports; Dockerfiles must install dependencies from lockfiles (`uv sync --frozen --no-dev`, `uv export --frozen --no-dev`, `pnpm install --frozen-lockfile`, `npm ci`) and smoke-test built images (`import <app>`, `id -u != 0`, `401`). `QA-HEALTH-01` scopes probes exclusively to `HEALTHCHECK`/`healthcheck:` blocks, and `certify_11x_gate` exempts deployment env templates (`env.example`, `.env*.example`).
   - Never dump thousands of raw terminal lines into the LLM context; report concise JSON/table metrics.

---

## 4. Serialized Docker Execution, Anti-Subagent Fan-Out & CrashLoop Containment (`QA-DOCKER-LOOP-01`)

To prevent host RAM exhaustion (OOM/swap thrashing), `veth*` storms on Linux `NetworkManager`/`tailscaled`, and ACPI thermal shutdowns:

1. **Serialize Heavy QA Containers (`QA_MAX_CONCURRENT_CONTAINERS=1`):**
   - Run heavy QA workloads (`pytest`, `mypy`, `uv sync`, `vitest`, `mutmut`, `stryker`, `playwright`, `docker compose build`) **one at a time** via `run_ephemeral_qa` (which enforces an atomic FIFO host slot lock, passive Linux RAM `< 12%` / thermal `>= 85°C` guardrails, and pre-flight CrashLoop detection).
   - **Subagents & `/teamwork` Anti-Fan-Out:** Parallel subagents may read and edit disjoint files concurrently, but **MUST NEVER** spawn concurrent ad-hoc `docker run` QA suites (`pytest`/`mutmut`/`vitest`) against the same workspace. Only the coordinator (or the serialized `run_ephemeral_qa` queue) executes Docker QA validation.
2. **Bounded, Self-Cleaning Container Invocations (`QA-DOCKER-LOOP-01`):**
   - **FORBIDDEN in `docker-compose.{qa,test,deploy}*.yml`:** `restart: always`, `restart: unless-stopped`, or unbounded `restart: on-failure`. Enforce `restart: "no"`, `cpus: "${QA_CPU_LIMIT:-2.0}"`, `mem_limit`, and `pids_limit` (`64` init / `256` standard / `512` Playwright/JVM/Appium), plus `network_mode: none` on offline init services.
   - **Ad-hoc `docker run` Contract:** Always pass `--rm --restart=no --init --cpus=2 --memory=2g --pids-limit=256 --security-opt=no-new-privileges:true`, a deterministic `--name`, and `--network none` for every offline lint/unit/chown/script invocation (eliminates `veth*` churn). Never run floating `:latest` tags when a pinned stack image exists.
   - **Deploy/CI Scripts (`deploy*.sh`, `ci*.sh`):** Export `COMPOSE_PARALLEL_LIMIT=1` (or build services sequentially), pass `--wait-timeout 60` on every `docker compose up -d --wait`, and register `trap cleanup EXIT INT TERM` tearing down **both** `docker-compose.deploy.yml` and `docker-compose.qa.yml` (plus any named `docker run` container).
3. **CrashLoop & Orphan Scope Hygiene:**
   - Never run a blind global `docker rm -f $(docker ps -aq)` autonomously. Auto-stop only workspace-scoped `restarting` containers (`docker update --restart=no <id> && docker rm -fv <id>`); if foreign-project CrashLoops are detected, fail fast and report exact IDs to the operator.
   - On Linux hosts running `NetworkManager` + `tailscaled`, verify `qa-11x doctor` reports `network_manager_unmanaged_ok: true` (`/etc/NetworkManager/conf.d/99-unmanaged-docker.conf`).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.