मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग40k · #7245

harness-engineering

यह क्या करती है

यह टूल कोडिंग प्रोजेक्ट्स को AI असिस्टेंट के लिए ज़्यादा भरोसेमंद बनाने में मदद करता है। यह बार-बार होने वाली गलतियों को नियमों और जाँचों में बदल देता है, ताकि वही समस्याएँ दोबारा न हों।

कब इस्तेमाल करें

  • ✓जब आप चाहते हों कि AI असिस्टेंट किसी प्रोजेक्ट पर कम गलतियाँ करे।
  • ✓किसी प्रोजेक्ट में AI असिस्टेंट्स के लिए साफ नियम बनाने के लिए।
  • ✓जो गलतियाँ पहले हो चुकी हैं, उन्हें दर्ज करने और दोबारा न होने देने के लिए।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/github/awesome-copilot/blob/main/skills/harness-engineering/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“इस प्रोजेक्ट को coding assistants के लिए ज़्यादा भरोसेमंद बनाओ, और जो गलतियाँ पहले हो चुकी हैं उन्हें दोबारा होने से रोको।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह टूल प्रोजेक्ट का विश्लेषण करता है ताकि समझ सके कि वह कैसे काम करता है और कौन सी गलतियाँ हुई हैं। फिर वह उस प्रोजेक्ट के लिए खास निर्देश और जाँचें बनाता है, जिससे AI भविष्य में इन गलतियों से बच सके।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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.

…
अक्सर पूछे जाने वाले सवाल

'repository artifacts' क्या होते हैं?

ये आपके प्रोजेक्ट के अंदर की फाइलें और कॉन्फ़िगरेशन होते हैं (जैसे निर्देश वाली फाइलें, टेस्ट या स्क्रिप्ट्स), जो AI असिस्टेंट के व्यवहार को दिशा देने और उसे जाँचने में मदद करते हैं।

यह टूल बार-बार होने वाली गलतियों को कैसे रोकता है?

यह गलतियों को 'failure memory' में बदलता है और ऐसी जाँचें (जैसे टेस्ट या स्क्रिप्ट) बनाता है जो इन गलतियों को पकड़ लें और उन्हें दोबारा होने से रोकें।

क्या इसे इस्तेमाल करने के लिए मुझे कोडिंग आनी चाहिए?

नहीं, आपको अनुभवी प्रोग्रामर होने की ज़रूरत नहीं है। यह टूल इस तरह बनाया गया है कि कोड की तकनीकी बातें समझे बिना भी इसका इस्तेमाल किया जा सके।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
40k
रैंकिंग में स्थान
#7245
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

acquire-codebase-knowledge

40k

आपके एजेंट को किसी मौजूदा code प्रोजेक्ट को समझने और उसका documentation बनाने में मदद करता है। यह नए लोगों को प्रोजेक्ट से जोड़ने या architecture का सार जानने में उपयोगी है।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

acreadiness-assess

40k

आपके एजेंट को किसी प्रोजेक्ट की AI के लिए तैयारी जाँचने और रिपोर्ट बनाने देता है। यह समझने में उपयोगी है कि प्रोजेक्ट AI tools इस्तेमाल करने के लिए कितना तैयार है।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

acreadiness-generate-instructions

40k

आपके एजेंट को assessment के आधार पर AI tools के लिए निर्देश बनाने में मदद करता है। यह बताता है कि AI कोड के साथ बेहतर कैसे काम करे और पहचानी गई कमियाँ कैसे दूर हों।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

acreadiness-policy

40k

आपके एजेंट को AI प्रोजेक्ट assessment के लिए नीतियाँ तय करने या लागू करने में मदद करता है। यह प्रोजेक्ट्स के मूल्यांकन को मानक बनाने और compliance सुनिश्चित करने में उपयोगी है।

AI और एजेंटएजेंट

मिलती-जुलती skills