Skip to content

AI-agents docs: three skills consumption modes (+ autosync) - #321

Merged
marc0olo merged 6 commits into
mainfrom
agent-skills-modes
Aug 5, 2026
Merged

AI-agents docs: three skills consumption modes (+ autosync)#321
marc0olo merged 6 commits into
mainfrom
agent-skills-modes

Conversation

@marc0olo

@marc0olo marc0olo commented Jul 23, 2026

Copy link
Copy Markdown
Member

What

Aligns the AI-agents docs with the three ways to consume ICP skills.

  • docs/guides/ai-coding-agents.md: adds autosync as a third option, frames fetch-on-demand / pin / auto-update as an explicit choice, corrects the "fetched fresh each time" line to be mode-aware, clarifies that no install is needed to get started (installing is a separate option), and links to the icp-cli-templates AGENT_SKILLS.md.
  • plugins/astro-agent-docs.mjs: the generated llms.txt "Agent skills" block becomes a short pointer to skills.internetcomputer.org/llms.txt instead of duplicating fetch instructions.

Em-dash free (docs validator passes); branch up to date with main.

Validation

astro build passes (209 pages) and scripts/validate.js passes on the changed guide. Generated llms.txt carries the pointer.

(The .sources/* submodule pointers seen in a local working tree are pre-existing and not part of this PR.)

Companion PRs

Adds autosync as a third way to consume ICP skills, frames fetch-on-demand / pin
/ auto-update as an explicit choice, corrects the 'fetched fresh each time' line
to be mode-aware, and points to the icp-cli-templates AGENT_SKILLS.md. The
generated llms.txt 'Agent skills' block becomes a short pointer to
skills.internetcomputer.org/llms.txt instead of duplicating fetch instructions.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
marc0olo and others added 3 commits July 27, 2026 12:17
Clarify that no installation is needed to get started (fetch on demand); installing
skills into a project is a separate documented option below.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The guide line and the generated llms.txt pointer used em-dashes, which the docs
validator rejects. Reword with a period/semicolon.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@marc0olo
marc0olo marked this pull request as ready for review July 27, 2026 10:55
@marc0olo
marc0olo requested a review from a team as a code owner July 27, 2026 10:55
marc0olo and others added 2 commits July 27, 2026 13:05
Clarify that following the llms.txt prompt makes the agent offer to set up how the
project keeps using skills (fetch on-demand, pin, or auto-update) and run the
chosen setup itself; the install methods below are those same options (also doable
manually). Avoids implying installation is never involved.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The discovery steps described only the on-demand fetch path. Reframe so the shared
pattern (match by description, prefer skills) is stated once, then split by where
the content comes from: on-demand fetches SKILL.md from the registry (always
latest), while pinned/autosync load skills from the agent's local skills directory
(locked versions / refreshed each session). Also fix an awkward double-colon in the
intro.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@marc0olo

Copy link
Copy Markdown
Member Author

raymondk pushed a commit to dfinity/icskills that referenced this pull request Aug 4, 2026
## What
`llms.txt` guides the user into a skills-mode choice, and the site no
longer duplicates `AGENTS.md`.

- `src/pages/llms.txt.ts`: leads with the on-demand fetch mechanics
(usable immediately, never blocked), then offers a one-time choice
(on-demand / pinned / autosync) with an ask-first, non-destructive
option to persist it into `AGENTS.md` (create if missing; append a
delimited block to an unrelated one without touching its content).
- Removed the orphaned `/AGENTS.md` endpoint (`src/pages/AGENTS.md.ts`)
and reworked the Get Started page by intent (use skills with your agent;
start a new project with icp-cli; pin into an existing project;
browse/read yourself). `llms.txt` is now the sole agent entrypoint; no
AGENTS.md copy remains on the site.
- `README.md`: quick-start paste prompt.

**Key properties**
- No terminal or install for the default path: the `.well-known` index
and `SKILL.md` are plain URL fetches, so web-only agents (e.g.
Perplexity) are handled; a correct `curl -sL` example is included.
Installs for pin/autosync are run by the agent per the chosen mode.
- Index fetched once per session (remembering names/URLs); `SKILL.md`
per task.
- Pinned update policy: manual or ask-first (never blocks; skips when
non-interactive).

## Validation
`astro build` passes (30 pages); generated `llms.txt` carries the
choice-flow and the `/AGENTS.md` endpoint is correctly gone. Behaviour
validated via simulated paste-flow (empty / unrelated-AGENTS /
non-interactive), cross-link arrival, no-re-onboard regression, and
pinned/ask-first (interactive offer, non-interactive skip).

### Companion PRs
- dfinity/icp-cli-templates#36
- dfinity/icp-cli#673
- dfinity/developer-docs#321

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@marc0olo
marc0olo merged commit a472bb2 into main Aug 5, 2026
8 checks passed
@marc0olo
marc0olo deleted the agent-skills-modes branch August 5, 2026 09:26
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