Synthèse automatique
Une compétence d'ingénierie centrée sur la démarche : comment explorer le code, planifier, tester et relire un changement avant et pendant son écriture.
Points forts
- Impose une phase de recherche et d'alignement sur les conventions existantes (2-3 exemples de code similaire) avant d'écrire du nouveau code.
- Fait du cycle RED-GREEN-REFACTOR la démarche par défaut, avec une liste explicite d'exceptions (scripts, spikes, ajustements de configuration).
- Définit une chaîne de fin de tâche (tests → intégration → /simplify → /code-review) et impose de replanifier dès que l'exécution dérape.
- Rappelle ce qu'il ne faut jamais simplifier : validation des entrées, gestion d'erreurs, sécurité, accessibilité.
Limites
- Fortement liée aux outils de Claude Code (mode plan, /simplify, /code-review high) ; peu transposable telle quelle à d'autres agents.
- Repose sur le jugement du modèle pour décider quand appliquer le TDD ; la liste d'exceptions est large et peut servir à éviter les tests.
- Reste vague sur la mesure des performances au-delà du principe « profiler d'abord ».
À mobiliser avant d'implémenter une fonctionnalité, de refactoriser, de corriger un bug ou de relire un changement non trivial.
À écarter pour des retouches de texte, des contenus rédactionnels ou des données Company OS, où ce cérémonial n'apporte rien.
Analyse de sécurité
SûrThe skill is a set of engineering guidelines for an AI coding agent. It does not instruct any destructive, exfiltrating, or obfuscated actions. It mentions using tools like Grep/Glob for research, but no execution of shell commands or network operations is prescribed. No sensitive data handling or security bypass is involved.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Add rate limiting to our Express API. Map the existing middleware patterns first, show me a high-level then task-level plan, and implement it test-first.Coupon codes get applied twice when a payment retry happens. Plan the fix and write a failing test that reproduces it before touching any code.Refactor the billing module for readability without changing behavior — work make-it-work then make-it-right, and run the review pass once tests are green.name: engineering description: >- How to approach building and changing software: research before writing, plan, TDD, the work/right/fast progression, documentation hierarchy, fail-fast validation, and what to do when stuck. Use before implementing a feature, refactoring, fixing a bug, reviewing a change, or planning non-trivial repository work. Skip for content edits, prose, and Company OS data.
Engineering
Readability and changeability are primary. Small functions, single responsibility. Reserve mocks for isolated test seams.
Research before writing
- Use Grep/Glob to map the space. Read files end-to-end when you will edit them, plus immediate callers and tests.
Conform before creating
- Before adding new code, find 2-3 examples of similar code in the codebase. Match their naming, file structure, error handling, and test style.
- Priority: architecture docs (CLAUDE.md, rules) outrank existing code. Documented intent wins when current code contradicts it.
- Without a target doc, follow established codebase conventions. Consistency beats personal preference.
Plan
- Enter plan mode for non-trivial tasks (3+ steps, architectural decisions, verification work).
- Plan at two levels: high-level (overall goals and flow), then task-level (specific files or features). Implement only after the user approves both levels.
- Before planning anything complex, list every source document, methodology file, and reference you intend to use. Wait for the user to add or remove items before producing the plan.
- When something goes sideways mid-execution, stop and re-plan.
Test-driven development (default)
Follow RED-GREEN-REFACTOR for new features and non-trivial logic:
- RED: write a concrete failing test that defines the requirement.
- GREEN: write the minimum code to make it pass.
- REFACTOR: clean up via
/simplifyand/code-review highwhile keeping tests green.
TDD applies to features and non-trivial logic in real projects. Scripts, spikes, one-off tools, config tweaks, doc edits, typo fixes, and one-line changes skip the cycle and get the minimal runnable check instead. Use judgment.
Progression
- Make it work: functioning code that passes tests.
- Make it right: refactor for clarity and maintainability.
- Make it fast: optimize only after profiling reveals a real bottleneck.
One feature at a time
- Finish one well-defined feature before the next. Defer nice-to-haves until the core is complete and verified.
- Completion chain: tests pass -> integration works end-to-end ->
/simplify->/code-review high. Run/simplifybefore the final summary on any task touching 3+ files or refactoring a non-trivial module. For auth/data/billing/external-API changes, add security and performance checks against baseline. - Fix broken links in the chain before moving on.
- Cleanup, review, and quality passes scan the whole working tree (
git status+git diff), not only files touched in the current conversation. In-flight changes from another session sit alongside today's work: read them for context and leave them to their author. An unstaged change you revert is gone from git for good.
Fail fast and validate
- Validate aggressively at inputs and integration boundaries. Give clear, descriptive errors when something breaks.
- Actively probe edge cases, invalid inputs, and unexpected conditions.
When not to be lazy
Never simplify away: input validation at trust boundaries, error handling that prevents data loss, security measures, accessibility basics. Work that doesn't warrant full TDD still leaves one runnable check behind: the smallest thing that fails if the logic breaks. Trivial one-liners need no test. YAGNI applies to tests too.
Comments and documentation
Deletion is the default. Write a comment only for a fact the code cannot state: an ordering constraint, an external limit or quirk, a security rationale, the bug a guard exists for, or a cross-file contract nothing else records. One sentence, in the file's prevailing style. Keep directive comments (shellcheck, eslint, noqa, pragma, shebang).
Documentation hierarchy, in order of preference:
- Working code: self-documenting through clear naming.
- Tests: executable documentation; the tests are the spec.
- README / docs: setup, architecture, API specs.
- Comments: last resort.
Leave it better
- Leave it better than you found it, even when fixing something unrelated.
- Clean up test scripts, data files, temporary backups, and files from abandoned strategies when done.
When stuck: STOP -> INVESTIGATE -> SIMPLIFY -> CLARIFY -> SEARCH
- STOP: more code won't fix it. Re-plan.
- INVESTIGATE: use a debugger, add logging, inspect actual I/O.
- SIMPLIFY: isolate the problem with a smaller test.
- CLARIFY: ask before guessing at requirements.
- SEARCH: look for existing solutions in this codebase or elsewhere.
After 3 distinct investigation attempts without progress, escalate with: goal, attempts, actual vs expected, environment state, next steps needed.
Autonomous bug fixing
Given a clear bug report: fix it. Errors, logs, failing tests point the way. Fix failing CI without waiting to be told how. Ask for clarification when the requirement contradicts itself, references a missing artifact, or has more than one defensible interpretation. Otherwise proceed.
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 annexesCe 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.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/engineering-practices-msih94wc/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/engineering-practices-msih94wc' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/engineering-practices-msih94wc/download' --output '.skill-downloads/engineering-practices-msih94wc/SKILL.md.part' && mv '.skill-downloads/engineering-practices-msih94wc/SKILL.md.part' '.skill-downloads/engineering-practices-msih94wc/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
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/engineering-practices-msih94wc/SKILL.md' && test -s '.skill-downloads/engineering-practices-msih94wc/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/engineering' && cp -R '.skill-downloads/engineering-practices-msih94wc' '.claude/skills/engineering'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/engineering-practices-msih94wc'openskills read 'engineering-practices-msih94wc'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode 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/engineering-practices-msih94wc/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.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.