harness
Fungsinya
Panduan ini menjelaskan struktur sebuah skill agent, termasuk file SKILL.md, dokumen referensi, dan skrip, serta tempat skill dapat disimpan. Panduan ini untuk pengembang yang menyiapkan skill untuk agent AI.
Kapan dipakai
- βSaat Anda ingin mengemas sebuah skill dengan file SKILL.md untuk agent.
- βSaat Anda perlu tahu dari mana skill bisa dipasang, misalnya dari repositori Git atau ruang kerja bersama.
- βSaat Anda ingin menyiapkan folder skill per pengguna untuk sebuah agent.
Link skill
https://github.com/agentscope-ai/agentscope-java/blob/main/docs/v2/en/docs/harness/skill.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βJelaskan cara mengemas skill untuk agent AgentScope saya, termasuk susunan folder dan tempat menyimpannya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Panduan ini menjelaskan skill sebagai sebuah folder berisi file SKILL.md yang memberi tahu agent apa yang harus dilakukan, ditambah file referensi dan skrip jika diperlukan. Panduan ini juga menjelaskan bahwa folder skill bersama dan folder per pengguna bisa aktif sekaligus.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apa file wajib dalam sebuah skill?
Setiap skill membutuhkan file SKILL.md dengan nama dan deskripsinya di bagian atas.
Dari mana skill bisa berasal?
Panduan ini menyebut repositori Git serta folder ruang kerja bersama atau per pengguna.
Aturan penamaan apa yang berlaku?
Nama skill memakai huruf kecil, angka, dan tanda hubung, dengan panjang maksimal 64 karakter.
Detail
Deskripsi asli dari pembuat
Four-layer skill composition, skill marketplaces, the self-learning loop
Popularitas
- Bintang GitHub
- 6.2k
- Peringkat
- #14393
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
agentscope-java
6.2kMembantu agent Anda menulis kode Java non-blocking untuk AgentScope, kerangka kerja multi-agent yang dibangun di atas Project Reactor.
data-report
6.2kMembantu agent Anda merangkum kumpulan data menjadi laporan dengan rata-rata, total, rentang, dan tren, yang disimpan sebagai berkas Markdown.
data-transform
6.2kMembantu agent Anda mengonversi berkas data antarformat seperti CSV dan JSON, agar data bisa dipakai di alat lain.
git-changelog
6.2kMembantu agent Anda menulis changelog atau catatan rilis dari riwayat Git, dikelompokkan menjadi fitur, perbaikan, dan perubahan lainnya.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.