blocklet-converter
指定されたDIDを使って、静的なウェブサイトやNext.jsプロジェクトをArcBlockのblocklet形式に変換し、構成ファイルを生成・検証することで、blockletとして利用できるようにするSkill。
📜 元の英語説明(参考)
Converts static web or Next.js projects into ArcBlock blocklets using provided DID. Analyzes project structure, generates configuration files, and validates setup. Requires blocklet DID as parameter.
🇯🇵 日本人クリエイター向け解説
指定されたDIDを使って、静的なウェブサイトやNext.jsプロジェクトをArcBlockのblocklet形式に変換し、構成ファイルを生成・検証することで、blockletとして利用できるようにするSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o blocklet-converter.zip https://jpskill.com/download/17231.zip && unzip -o blocklet-converter.zip && rm blocklet-converter.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17231.zip -OutFile "$d\blocklet-converter.zip"; Expand-Archive "$d\blocklet-converter.zip" -DestinationPath $d -Force; ri "$d\blocklet-converter.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
blocklet-converter.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
blocklet-converterフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 3
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Blocklet Converter
静的なウェブプロジェクトと Next.js アプリケーションを、適切な設定と検証によって ArcBlock blocklet に変換します。
パラメータ
did (必須): 事前に生成された blocklet DID (形式: z8ia...)
例: "Convert this project to blocklet using DID z8ia4e5vAeDsQEE2P26bQqz9oWR1Lxg9qUMaV"
欠落しているか無効な場合、エラーメッセージ "Blocklet DID parameter is required." を表示して直ちに終了します。
ワークフロー
1. プロジェクト分析
スキップするディレクトリ: node_modules/, .pnpm/, .yarn/, .cache/, .turbo/, bower_components/
ウェブアプリケーションの存在確認
以下のいずれかの存在を確認します。
- ウェブ関連の依存関係を持つ
package.json - ルート、
public/、またはsrc/、あるいは一般的な場所にあるindex.html - ウェブフレームワークの設定 (
vite.config.*,webpack.config.*,next.config.*など)
いずれも見つからない場合 → 終了 エラーメッセージ: "No web application detected."
プロジェクトタイプの検出
package.json の依存関係を調べて、以下を確認します。
- Next.js: 依存関係に
nextがある場合 → Next.js プロジェクト - バックエンドフレームワーク: express, koa, fastify, nest など → 終了 エラー: "Only static webapp and next.js projects are supported."
- それ以外 → 静的なウェブアプリケーション
メタデータの抽出と出力 (早期)
プロジェクトタイプを確認したらすぐに、package.json からメタデータを抽出します。
title: 一般公開に適した、人間が理解しやすいプロジェクト名 (例:my-cool-app→My Cool App)description: エンドユーザー向けの明確で技術的でない説明。package.json の説明が技術的すぎる場合は、ユーザーフレンドリーになるように書き換えます。
以下のプロトコルを使用して出力し、ワークフローを続行します。
<<<BLOCKLET_PROJECT>>>
{"title": "...", "description": "..."}
<<<END_BLOCKLET_PROJECT>>>
ビルド (ビルドスクリプトが存在する場合)
bun install && bun run build
いずれかが失敗した場合 → 終了 エラー出力を表示します。
出力ディレクトリの特定
Next.js プロジェクトの場合: 出力ディレクトリは常に .next です — 検出をスキップします。
静的なウェブアプリケーションの場合: index.html を dist/ → build/ → out/ → public/ → ./、またはその他の一般的な場所から探します。見つからない場合 → 終了 エラーメッセージ: "No index.html entry point found."
出力ディレクトリの確認
続行する前に、出力ディレクトリが存在し、必要なファイルが含まれていることを確認します。
2. アセットの準備
- README.md: 存在しない場合は、
{baseDir}/templates/README-template.mdから生成します。 - logo.png: 存在しない場合は、
{baseDir}/assets/default-blocklet-logo.pngからコピーします。 - index.js (Next.js のみ):
{baseDir}/assets/nextjs-entry.txtをindex.jsとしてプロジェクトルートにコピーします。
3. blocklet.yml の生成
Next.js プロジェクトの場合: {baseDir}/templates/nextjs-blocklet.yml のテンプレートを使用します。
静的なウェブアプリケーションの場合: {baseDir}/templates/static-blocklet.yml のテンプレートを使用します。
以下を設定します。
didとname: 提供された DID を使用します。title: 人間が判読できるプロジェクト名description: package.json から
4. 検証
blocklet meta
Next.js プロジェクトの場合:
blocklet bundle --simple --create-release --external="*"
静的なウェブアプリケーションの場合:
blocklet bundle --create-release
エラーを修正して再試行してください。
5. 完了
完了後にサマリーや要約を出力しないでください。 検証が成功したら、静かに終了してください。ツールからの出力は、すでにユーザーに十分なフィードバックを提供しています。
エラーリファレンス
すべてのエラー条件と提案については、{baseDir}/errors.md を参照してください。
サポートファイル
assets/default-blocklet-logo.png- デフォルトのロゴassets/nextjs-entry.txt- Next.js のエントリポイントのサンプルtemplates/static-blocklet.yml- 静的なウェブアプリケーションの設定テンプレートtemplates/nextjs-blocklet.yml- Next.js の設定テンプレートtemplates/README-template.md- README テンプレートexamples.md- ワークフローの例errors.md- エラーリファレンス
{baseDir} は、スキルのインストールディレクトリに解決されます。
出力プロトコル
このスキルは、呼び出し元がプログラムで解析できる構造化データを出力します。
プロジェクトメタデータイベント
プロジェクトの検証が成功した直後 (ビルド前) に出力されます。
<<<BLOCKLET_PROJECT>>>
{"title": "...", "description": "..."}
<<<END_BLOCKLET_PROJECT>>>
| フィールド | タイプ | 説明 |
|---|---|---|
title |
string | 一般公開に適した、人間が理解しやすいプロジェクト名 |
description |
string | エンドユーザー向けの技術的でない説明 |
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Blocklet Converter
Converts static web projects and Next.js applications into ArcBlock blocklets with proper configuration and validation.
Parameters
did (required): Pre-generated blocklet DID (format: z8ia...)
Example: "Convert this project to blocklet using DID z8ia4e5vAeDsQEE2P26bQqz9oWR1Lxg9qUMaV"
If missing or invalid, exit immediately with error message: "Blocklet DID parameter is required."
Workflow
1. Project Analysis
Skip directories: node_modules/, .pnpm/, .yarn/, .cache/, .turbo/, bower_components/
Verify Web Application Exists
Check for ANY of:
package.jsonwith web-related dependenciesindex.htmlin root,public/, orsrc/or common locations- Web framework config (
vite.config.*,webpack.config.*,next.config.*, etc.)
If none found → EXIT with error message: "No web application detected."
Detect Project Type
Check package.json dependencies for:
- Next.js:
nextin dependencies → Next.js project - Backend frameworks: express, koa, fastify, nest, etc. → EXIT with error: "Only static webapp and next.js projects are supported."
- Otherwise → Static webapp
Extract & Emit Metadata (Early)
Immediately after confirming project type, extract metadata from package.json:
title: Human-friendly project name suitable for public display (e.g.,my-cool-app→My Cool App)description: A clear, non-technical description for end users. If package.json description is too technical, rewrite it to be user-friendly.
Emit using the protocol below, then continue with the workflow:
<<<BLOCKLET_PROJECT>>>
{"title": "...", "description": "..."}
<<<END_BLOCKLET_PROJECT>>>
Build (if build script exists)
bun install && bun run build
If either fails → EXIT with error output.
Locate Output Directory
For Next.js projects: Output directory is always .next — skip detection.
For static webapps: Find index.html in: dist/ → build/ → out/ → public/ → ./, or any other common locations. If not found → EXIT with error message: "No index.html entry point found."
Confirm Output Directory
Verify the output directory exists and contains expected files before proceeding.
2. Asset Preparation
- README.md: If missing, generate from
{baseDir}/templates/README-template.md - logo.png: If missing, copy from
{baseDir}/assets/default-blocklet-logo.png - index.js (Next.js only): Copy
{baseDir}/assets/nextjs-entry.txtto project root asindex.js
3. Generate blocklet.yml
For Next.js projects: Use template from {baseDir}/templates/nextjs-blocklet.yml
For static webapps: Use template from {baseDir}/templates/static-blocklet.yml
Populate with:
didandname: Use provided DIDtitle: Human-readable project namedescription: From package.json
4. Verification
blocklet meta
For Next.js projects:
blocklet bundle --simple --create-release --external="*"
For static webapps:
blocklet bundle --create-release
Fix any errors and retry.
5. Finalization
Do NOT output any summary or recap after completion. Simply end silently after successful verification. The tool outputs already provide sufficient feedback to the user.
Error Reference
See {baseDir}/errors.md for all error conditions and suggestions.
Supporting Files
assets/default-blocklet-logo.png- Default logoassets/nextjs-entry.txt- Next.js entry point sampletemplates/static-blocklet.yml- Static webapp config templatetemplates/nextjs-blocklet.yml- Next.js config templatetemplates/README-template.md- README templateexamples.md- Workflow exampleserrors.md- Error reference
{baseDir} resolves to the skill's installation directory.
Output Protocol
This skill emits structured data that callers can parse programmatically.
Project Metadata Event
Emitted immediately after project validation succeeds (before build):
<<<BLOCKLET_PROJECT>>>
{"title": "...", "description": "..."}
<<<END_BLOCKLET_PROJECT>>>
| Field | Type | Description |
|---|---|---|
title |
string | Human-friendly project name for public display |
description |
string | Non-technical description for end users |
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (4,647 bytes)
- 📎 assets/default-blocklet-logo.png (4,572 bytes)
- 📎 assets/nextjs-entry.txt (380 bytes)