AgentSkillsCN

integration-discovery

能力路由器,负责为一项任务选择最合适的工具、技能与智能体。通过智能决策,减轻主智能体的认知负担,使其专注于工具的选择。 当您遇到以下情形时,可优先使用此技能(或以子智能体身份启动): - 开始一项可能受益于多种可用集成的复杂任务 - 不确定哪些工具或技能能为当前工作提供助力 - 希望在执行任务前先探索各项能力 - 制定任务计划时,希望充分利用现有资源

SKILL.md
--- frontmatter
name: integration-discovery
description: |
  Capability router that decides which tools, skills, and agents to use for a task.
  Reduces cognitive load on the main agent by making tool selection decisions.

  Use this skill (or spawn as subagent) when:
  - Starting a complex task that might benefit from available integrations
  - Unsure what tools/skills could help with current work
  - Want to discover capabilities before executing
  - Building a task plan that should leverage available resources

Capability Router

Purpose: Scout available capabilities and decide what to use for a task. Return actionable recommendations so the main agent can execute without discovery overhead.

Why This Matters

Most agents execute with whatever tools are obvious. They don't:

  • Check what else is available
  • Consider skills that could help
  • Look for specialized agents
  • Adapt to the user's configured integrations

This skill changes that. It scouts, evaluates, and recommends—so the main agent can focus on execution.

Quick Usage

As Inline Check

markdown
Before executing this task, let me check what capabilities could help.

**Task**: Review PR #123 for security issues

**Discovery**:
- MCP: github (PR context), atlassian (link to Jira)
- Skills: wicked-qe (test scenarios), wicked-platform (security checks)
- Agents: wicked-platform:security-engineer

**Recommendation**: Use security-engineer agent for review, github MCP for PR data.

As Subagent

For complex tasks, spawn integration-discovery as a subagent:

code
Task tool:
  subagent_type: "Explore"
  prompt: "Scout available capabilities for: [task description].
           Return specific recommendations on which MCP servers,
           skills, and agents to use."

The Discovery Process

Step 1: Understand the Task

What does this task need?

  • Information sources: Where does data come from?
  • Actions: What operations are required?
  • Quality concerns: Security, testing, compliance?
  • Output: Where do results go?

Step 2: Scout Available Capabilities

Check these sources (see refs/discovery-sources.md for details):

SourceHow to CheckWhat You Get
MCP ServersListMcpResourcesToolExternal integrations
SkillsCheck Skill tool descriptionMethodology/expertise
AgentsCheck Task tool agent listSpecialized workers
Built-in ToolsKnown setFile ops, search, web

Step 3: Match Capabilities to Needs

For each task need, find matching capabilities:

markdown
Task: "Implement user authentication"

| Need | Capability | Recommendation |
|------|------------|----------------|
| Security review | wicked-platform:security-engineer | Use for auth review |
| Test strategy | wicked-qe:test-strategist | Use for test planning |
| Store decisions | wicked-mem | Store auth decisions |
| Track work | MCP:atlassian or wicked-kanban | Track implementation |

Step 4: Return Recommendations

Output a clear recommendation the main agent can act on:

markdown
## Capability Recommendations for: [Task]

**Use these**:
1. **wicked-platform:security-engineer** - Review for security issues
2. **MCP:atlassian** - Link work to Jira ticket AUTH-123

**Available but optional**:
- wicked-qe:test-strategist - If test planning needed
- wicked-mem - Store decisions for future reference

**Not available** (consider installing):
- No analytics MCP found - can't check auth failure metrics

Common Task Patterns

Quick mappings for common tasks (see refs/task-patterns.md for full list):

Task TypeLikely Capabilities
Code reviewwicked-engineering agents, github MCP
Security auditwicked-platform agents, wicked-qe
Architecture designwicked-engineering agents, wicked-mem
Bug investigationwicked-engineering agents, error tracking MCP
Feature planningwicked-product agents, project management MCP
Documentationwicked-engineering agents, confluence MCP

Decision Principles

When multiple options exist:

  1. Prefer specialized over general - Use security-engineer for security, not generic reviewer
  2. Prefer available integrations - Use configured MCP over manual alternatives
  3. Consider task scope - Simple task? Skip the heavy machinery
  4. Check dependencies - Some agents work better together

Output Format

Always return structured recommendations:

markdown
## Capability Recommendations

**Task**: [one-line task description]

### Recommended
| Capability | Type | Use For |
|------------|------|---------|
| name | MCP/Skill/Agent | specific purpose |

### Optional
| Capability | Type | Use If |
|------------|------|--------|
| name | type | condition |

### Not Available
| Need | Suggestion |
|------|------------|
| what's missing | how to get it |

References