gamma-migration-deep-dive
他のプレゼンテーションプラットフォームからGammaへの移行について、詳しく解説します。PowerPoint、Google Slides、Canvaなど、他のプレゼンテーションツールからGammaへの移行時に活用できます。「gamma migration」「migrate to gamma」「gamma import」「gamma from powerpoint」「gamma from google slides」といったキーワードで起動します。
description の原文を見る
Deep dive into migrating to Gamma from other presentation platforms. Use when migrating from PowerPoint, Google Slides, Canva, or other presentation tools to Gamma. Trigger with phrases like "gamma migration", "migrate to gamma", "gamma import", "gamma from powerpoint", "gamma from google slides".
SKILL.md 本文
Gamma移行深掘りガイド
概要
他のプラットフォームからGammaへのプレゼンテーションとワークフローの移行に関する包括的なガイドです。
前提条件
- Gamma APIへのアクセス
- ソースプラットフォームのエクスポート機能
- 移行スクリプト用Node.js 18以上
- 十分なGammaストレージクォータ
サポートされている移行パス
| ソース | 形式 | 忠実度 | 備考 |
|---|---|---|---|
| PowerPoint | .pptx | 高 | ネイティブインポート |
| Google Slides | .pptxエクスポート | 高 | まずエクスポート |
| Canva | .pdf/.pptx | 中 | アニメーション制限あり |
| Keynote | .pptxエクスポート | 高 | まずエクスポート |
| 中 | 静的のみ | ||
| Markdown | .md | 高 | 構造を保持 |
手順
ステップ1: ソースプレゼンテーションのインベントリ作成
// scripts/migration-inventory.ts
interface SourcePresentation {
id: string;
title: string;
source: 'powerpoint' | 'google' | 'canva' | 'other';
path: string;
size: number;
lastModified: Date;
slideCount?: number;
}
async function inventoryPresentations(sourceDir: string): Promise<SourcePresentation[]> {
const files = await glob('**/*.{pptx,pdf,key}', { cwd: sourceDir });
const inventory: SourcePresentation[] = [];
for (const file of files) {
const stats = await fs.stat(path.join(sourceDir, file));
const ext = path.extname(file).toLowerCase();
inventory.push({
id: crypto.randomUUID(),
title: path.basename(file, ext),
source: detectSource(file),
path: file,
size: stats.size,
lastModified: stats.mtime,
});
}
// Save inventory
await fs.writeFile(
'migration-inventory.json',
JSON.stringify(inventory, null, 2)
);
console.log(`Found ${inventory.length} presentations to migrate`);
return inventory;
}
ステップ2: 移行エンジン
// lib/migration-engine.ts
import { GammaClient } from '@gamma/sdk';
interface MigrationResult {
sourceId: string;
gammaId?: string;
success: boolean;
error?: string;
duration: number;
}
class MigrationEngine {
private gamma: GammaClient;
private results: MigrationResult[] = [];
constructor() {
this.gamma = new GammaClient({
apiKey: process.env.GAMMA_API_KEY,
timeout: 120000, // Long timeout for imports
});
}
async migrateFile(source: SourcePresentation): Promise<MigrationResult> {
const start = Date.now();
try {
// Read file
const fileBuffer = await fs.readFile(source.path);
// Upload to Gamma
const presentation = await this.gamma.presentations.import({
file: fileBuffer,
filename: path.basename(source.path),
title: source.title,
preserveFormatting: true,
convertToGammaStyle: false,
});
const result: MigrationResult = {
sourceId: source.id,
gammaId: presentation.id,
success: true,
duration: Date.now() - start,
};
this.results.push(result);
return result;
} catch (error) {
const result: MigrationResult = {
sourceId: source.id,
success: false,
error: error.message,
duration: Date.now() - start,
};
this.results.push(result);
return result;
}
}
async migrateAll(
sources: SourcePresentation[],
options = { concurrency: 3, retries: 2 }
) {
const queue = new PQueue({ concurrency: options.concurrency });
const tasks = sources.map(source =>
queue.add(async () => {
for (let attempt = 0; attempt < options.retries; attempt++) {
const result = await this.migrateFile(source);
if (result.success) return result;
console.log(`Retry ${attempt + 1} for ${source.title}`);
await delay(5000 * (attempt + 1));
}
})
);
await Promise.all(tasks);
return this.getReport();
}
getReport() {
const successful = this.results.filter(r => r.success);
const failed = this.results.filter(r => !r.success);
return {
total: this.results.length,
successful: successful.length,
failed: failed.length,
successRate: (successful.length / this.results.length * 100).toFixed(1),
averageDuration: successful.reduce((a, b) => a + b.duration, 0) / successful.length,
failures: failed.map(f => ({ id: f.sourceId, error: f.error })),
};
}
}
ステップ3: プラットフォーム固有のハンドラー
Google Slides移行
// lib/google-slides-migrator.ts
import { google } from 'googleapis';
async function migrateFromGoogleSlides(
driveFileId: string,
gamma: GammaClient
) {
const drive = google.drive('v3');
// Export as PowerPoint
const exportResponse = await drive.files.export({
fileId: driveFileId,
mimeType: 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
}, { responseType: 'arraybuffer' });
// Import to Gamma
const presentation = await gamma.presentations.import({
file: Buffer.from(exportResponse.data as ArrayBuffer),
filename: 'exported.pptx',
source: 'google_slides',
});
return presentation;
}
メタデータ付きPowerPoint移行
// lib/powerpoint-migrator.ts
import JSZip from 'jszip';
import { parseStringPromise } from 'xml2js';
async function extractPowerPointMetadata(filePath: string) {
const fileBuffer = await fs.readFile(filePath);
const zip = await JSZip.loadAsync(fileBuffer);
// Extract core properties
const coreXml = await zip.file('docProps/core.xml')?.async('string');
if (!coreXml) return {};
const core = await parseStringPromise(coreXml);
return {
title: core['cp:coreProperties']?.['dc:title']?.[0],
creator: core['cp:coreProperties']?.['dc:creator']?.[0],
created: core['cp:coreProperties']?.['dcterms:created']?.[0],
modified: core['cp:coreProperties']?.['dcterms:modified']?.[0],
};
}
async function migrateWithMetadata(source: SourcePresentation, gamma: GammaClient) {
const metadata = await extractPowerPointMetadata(source.path);
const fileBuffer = await fs.readFile(source.path);
const presentation = await gamma.presentations.import({
file: fileBuffer,
filename: path.basename(source.path),
title: metadata.title || source.title,
metadata: {
originalCreator: metadata.creator,
originalCreated: metadata.created,
migratedAt: new Date().toISOString(),
},
});
return presentation;
}
ステップ4: 移行後の検証
// scripts/validate-migration.ts
async function validateMigration(sourceId: string, gammaId: string) {
const gamma = new GammaClient({ apiKey: process.env.GAMMA_API_KEY });
const presentation = await gamma.presentations.get(gammaId, {
include: ['slides', 'assets'],
});
const validations = {
exists: !!presentation,
hasSlides: presentation.slides?.length > 0,
allAssetsLoaded: presentation.assets?.every(a => a.status === 'loaded'),
canExport: false,
};
// Test export capability
try {
const exportTest = await gamma.exports.create(gammaId, {
format: 'pdf',
dryRun: true,
});
validations.canExport = exportTest.valid;
} catch {
validations.canExport = false;
}
return {
sourceId,
gammaId,
validations,
passed: Object.values(validations).every(v => v),
};
}
ステップ5: ロールバック計画
// lib/rollback.ts
interface MigrationSnapshot {
timestamp: Date;
mappings: Array<{ sourceId: string; gammaId: string }>;
}
async function createSnapshot(results: MigrationResult[]): Promise<string> {
const snapshot: MigrationSnapshot = {
timestamp: new Date(),
mappings: results
.filter(r => r.success && r.gammaId)
.map(r => ({ sourceId: r.sourceId, gammaId: r.gammaId! })),
};
const snapshotPath = `migration-snapshot-${Date.now()}.json`;
await fs.writeFile(snapshotPath, JSON.stringify(snapshot, null, 2));
return snapshotPath;
}
async function rollbackMigration(snapshotPath: string) {
const snapshot: MigrationSnapshot = JSON.parse(
await fs.readFile(snapshotPath, 'utf-8')
);
const gamma = new GammaClient({ apiKey: process.env.GAMMA_API_KEY });
console.log(`Rolling back ${snapshot.mappings.length} presentations...`);
for (const mapping of snapshot.mappings) {
try {
await gamma.presentations.delete(mapping.gammaId);
console.log(`Deleted: ${mapping.gammaId}`);
} catch (error) {
console.error(`Failed to delete ${mapping.gammaId}: ${error.message}`);
}
}
console.log('Rollback complete');
}
移行チェックリスト
移行前
- すべてのソースプレゼンテーションをインベントリする
- Gammaストレージクォータを確認する
- サンプルファイルでインポートをテストする
- 移行の監視を設定する
- ロールバック計画を作成する
- ステークホルダーに通知する
移行中
- バッチで移行を実行する
- エラー率を監視する
- 各バッチを検証する
- ロールバック用のスナップショットを取得する
移行後
- すべてのプレゼンテーションを検証する
- リンクと参照を更新する
- ユーザーにGammaのトレーニングを実施する
- ソースファイルをアーカイブする
- 学習したことを文書化する
リソース
まとめ
このスキルパックは、初期セットアップからエンタープライズデプロイメントおよび移行まで、Gamma統合に関する包括的なカバレッジを提供します。gamma-install-authから開始し、統合の複雑さに応じて必要なスキルを進めてください。
ライセンス: MIT(寛容ライセンスのため全文を引用しています) · 原本リポジトリ
詳細情報
- 作者
- Brmbobo
- リポジトリ
- Brmbobo/Web2podcast
- ライセンス
- MIT
- 最終更新
- 2026/1/26
Source: https://github.com/Brmbobo/Web2podcast / ライセンス: MIT
関連スキル
newsblur-cli
ターミナルからNewsBlurを管理できます。フィードの閲覧、ストーリーの検索、記事の保存・共有、インテリジェンス分類器の学習、新しいフィードの発見、ワークフローの自動化がNewsBlur CLIで実現します。ユーザーがNewsBlurアカウントを操作したい場合、フィードの確認、購読管理、またはニュース読み込みに関するスクリプト構築時に活用してください。
caveman-compress
自然言語のメモリファイル(CLAUDE.md、todos、preferences)を「原始人形式」に圧縮し、入力トークンを削減します。技術的な内容、コード、URL、構造はすべて保持したまま圧縮します。圧縮版が元のファイルを上書きし、人間が読める形のバックアップはFILE.original.mdとして保存されます。トリガー:/caveman-compress FILEPATH または「compress memory file」
find-skills
日本語の意図から Agent Skills を発見する。「楽天SEOのスキル探して」「PDFを処理したい」「データ分析を自動化したい」などの日本語リクエストに対応。Claude Code (CLI)、Codex、Gemini CLI、claude.ai (Web) いずれでも動作。日本最大の Agent Skills データベース「Agent Skills by ALSEL」(11,000件超、全件日本語化、ダウンロード可能スキル8,600件超) から、ユーザーの意図に合うスキルを推薦・インストール案内する。
planning-and-task-breakdown
仕事を順序立てたタスクに分割します。仕様書や要件が明確にあり、実装可能なタスクに分解する必要がある場合に利用してください。タスクが大きすぎて着手しづらい場合、スコープを見積もる必要がある場合、または並列で作業を進められる場合に活用できます。
docx
このスキルは、ユーザーがWord文書(.docxファイル)を作成、読み込み、編集、操作したいときに使用します。以下の場合に実行してください:「Word文書」「.docx」などの記述、または目次・見出し・ページ番号・レターヘッドなどのフォーマットを含む専門的な文書の作成リクエスト。また、.docxファイルのコンテンツ抽出・再編成、文書への画像挿入・置換、Word形式での検索置換、変更履歴やコメント機能の使用、コンテンツを整形したWord文書への変換の場合も対象です。ユーザーが「レポート」「メモ」「手紙」「テンプレート」などの成果物をWord形式または.docxファイルで求める場合はこのスキルを使用してください。PDF、スプレッドシート、Google Docs、文書作成と無関係なコーディングタスクには使用しないでください。
idea-refine
アイデアを反復的に改善します。構造化された発散的思考と収束的思考を通じて、アイデアを洗練させることができます。「idea-refine」または「ideate」を使用してトリガーします。