Pular para o conteúdo
Skillpedia
Agentes6,2 mil · #14393

harness

O que ela faz

Este guia explica a estrutura de uma skill de agente, incluindo seu arquivo SKILL.md, documentos de referência e scripts, e onde as skills podem ser armazenadas. É para desenvolvedores que configuram skills para agentes de IA.

Quando usar

  • ✓Quando você quer empacotar uma skill com um arquivo SKILL.md para um agente.
  • ✓Quando você precisa saber de onde as skills podem ser instaladas, como um repositório Git ou uma pasta compartilhada do workspace.
  • ✓Quando você quer configurar uma pasta de skills por usuário para um agente.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/agentscope-ai/agentscope-java/blob/main/docs/v2/en/docs/harness/skill.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Explique como empacotar uma skill para meu agente do AgentScope, incluindo a estrutura de pastas e onde guardá-la.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O guia descreve uma skill como uma pasta com um arquivo SKILL.md que diz ao agente o que fazer, além de arquivos de referência e scripts opcionais. Ele também explica que pastas de skills compartilhadas e por usuário podem estar ativas ao mesmo tempo.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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

Perguntas frequentes

Qual é o arquivo obrigatório de uma skill?

Cada skill precisa de um arquivo SKILL.md com seu nome e descrição no topo.

De onde as skills podem vir?

O guia menciona repositórios Git e pastas compartilhadas ou por usuário do workspace.

Quais regras de nomenclatura se aplicam?

Os nomes das skills usam letras minúsculas, números e hifens, e têm no máximo 64 caracteres.

Detalhes

Descrição original do autor

Four-layer skill composition, skill marketplaces, the self-learning loop

repo: agentscope-ai/agentscope-java

Popularidade

Estrelas no GitHub
6,2 mil
Posição no ranking
#14393
Licença
Apache-2.0
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas