harness
यह क्या करती है
यह गाइड एजेंट स्किल की संरचना समझाती है, जिसमें उसकी SKILL.md फ़ाइल, संदर्भ दस्तावेज़ और स्क्रिप्ट शामिल हैं, और स्किल कहाँ रखी जा सकती है। यह उन डेवलपरों के लिए है जो AI एजेंट के लिए स्किल सेट करते हैं।
कब इस्तेमाल करें
- ✓जब आप एजेंट के लिए SKILL.md फ़ाइल वाली स्किल पैक करना चाहते हैं।
- ✓जब आपको जानना है कि स्किल कहाँ से इंस्टॉल हो सकती है, जैसे Git रिपॉज़िटरी या साझा वर्कस्पेस से।
- ✓जब आप एजेंट के लिए हर उपयोगकर्ता का अलग स्किल फ़ोल्डर सेट करना चाहते हैं।
Skill का लिंक
https://github.com/agentscope-ai/agentscope-java/blob/main/docs/v2/en/docs/harness/skill.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे AgentScope एजेंट के लिए स्किल कैसे पैक करूँ, इसे समझाइए, जिसमें फ़ोल्डर का ढाँचा और उसे कहाँ रखना है, यह भी शामिल हो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
गाइड बताती है कि स्किल एक फ़ोल्डर है, जिसमें एक SKILL.md फ़ाइल होती है जो एजेंट को बताती है कि क्या करना है, और साथ में वैकल्पिक संदर्भ फ़ाइलें व स्क्रिप्ट भी। वह यह भी समझाती है कि साझा और हर उपयोगकर्ता के स्किल फ़ोल्डर एक साथ सक्रिय हो सकते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
A skill is a packaged capability: a directory with a SKILL.md (purpose + instructions the agent reads), optional reference docs, scripts, samples. Hand it to the agent and it will use it when relevant.
Harness lets you install skills from two places:
- Skill marketplaces — Git repo, Nacos, MySQL, classpath, custom stores
- Workspace —
workspace/skills/is shared by everyone;<userId>/skills/isolates per user
Both sources are active simultaneously — no need to choose one. On top of that you can enable a self-learning loop: the agent drafts skills → review gate → background curator tidies up.
A skill directory looks like:
code-reviewer/
├── SKILL.md # required — YAML frontmatter (name + description) + instructions for the agent
├── references/ # optional — long-form docs the agent reads on demand
│ └── style-guide.md
└── scripts/ # optional — executable scripts the agent can shell out to
└── run-checks.sh
Save SKILL.md as UTF-8. A byte order mark (BOM) before the opening --- is supported.
Close the YAML frontmatter with an unindented line containing only --- and optional spaces or tabs. A --- inside a description or an indented YAML block scalar remains part of the metadata.
Skill names must match ^[a-z0-9][a-z0-9-]*$ and be at most 64 characters (lowercase letters, digits, and hyphens only — no underscores or dots), following the industry naming standard for Agent Skills. Names are used verbatim as directory keys and skill identifiers, so non-conforming names are rejected when the skill is constructed or loaded.
SKILL.md format:
---
name: code-reviewer
description: Use when the user asks for code review, style feedback, or PR audits.
---
# Code Reviewer
Steps:
1. Read `references/style-guide.md` for project conventions.
2. Run `scripts/run-checks.sh <target-path>` and summarize the output.
A quick example
Plug in your team's skill repo and the agent can use it immediately:
HarnessAgent agent = HarnessAgent.builder()
.name("assistant")
.model(model)
.workspace(workspace)
.skillRepository(new GitSkillRepository("https://github.com/your-org/team-skills.git"))
.build();
During reasoning, the agent sees skills from the repo and calls load_skill_through_path for whichever one it needs.
Marketplace stores
skillRepository(...) is the unified entry point — pass any store.
Git
<dependency>
<groupId>io.agentscope</groupId>
<artifactId>agentscope-extensions-skill-git-repository</artifactId>
<version>${agentscope.version}</version>
</dependency>
.skillRepository(new GitSkillRepository("https://github.com/your-org/team-skills.git"))
By default, each read does a lightweight remote check, pulling only when HEAD changed. If the repo has a skills/ subdirectory, that's the root; otherwise the repo root is. To control sync timing yourself: new GitSkillRepository(url, false), then call repo.sync() manually.
Nacos
<dependency>
<groupId>io.agentscope</groupId>
<artifactId>agentscope-extensions-nacos-skill</artifactId>
<version>${agentscope.version}</version>
</dependency>
NacosSkillRepository market = new NacosSkillRepository(aiService, "namespace");
HarnessAgent.builder()
.skillRepository(market)
.build();
Best for online distribution + change subscription. market is AutoCloseable; close it on shutdown to release subscriptions.
MySQL
MysqlSkillRepository registry = MysqlSkillRepository.builder(dataSource)
.databaseName("agentscope")
.skillsTableName("skills")
.createIfNotExist(true)
.writeable(true)
.build();
HarnessAgent.builder()
.skillRepository(registry)
.build();
Common for platform-side skill management. writeable(true) lets agents write back; pass false for read-only distribution.
Classpath
Ship skills inside your JAR:
src/main/resources/skills/
└── code-reviewer/
└── SKILL.md
.skillRepository(new ClasspathSkillRepository("skills"))
Works with both standard JARs and Spring Boot fat JARs.
Multiple stores
Call skillRepository(...) multiple times; later ones win:
HarnessAgent.builder()
.skillRepository(communityMarket)
.skillRepository(internalRegistry)
.skillRepository(teamGitRepo)
.build();
Wor
अक्सर पूछे जाने वाले सवाल
स्किल में कौन सी फ़ाइल ज़रूरी है?
हर स्किल में SKILL.md फ़ाइल होनी चाहिए, जिसके ऊपर उसका नाम और विवरण हो।
स्किल कहाँ से आ सकती हैं?
गाइड Git रिपॉज़िटरी और साझा या हर उपयोगकर्ता के वर्कस्पेस फ़ोल्डर का ज़िक्र करती है।
नाम के कौन से नियम लागू होते हैं?
स्किल के नाम में छोटे अक्षर, अंक और हाइफ़न होते हैं, और लंबाई अधिकतम 64 अक्षर होती है।
जानकारी
लेखक का मूल विवरण
Four-layer skill composition, skill marketplaces, the self-learning loop
लोकप्रियता
- GitHub स्टार
- 6.2k
- रैंकिंग में स्थान
- #14393
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
agentscope-java
6.2kआपके एजेंट को AgentScope के लिए नॉन-ब्लॉकिंग Java कोड लिखने में मदद करती है, जो Project Reactor पर बने मल्टी-एजेंट फ़्रेमवर्क के लिए है।
data-report
6.2kआपके एजेंट को किसी डेटासेट का औसत, कुल, दायरा और रुझान के साथ सारांश रिपोर्ट बनाने में मदद करती है, जो Markdown फ़ाइल के रूप में सहेजी जाती है।
data-transform
6.2kआपके एजेंट को डेटा फ़ाइल को CSV और JSON जैसे फ़ॉर्मेट के बीच बदलने में मदद करती है, ताकि डेटा दूसरे टूल में इस्तेमाल हो सके।
git-changelog
6.2kआपके एजेंट को Git इतिहास से चेंजलॉग या रिलीज़ नोट्स लिखने में मदद करती है, जो फ़ीचर, सुधार और अन्य बदलावों में समूहित होते हैं।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।