Agent Skillsdtyq/magic › agent-info

agent-info

GitHub

查询当前用户可访问的所有员工(Agent)列表,支持按名称或类型过滤。返回包含 agentId、名称及类型的 JSON,用于代码生成中获取真实 agentId 或响应用户对可用员工的查询。

backend/super-magic/agents/skills/agent-info/SKILL.md dtyq/magic

Trigger Scenarios

生成需要真实 agentId 的微应用代码 用户询问有哪些可用员工或 Agent

Install

npx skills add dtyq/magic --skill agent-info -g -y
More Options

Non-standard path

npx skills add https://github.com/dtyq/magic/tree/master/backend/super-magic/agents/skills/agent-info -g -y

Use without installing

npx skills use dtyq/magic@agent-info

指定 Agent (Claude Code)

npx skills add dtyq/magic --skill agent-info -a claude-code -g -y

安装 repo 全部 skill

npx skills add dtyq/magic --all -g -y

预览 repo 内 skill

npx skills add dtyq/magic --list

SKILL.md

Frontmatter
{
    "name": "agent-info",
    "name-cn": "员工信息查询",
    "description": "Query the list of all agents (employees) available to the current user. Use when generating code that requires a real agentId, or when the user asks \"which agents\/employees do I have\".",
    "description-cn": "查询当前用户可用的所有员工(Agent)列表。当需要生成包含 agentId 的代码、或用户询问\"我有哪些员工\"时使用。"
}

List Available Agents

Query all agents accessible to the current user. Returns each agent's code (agentId), name, description and type.

Core Capabilities

  • Get all available agents for the user (including built-in, custom, and public)
  • Support fuzzy filtering by name
  • The returned code field is the agentId, usable directly in createTopicAndSend and similar APIs

Quick Start

Typical Workflow

1. Query all agents (list.py)
   ↓ Get code / name / type
2. Use code directly as agentId in code generation

Available Scripts


list.py - List Agents

Query all agents available to the current user.

SYNOPSIS

python scripts/list.py [OPTIONS]

OPTIONS

Option Type Required Description
--name-filter <keyword> string No Fuzzy filter by agent name (case-insensitive)
--type-filter <type> string No Filter by type: official / custom / public

OUTPUT

On success, returns JSON:

{
  "total": 5,
  "agents": [
    {
      "code": "SMA-xxxx",
      "name": "Data Analyst",
      "description": "Professional data analysis assistant",
      "type": "custom"
    }
  ]
}
  • code is the agentId, pass directly to window.Magic.project.createTopicAndSend(msg, {agentId: code})
  • type values: official (built-in), custom (user-created), public (team/public shared)

EXAMPLES

# 查询全部员工
python scripts/list.py

# 按名称过滤
python scripts/list.py --name-filter "数据分析"

# 按类型过滤
python scripts/list.py --type-filter custom

Use Cases

1. Get real agentId for micro-app code generation

Before generating micro-app code that dispatches tasks to agents, run the script to get the agent list, then use the real code in generated code:

python scripts/list.py --name-filter "researcher"

Use the returned code directly:

const { topicId } = await window.Magic.project.createTopicAndSend(
  message,
  { agentId: "SMA-xxxx" }  // real code from list.py
);

2. User asks about available agents

When user asks "what agents do I have" or "show me available agents", run the script to get the full list.

Version History

  • 41d7ef4 Current 2026-07-25 09:28

Same Skill Collection

backend/super-magic/agents/skills/canvas-designer/SKILL.md
backend/super-magic/agents/skills/chat-history/SKILL.md
backend/super-magic/agents/skills/cli-manager/SKILL.md
backend/super-magic/agents/skills/compact-chat-history/SKILL.md
backend/super-magic/agents/skills/creating-slides/SKILL.md
backend/super-magic/agents/skills/develop-data-analysis-dashboard/SKILL.md
backend/super-magic/agents/skills/document-converter/SKILL.md
backend/super-magic/agents/skills/download/SKILL.md
backend/super-magic/agents/skills/env-manager/SKILL.md
backend/super-magic/agents/skills/im-channels/SKILL.md
backend/super-magic/agents/skills/magic-calendar/SKILL.md
backend/super-magic/agents/skills/magicbase/SKILL.md
backend/super-magic/agents/skills/sandbox-manager/SKILL.md
backend/super-magic/agents/skills/self-media-pre-publish-analyzer/SKILL.md
backend/super-magic/agents/skills/share/SKILL.md
backend/super-magic/agents/skills/skill-vetter/SKILL.md
backend/super-magic/agents/skills/slide-template/SKILL.md
backend/super-magic/agents/skills/subagents/SKILL.md
backend/super-magic/agents/skills/teamshare-cli/SKILL.md
backend/super-magic/agents/skills/user-info/SKILL.md
backend/super-magic/agents/skills/using-cron/SKILL.md
backend/super-magic/agents/skills/using-llm/SKILL.md
backend/super-magic/agents/skills/using-mcp/SKILL.md
frontend/magic-web/.agents/skills/antd-style-to-tailwind/SKILL.md
frontend/magic-web/.agents/skills/code-review-expert/SKILL.md
frontend/magic-web/.agents/skills/dual-edition-module-migration/SKILL.md
frontend/magic-web/.agents/skills/magic-web-error-logging/SKILL.md
frontend/magic-web/.agents/skills/sw-best-practices/SKILL.md
frontend/magic-web/.agents/skills/ui-data-testid/SKILL.md
frontend/magic-web/.agents/skills/vercel-composition-patterns/SKILL.md
frontend/magic-web/.agents/skills/vercel-react-best-practices/SKILL.md
backend/super-magic/agents/skills/ai-card-generator/SKILL.md
backend/super-magic/agents/skills/crew-creator/SKILL.md
backend/super-magic/agents/skills/deep-research/SKILL.md
backend/super-magic/agents/skills/dingtalk-cli/SKILL.md
backend/super-magic/agents/skills/html-api-sdk/SKILL.md
backend/super-magic/agents/skills/lark-cli/SKILL.md
backend/super-magic/agents/skills/micro-app-architect/SKILL.md
backend/super-magic/agents/skills/self-media-composer/SKILL.md
backend/super-magic/agents/skills/skill-creator/SKILL.md

Metadata

Files
0
Version
41d7ef4
Hash
91ccc3ac
Indexed
2026-07-25 09:28

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 04:29
浙ICP备14020137号-1 $mapa de visitantes$