dfinity / dfinity/icp-cli-templates

Update AGENTS.md skills discovery instructions

Open Beginner friendly
#24 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
CSS
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Context

The ICP skills registry (dfinity/icskills) is migrating to v0.2 of the Agent Skills Discovery RFC. See dfinity/icskills#137 for full details.

We've observed agents failing to fetch skills because they construct wrong URLs from the {name}/{file} template in our current AGENTS.md instructions. The fix: the skills index.json now includes a url field per skill, so agents follow a direct link instead of constructing URLs.

Current instructions (in AGENTS.md)

## Skills

Tested implementation patterns for ICP development are available as agent skills.
Fetch the skills index and remember each skill's name and description:
https://skills.internetcomputer.org/.well-known/skills/index.json

When a task matches a skill's description, use it if already loaded in your
context. Otherwise, fetch its content on-demand from the registry:
https://skills.internetcomputer.org/.well-known/skills/{name}/{file}

Skills contain correct dependency versions, configuration formats, and common pitfalls that prevent build failures.
Always prefer skill guidance over general documentation when both cover the same topic.

Recommended replacement

## Skills

Tested implementation patterns for ICP development are available as agent skills.

1. Fetch the skills index and remember each skill's name, description, and url:
   https://skills.internetcomputer.org/.well-known/agent-skills/index.json

2. When a task matches a skill\'s description, use it if already loaded in your
   context. Otherwise, fetch the skill content from its url.
   Do not construct skill URLs manually.

   Example: for the skill named "internet-identity", its url is:
   https://skills.internetcomputer.org/.well-known/agent-skills/internet-identity/SKILL.md

   If a response contains HTML instead of markdown, the URL is wrong.

3. Skills contain correct dependency versions, configuration formats, and common
   pitfalls that prevent build failures.
   Always prefer skill guidance over general documentation when both cover the same topic.

Key changes

  1. Remove the URL template ({name}/{file}) — this caused agents to guess wrong filenames
  2. Direct agents to the url field in the index — no URL construction needed
  3. Update path from /.well-known/skills/ to /.well-known/agent-skills/ (v0.2 spec change)

Note: Wait for dfinity/icskills#137 to be completed before updating the path. The url field is already available in the current index.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open AGENTS.md and compare its Skills section with the recommended replacement in this issue. Check dfinity/icskills#137 before changing the registry path, then update the instructions to use each skill's url field and avoid manual URL construction. Done means the section reflects the v0.2 path and direct-link workflow.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.