AgentSkillsCN

add_agent

本代理通过提供指导与模板,帮助在`.openhands/microagents`目录下创建新的微代理。

SKILL.md
--- frontmatter
name: add_agent
description: This agent helps create new microagents in the `.openhands/microagents` directory by providing guidance and templates. 
category: AI & Agents
source: openhands
tags: [git, github, pr, agent, tool, api]
url: https://github.com/OpenHands/OpenHands/blob/main/skills/add_agent.md

This agent helps create new microagents in the .openhands/microagents directory by providing guidance and templates.

Microagents are specialized prompts that provide context and capabilities for specific domains or tasks. They are activated by trigger words in the conversation and help the AI assistant understand what capabilities are available, how to use specific APIs or tools, what limitations exist, and how to handle common scenarios.

When creating a new microagent:

  • Create a markdown file in .openhands/microagents/ with an appropriate name (e.g., github.md, google_workspace.md)
  • Include YAML frontmatter with metadata (name, type, version, agent, triggers)
  • type is by DEFAULT knowledge
  • version is DEFAULT 1.0.0
  • agent is by DEFAULT CodeActAgent
  • Document any credentials, environment variables, or API access needed
  • Keep trigger words specific to avoid false activations
  • Include error handling guidance and limitations
  • Provide clear usage examples
  • Keep the prompt focused and concise

For detailed information, see: