azukiazusa1/sapper-blog-app / .claude/skills/codepen-share
codepen-share
Verifiedローカルで検証済みのブラウザ向け HTML、CSS、JavaScript を CodePen Prefill launcher に変換し、承認後に未保存の Pen を開く。フロントエンドのデモを CodePen で共有して、記事へ埋め込む準備をして、と依頼されたときに使用する。Node.js、サーバー、CLI、ビルド、複数プロセスが必要な例には使用しない。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.4 KB |
| agents/openai.yaml | config | 312 B |
| references/codepen-prefill.md | markdown | 1.5 KB |
| scripts/create-codepen-prefill.py | script | 4.0 KB |
references/codepen-prefill.md
View on GitHub# CodePen Prefill の境界
## 共有できる内容
- ローカルのブラウザ環境で検証済みのコードだけを共有する
- CodePen を記事の技術的主張の検証根拠にしない
- API キー、トークン、Authorization ヘッダー、非公開 endpoint、個人情報、本番認証情報を含めない
- サーバー、Node.js、CLI、ビルド、複数プロセスが必要な例に使わない
- Pen を保存せず、公開範囲をユーザーの代わりに決めない
## パネルの契約
| パネル | 含める | 除外する |
| --- | --- | --- |
| HTML | `body` 内の要素 | doctype、`html`、`head`、`body`、`script`、`style` |
| CSS | CSS | `style` タグ |
| JavaScript | JavaScript | `script` タグ |
必要なパネルだけを使用し、ローカルで検証したコードを維持する。
## launcher と外部転送
スクリプトは CodePen Prefill payload を hidden field に持つローカル HTML フォームを作る。フォームを送信すると、公式 endpoint `https://codepen.io/pen/define` へコードが転送され、入力済みの未保存 Pen が開く。
launcher を開くことと、フォームを送信することを区別する。フォーム送信を外部転送の境界として扱い、直前に承認を得る。送信先は公式 endpoint に固定し、任意の URL へ変更できるようにしない。
公式情報:
- [Post to Prefill Pen](https://blog.codepen.io/docs/api/post-to-prefill-pen/)
- [CodePen API documentation](https://blog.codepen.io/docs/api/)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |