From c27454999c1ffd0ef0e67e12eb07488caf4eeac2 Mon Sep 17 00:00:00 2001 From: "Alexandro T. Netto" Date: Fri, 15 May 2026 16:19:55 -0700 Subject: [PATCH] feat(web): proxy /SKILL.md from GitHub and shorten install-prompt link Follow-up to #17. The pagent.link rename in #17 updated the MCP and preview URLs but left the install-prompt Skill link pointing at raw.githubusercontent.com. Adds a Vercel rewrite so /SKILL.md proxies the GitHub raw file (single hop, no client redirect handling needed) and points the prompt at the short URL. - vercel.json: rewrite /SKILL.md -> raw.githubusercontent.com/.../SKILL.md - AGENT_PROMPT Skill URL: https://pagent.link/SKILL.md --- apps/web/home.ts | 2 +- apps/web/vercel.json | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/web/home.ts b/apps/web/home.ts index b99249f..e79589a 100644 --- a/apps/web/home.ts +++ b/apps/web/home.ts @@ -3,7 +3,7 @@ import { LitElement, html, css } from 'lit'; const AGENT_PROMPT = `Add this MCP and follow the skill so you can render real UI forms for me instead of asking in chat. MCP: https://api.pagent.link/mcp -Skill: https://raw.githubusercontent.com/blockful/pagent/main/skills/pagent/SKILL.md`; +Skill: https://pagent.link/SKILL.md`; class HomePage extends LitElement { static properties = { diff --git a/apps/web/vercel.json b/apps/web/vercel.json index ce0e80d..36293d8 100644 --- a/apps/web/vercel.json +++ b/apps/web/vercel.json @@ -4,7 +4,13 @@ "installCommand": "cd ../.. && npm install", "outputDirectory": "dist", "framework": null, - "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }], + "rewrites": [ + { + "source": "/SKILL.md", + "destination": "https://raw.githubusercontent.com/blockful/pagent/main/skills/pagent/SKILL.md" + }, + { "source": "/(.*)", "destination": "/index.html" } + ], "headers": [ { "source": "/(.*)",