anp-agent

ANP 协议跨 Agent 调用技能。通过 did:wba 去中心化身份,调用 ANP 网络中的任意 Agent(如高德地图、酒店预订、快递查询等)。当用户提到 ANP、调用 Agent、订酒店、查快递、查地图、路线规划时触发此技能。

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "anp-agent" with this command: npx skills add agent-network-protocol/anp/agent-network-protocol-anp-anp-agent

ANP Agent Skill

通过 ANP (Agent Network Protocol) 协议,使用去中心化身份 (did:wba) 调用远程 Agent。

使用场景

当用户需要:

  • 调用 ANP 网络中的 Agent(高德地图、酒店、快递等)
  • 搜索地点、规划路线、查询天气
  • 预订酒店、查询快递
  • 发现新的 ANP Agent

调用流程

1. 连接 Agent(查看能力)

给定 AD URL,获取 Agent 的可用方法:

python scripts/anp_cli.py connect "<AD_URL>"

示例:

python scripts/anp_cli.py connect "https://agent-connect.ai/mcp/agents/amap/ad.json"

2. 调用方法

使用已注册 ID 或 AD URL 调用:

python scripts/anp_cli.py call <id|ad_url> <method> '<json_params>'

示例:

# 搜索北京咖啡厅
python scripts/anp_cli.py call amap maps_text_search '{"keywords":"咖啡厅","city":"北京"}'

# 查询天气
python scripts/anp_cli.py call amap maps_weather '{"city":"上海"}'

3. 管理 Agent

# 列出已注册
python scripts/anp_cli.py list

# 添加新 Agent
python scripts/anp_cli.py add <id> "<ad_url>"

# 移除
python scripts/anp_cli.py remove <id>

已注册 Agent

高德地图常用方法

方法功能参数示例
maps_text_search搜索地点{"keywords":"咖啡厅","city":"北京"}
maps_weather查询天气{"city":"上海"}
maps_direction_driving驾车路线{"origin":"经度,纬度","destination":"经度,纬度"}
maps_around_search周边搜索{"location":"经度,纬度","keywords":"美食"}

目录结构

anp-agent/
├── SKILL.md              # 本文件
├── config/
│   ├── did.json          # DID 文档(公钥)
│   ├── private-key.pem   # 私钥(签名用)
│   ├── agents.json       # 已注册的 Agent 列表
│   └── .gitignore        # 防止私钥泄露
└── scripts/
    └── anp_cli.py        # 主程序

依赖

pip install anp aiohttp

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Financial Ai Agent

查询金融行情数据(股票、黄金、原油等)。当用户提到查询行情、价格、指数、股票时使用。例如:'查询纳斯达克'、'现在金价多少'、'标普最近一周表现'、'设置我的key'、'替换key'。

Registry SourceRecently Updated
Automation

Git Workflow

Use this skill for any git commit, pull request, or release task. Invoke immediately when the user wants to: stage and commit changes, write a commit message...

Registry SourceRecently Updated
Automation

Deck Narrative Planner

把材料转成 PPT/Deck 叙事结构,生成每页一句标题、证据需求与过渡逻辑。;use for presentation, deck, storytelling workflows;do not use for 直接生成花哨视觉稿, 编造证据.

Registry SourceRecently Updated
Automation

Atlassian Jira by altf1be

Atlassian Jira Cloud CRUD skill — manage issues, comments, attachments, workflow transitions, and JQL search via Jira REST API v3 with email + API token auth.

Registry SourceRecently Updated