/copilot-customization-authoring:harness-engineeringfrom copilot-customization-authoring
Adopt or review repository-level harness engineering for GitHub Copilot and coding agents. Prevents repeated AI coding-agent mistakes by combining instructions, constraints, feedback, memory, evaluation, and governance into durable repository artifacts.
Ships in copilot-customization-authoring. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn repeated coding-agent mistakes into durable repository artifacts by combining instructions, constraints, feedback, memory, evaluation, and governance into a small, evidence-backed harness.
Harness = Instructions + Constraints + Feedback + Memory + Evaluation + Governance
| Principle | Apply it |
|---|---|
| Source of truth | Treat the target repository as authoritative for stack, package manager, CI, docs, naming, and architecture. |
| Inspect before editing | Read existing guidance before adding new guidance. |
| Smallest useful harness | Update existing files before creating duplicates. |
| Enforce when practical | Turn high-value rules into tests, linters, type checks, CI, pre-commit hooks, or drift scripts. |
| Manual where safer | Use review points when automation would be brittle or misleading. |
| Failure memory | Record high-risk failures and name the check or review point that prevents recurrence. |
| No template dumping | Adapt every artifact to evidence in the target repository. |
Read these files and folders when they exist, then summarize the stack, entry points, commands, conventions, failures, and unenforced rules:
README.mdAGENTS.md.github/copilot-instructions.md.github/instructions/.github/workflows/CONTRIBUTING.mdpackage.json, pyproject.toml, go.mod, Cargo.toml, pom.xml, or build.gradledocs/scripts/| 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 |
Agent instructions must cover project purpose, ownership boundaries, setup, test, lint, build, verification commands, package manager rules, dependency rules, safe editing rules, generated file rules, forbidden paths, testing expectations, PR or commit conventions, and how to record new failures or decisions. Avoid broad personality guidance and rules that cannot be checked or reviewed.
Good checks are narrow, fast, named clearly, documented with the rule they protect, and runnable locally or in CI.
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.
Check: test compares profile README files to expected template files.
Create docs/failures/<slug>.md for user-visible, high-risk, or recurring failures unless an existing note already covers the root cause:
# Short Failure Title
## Summary
What failed, who saw it, and why it matters.
## Root Cause
The technical or process cause. Avoid blame.
## Prevention
Instruction, test, drift check, CI gate, fixture, or manual review point that prevents or detects recurrence.
## Evidence
Links to issue, PR, test, log, command output, or file paths.
If automation is unsafe, record the manual review point and why automation would mislead.
Use drift checks when guidance can silently become stale: docs mention removed commands, profile snippets diverge from generated examples, failure notes omit regression checks, decision records are missing for structural changes, or CI references stale scripts or package commands. Prefer the repository's existing language; if there is no convention, Python with only the standard library is a portable default.
When reviewing harness changes, take an opposing perspective and report findings first, ordered by severity, with file and line references when available. Look for generic copied rules, duplicate or conflicting instruction files, broad checks with false positives, unenforced high-risk rules, missing failure memory, generated docs not refreshed, CI gates that skip relevant checks, and harness defaults overwriting target conventions. Do not modify files during review unless explicitly asked.
The prompt-first harness workflow at https://github.com/baskduf/harness-starter-kit is optional reference material only when the user asks for it or the target repository already uses it. Do not let that reference override repository evidence.
## Harness engineering report
**Status:** adopted | reviewed | blocked
**Repository inspected:** <path or repository>
### Evidence reviewed
- <file or folder>: <fact learned>
### Harness changes or findings
| Area | Artifact | Rule or finding | Enforcement |
| --- | --- | --- | --- |
| Instructions | `<path>` | <target-specific rule> | <check, CI, or manual review point> |
### Validation
- `<command or review>`: <pass, fail, or not run with reason>
### Follow-up
- <assumption, skipped failure memory reason, or next check>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
21 skills in this plugin
/agent-skill-stackFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a multi-step workflow, asks which Skills fit a project, needs an installed-Skill audit or conflict check, has low Skill recall, wants indirect helpers such as humanizers or compliance checks, or wants a project-specific Skill Stack with controlled installation. Search local Skills, registries, GitHub, and OpenCLI; compare adoption, verified fit, safety, and overlap. Do not use for locating one known or common Skill; use the generic find-skills workflow./ai-readyHelp users install and use John Papa's ai-ready skill as the up-to-date source for making repositories AI-ready with AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and stack-specific guidance. Use when the user asks to make a repo ai-ready, set up AI config, prepare for AI contributions, or install ai-ready./boost-promptRefine a rough task request into a high-quality markdown prompt by clarifying scope, deliverables, constraints, context, and success criteria, then copy the final prompt to the clipboard with Joyride. Use when the user asks to improve, boost, rewrite, or polish a prompt without writing code. Requires Joyride./cli-masteryInteractive training for the GitHub Copilot CLI through guided lessons, quizzes, scenario challenges, a final exam, and on-demand reference for slash commands, shortcuts, modes, agents, skills, MCP, and configuration. Use when the user says "cliexpert", asks to learn the Copilot CLI, wants a quiz, scenario, challenge, cheat sheet, or final exam./copilot-cli-quickstartUse this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and Non-Developer tracks, plus on-demand Q&A. Just say "start tutorial" or ask a question! Note: This skill targets GitHub Copilot CLI specifically and uses CLI-specific tools (ask_user, sql, fetch_copilot_cli_documentation)./copilot-primitive-authoringAuthor current GitHub Copilot agents, instructions, and VS Code prompts in this repository. Use when asked to create or update a known primitive type with repository governance, dated evidence, canonical sources, templates, synchronization, and type-specific validation.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin copilot-customization-authoringOther plugins' skills for the same job