Fetch Agent Card
Agent BuildingFetch Agent Card is an Agent Skill for agent building published in the ai-sns/ai-sns repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Fetch an A2A agent card JSON from a given endpoint URL. Tries direct GET first, then falls back to /.well-known/agent.json.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/ai-sns/ai-sns/blob/HEAD/aisns_backend/skills/skill_fetch_agent_card/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/fetch-agent-card, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
This skill fetches the agent card (JSON) from an A2A endpoint.
Input parameters (via stdin JSON):
url(string, required): The A2A endpoint URL to fetch the agent card from.
Output (stdout JSON):
ok(bool): Whether the fetch succeeded.card(string): The raw agent card JSON text (truncated to 2000 chars).source(string):"direct"or"well_known"indicating which fetch strategy succeeded.error(string): Error message if both attempts failed.