Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion docs-site/plugins/astro-agent-docs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ function findSection(filePath) {
function generateLlmsTxt(pages, siteUrl, basePath) {
const base = (siteUrl + basePath).replace(/\/$/, "");

const skillsBase =
"https://skills.internetcomputer.org/.well-known/skills";

// Extract version from base path (e.g., "/0.2/" → "0.2", "/main/" → "main")
const version = basePath.replace(/^\/|\/$/g, "") || null;
const title = version
Expand All @@ -77,7 +80,18 @@ function generateLlmsTxt(pages, siteUrl, basePath) {
"",
"> Command-line tool for developing and deploying applications on the Internet Computer Protocol (ICP).",
"",
"Agent skills for IC development: https://skills.internetcomputer.org/.well-known/skills/index.json",
"## Agent skills",
"",
"Tested implementation patterns for ICP development are available as agent skills.",
"Fetch the skills index and remember each skill's name and description:",
`${skillsBase}/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:",
`${skillsBase}/{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.",
"",
];

Expand Down
Loading