Skip to content

Commit 6d2d331

Browse files
authored
feat(docs): add agent skills discovery instructions to llms.txt (#453)
* feat(docs): add agent skills discovery instructions to llms.txt Replace the single-line skills registry link with structured instructions that tell agents how to discover, fetch, and prioritize skills. Mirrors the pattern from dfinity/developer-docs. * fix(docs): prefer locally loaded skills over registry fetch in llms.txt Align llms.txt wording with icp-cli-templates AGENTS.md: instruct agents to use skills already in their context before fetching from the registry.
1 parent 4a58f89 commit 6d2d331

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs-site/plugins/astro-agent-docs.mjs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ function findSection(filePath) {
6666
function generateLlmsTxt(pages, siteUrl, basePath) {
6767
const base = (siteUrl + basePath).replace(/\/$/, "");
6868

69+
const skillsBase =
70+
"https://skills.internetcomputer.org/.well-known/skills";
71+
6972
// Extract version from base path (e.g., "/0.2/" → "0.2", "/main/" → "main")
7073
const version = basePath.replace(/^\/|\/$/g, "") || null;
7174
const title = version
@@ -77,7 +80,18 @@ function generateLlmsTxt(pages, siteUrl, basePath) {
7780
"",
7881
"> Command-line tool for developing and deploying applications on the Internet Computer Protocol (ICP).",
7982
"",
80-
"Agent skills for IC development: https://skills.internetcomputer.org/.well-known/skills/index.json",
83+
"## Agent skills",
84+
"",
85+
"Tested implementation patterns for ICP development are available as agent skills.",
86+
"Fetch the skills index and remember each skill's name and description:",
87+
`${skillsBase}/index.json`,
88+
"",
89+
"When a task matches a skill's description, use it if already loaded in your",
90+
"context. Otherwise, fetch its content on-demand from the registry:",
91+
`${skillsBase}/{name}/{file}`,
92+
"",
93+
"Skills contain correct dependency versions, configuration formats, and common pitfalls that prevent build failures.",
94+
"Always prefer skill guidance over general documentation when both cover the same topic.",
8195
"",
8296
];
8397

0 commit comments

Comments
 (0)