Skip to content

fix(agentconnect-ui): serve canonical skill at legacy /SKILL.md#137

Merged
JamesLawton merged 1 commit into
mainfrom
fix/agentconnect-serve-root-skill
Jul 24, 2026
Merged

fix(agentconnect-ui): serve canonical skill at legacy /SKILL.md#137
JamesLawton merged 1 commit into
mainfrom
fix/agentconnect-serve-root-skill

Conversation

@JamesLawton

Copy link
Copy Markdown
Collaborator

Summary

https://agentconnect.polygon.technology/SKILL.md currently returns the SPA index.html (text/html) instead of the skill markdown. Cause: PR #134 removed the root skills/SKILL.md (to stop npx skills add from listing two near-identical skills), so the bare /SKILL.md has 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.md to /SKILL.md in 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 the serve-skills build step; the repo skills/ tree is untouched, so npx skills add still lists exactly one canonical skill.

Testing

  • typecheck, lint, vite build clean.
  • Served the built dist/ locally and curled every skill URL:
    • /SKILL.md200 text/markdown, byte-identical to polygon-agent-cli/SKILL.md, name: polygon-agent-cli in the body (no more index.html).
    • /polygon-agent-cli/SKILL.md, /polygon-defi/SKILL.md, /polygon-discovery/SKILL.md, /polygon-polymarket/SKILL.md → all 200 text/markdown.
    • SPA root and extensionless routes still 200 (fallback intact).

Note

Auto-deploys to production on merge (deploy-agentconnect-ui triggers on push to main for packages/agentconnect-ui/**).

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.
@JamesLawton
JamesLawton merged commit c43a308 into main Jul 24, 2026
6 checks passed
@JamesLawton
JamesLawton deleted the fix/agentconnect-serve-root-skill branch July 24, 2026 11:10
@claude

claude Bot commented Jul 24, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

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.

1 participant