Skip to content

refactor: rename Skill.id, replace agent.json with Skills Discovery RFC, clean up Access page#65

Merged
marc0olo merged 3 commits intomainfrom
refactor/rename-skill-id-remove-agent-json
Mar 4, 2026
Merged

refactor: rename Skill.id, replace agent.json with Skills Discovery RFC, clean up Access page#65
marc0olo merged 3 commits intomainfrom
refactor/rename-skill-id-remove-agent-json

Conversation

@marc0olo
Copy link
Member

@marc0olo marc0olo commented Mar 4, 2026

Summary

  • Rename confusing id/name fields on the Skill interface to name/title, aligning with the frontmatter fields they actually map to (name = slug, title = display name from metadata.title)
  • Remove custom .well-known/agent.json endpoint — it followed no standard (not A2A, not Agent Skills spec) and no agent auto-discovers or consumes it
  • Add /.well-known/skills/ endpoint implementing the Cloudflare Agent Skills Discovery RFC (v0.1) — serves index.json discovery index and per-skill SKILL.md files at standardized paths
  • Remove redundant /skills/{name}.md endpoint — superseded by /.well-known/skills/{name}/SKILL.md
  • Simplify robots.txt to User-agent: * + Allow: / + Sitemap: — the per-bot AI crawler entries were redundant with the wildcard rule
  • Rename ApiTabAccessTab and replace curl commands with plain URLs on the Access page, consistent with the rest of the site

Follow-up: URL strategy (domain vs GitHub)

The site currently advertises both domain URLs and raw GitHub URLs depending on context:

  • Domain URLs (dfinity.github.io/icskills/...): Access page endpoints, .well-known/skills/ discovery
  • Raw GitHub URLs (raw.githubusercontent.com/...): llms.txt links, BrowseTab/SkillHeader copy buttons, "How it works" page examples

Two npx skills add variants exist with different resolution paths:

  • npx skills add https://dfinity.github.io/icskills → domain-based .well-known/skills/ discovery
  • npx skills add dfinity/icskills → GitHub repo-based discovery (reads skill files directly from the repo)

Going forward, consider whether to:

  1. Migrate remaining GitHub references to domain URLs for consistency (update llms.txt, copy buttons, "How it works" examples)
  2. Keep both variants — domain for standardized discovery, GitHub for direct repo access
  3. Advertise the domain URL as primary and GitHub as fallback

This was intentionally left out of this PR to keep scope focused.

Rename the confusing `id`/`name` fields on the Skill interface to
`name`/`title`, aligning with the frontmatter fields they map to:
- `name` = frontmatter `name` (the slug, e.g. "asset-canister")
- `title` = frontmatter `metadata.title` (display name, e.g. "Asset Canister")

Remove the `.well-known/agent.json` endpoint: it followed no standard
(not A2A, not Agent Skills spec) and no agent consumes it. The
llms.txt and raw GitHub URLs are the actual discovery/access paths.
@marc0olo marc0olo changed the title refactor: rename Skill.id to .name/.title, remove agent.json refactor: rename Skill.id, replace agent.json with Skills Discovery RFC, simplify robots.txt Mar 4, 2026
… Access page

- Add /.well-known/skills/index.json and per-skill SKILL.md endpoints
  implementing the Cloudflare Agent Skills Discovery RFC (v0.1)
- Remove redundant /skills/{name}.md endpoint (superseded by .well-known)
- Simplify robots.txt to wildcard-only (per-bot entries were redundant)
- Rename ApiTab → AccessTab, replace curl commands with plain URLs
@marc0olo marc0olo changed the title refactor: rename Skill.id, replace agent.json with Skills Discovery RFC, simplify robots.txt refactor: rename Skill.id, replace agent.json with Skills Discovery RFC, clean up Access page Mar 4, 2026
@marc0olo marc0olo merged commit 846a507 into main Mar 4, 2026
6 checks passed
@marc0olo marc0olo deleted the refactor/rename-skill-id-remove-agent-json branch March 4, 2026 15:58
marc0olo added a commit that referenced this pull request Mar 4, 2026
Replace stale references to `.well-known/agent.json` and `/skills/{name}.md`
with the new `.well-known/skills/` endpoints. Also rename ApiTab → AccessTab
in project structure, and add agent-first writing callout to CONTRIBUTING.md.
raymondk pushed a commit that referenced this pull request Mar 4, 2026
Replace stale references to `.well-known/agent.json` and `/skills/{name}.md`
with the new `.well-known/skills/` endpoints. Also rename ApiTab → AccessTab
in project structure, and add agent-first writing callout to CONTRIBUTING.md.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants