blockmatic/basilic-skills

w-gha

Retrieve GitHub Actions logs with gh, analyze failures, and fix CI errors locally.

Quelltext ansehen

Verwendung

  1. Installationsbefehl kopieren und das Quellpaket vor der Installation in der eigenen Agentenumgebung prüfen.
  2. Benötigte Werkzeuge, Zugangsdaten und Hosts im Original prüfen.
  3. Eingabe und gewünschtes Ergebnis beschreiben und die Ausgabe mit den Quellen abgleichen.
npx skills add https://github.com/blockmatic/basilic-skills --skill w-gha

Vor dem Start

  • Die Installation umfasst weder Modellabo noch API-Kontingent oder Dateizugriffsrechte.
  • Sterne und Installationen zeigen Aktivität, keine unabhängige Qualitäts- oder Sicherheitsprüfung.
Originales Skill-Dokument

Aus dem Quell-Repository gerendert; Überschriften, Beispiele, Code, Tabellen, Links und Bilder bleiben erhalten.

Fix failing GitHub Actions for the current branch. Use `gh`, never GitHub MCP for Actions logs. Follow git publish.

  1. git branch --show-current. Resolve the upstream tracking branch and confirm it exists. git status -sb is not proof the branch is pushed. Confirm HEAD is not ahead of upstream, or identify the PR head SHA (gh pr view --json headRefOid) and use that SHA when selecting runs.
  2. gh pr checks; gh run list --branch "$(git branch --show-current)" --limit 10 (or --commit <headSha>); failed run → gh run view <id> --log-failed; artifacts → gh run download <id>.
  3. Parse logs for tests, lint, build, missing deps, env, timeouts. When 2+ jobs failed, spawn one read-only parser per distinct job. Change the owning cause yourself.
  4. Re-run the same local commands the workflow uses. Do not add gh run watch to every push. No commit or push unless the user requested that action.
  5. Docs: /w-docs if behavior or commands changed.

Verwandte Aufgaben

aus demselben Repository

Weitere Skills

Alle Skills