Cloudstudio Deployのロゴ

Cloudstudio Deploy

コミュニティ
crane-in-clear-sky
cloudstudio_deploy

Deploy static sites to CloudStudio sandbox workspaces or take published sites offline. This skill should be used when users want to deploy a local build directory (e.g. dist/, build/, out/) to a CloudStudio workspace, preview or publish a static site with a shareable URL, or unpublish an existing deployment.

Add to TypingMind

概要

公開者crane-in-clear-sky
リポジトリWorkWit-AI-Agent
スキル名cloudstudio_deploy
スター
118
フォーク
5
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    crane-in-clear-skyがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Cloudstudio Deploy」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/crane-in-clear-sky/WorkWit-AI-Agent/tree/main/workwit/backend/builtin_skills/cloudstudio_deploy
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/crane-in-clear-sky/WorkWit-AI-Agent.git /tmp/WorkWit-AI-Agent
mkdir -p .claude/skills
cp -r /tmp/WorkWit-AI-Agent/workwit/backend/builtin_skills/cloudstudio_deploy .claude/skills/cloudstudio_deploy
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでCloudstudio Deployを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にCloudstudio Deployを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Cloudstudio Deployは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

⚠️ 环境适配:本技能面向 CloudStudio 云端部署平台,当前系统未接入该平台;若用户需要部署静态站点,说明当前能力边界,不执行 npm/CLI 命令。

CloudStudio Deploy

Deploy local static sites to CloudStudio sandbox workspaces or take published sites offline via the built-in workbuddy_cloudstudio_deploy tool.

When to Use

  • User asks to deploy, preview, or publish a static site / web application
  • User asks to unpublish, take offline, or remove a published static site
  • User has a build output directory (e.g. dist/, build/, out/) and wants a live URL
  • User mentions CloudStudio, sandbox, or cloud preview

Limitations

  • Only pure front-end static sites are supported (HTML/CSS/JS/assets).
  • Server-side rendering (SSR), backend APIs, databases, or runtime dependencies (e.g. Node.js server apps) are NOT supported.
  • If the project requires a backend or SSR, inform the user that only static site deployment is currently supported.

How to Deploy

Use the built-in tool workbuddy_cloudstudio_deploy. It accepts:

  • action (optional) — deploy (default) / unpublish
  • directory (deploy required) — absolute path to the build output directory
  • port (deploy only) — port for the static file server, defaults to 3000
  • entry (optional) — entry HTML file; for unpublish, it can narrow a directory match
  • shareLink (unpublish only) — published share link, preferred for precise targeting

Workflow

When a user asks to deploy a site, follow this workflow in order. Be conservative — only proceed with build/deploy when you have high confidence in the result.

Step 1: Identify the deploy target

Check if the user specified a directory. If yes, verify it looks deployable (has index.html). If it does, skip to Step 4.

If no directory is specified, or the specified directory does not contain index.html, proceed to Step 2.

Step 2: Scan for existing build output

Look in the project root for common front-end build output directories. Only check these whitelisted directories (do NOT recursively scan the entire project):

  • dist/
  • build/
  • out/
  • output/
  • public/
  • .next/out/ (Next.js static export)
  • .output/public/ (Nuxt static)
  • _site/ (Jekyll/11ty)
  • www/
  • docs/

For each found directory, check if it contains index.html. If exactly one candidate is found, use it. If multiple candidates exist, ask the user to choose.

Step 3: Attempt to build (conservative strategy)

If no existing build output is found, check if the project has a buildable front-end:

  1. Check for package.json in the project root. If missing, skip to Step 3c.

  2. Look for a build script. Check package.json for these script names (in order of priority):

    • build
    • build:prod
    • build:production
    • generate (Nuxt)
    • export (Next.js)

    If a build script exists:

    • Check if node_modules/ exists. If not, inform the user that dependencies need to be installed first and ask for confirmation before running npm install (or the appropriate package manager based on lock files).
    • Run the build script (e.g. npm run build).
    • After build completes, re-scan the whitelisted directories from Step 2 for index.html.
    • If a deployable directory is found, proceed to Step 4.
    • If the build fails or produces no static output, report the error to the user and stop.
  3. No package.json or no build script:

    • Check if the project root itself contains index.html (simple static site with no build step).
    • If yes, use the project root as the deploy directory.
    • If no, inform the user: "No deployable static site found. This project may require a build step or may not be a static front-end project."
    • Do NOT attempt to guess or construct build commands. Stop and ask the user for guidance.

Step 4: Deploy

Call the workbuddy_cloudstudio_deploy tool with the identified directory:

Step 5: Report result

The tool returns a JSON with shareLink and verified fields.

  • Present the shareLink as the 分享链接 to the user.
  • Do NOT mention expiration, spaceKey, data plane URL, webIDE URL, or any other internal details.
  • If verified is false, suggest the user wait a few seconds and try the link again.

Important Rules

  • Only show the shareLink to the user, referred to as 分享链接.
  • Do NOT mention expiration, validity period, spaceKey, data plane URL, webIDE URL, or any other internal details to the user.
  • Be conservative in build attempts — only run build commands when there is a clear, standard build script present. Never fabricate or guess build commands.
  • If analysis becomes too complex (e.g. monorepo with unclear structure, unconventional build setup), stop and ask the user for clarification rather than guessing.
  • The tool handles everything internally: workspace creation, file upload, static server setup, and link generation.

Unpublish (Take Offline)

Take a previously deployed site offline via the built-in workbuddy_cloudstudio_deploy tool with action: "unpublish". After unpublishing, the site's 分享链接 stops working. This only cancels the artifact release; it does NOT destroy the sandbox and is reversible by redeploying.

When to Unpublish

  • User asks to 下线 / 取消发布 / 撤下 / 删除 a deployed site, or in English to unpublish / take offline / take down / remove a published app.

How to Unpublish

Use the built-in tool workbuddy_cloudstudio_deploy with action: "unpublish". The targeting parameters are optional; provide the most specific one available:

  • shareLink (optional) — the share link of the deployment to take offline. Preferred, most precise.
  • directory (optional) — absolute path of the directory that was deployed. Used when the share link is unavailable.
  • entry (optional) — entry HTML file name, used with directory for precise matching.

Target resolution priority: shareLink → directory (+ entry) → otherwise the most recent still-published deployment in the current workspace.

Workflow

  1. Determine which deployment to take offline:
    • If the user provided or referenced a share link, pass it as shareLink.
    • Otherwise, if the user points to a project directory, pass it as directory.
    • If the user just says "下线刚才那个 / take the last one offline" without specifics, pass only action: "unpublish" and omit the targeting parameters to fall back to the most recent published deployment.
  2. Call workbuddy_cloudstudio_deploy with action: "unpublish".
  3. Report the result:
    • On success, confirm the site has been taken offline and its 分享链接 no longer works.
    • On failure (e.g. no matching deployment found), tell the user no matching deployment was located and ask them to provide the share link or the deployed directory.

Important Rules

  • Do NOT expose conversationId, spaceKey, or any internal identifiers to the user.
  • If multiple deployments could match and the target is ambiguous, ask the user to confirm (e.g. by share link) rather than guessing.

よくある質問

AIスキル「Cloudstudio Deploy」では何ができますか?

Deploy static sites to CloudStudio sandbox workspaces or take published sites offline. This skill should be used when users want to deploy a local build directory (e.g. dist/, build/, out/) to a CloudStudio workspace, preview or publish a static site with a shareable URL, or unpublish an existing deployment.

TypingMindでCloudstudio Deployを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Cloudstudio Deployはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにCloudstudio Deployをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/crane-in-clear-sky/WorkWit-AI-Agent/tree/main/workwit/backend/builtin_skills/cloudstudio_deployを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Cloudstudio Deployを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Cloudstudio Deployで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもCloudstudio Deployを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Cloudstudio Deploy」は無料ですか?

crane-in-clear-skyがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇