← スキル一覧に戻る

shopify-theme-wc-portable
by nhantran889
⭐ 0🍴 0📅 2026年1月4日
SKILL.md
name: shopify-theme-wc-portable description: Build portable web components for Shopify themes that work across any theme structure allowed-tools:
- Read
- Grep
- glob
- edit_file
- create_file
- Bash
Shopify Theme Web Components (Portable)
Overview
This skill provides guidance for creating web components in Shopify themes that:
- Work in any theme structure (custom, Dawn-based, third-party)
- Don't impose folder conventions
- Follow progressive enhancement principles
- Support theme editor live preview
Mandatory Discovery
Before creating any component:
- Check CLAUDE.local.md for project-specific patterns
- Scan existing JS files for naming and structure conventions
- Identify initialization patterns used in the theme
- Find where scripts are loaded in layout files
Integration Policy (Portable)
File Placement
- Use existing file locations—do not create new folders
- If theme uses single
theme.js, add to that file - If theme has component files, create new file in same location
Registration Pattern
// Always use define-once guard
if (!customElements.get("component-name")) {
customElements.define("component-name", ComponentName);
}
Script Loading
- Follow existing script loading pattern in theme
- If theme uses
defer, usedefer - If theme uses
async, useasync - Match existing asset_url patterns
Verification Steps
After creating a component:
- Component initializes without console errors
- Works after section reload in theme editor
- Properly cleans up on disconnect
- Doesn't break existing theme styles
-
shopify theme checkpasses - HTML is functional before JS loads
Common Patterns
See PATTERNS.md for implementation examples of:
- Accordion/Tabs
- Modal/Drawer
- Product Gallery
- Predictive Search enhancements
- Lazy initialization
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です