jpskill.com
🛠️ 開発・MCP コミュニティ

docusaurus-deployer

Docusaurusで作成されたウェブサイトをGitHub Pagesに公開する際に、設定や構築、デプロイ作業を自動化し、公開前の検証やCI/CDの自動化まで行う便利な展開を支援するSkill。

📜 元の英語説明(参考)

This skill should be used when deploying a Docusaurus site to GitHub Pages. It automates the configuration, building, and deployment process, handling GitHub Pages setup, environment configuration, and CI/CD automation. Includes local validation before GitHub Actions triggering.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Docusaurusで作成されたウェブサイトをGitHub Pagesに公開する際に、設定や構築、デプロイ作業を自動化し、公開前の検証やCI/CDの自動化まで行う便利な展開を支援するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して docusaurus-deployer.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → docusaurus-deployer フォルダができる
  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
同梱ファイル
7

📖 Skill本文(日本語訳)

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

Docusaurus GitHub Pages デプロイヤー

CI/CD のトリガー前にローカルで検証を行い、Docusaurus ドキュメントサイトの構築と GitHub Pages へのデプロイを自動化します。

憲章との整合性: このスキルは、憲章 v4.0.1 (セクション I の Pillar 9: ユニバーサルなクラウドネイティブデプロイメント) で定義された本番環境デプロイメント標準を実装します。すべてのデプロイメントは、公開前にプロジェクトの品質ゲートを通過する必要があります。

このスキルの機能

  1. プロジェクト分析 - Docusaurus の構造と依存関係を調査します
  2. ローカル構成検証 - Docusaurus の構成とサイドバーを検証します
  3. ローカルビルドとテスト - サイトをローカルでビルドし、出力を検証します
  4. コンテンツ検証 - リンク切れと構文エラーをチェックします
  5. GitHub Pages のセットアップ - リポジトリとデプロイメント設定を構成します
  6. CI/CD 自動化 - GitHub Actions ワークフローをセットアップします
  7. デプロイメント検証 - デプロイメントが成功したことを検証します

このスキルを使用するタイミング

Docusaurus を GitHub Pages にデプロイするタイミング:

  • ドキュメントのデプロイメントを初めてセットアップするとき
  • 公開前にドキュメントを更新するとき
  • デプロイメント構成を更新するとき
  • デプロイメントの問題をトラブルシューティングするとき
  • 複数のドキュメントサイトを管理するとき
  • 本番環境前にドキュメントの品質を保証するとき

このスキルの使用方法

validate-locally-then-publish ワークフローに従ってください。

ステップ 1: リポジトリ構成の準備

GitHub の組織/ユーザー名、リポジトリ名、デプロイメントターゲット (ユーザー/プロジェクトページ)、およびカスタムドメイン (オプション) を収集します。

ステップ 2: プロジェクト構造の分析

Docusaurus プロジェクトを調査します。

ls -la path_to_docusaurus_project/
cat path_to_docusaurus_project/docusaurus.config.ts
cat path_to_docusaurus_project/sidebars.ts

docusaurus.config.ts、sidebars.js/ts、package.json の engines フィールド、および依存関係が存在することを確認します。

詳細な構成ガイダンスについては、references/configuration-guide.md を参照してください。

ステップ 3: Docusaurus 構成の更新

docusaurus.config.ts を GitHub Pages の設定で更新します。デプロイメントターゲット (ユーザー vs. プロジェクトページ) に基づいた完全な構成例とガイドラインについては、references/configuration-guide.md を参照してください。

ステップ 4: ローカルでのビルドと検証

依存関係をインストールし、型チェックを実行し、サイトをビルドし、出力を検証し、ローカルでテストし、コンテンツの品質を確認します。

実行:

npm ci
npm run typecheck
npm run build
npm run serve

詳細な検証手順については、references/local-validation-guide.md を参照してください。

ステップ 5: メインブランチへのコミットとプッシュ

ローカルでの検証が成功した後:

git add .
git commit -m "Update documentation: [description]"
git push origin main

これにより、GitHub Actions ワークフローがトリガーされます。

ステップ 6: GitHub Actions のセットアップ

references/deploy-workflow.yml のテンプレートを使用して、.github/workflows/deploy.yml を作成します。

詳細なワークフロー構成とトラブルシューティングについては、references/github-actions-guide.md を参照してください。

ステップ 7: リポジトリ設定で GitHub Pages を構成する

  1. Settings → Pages に移動します
  2. ソースを GitHub Actions (または gh-pages ブランチからデプロイ) に設定します
  3. 必要に応じてカスタムドメインを構成します
  4. メインブランチでブランチ保護を有効にします

ステップ 8: デプロイメントの検証

Actions タブで GitHub Actions ワークフローのステータスを確認し、構成された URL でサイトがロードされることを確認し、すべてのナビゲーションが機能することを確認します。

トラブルシューティング

一般的な問題と解決策については、references/troubleshooting.md を参照してください。以下について説明します。

  • ビルドの失敗と型エラー
  • デプロイ後の 404 エラー
  • リンク切れと GitHub Actions の問題
  • パフォーマンスの問題とコンテンツの品質

バンドルされたリソース

  • references/deploy-workflow.yml - GitHub Actions ワークフローテンプレート
  • references/configuration-guide.md - 詳細な Docusaurus 構成
  • references/local-validation-guide.md - ビルドと検証の手順
  • references/github-actions-guide.md - CI/CD のセットアップと構成
  • references/troubleshooting.md - 一般的な問題と解決策
  • references/performance-standards.md - パフォーマンス目標とベストプラクティス

パフォーマンス目標

  • ビルド時間: < 30 秒 (標準)
  • ページロード: < 3 秒
  • バンドルサイズ: ドキュメント用に最適化
  • アクセシビリティ: WCAG 2.1 AA 準拠

品質ゲート (憲章 v3.1.2)

本番環境へのデプロイ前に、以下を確認してください。

  • [ ] すべてのコンテンツが validation-auditor の検証に合格する
  • [ ] ローカルビルドがエラーなしで完了する
  • [ ] リンク切れまたは不足しているリソースがない
  • [ ] TypeScript の型チェックに合格する
  • [ ] パフォーマンス目標を達成する
  • [ ] アクセシビリティ標準が検証されている
  • [ ] GitHub Actions ワークフローが正しく構成されている

参照: 完全な本番環境デプロイメント標準については、.specify/memory/constitution.md のデプロイメント標準セクションを参照してください。

使用ツール

  • Node.js/npm (v20+)
  • Docusaurus CLI
  • TypeScript
  • GitHub Actions
  • GitHub Pages
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Docusaurus GitHub Pages Deployer

Automate building and deploying Docusaurus documentation sites to GitHub Pages with local validation before CI/CD triggering.

Constitution Alignment: This skill implements production deployment standards defined in Constitution v4.0.1 (Pillar 9: Universal Cloud-Native Deployment from Section I). All deployments must meet project quality gates before publication.

What This Skill Does

  1. Project Analysis - Examine Docusaurus structure and dependencies
  2. Local Configuration Validation - Verify Docusaurus config and sidebars
  3. Local Build & Testing - Build site locally and validate output
  4. Content Verification - Check for broken links and syntax errors
  5. GitHub Pages Setup - Configure repository and deployment settings
  6. CI/CD Automation - Set up GitHub Actions workflows
  7. Deployment Verification - Validate successful deployment

When to Use This Skill

Deploy Docusaurus to GitHub Pages when:

  • Setting up documentation deployment for the first time
  • Making updates to documentation before publishing
  • Updating deployment configuration
  • Troubleshooting deployment issues
  • Managing multiple documentation sites
  • Ensuring documentation quality before production

How to Use This Skill

Follow the validate-locally-then-publish workflow:

Step 1: Prepare Repository Configuration

Gather GitHub organization/username, repository name, deployment target (user/project pages), and custom domain (optional).

Step 2: Analyze Project Structure

Examine Docusaurus project:

ls -la path_to_docusaurus_project/
cat path_to_docusaurus_project/docusaurus.config.ts
cat path_to_docusaurus_project/sidebars.ts

Verify docusaurus.config.ts, sidebars.js/ts, package.json engines field, and dependencies exist.

For detailed configuration guidance, see references/configuration-guide.md.

Step 3: Update Docusaurus Configuration

Update docusaurus.config.ts with GitHub Pages settings. See references/configuration-guide.md for complete configuration examples and guidelines based on deployment target (user vs. project pages).

Step 4: Build and Validate Locally

Install dependencies, run type checking, build site, validate output, test locally, and verify content quality.

Execute:

npm ci
npm run typecheck
npm run build
npm run serve

For detailed validation procedures, see references/local-validation-guide.md.

Step 5: Commit and Push to Main

After successful local validation:

git add .
git commit -m "Update documentation: [description]"
git push origin main

This triggers the GitHub Actions workflow.

Step 6: Set Up GitHub Actions

Create .github/workflows/deploy.yml using the template in references/deploy-workflow.yml.

For detailed workflow configuration and troubleshooting, see references/github-actions-guide.md.

Step 7: Configure GitHub Pages in Repository Settings

  1. Go to Settings → Pages
  2. Set source to GitHub Actions (or deploy from gh-pages branch)
  3. Configure custom domain if needed
  4. Enable branch protection on main branch

Step 8: Verify Deployment

Check GitHub Actions workflow status in Actions tab, verify site loads at configured URL, and confirm all navigation works.

Troubleshooting

For common issues and solutions, see references/troubleshooting.md, which covers:

  • Build failures and type errors
  • 404 errors after deployment
  • Broken links and GitHub Actions issues
  • Performance problems and content quality

Bundled Resources

  • references/deploy-workflow.yml - GitHub Actions workflow template
  • references/configuration-guide.md - Detailed Docusaurus configuration
  • references/local-validation-guide.md - Build and validation procedures
  • references/github-actions-guide.md - CI/CD setup and configuration
  • references/troubleshooting.md - Common issues and solutions
  • references/performance-standards.md - Performance targets and best practices

Performance Targets

  • Build time: < 30 seconds (typical)
  • Page load: < 3 seconds
  • Bundle size: Optimized for documentation
  • Accessibility: WCAG 2.1 AA compliance

Quality Gates (Constitution v3.1.2)

Before deployment to production, verify:

  • [ ] All content passes validation-auditor validation
  • [ ] Local build completes without errors
  • [ ] No broken links or missing resources
  • [ ] TypeScript type checking passes
  • [ ] Performance targets met
  • [ ] Accessibility standards verified
  • [ ] GitHub Actions workflow configured correctly

Reference: See .specify/memory/constitution.md deployment standards section for complete production deployment standards.

Tools Used

  • Node.js/npm (v20+)
  • Docusaurus CLI
  • TypeScript
  • GitHub Actions
  • GitHub Pages

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。