Skills Agentes

Pr Enforcement Action

Nota interna del proyecto no-mistakes. Se usa al cambiar o migrar la action compartida `require-no-mistakes` de enforcement de PR o su workflow llamador.

Estrellas
8.2k

en todo el repo

Actividad
60

0–100, la ruta de este skill

Actualizado
hace 3 días

último commit aquí

Commits
1

últimos 90 días

Contexto
972 tok

27 tok en reposo

Paquete
1 archivo

4 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add kunchenguid/no-mistakes --skill pr-enforcement-action --agent claude-code

Se instala solo en este repositorio.

Qué hace

  • Nota interna sobre la action compartida de enforcement de PR (`.github/actions/require-no-mistakes`): una composite action que reemplaza scripts copiados y propensos a drift en los repos que la aplican.
  • Verifica la línea de firma, parsea la attestation v1 de pasos del pipeline, vincula `head_sha` al head del PR y exige que `review`, `test` y `document` estén `completed`.
  • Los llamadores fijan un tag de release o un SHA de commit, nunca `@main`, que el PR juzgado podría editar; qué pasos son obligatorios no es un input, así que ningún llamador puede debilitar el gate.
  • El gate propio del repo es un llamador fino fijado a un SHA ya publicado: el PR se testea en su propio head mientras el check obligatorio que lo juzga corre la copia publicada, así que el cambio no puede reescribir a su propio juez.
  • Un llamador que gana binding de `head_sha` debe quitar `synchronize` de los tipos de `on.pull_request`, salvo donde un ruleset o branch protection REQUIERA el check.

Úsalo cuando

  • Se cambia o migra la action compartida `require-no-mistakes` de enforcement de PR o su workflow llamador.

No lo uses cuando

    Qué lo activa

    Di cualquiera de estas frases y el agente debería cargar este skill.

    • Voy a migrar un repo al action compartido require-no-mistakes
    • Cambia el workflow llamador del gate de PR
    • Revisa el binding de head_sha y los triggers del enforcement

    SKILL.md

    En inglés

    Shared PR-Enforcement Action (.github/actions/require-no-mistakes)

    • The shared implementation of the PR must be raised via no-mistakes gate is a composite action that lets enforcing repositories replace copied, drift-prone scripts. It verifies the signature line, parses the v1 pipeline-step attestation, binds head_sha to the PR head, and requires review, test, and document to be completed. Callers pin a release tag or commit SHA, never @main, which the judged PR can edit. Per-repo configuration is exemptions only (exempt-authors, exempt-bot-authors, exempt-head-branches); which steps are required is deliberately not an input, so no caller can weaken the gate while still reporting the same check name. The action README owns usage; CONTRIBUTING.md owns the contributor-facing contract.
    • This repository's own gate (.github/workflows/no-mistakes-required.yml) is a thin caller of the action, pinned at an already-published commit SHA. GitHub downloads uses: at job setup, so the pin must always name a ref that already carries the action. That pin IS the self-certification guard: a PR editing the action is fully tested on its own head (the Go tests execute the working-tree verify.py) while the required check judging it runs the published pinned copy, so the change cannot rewrite its own judge. Bumping the pin is a separate deliberate PR.
    • This repo's automation exemptions stay in the job-level if:, not in exempt-authors. An in-job exemption still needs the run to start, and a GITHUB_TOKEN PR's run is created in action_required and never starts; the paths-ignore entries exist for the same reason. Repos without that constraint should prefer the action's inputs.
    • Duplicate step records are LAST-WINS by design (check_required_steps in verify.py), and a skip-shaped sibling field on a completed record is deliberately not inspected. Some pre-migration inline gates were stricter (requiring every record of a name to be completed); that strictness is explicitly NOT the standard, and relaxing to last-wins on migration is the intended outcome, not a regression. Do not "harden" this without an owner decision.
    • A caller that gains head_sha binding must also drop synchronize from on.pull_request.types, matching this repository's own post-#773 trigger set. Binding plus synchronize pins a stale FAILURE check run to a head the pipeline is about to fix, and gh pr checks collapses same-named runs by startedAt, so the CI monitor can park the run red forever. That change is only safe where no ruleset or branch protection REQUIRES the check - otherwise a pushed head gets no run and the requirement blocks the merge forever. Verify per repo with gh api repos/<owner>/<repo>/rulesets plus .../branches/<branch>/protection; at the time of the fleet migration treehouse, sshhip, and wheelhouse required it and therefore keep synchronize.
    • Migrating a repository is rarely a one-file swap. Repos whose tests extract and execute the inline run: block (an extractGateScript() helper and its gate test) break at import once the block is gone, and repo-level AGENTS.md notes that tell agents to hand-copy the gate from a sibling repository must be rewritten - that copying is the drift the shared action exists to remove.
    • Regressions: require_no_mistakes_action_test.go executes verify.py the way a runner does (verdicts, exemption surface, event-payload binding); workflow_no_mistakes_required_test.go owns the CALLER - immutable-SHA pin, single delegating step, exemptions, triggers, concurrency identity, fork boundary - and drives the real action through the event payload.

    Reproducido de kunchenguid/no-mistakes bajo licencia MIT. Leer esta página en markdown.

    Archivos

    1 archivo en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.

    Detalles

    Licencia
    MIT
    Recursos incluidos
    Solo SKILL.md
    Código fuente
    Ver SKILL.md

    Más de kunchenguid/no-mistakes

    Este repo incluye 16 skills. Si instalas uno, normalmente ya tienes los demás.

    Valida tus cambios de código por el pipeline de no-mistakes (review de código automatizado, tests, lint, docs, push, PR y CI) antes de que lleguen al destino de push configurado. Se activa con `/no-mistakes`.

    Costo de contexto al activarse
    5.9k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 3 días
    devops infraestructura

    Nota interna del proyecto no-mistakes. Se usa al cambiar la readiness de CI, la recogida de checks del forge, los reruns, los timeouts de CI o la monitorización del ciclo de vida del PR.

    Costo de contexto al activarse
    2.6k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    anteayer
    devops infraestructura

    Nota interna del proyecto no-mistakes. Se usa al cambiar las sesiones de review, las decisiones sobre findings, los timeouts de agente, el comportamiento del Test local o la conformidad con la intención.

    Costo de contexto al activarse
    4.1k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 3 días
    herramientas desarrollo

    Nota interna de seguridad del proyecto no-mistakes. Se usa al cambiar el render del cuerpo del PR, la redacción de rutas de home, la publicación de rutas de artefacto o los marcadores de attestation de pipeline.

    Costo de contexto al activarse
    1.1k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    anteayer
    seguridad

    Nota interna del proyecto no-mistakes. Se usa al añadir o cambiar tests, el harness e2e, el aislamiento de procesos de test o el sharding de tests en CI.

    Costo de contexto al activarse
    1.1k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    anteayer
    testing qa

    Nota interna del proyecto no-mistakes. Se usa al cambiar la configuración de modelo o esfuerzo de un agente, los mapeos de adaptador o los perfiles de candidato de eval, todo bajo el dueño único `internal/agentcfg`.

    Costo de contexto al activarse
    519 tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 3 días
    herramientas desarrollo

    Skills relacionados

    Wizard

    243k

    Genera un wizard bash interactivo que guía a un humano por los pasos que solo él puede dar. Úsalo para aprovisionar infraestructura, credenciales o secretos de CI, o una migración puntual.

    Costo de contexto al activarse
    1k tok
    Tamaño del paquete
    3 archivos
    Última actualización
    hace 25 días
    devops infraestructura

    Canary

    131k

    Monitoreo canary post-deploy: vigila la app en producción tras el despliegue. (gstack)

    Costo de contexto al activarse
    14.8k tok
    Tamaño del paquete
    2 archivos
    Última actualización
    hace 12 días
    Permisos
    devops infraestructura

    Actualiza gstack a la última versión.

    Costo de contexto al activarse
    3.8k tok
    Tamaño del paquete
    14 archivos
    Última actualización
    hace 12 días
    Permisos
    devops infraestructura