harness
Что он делает
Это руководство объясняет структуру скилла для агента, включая файл SKILL.md, справочные документы и скрипты, а также где скиллы можно хранить. Оно нужно разработчикам, которые настраивают скиллы для ИИ-агентов.
Когда использовать
- ✓Когда вы хотите упаковать скилл с файлом SKILL.md для агента.
- ✓Когда нужно узнать, откуда можно установить скиллы, например из Git-репозитория или общей рабочей папки.
- ✓Когда вы хотите настроить папку скиллов для каждого пользователя.
Ссылка на скилл
https://github.com/agentscope-ai/agentscope-java/blob/main/docs/v2/en/docs/harness/skill.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Объясни, как упаковать скилл для моего агента AgentScope, включая структуру папок и место хранения.”
5 новых скиллов в неделю. 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
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
agentscope-java
6.2kПомогает агенту писать неблокирующий Java-код для AgentScope, мультиагентного фреймворка на основе Project Reactor.
data-report
6.2kПомогает агенту свести набор данных в отчёт со средними значениями, суммами, диапазонами и трендами, сохранённый как файл Markdown.
data-transform
6.2kПомогает агенту конвертировать файл данных между форматами, например CSV и JSON, чтобы данные можно было использовать в других инструментах.
git-changelog
6.2kПомогает агенту написать changelog или заметки о релизе по истории Git, сгруппированные по новым функциям, исправлениям и прочим изменениям.
Похожие скиллы
add-model-provider
394kПомогает агенту подключить нового провайдера ИИ-моделей к OpenClaw безопасными командами, хранить ключи API не в открытом виде и провести живой тест.
acp-router
394kПомогает агенту передать задачу инструменту для программирования, например Claude Code или Cursor, через OpenClaw, чтобы работа шла в этом инструменте.
browser-automation
394kУчит агента пошагово управлять веб-страницами: входить в аккаунты, работать с вкладками и восстанавливаться, если страница перестала отвечать.