Pipeline de correction d'issue GitHub

VérifiéPrudence

Workflow en phases pour récupérer, diagnostiquer, corriger et tester une issue GitHub dans le projet Rust ByroRedux, avec vérification ciblée par crate.

Spar Skills Guide Bot
DeveloppementIntermédiaire
09/11/2026
Claude Code
#github-issues#rust#cargo#bug-fixing#workflow

Recommandé pour

Synthèse automatique

Ce skill transforme un numéro d'issue GitHub en un pipeline en huit phases : récupération de l'issue, classification par domaine, investigation ciblée, implémentation, tests, vérifications de complétude, puis commit et fermeture de l'issue.

Points forts

  • Découpage explicite en phases avec commandes concrètes (gh issue view, cargo check/test) pour chaque étape
  • Classification par crate qui alimente directement la cible `-p` des tests, évitant de lancer la suite complète du workspace à chaque itération
  • Boucle interne rapide (cargo check sur une seule crate), tests scopés puis un unique passage final sur tout le workspace
  • Checklist de complétude finale couvrant unsafe, motifs d' bugs similaires, cycle de vie Vulkan, tests de régression et pins de données réelles

Limites

  • Dépôt et taxonomie de crates codés en dur (matiaszanolli/ByroRedux), le skill doit être adapté pour tout autre projet
  • Suppose un environnement préparé : gh authentifié, toolchain Rust, CLAUDE.md décrivant les conventions, et un fichier .github/real-data-pins.txt existant
  • Ne décrit pas de procédure si l'issue est déjà fermée, invalide ou dupliquée, ni de stratégie de rollback en cas d'échec des tests
Quand l'utiliser

À utiliser lorsqu'un contributeur veut déléguer de bout en bout la correction d'une issue connue du dépôt ByroRedux, de la lecture du rapport jusqu'au commit et à la fermeture.

Quand l'éviter

À éviter pour des changements exploratoires sans issue associée, pour un autre dépôt que celui codé en dur, ou lorsque l'accès réseau et l'authentification gh ne sont pas disponibles.

Analyse de sécurité

Prudence
Score qualité83/100

The skill is a straightforward, transparent engineering workflow for fixing GitHub issues: fetch via gh, investigate, implement, run cargo check/test, commit, close the issue. There is no obfuscation, no curl|sh, no credential or token handling, and no attempt to disable safety controls; commands are all standard developer tooling against a single named repo. The residual risk is ordinary for a dev-automation skill — it invokes powerful CLIs (gh, git, cargo) and ends with unconfirmed commit + public issue close, which is why it is rated caution rather than safe.

Points d'attention
  • •No allowed-tools declared even though the workflow requires shell access (gh, cargo, git), so permission scope for bash/git/network operations is implicit rather than constrained.
  • •Phase 8 performs state-changing actions without an explicit confirmation gate: `git commit` and `gh issue close ... --comment`, the latter being a public, other-visible action on a remote repository.
  • •`$ARGUMENTS` is interpolated directly into shell commands (`gh issue view $ARGUMENTS`, `gh issue close $ARGUMENTS`); while an issue number is expected, there is no validation or quoting, so unexpected input could alter command parsing.
  • •Writes artifacts into `.claude/issues/<n>/` and modifies source/tests and `.github/real-data-pins.txt` as part of the pipeline.
  • •Hardcodes a specific repository (matiaszanolli/ByroRedux) and performs real side effects: git commit and `gh issue close` on GitHub — the agent will close issues without an explicit user confirmation gate (Phase 4 only gates >5 file changes)
  • •`$ARGUMENTS` is interpolated unquoted into shell commands (`gh issue view $ARGUMENTS ...`, `gh issue close $ARGUMENTS ...`), so shell metacharacters in the argument could alter the command line (argument/command injection surface); should be quoted/validated as a numeric issue ID
  • •No allowed-tools are declared even though the workflow requires bash/gh/cargo/git execution, so the executing agent's tool permissions are unspecified
  • •Writes artifacts into `.claude/issues/$ARGUMENTS/`, which could allow path traversal outside that directory if the argument is not a plain issue number
Comment cette analyse est faite

Exemples

Fix a renderer issue
/fix-issue 6224
Fix a specific bug report
Fetch GitHub issue 1187 for matiaszanolli/ByroRedux, investigate the NIF parsing path it points to, implement the fix, run the scoped tests, and commit with a conventional message that closes the issue.
Investigate then patch
Look at issue 942, figure out which crate owns the bug, add a regression test, and push a fix commit referencing the issue.

description: "Fetch a GitHub issue, investigate, plan, implement, test, and commit the fix" argument-hint: "<issue-number>"

Fix Issue Pipeline

Phase 1: Fetch

gh issue view $ARGUMENTS --repo matiaszanolli/ByroRedux --json title,body,labels,state

Save details to .claude/issues/$ARGUMENTS/ISSUE.md.

Phase 2: Classify Domain

Classify the issue — the matched crate becomes the -p test target in Phase 6:

  • renderer → byroredux-renderer — Vulkan, pipeline, GPU memory, sync, shaders, RT acceleration
  • ecs → byroredux-core — Storage, queries, world, systems, resources, components
  • nif → byroredux-nif — NIF parsing, block types, version handling, import pipeline
  • animation → byroredux-core (+ byroredux-nif for KF import) — interpolation, blending, animation system
  • bsa → byroredux-bsa — BSA/BA2 archive reading, extraction, decompression
  • esm → byroredux-plugin — ESM record parsing, cell loading, XCLL lighting
  • platform → byroredux-platform — Windowing, input, OS abstractions
  • cxx → byroredux-cxx-bridge — C++ interop
  • binary → byroredux — Game loop, scene setup, demo code

Phase 3: Investigate

Read only the source files on the code path — don't pre-read a whole crate, and don't re-read files already in context. Trace the path inline.

Specialist agents are a last resort, not a default. Each one is a fresh context window — only delegate when the issue genuinely spans 2+ domains and you can't trace it yourself. When you do, ask the agent for a conclusion (file:line + cause), not file dumps.

INVESTIGATION.md is optional. Skip it for single-site fixes — the commit body covers those. Write it only when the investigation uncovered non-obvious findings worth preserving (cross-file interactions, a wrong-looking-but-correct invariant).

Phase 4: Scope Check

If fix touches >5 files, pause and confirm with the user before proceeding.

Phase 5: Implement

Follow project conventions from CLAUDE.md.

  • Shaders: recompile SPIR-V if GLSL changed
  • No new dependencies without user approval
  • Inner loop = cargo check -p <crate> (the Phase 2 crate), not the full workspace. It's the fastest signal while iterating. Do not run cargo test on every edit — save it for Phase 6.

Phase 6: Verify

Scope first, widen only at the end. Keep output quiet so test logs don't flood context — -q prints dots for passes and full detail only for failures.

cargo test -q -p <crate>          # the Phase 2 crate — the only suite that can regress for a scoped fix
cargo test -q                     # full workspace — ONCE, final gate (skip the redundant `cargo check`: test already built everything)

All tests must pass with zero warnings. Run the full suite a single time at the end, not per fix iteration. For a fix confined to one crate with no cross-crate surface, the scoped run is sufficient evidence — note that you scoped it.

Phase 7: Completeness Checks

Before committing, verify:

  • [ ] UNSAFE: Any new unsafe blocks have safety comments
  • [ ] SIBLING: Same bug pattern checked in related files
  • [ ] DROP: Vulkan object lifecycle correct (destroy-before-parent)
  • [ ] TESTS: Regression test added if applicable
  • [ ] PINS: A HIGH/CRITICAL fix whose proof is an #[ignore]d real-data test appends <lane> <test fn> to .github/real-data-pins.txt (#6224)

Phase 8: Commit & Close

Commit with conventional message referencing the issue:

Fix #<number>: <description>

Close the issue:

gh issue close $ARGUMENTS --repo matiaszanolli/ByroRedux --comment "Fixed in <commit-hash>"

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/github-issue-fix-pipeline-mvj1ocrj/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/github-issue-fix-pipeline-mvj1ocrj' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/github-issue-fix-pipeline-mvj1ocrj/download' --output '.skill-downloads/github-issue-fix-pipeline-mvj1ocrj/SKILL.md.part' && mv '.skill-downloads/github-issue-fix-pipeline-mvj1ocrj/SKILL.md.part' '.skill-downloads/github-issue-fix-pipeline-mvj1ocrj/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Le fichier ne fournit pas un en-tête name/description exploitable pour cette procédure native. Le téléchargement reste disponible pour lecture ; utilisez le mode manuel ci-dessous.

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/github-issue-fix-pipeline-mvj1ocrj/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires