jpskill.com
📦 その他 コミュニティ

coding-web

Web coding meta: JS/TS/Node for full-stack development

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o coding-web.zip https://jpskill.com/download/22095.zip && unzip -o coding-web.zip && rm coding-web.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22095.zip -OutFile "$d\coding-web.zip"; Expand-Archive "$d\coding-web.zip" -DestinationPath $d -Force; ri "$d\coding-web.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して coding-web.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → coding-web フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

coding-web

目的

このスキルは、OpenClaw が JavaScript、TypeScript、および Node.js を使用したフルスタック Web 開発を支援できるようにするものです。Web アプリケーションのコード生成、デバッグ、最適化に重点を置いています。

使用場面

このスキルは、フロントエンド(例: React、Vue)とバックエンド(例: Node.js サーバー)を含む Web プロジェクトの構築または保守を行う際に使用します。特に、アプリのスキャフォールディング、JS/TS コードのバグ修正、API の統合などのタスクに役立ちます。迅速なプロトタイピングやレガシーコードの最新標準への移行など、反復的な開発サイクルで適用してください。

主な機能

  • Node.js サーバーのボイラープレートを生成する: ルートを持つ Express アプリを作成するために使用します。例えば、server.js ファイルを出力します。
  • TypeScript 変換を処理する: JS を TS に変換し、型安全性を確保します。例えば、既存の関数にインターフェースを追加します。
  • フロントエンドコードを最適化する: JS/TS アセットをミニファイおよびバンドルします。React のような特定のフレームワークをターゲットにするためのパラメーターを指定して呼び出します。
  • 一般的な Web エラーをデバッグする: Node.js の CORS や React コンポーネントの状態管理などの問題を特定し、修正案を提案します。
  • データベースと統合する: async/await パターンを使用して、Node.js で MongoDB または SQL 接続のためのコードを生成します。
  • コードスニペット: シンプルな React コンポーネントの場合、OpenClaw は次のような出力をする可能性があります: import React from 'react'; const MyComponent = () => <div>Hello</div>; export default MyComponent;

使用パターン

このスキルを呼び出すには、ターミナルでコマンドの前に openclaw coding-web を付けるか、OpenClaw の API を介して統合します。常にサブコマンド(例: generatedebug)を最初に指定し、その後に --language ts--framework react などのオプションを続けます。API 呼び出しの場合、/api/coding-web/execute{ "action": "generate", "params": { "type": "component", "name": "UserForm" } } を含む JSON ペイロードで POST リクエストを使用します。認証のために環境変数を設定します。例えば、コマンドを実行する前に $OPENCLAW_API_KEY をエクスポートします。データベーススキルの出力をここでの入力として使用するなど、出力をパイプでつなぐことでスキルを連結できます。

一般的なコマンド/API

  • CLI コマンド: openclaw coding-web generate --type server --framework express --port 3000 – 基本的な Express サーバーを作成します。TypeScript の場合は --language ts を追加します。
  • CLI コマンド: openclaw coding-web debug --file app.js --issue "undefined variable" – 指定されたファイルのエラーを分析し、パッチを適用します。
  • API エンドポイント: /api/coding-web/generate{ "codeType": "component", "language": "ts", "details": { "name": "Login", "props": ["username"] } } をボディとして POST します – 生成されたコードを JSON として返します。
  • 設定形式: JSON 設定ファイルを使用します。例えば、.openclaw/config.json{ "defaultLanguage": "ts", "framework": "react", "apiKey": "$OPENCLAW_API_KEY" } を配置します。
  • コードスニペット: API レスポンス処理の場合: const response = await fetch('/api/coding-web/generate', { method: 'POST', body: JSON.stringify({ action: 'generate' }) }); const code = await response.json();
  • 認証: API 呼び出しの場合、常に $OPENCLAW_API_KEY をヘッダーに含めます。例えば、headers: { 'Authorization':Bearer ${process.env.OPENCLAW_API_KEY}}

統合に関する注意点

このスキルを VS Code などの IDE と統合するには、拡張機能として追加するか、OpenClaw のプラグインシステムを使用します。npm install openclaw-vscode でインストールします。CI/CD の場合、GitHub Actions などのスクリプトに埋め込みます: run: openclaw coding-web generate --type test --file src/app.js。依存関係は package.json で Node.js のバージョンを指定して処理します。例えば、"engines": { "node": ">=14" }。他のツールと併用する場合は、生成されたコードをモジュールとしてエクスポートします: module.exports = generatedCode;。環境に Node.js がインストールされていることを確認してください。呼び出す前に node -v で確認します。

エラー処理

エラーが発生した場合、CLI コマンドからの終了コード(例: 失敗の場合はコード 1)を確認し、API からの JSON エラーレスポンスを解析します。これには { "error": "Invalid params", "details": "Missing --type flag" } のようなフィールドが含まれます。一般的な問題については、修正された入力で再試行してください。例えば、依存関係の不足が原因で生成が失敗した場合は、まず npm install express を実行します。コードスニペットでは try-catch を使用します: try { await openclawAPI.call('coding-web', { action: 'generate' }); } catch (e) { console.error(e.message); // e.g., "API key required" }。認証が失敗した場合(例: 401 ステータス)、$OPENCLAW_API_KEY が設定されており、期限切れでないことを確認してください。

具体的な使用例

  1. 例 1: Node.js Express サーバーの生成
    使用法: openclaw coding-web generate --type server --framework express --language js
    これにより、基本的なサーバーファイルが作成されます: const express = require('express'); const app = express(); app.listen(3000, () => console.log('Server running'));
    次に、node server.js で実行して、ポート 3000 でサーバーを起動します。

  2. 例 2: TypeScript React コンポーネントのデバッグと修正
    使用法: openclaw coding-web debug --file MyComponent.tsx --issue "Type error in props"
    修正されたスニペットが出力される可能性があります: interface Props { name: string; } const MyComponent: React.FC<Props> = ({ name }) => <div>{name}</div>;
    出力をプロジェクトにコピーし、tsc で再構築することで統合します。

グラフ関係

  • 関連: "coding-backend" (Node.js の機能を共有)
  • 依存: "tools-node" (Node.js ランタイムアクセス用)
  • 接続: "web-frontend" (React/Vue のようなフロントエンド固有のタスク用)
  • 重複: "fullstack-dev" (より広範な開発のための "coding" クラスター内)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

coding-web

Purpose

This skill enables OpenClaw to assist with full-stack web development using JavaScript, TypeScript, and Node.js, focusing on generating, debugging, and optimizing code for web applications.

When to Use

Use this skill when building or maintaining web projects involving frontend (e.g., React, Vue) and backend (e.g., Node.js servers), especially for tasks like scaffolding apps, fixing bugs in JS/TS code, or integrating APIs. Apply it in iterative development cycles, such as rapid prototyping or migrating legacy code to modern standards.

Key Capabilities

  • Generate boilerplate for Node.js servers: Use to create Express apps with routes, e.g., output a server.js file.
  • Handle TypeScript conversions: Convert JS to TS, ensuring type safety; for example, add interfaces to existing functions.
  • Optimize frontend code: Minify and bundle JS/TS assets; invoke with parameters to target specific frameworks like React.
  • Debug common web errors: Identify and suggest fixes for issues like CORS in Node.js or state management in React components.
  • Integrate with databases: Generate code for MongoDB or SQL connections in Node.js, using async/await patterns.
  • Code snippets: For a simple React component, OpenClaw might output: import React from 'react'; const MyComponent = () => <div>Hello</div>; export default MyComponent;

Usage Patterns

To invoke this skill, prefix commands with openclaw coding-web in your terminal or integrate via OpenClaw's API. Always specify the subcommand first (e.g., generate, debug), followed by options like --language ts or --framework react. For API calls, use POST requests to /api/coding-web/execute with a JSON payload containing { "action": "generate", "params": { "type": "component", "name": "UserForm" } }. Set environment variables for authentication, e.g., export $OPENCLAW_API_KEY before running commands. Chain skills by piping outputs, like using output from a database skill as input here.

Common Commands/API

  • CLI Command: openclaw coding-web generate --type server --framework express --port 3000 – Creates a basic Express server; add --language ts for TypeScript.
  • CLI Command: openclaw coding-web debug --file app.js --issue "undefined variable" – Analyzes and patches errors in the specified file.
  • API Endpoint: POST to /api/coding-web/generate with body { "codeType": "component", "language": "ts", "details": { "name": "Login", "props": ["username"] } } – Returns generated code as JSON.
  • Config Format: Use a JSON config file, e.g., { "defaultLanguage": "ts", "framework": "react", "apiKey": "$OPENCLAW_API_KEY" }, placed in .openclaw/config.json.
  • Code Snippet: For API response handling: const response = await fetch('/api/coding-web/generate', { method: 'POST', body: JSON.stringify({ action: 'generate' }) }); const code = await response.json();
  • Authentication: Always include $OPENCLAW_API_KEY in headers for API calls, e.g., headers: { 'Authorization':Bearer ${process.env.OPENCLAW_API_KEY}}.

Integration Notes

Integrate this skill with IDEs like VS Code by adding it to your extensions or using OpenClaw's plugin system; install via npm install openclaw-vscode. For CI/CD, embed in scripts like GitHub Actions: run: openclaw coding-web generate --type test --file src/app.js. Handle dependencies by specifying Node.js versions in package.json, e.g., "engines": { "node": ">=14" }. If using with other tools, export generated code as modules: module.exports = generatedCode;. Ensure your environment has Node.js installed; check with node -v before invoking.

Error Handling

When errors occur, check the exit code from CLI commands (e.g., code 1 for failures) and parse JSON error responses from APIs, which include fields like { "error": "Invalid params", "details": "Missing --type flag" }. For common issues, retry with corrected inputs, e.g., if a generation fails due to missing dependencies, run npm install express first. Use try-catch in code snippets: try { await openclawAPI.call('coding-web', { action: 'generate' }); } catch (e) { console.error(e.message); // e.g., "API key required" }. If authentication fails (e.g., 401 status), verify $OPENCLAW_API_KEY is set and not expired.

Concrete Usage Examples

  1. Example 1: Generate a Node.js Express Server
    Use: openclaw coding-web generate --type server --framework express --language js
    This creates a basic server file: const express = require('express'); const app = express(); app.listen(3000, () => console.log('Server running'));
    Then, run it with node server.js to start the server on port 3000.

  2. Example 2: Debug and Fix a TypeScript React Component
    Use: openclaw coding-web debug --file MyComponent.tsx --issue "Type error in props"
    It might output a fixed snippet: interface Props { name: string; } const MyComponent: React.FC<Props> = ({ name }) => <div>{name}</div>;
    Integrate by copying the output into your project and rebuilding with tsc.

Graph Relationships

  • Related to: "coding-backend" (shares Node.js capabilities)
  • Depends on: "tools-node" (for Node.js runtime access)
  • Connected to: "web-frontend" (for frontend-specific tasks like React/Vue)
  • Overlaps with: "fullstack-dev" (in cluster "coding" for broader development)