fix(agentconnect-ui): serve canonical skill at legacy /SKILL.md#137
Merged
Conversation
The repo dropped the root skills/SKILL.md (dedup), so the bare /SKILL.md hit the SPA fallback and returned index.html. Alias the canonical polygon-agent-cli/SKILL.md to dist/SKILL.md at build so the legacy URL loads markdown (200, no redirect). Deploy-only; the repo skills/ tree is untouched, so npx skills add still lists one skill.
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
https://agentconnect.polygon.technology/SKILL.mdcurrently returns the SPAindex.html(text/html) instead of the skill markdown. Cause: PR #134 removed the rootskills/SKILL.md(to stopnpx skills addfrom listing two near-identical skills), so the bare/SKILL.mdhas no matching asset and hits the worker's single-page-application fallback. External docs and older installs still fetch that URL.This aliases the canonical
polygon-agent-cli/SKILL.mdto/SKILL.mdin the deployed assets, so the legacy URL loads the markdown directly (200, not a redirect — safer for naive fetchers). It's a deploy-only copy in theserve-skillsbuild step; the reposkills/tree is untouched, sonpx skills addstill lists exactly one canonical skill.Testing
typecheck,lint,vite buildclean.dist/locally and curled every skill URL:/SKILL.md→200 text/markdown, byte-identical topolygon-agent-cli/SKILL.md,name: polygon-agent-cliin the body (no moreindex.html)./polygon-agent-cli/SKILL.md,/polygon-defi/SKILL.md,/polygon-discovery/SKILL.md,/polygon-polymarket/SKILL.md→ all200 text/markdown.200(fallback intact).Note
Auto-deploys to production on merge (
deploy-agentconnect-uitriggers on push tomainforpackages/agentconnect-ui/**).