본문으로 건너뛰기
Skillpedia
에이전트6.2k · #14393

harness

하는 일

이 가이드는 에이전트 스킬의 구조를 설명합니다. SKILL.md 파일, 참고 문서, 스크립트, 그리고 스킬을 저장할 수 있는 위치를 다룹니다. AI 에이전트를 위해 스킬을 설정하는 개발자를 위한 안내서입니다.

사용하는 경우

  • ✓에이전트를 위해 SKILL.md 파일로 스킬을 패키징하고 싶을 때.
  • ✓Git 저장소나 공유 작업 공간처럼 스킬을 어디에서 설치할 수 있는지 알아야 할 때.
  • ✓에이전트를 위한 사용자별 스킬 폴더를 설정하고 싶을 때.

스킬 링크

https://github.com/agentscope-ai/agentscope-java/blob/main/docs/v2/en/docs/harness/skill.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/agentscope-ai/agentscope-java/blob/main/docs/v2/en/docs/harness/skill.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“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

repo: agentscope-ai/agentscope-java

인기도

GitHub 스타
6.2k
순위
#14393
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬