MCP HubMCP Hub
スキル一覧に戻る

cdn-usage

dave1010
更新日 Today
48 閲覧
0
GitHubで表示
デザインdesign

について

このClaudeスキルは、外部ブラウザ依存関係を追加する際のCDN選択ガイダンスを提供します。自動的なセマンティックバージョニング解決のため、npm構文を使用したjsDelivrをデフォルト選択肢として推奨し、LLMが頻繁に誤る完全性ハッシュの回避などの信頼性向上のヒントを含みます。堅牢な依存関係ローディングを確保するために、CDN経由でスクリプトを読み込む必要がある際は、常にこのスキルをご利用ください。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/dave1010/tools
Git クローン代替
git clone https://github.com/dave1010/tools.git ~/.claude/skills/cdn-usage

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

CDNs (if needed)

  • UMD is probably best, unkess you're composing multiple modern packages and know they expose export syntax.
  • Skip integrity hashes (LLMs get them wrong)
  • LLM training data may get URLs wrong. Add onerror="alert('Failed to load: ' + this.src)"

jsDelivr

Example:

<script type="module">
import duckdbduckdbWasm from 'https://cdn.jsdelivr.net/npm/@duckdb/[email protected]/+esm'
</script>

cdnjs

esm.sh

  • Use for live ESM transforms, not static files. Transforms TS/TSX on the fly.
  • Eg import * as THREE from "https://esm.sh/[email protected]";
  • tsx mode: load https://esm.sh/tsx as a module → inline <script type="text/tsx">

GitHub リポジトリ

dave1010/tools
パス: .skills/cdn-usage

関連スキル

content-collections

メタ

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

スキルを見る

creating-opencode-plugins

メタ

This skill provides the structure and API specifications for creating OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It offers implementation patterns for JavaScript/TypeScript modules that intercept and extend the AI assistant's lifecycle. Use it when you need to build event-driven plugins for monitoring, custom handling, or extending OpenCode's capabilities.

スキルを見る

polymarket

メタ

This skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.

スキルを見る

cloudflare-turnstile

メタ

This skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.

スキルを見る