archive
Cloudflareのインフラ(WorkerやKV)を削除し、GitHubのアーカイブ機能を使ってプロジェクトのGitHubリポジトリをまとめて保存・整理することで、不要になったプロジェクトを安全に保管・管理するSkill。
📜 元の英語説明(参考)
Archive a project — deletes Cloudflare infra (Worker + KV) and archives the GitHub repo using GitHub's built-in archive feature.
🇯🇵 日本人クリエイター向け解説
Cloudflareのインフラ(WorkerやKV)を削除し、GitHubのアーカイブ機能を使ってプロジェクトのGitHubリポジトリをまとめて保存・整理することで、不要になったプロジェクトを安全に保管・管理するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o archive.zip https://jpskill.com/download/9766.zip && unzip -o archive.zip && rm archive.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/9766.zip -OutFile "$d\archive.zip"; Expand-Archive "$d\archive.zip" -DestinationPath $d -Force; ri "$d\archive.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
archive.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
archiveフォルダができる - 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
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] archive
このスキルは、growth boilerplate テンプレートから作成されたプロジェクトをアーカイブします。Cloudflare インフラストラクチャを削除し、GitHub リポジトリをアーカイブします(読み取り専用にし、組織のデフォルトのリポジトリ一覧から非表示にします)。
重要: ローカルのファイルやディレクトリを削除、除去、または変更しないでください。このスキルはリモートリソースのみを操作します。
ステップ 1: プロジェクトの特定
wrangler.jsonc を読み込んで、worker 名と KV namespace 情報を取得します。package.json を読み込んで、プロジェクト名を確認します。git remote を読み込んで、GitHub リポジトリ(組織とリポジトリ名)を特定します。
これらのいずれかに未解決の {{PROJECT_NAME}} プレースホルダーが含まれている場合は、停止して、このプロジェクトがセットアップされていないことをユーザーに伝えます。アーカイブするものがありません。
ステップ 2: ユーザーへの確認
AskUserQuestion ツールを使用して、確認を求めます。ユーザーに何が起こるかを正確に示します。
- Cloudflare Worker の削除:
<worker-name> - Cloudflare KV namespace の削除:
<namespace-id>(wrangler.jsoncのkv_namespacesから) - GitHub リポジトリのアーカイブ:
<org>/<repo>(読み取り専用にし、デフォルトの組織ビューから非表示にします)
「これにより、インフラストラクチャが完全に削除され、リポジトリがアーカイブされます。よろしいですか?」と質問し、「はい、アーカイブします」と「キャンセル」のオプションを表示します。
ユーザーがキャンセルした場合は、すぐに停止します。
ステップ 3: Cloudflare Worker の削除
以下を実行します。
npx wrangler delete --name <worker-name>
失敗した場合(例:worker が存在しない場合)は、警告しますが続行します。
ステップ 3b: Access からの登録解除
aem-growth-adoption/access-apps をクローンします(まだクローンしていない場合)。apps.json でプロジェクト名に一致するエントリを見つけ、その status を "archived" に設定します。コミットしてプッシュします。GitHub Actions が Access アプリを削除します。
apps.json にエントリが存在しない場合は、メモを添えてこのステップをスキップします。
ステップ 4: KV namespace の削除
wrangler.jsonc の kv_namespaces から namespace ID を読み取り、以下を実行します。
npx wrangler kv namespace delete --namespace-id <namespace-id>
失敗した場合(例:namespace が存在しないか、ID がまだプレースホルダーである場合)は、警告しますが続行します。
ステップ 5: GitHub リポジトリのアーカイブ
以下を実行します。
gh repo archive <org>/<repo> --yes
gh が利用できない場合、またはコマンドが失敗した場合は、手動の手順を出力します。
- リポジトリの設定ページに移動します
- 「Danger Zone」までスクロールします
- 「Archive this repository」をクリックします
ステップ 6: 完了
実行された内容を要約します。
- Cloudflare Worker と KV namespace が削除されました(または失敗した場合はその旨を記載)
- GitHub リポジトリがアーカイブされました(読み取り専用、デフォルトの組織一覧から非表示)
ローカルファイルを触ったり削除したりしないでください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
This skill archives a project created from the growth boilerplate template. It deletes the Cloudflare infrastructure and archives the GitHub repository (making it read-only and hidden from the org's default repo listing).
IMPORTANT: NEVER delete, remove, or modify local files or directories. This skill only operates on remote resources.
Step 1: Identify the project
Read wrangler.jsonc to get the worker name and KV namespace info. Read package.json to confirm the project name. Read the git remote to identify the GitHub repository (org and repo name).
If any of these contain unresolved {{PROJECT_NAME}} placeholders, stop and tell the user this project was never set up — there's nothing to archive.
Step 2: Confirm with the user
Use the AskUserQuestion tool to ask for confirmation. Show the user exactly what will happen:
- Delete Cloudflare Worker:
<worker-name> - Delete Cloudflare KV namespace:
<namespace-id>(fromkv_namespacesinwrangler.jsonc) - Archive GitHub repo
<org>/<repo>(makes it read-only, hidden from default org view)
Ask: "This will permanently delete the infra and archive the repo. Are you sure?" with options "Yes, archive it" and "Cancel".
If the user cancels, stop immediately.
Step 3: Delete the Cloudflare Worker
Run:
npx wrangler delete --name <worker-name>
If it fails (e.g. worker doesn't exist), warn but continue.
Step 3b: Deregister from Access
Clone aem-growth-adoption/access-apps (if not already cloned). Find the matching entry in apps.json by project name and set its status to "archived". Commit and push. GitHub Actions will delete the Access app.
If the entry doesn't exist in apps.json, skip this step with a note.
Step 4: Delete the KV namespace
Read the namespace ID from kv_namespaces in wrangler.jsonc and run:
npx wrangler kv namespace delete --namespace-id <namespace-id>
If it fails (e.g. namespace doesn't exist or ID is still the placeholder), warn but continue.
Step 5: Archive the GitHub repository
Run:
gh repo archive <org>/<repo> --yes
If gh is not available or the command fails, print the manual steps:
- Go to the repository settings page
- Scroll to the "Danger Zone"
- Click "Archive this repository"
Step 6: Done
Summarize what was done:
- Cloudflare Worker and KV namespace deleted (or note failures)
- GitHub repository archived (read-only, hidden from default org listing)
Do not touch or delete local files.