Skip to content

Commit 210b392

Browse files
committed
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.
1 parent eb31bd9 commit 210b392

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

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

Lines changed: 14 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,17 @@ 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+
"Before writing any ICP code, fetch the skills index and remember the skill names and descriptions:",
87+
`${skillsBase}/index.json`,
88+
"",
89+
"When a task matches a skill description, fetch its content on-demand from:",
90+
`${skillsBase}/{name}/{file}`,
91+
"",
92+
"Skills contain correct dependency versions, configuration formats, and common pitfalls that prevent build failures.",
93+
"Always prefer skill guidance over general documentation when both cover the same topic.",
8194
"",
8295
];
8396

0 commit comments

Comments
 (0)