Commit 0282107
authored
feat: add agent setup prompt for AI agent onboarding (cloudflare#30281)
* feat: add agent setup prompt for AI agent onboarding
- Add src/content/agent-setup/prompt.md as single source of truth for agent instructions (install Skills, MCP servers, and find next steps)
- Serve prompt as text/markdown at /agent-setup/prompt.md via Astro API endpoint
- Override Starlight SkipLink slot to inject hidden data-agent-instructions div as first child of <body> on /agent-setup/ only
- Add Accept: text/markdown content negotiation to worker for /agent-setup route, proxying to /agent-setup/prompt.md
- Inject HTML stop directive as preamble in the hidden div only, keeping the markdown prompt clean
* feat: global skills install and restart prompt for MCP servers
* feat: per-agent MCP config paths, global skills, fix OAuth note
* feat: improve agent setup prompt UX and fix opencode mcp install
* feat: add restart and auth instructions to setup completion block
* feat: move restart notice inside ascii block
* feat: add per-agent MCP auth commands inline with install steps
* fix: remove claude mcp auth, OAuth triggers on first tool call for Claude Code
* feat: update agent setup with plugin installs, new MCP servers, and refreshed prompts
* feat: include remaining agent setup component and page changes
* [agent-setup] revamp homepage copy block and /agent-setup index page
- Add PromptCopyBlock component with dark terminal-style UI, copy button,
and icon swap on success
- Add two-path card layout to /agent-setup/ (Quick setup vs Manual setup)
with orange border on quick path card
- Remove agent directive hidden div from SkipLink.astro
- Remove content negotiation for /agent-setup from worker/index.ts
- Update homepage agent section: copy block, secondary link, drop SVG
on small screens, rework CTA text
* [agent-setup] polish copy block, homepage logos, and path cards
- Two-path card layout on /agent-setup/: Quick setup (orange border) vs
Manual setup, responsive with flex wrap at 1000px
- PromptCopyBlock: remove animation, fix copy button click handler,
no-select on text, copy/copied label swap, overflow/truncation fixes
- Homepage: smaller logos (60px), gap spacing, remove justify-between,
tighten secondary link spacing, pcb-root margin overrides
* fix: prettier formatting and homepage agent section margin
* [agent-setup] light mode fixes and copy block polish
- PromptCopyBlock: theme-aware colors for light mode (no more hardcoded dark)
- Remove glow, add subtle orange box-shadow that increases on hover/copied
- Fix copy button colors, green copied state, text color via CSS vars
- Homepage: even section margin, normal text size/color for secondary link
* [agent-setup] increase homepage agent section top/bottom margin
* [agent-setup] copy block light/dark mode background and dot polish
* chore: remove unnecessary SkipLink override and astro.config registration1 parent b1e5407 commit 0282107
20 files changed
Lines changed: 679 additions & 132 deletions
File tree
- src
- components/agent-setup
- content
- agent-setup
- docs/agent-setup
- pages
- agent-setup
- worker
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | | - | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | | - | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | | - | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
62 | 91 | | |
63 | 92 | | |
64 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 12 | + | |
30 | 13 | | |
31 | 14 | | |
32 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments