agent-capability-discovery
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAgent Capability Discovery
Agent能力发现
Purpose and Intent
用途与目标
The skill is the "brain" of a multi-agent system. It allows an agent to self-reflect and understand what tools and expertises are available within its environment by indexing all files.
agent-capability-discoveryskill.yamlagent-capability-discoveryskill.yamlWhen to Use
适用场景
- System Initialization: Run this when an agent starts up to populate its internal tool list.
- Routing Decisions: Use this when a master agent receives a complex user request and needs to identify which specialized skill (e.g., vs.
hipaa-compliance-guard) is best suited for the job.pii-sanitizer - Documentation Generation: Automatically keep a "Global Skills Map" up to date for human developers.
- 系统初始化:在agent启动时运行该skill,以填充其内部工具列表。
- 路由决策:当主agent收到复杂用户请求,需要确定哪种专业skill(如与
hipaa-compliance-guard)最适合该任务时使用。pii-sanitizer - 文档生成:为人类开发者自动更新"全局技能图谱"。
When NOT to Use
不适用场景
- Skill Execution: This skill only discovers what is possible; it does not execute the other skills.
- External Tooling: It only indexes skills defined in the local repository structure.
- Skill执行:该skill仅用于发现可用能力,不执行其他skill。
- 外部工具:它仅索引本地仓库结构中定义的skill。
Input and Output Examples
输入输出示例
Input
输入
yaml
base_directory: "."
output_format: "markdown"yaml
base_directory: "."
output_format: "markdown"Output
输出
A markdown table or JSON object listing all discovered skills, their descriptions, and their primary capabilities.
一份markdown表格或JSON对象,列出所有已发现的skill、它们的描述以及主要能力。
Error Conditions and Edge Cases
错误情况与边缘场景
- Broken YAML: If a is malformed, the discovery tool will skip that directory and report a warning.
skill.yaml - Circular Dependencies: This tool does not handle execution dependencies, only discovery.
- 损坏的YAML:如果格式错误,发现工具将跳过该目录并发出警告。
skill.yaml - 循环依赖:该工具不处理执行依赖,仅负责发现。
Security and Data-Handling Considerations
安全与数据处理注意事项
- Metadata Only: The tool only reads the definition files; it never touches actual source code or data unless instructed by the indexed skills themselves.
- Local Scope: Discovery is confined to the provided root directory to prevent directory traversal attacks.
- 仅处理元数据:该工具仅读取定义文件;除非被索引的skill本身指示,否则不会触及实际源代码或数据。
- 本地范围:发现操作仅限于提供的根目录,以防止目录遍历攻击。