Aller au contenu
Skillpedia
Programmation générale40k · #7245

harness-engineering

Ce qu’il fait

Cet outil rend les projets de programmation plus fiables pour les assistants IA. Il transforme les erreurs répétées en règles et en vérifications qui empêchent les mêmes problèmes de se reproduire.

Quand l’utiliser

  • ✓Quand vous voulez qu'un assistant IA fasse moins d'erreurs sur un projet.
  • ✓Pour créer des règles claires que les assistants IA doivent suivre dans un projet.
  • ✓Pour consigner les erreurs déjà survenues et s'assurer qu'elles ne se reproduisent pas.

Lien du skill

https://github.com/github/awesome-copilot/blob/main/skills/harness-engineering/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/github/awesome-copilot/blob/main/skills/harness-engineering/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Rends ce projet plus fiable pour les assistants de programmation, en évitant les erreurs qui se sont déjà produites.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'outil analyse le projet pour comprendre son fonctionnement et les erreurs survenues. Il crée ensuite des instructions et des vérifications spécifiques au projet, qui aident l'IA à éviter ces erreurs à l'avenir.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Harness Engineering

Harness engineering turns repeated coding-agent mistakes into durable repository artifacts:

Harness = Instructions + Constraints + Feedback + Memory + Evaluation + Governance

Use this skill when the user asks to:

  • make a repository more reliable for GitHub Copilot or other coding agents
  • add durable agent instructions, repository rules, or guardrails
  • prevent repeated AI coding-agent mistakes
  • record known failure paths and the checks that prevent recurrence
  • add lightweight drift checks for project rules
  • review, refresh, or update an existing agent harness

Do not use this skill for ordinary feature implementation unless the user asks to improve the repository's agent operating environment.

Core Principles

  • Treat the target repository as the source of truth.
  • Inspect before editing. Preserve the existing stack, package manager, CI, docs, naming, and architecture.
  • Add the smallest useful harness. Prefer updating existing files over adding duplicate guidance.
  • Make important rules enforceable where practical through tests, linters, type checks, CI, pre-commit hooks, or drift scripts.
  • Use manual review points only when automation would be brittle or misleading.
  • Record high-risk failures that should not recur, and name the check or review point that catches recurrence.
  • Do not copy generic templates blindly. Adapt every artifact to real evidence in the target repository.

Discovery

Before proposing or making harness changes, inspect the repository for existing rules and evidence.

Read these files and folders when they exist:

  • README.md
  • AGENTS.md
  • .github/copilot-instructions.md
  • .github/instructions/
  • .github/workflows/
  • CONTRIBUTING.md
  • package manifests such as package.json, pyproject.toml, go.mod, Cargo.toml, pom.xml, or build.gradle
  • existing docs under docs/
  • existing scripts under scripts/
  • existing tests and CI checks

Then summarize:

  • stack, package manager, and entry points
  • existing development and verification commands
  • current agent instructions or repository conventions
  • known failures, incidents, flaky paths, or repeated review comments
  • gaps where project rules are not enforced

Adoption Workflow

Follow this sequence:

  1. Choose the harness surface that fits the target repository.
  2. Write target-specific agent instructions.
  3. Add enforceable checks for high-value rules.
  4. Record failure memory for high-risk or recurring failures.
  5. Add drift checks for guidance that can silently become stale.
  6. Report the adoption with evidence, assumptions, and follow-up.

1. Choose the Harness Surface

Pick only the surfaces that fit the target repository:

Need Preferred artifact
Always-on agent behavior AGENTS.md or .github/copilot-instructions.md
File-scoped guidance .github/instructions/*.instructions.md
Recurring project checks scripts/check_*.py, shell scripts, or package scripts
CI enforcement existing workflow files or a small new workflow
Known failures docs/failures/*.md
Architecture or process decisions docs/decisions/*.md
Adoption evidence docs/harness/adoption-report.md or similar

If the repository already has an equivalent location, update it instead of creating a parallel system.

2. Write Agent Instructions

Agent instructions should be concrete and operational. Include:

  • project purpose and major ownership boundaries
  • setup, test, lint, build, and verification commands
  • package manager and dependency rules
  • safe editing rules, generated file rules, and forbidden paths
  • testing expectations for changed code
  • PR and commit conventions if the repo has them
  • how to record new failures or decisions

Avoid broad personality guidance, generic best practices, and rules that cannot be checked or reviewed.

3. Add Enforceable Checks

Convert high-value rules into checks. Good harness checks are:

  • narrow enough to avoid false positives
  • fast enough to run locally and in CI
  • named clearly so agents can run them before finishing
  • documented with the rule they protect

Examples:

Rule: Do not edit generated API clients.
Check: script scans diffs for generated paths and fails with a clear message.

Rule: Every failure memory note names a regression check.
Check: script validates docs/failures/*.md for a "Detection" section.

Rule: Profile docs and templates must stay aligned.

…
Questions fréquentes

Que sont les « repository artifacts » ?

Ce sont les fichiers et les configurations de votre projet (comme les fichiers d'instructions, les tests ou les scripts) qui aident à guider et à vérifier le comportement des assistants IA.

Comment l'outil empêche-t-il la répétition des erreurs ?

Il transforme les erreurs en « mémoire des échecs » et crée des vérifications (comme des tests ou des scripts) qui détectent ces erreurs et les empêchent de se reproduire.

Faut-il savoir coder pour utiliser cet outil ?

Non, vous n'avez pas besoin d'être un programmeur expérimenté. L'outil est conçu pour être utilisé même si vous ne comprenez pas les détails techniques du code.

Détails

Description originale de l’auteur

Adopt repository-level harness engineering for coding agents. Use when a user wants to prevent repeated AI coding-agent mistakes by turning failures into durable instructions, drift checks, regression tests, failure memory, and adoption reports tailored to the target repository.

repo: github/awesome-copilot

Popularité

Étoiles GitHub
40k
Position au classement
#7245
Licence
MIT
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires