Skip to content
Merged
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
15 changes: 14 additions & 1 deletion plugins/astro-agent-docs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,25 @@ function generateLlmsTxt(pages, siteUrl) {
// Use absolute URLs so link-resolution checkers can verify them.
const base = siteUrl.replace(/\/$/, "");

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

const lines = [
"# ICP Developer Docs",
"",
"> Developer documentation for building full-stack web applications, DeFi protocols, and cross-chain integrations on the Internet Computer.",
"",
"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.",
"Before writing any ICP code, fetch the skills index and remember the skill names and descriptions:",
`${skillsBase}/index.json`,
"",
"When a task matches a skill description, fetch its content on-demand from:",
`${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