Communitygithub.com

vérification-avant-complétion

Utiliser lorsqu'on est sur le point de déclarer un travail terminé, corrigé ou réussi, avant de commiter ou de créer des PR. Nécessite l'exécution des commandes de vérification et la confirmation du résultat avant toute déclaration de succès ; toujours fournir des preuves avant les affirmations.

Qu'est-ce que vérification-avant-complétion ?

Cette compétence impose un principe fondamental : aucune déclaration de complétion, de succès ou de satisfaction ne peut être faite sans une preuve de vérification fraîchement obtenue. Elle fournit un cadre strict, appelé « Gate Function », qui exige d'identifier la commande appropriée, de l'exécuter intégralement, de lire le résultat complet, de vérifier que celui-ci confirme l'affirmation, et seulement alors de faire la déclaration. Le skill détaille des cas d'échec courants (tests, linter, build, corrections de bugs, tests de régression, délégation à un agent) avec des preuves minimales requises, et liste des signaux d'alerte indiquant un risque de violation (mots comme « devrait », « probablement », expressions de satisfaction prématurées). Il inclut également une table de prévention de rationalisation pour contrer les excuses typiques, des motifs clés avec exemples formatés (✅ marche à suivre, ❌ à éviter), et précise que la règle s'applique avant toute déclaration de complétion, avant tout commit/PR, et même lors de la délégation à d'autres agents. C'est un outil de discipline processuelle destiné à garantir l'intégrité des déclarations dans les workflows de développement.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alfathafp/portofolio-web-design/tree/HEAD/.agents/skills/verification-before-completion

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Vérification avant complétion

Aperçu

Principe fondamental : Des preuves avant les affirmations, toujours.

Violer la lettre de cette règle, c'est violer son esprit.

La Loi de Fer

AUCUNE DÉCLARATION DE COMPLÉTION SANS PREUVE DE VÉRIFICATION FRAÎCHE

Si vous n'avez pas exécuté la commande de vérification dans ce message, vous ne pouvez pas prétendre qu'elle réussit.

La Fonction de Porte

AVANT de déclarer un état ou d'exprimer une satisfaction :

1. IDENTIFIER : Quelle commande prouve cette affirmation ?
2. EXÉCUTER : Exécuter la commande COMPLÈTE (fraîche, intégrale)
3. LIRE : Sortie complète, vérifier le code de sortie, compter les échecs
4. VÉRIFIER : La sortie confirme-t-elle l'affirmation ?
   - Si NON : Indiquer l'état réel avec des preuves
   - Si OUI : Indiquer l'affirmation AVEC les preuves
5. ALORS SEULEMENT : Faire la déclaration

Sauter une étape = mentir, pas vérifier

Échecs courants

AffirmationNécessitePas suffisant
Les tests passentSortie de la commande de test : 0 échecsExécution précédente, « devrait passer »
Linter propreSortie du linter : 0 erreursVérification partielle, extrapolation
Build réussiCommande de build : sortie 0Linter passe, logs semblent bons
Bug corrigéTester le symptôme original : passeCode modifié, supposé corrigé
Test de régression fonctionneCycle rouge-vert vérifiéTest passe une fois
Agent terminéLe diff VCS montre des modificationsL'agent rapporte « succès »
Exigences satisfaitesChecklist ligne par ligneTests passent

Drapeaux Rouges - STOP

  • Utiliser « devrait », « probablement », « semble »
  • Exprimer sa satisfaction avant vérification (« Super ! », « Parfait ! », « Fait ! », etc.)
  • Être sur le point de commiter/pousser/faire une PR sans vérification
  • Faire confiance aux rapports de succès d'un agent
  • Se fier à une vérification partielle
  • Penser « juste pour cette fois »
  • Être fatigué et vouloir en finir
  • TOUTE formulation impliquant un succès sans avoir exécuté la vérification

Prévention de la Rationalisation

ExcuseRéalité
« Devrait marcher maintenant »EXÉCUTEZ la vérification
« Je suis confiant »La confiance ≠ preuve
« Juste pour cette fois »Aucune exception
« Le linter est passé »Linter ≠ compilateur
« L'agent a dit succès »Vérifiez indépendamment
« Je suis fatigué »L'épuisement ≠ excuse
« La vérification partielle suffit »Partielle ne prouve rien
« Des mots différents, donc la règle ne s'applique pas »L'esprit plutôt que la lettre

Motifs Clés

Tests :

✅ [Exécuter commande de test] [Voir : 34/34 passent] « Tous les tests passent »
❌ « Devrait passer maintenant » / « Semble correct »

Tests de régression (TDD Rouge-Vert) :

✅ Écrire → Exécuter (passe) → Revenir en arrière → Exécuter (DOIT ÉCHOUER) → Restaurer → Exécuter (passe)
❌ « J'ai écrit un test de régression » (sans vérification rouge-vert)

Build :

✅ [Exécuter build] [Voir : sortie 0] « Build passe »
❌ « Le linter est passé » (le linter ne vérifie pas la compilation)

Exigences :

✅ Relire le plan → Créer une checklist → Vérifier chaque élément → Signaler les lacunes ou la complétion
❌ « Les tests passent, phase terminée »

Délégation à un agent :

✅ Agent rapporte succès → Vérifier le diff VCS → Vérifier les modifications → Signaler l'état réel
❌ Faire confiance au rapport de l'agent

Quand Appliquer

TOUJOURS avant :

  • TOUTE variation de déclarations de succès/complétion
  • TOUTE expression de satisfaction
  • TOUTE déclaration positive sur l'état du travail
  • Commiter, création de PR, achèvement de tâche
  • Passer à la tâche suivante
  • Déléguer à des agents

La règle s'applique à :

  • Expressions exactes
  • Paraphrases et synonymes
  • Implications de succès
  • TOUTE communication suggérant une complétion/correction

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

alfathafp/portofolio-web-design

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).

alfathafp/portofolio-web-design

Tests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured.

alfathafp/portofolio-web-design

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

alfathafp/portofolio-web-design

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline.

alfathafp/portofolio-web-design

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

alfathafp/portofolio-web-design

Establishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, assertions stripped out, unimplemented stubs, thresholds edited down. Use when no quality bar is written down, when the user says "set up constraints" or "define our standards", when the user wants dimensions they care about — accessibility, web performance, coverage — set up as enforced constraints, when an agent keeps silencing checks or skipping tests to get to green, when you need a coverage or performance threshold and don't know what number to pick, or when an agent writes more code than anyone will read.

alfathafp/portofolio-web-design

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

alfathafp/portofolio-web-design

Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing.

alfathafp/portofolio-web-design

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

alfathafp/portofolio-web-design

Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.

alfathafp/portofolio-web-design

Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

alfathafp/portofolio-web-design

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

alfathafp/portofolio-web-design

Records decisions and documentation. Use when you need to document an architecture decision (ADR) or the reasoning behind a design choice, when changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.

alfathafp/portofolio-web-design

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production auth, security-sensitive logic, a high-stakes migration, irreversible operations), or any time a confident output would be cheaper to verify now than to debug later.

alfathafp/portofolio-web-design

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

alfathafp/portofolio-web-design

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

alfathafp/portofolio-web-design

Builds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.

alfathafp/portofolio-web-design

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump, tagging, or writing a changelog.

alfathafp/portofolio-web-design

Refines raw ideas into sharp, actionable concepts through structured divergent and convergent thinking. Use when an idea is still vague, when you need to stress-test assumptions before committing to a plan, or when you want to expand options before converging on one. Triggers on "ideate", "refine this idea", or "stress-test my plan".

alfathafp/portofolio-web-design

Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

Skills associés