harness
What it does
This guide explains the structure of an agent skill, including its SKILL.md file, reference documents and scripts, and where skills can be stored. It is for developers who set up skills for AI agents.
When to use it
- βWhen you want to package a skill with a SKILL.md file for an agent.
- βWhen you need to know where skills can be installed from, such as a Git repository or a shared workspace.
- βWhen you want to set up a per-user skills folder for an agent.
Skill link
https://github.com/agentscope-ai/agentscope-java/blob/main/docs/v2/en/docs/harness/skill.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βExplain how to package a skill for my AgentScope agent, including the folder layout and where to store it.β
5 new skills a week. 1 minute to read.
How it works
The guide describes a skill as a folder with a SKILL.md file that tells the agent what to do, plus optional reference files and scripts. It also explains that shared and per-user skill folders can be active at the same time.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
What is the required file in a skill?
Each skill needs a SKILL.md file with its name and description at the top.
Where can skills come from?
The guide mentions Git repositories and shared or per-user workspace folders.
What naming rules apply?
Skill names use lowercase letters, digits and hyphens, and are at most 64 characters.
Details
Original description by the author
Four-layer skill composition, skill marketplaces, the self-learning loop
Popularity
- GitHub stars
- 6.2k
- Ranking position
- #14393
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agentscope-java
6.2kHelps your agent write non-blocking Java code for AgentScope, a multi-agent framework built on Project Reactor.
data-report
6.2kHelps your agent summarize a dataset into a report with averages, totals, ranges and trends, saved as a Markdown file.
data-transform
6.2kHelps your agent convert a data file between formats such as CSV and JSON, so the data can be used in other tools.
git-changelog
6.2kHelps your agent write a changelog or release notes from a Git history, grouped into features, fixes and other changes.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.