Communitygithub.com

Varnan-Tech/opendirectory

CSSアニメーション(デフォルト)またはAI画像-動画変換を使用して、アニメーションループGIFを生成します。800×800px、6種類のアニメーション、4つのスタイルプリセット。「アニメーションGIFを作成」「ループGIFを作成」「アニメーションバナー」「CSSアニメーションGIF」などの発言でトリガーされます。

opendirectory とは?

このスキルは、CSS `@keyframes` アニメーションをPlaywrightとWeb Animations APIを使用してフレームごとにキャプチャし、アニメーションループGIFを生成します(オプションA、デフォルト)。または、Kling AIの画像-動画パイプラインを使用するAI生成パス(オプションB)も利用可能です。出力は常に `animation.gif` です。他の `graphic-` スキルが静的PNGやPDFを出力するのとは異なり、このスキルはアニメーションGIFを出力します。 このスキルは、フェードイン、スライドイン、タイプライター、カウンター、パルス、ループスクロールの6種類のアニメーションタイプをサポートし、4つのスタイルプリセット(clean-slate、terminal、electric-burst、brutalist)を提供します。フレームキャプチャはWeb Animations APIのシーク方式を使用し、`setTimeout` ループや `animation-delay` のトリックは使用しないため、正確なフレーム数とループポイントでのスタッターを防止します。 このスキルはClaude Code環境向けに設計されており、エクスポートスクリプト(`export-gif.sh`)がPlaywright、gifenc、sharpを使用してGIFを生成します。AI生成パスはKling APIキー(`KLING_API_KEY`)が必要で、ffmpegを使用して動画をGIFに変換します。自己QAチェックリストにより、キャンバスサイズ、アニメーション設定、デザイン品質が保証されます。

対応✓Claude Code~Codex CLI✓Cursor✓Gemini CLI
npx skills add https://github.com/Varnan-Tech/opendirectory/tree/main/skills/graphic-gif

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

graphic-gif

CSSアニメーションまたはAI画像-動画APIからアニメーションループGIFを生成します。出力: animation.gif

他の graphic- スキルが静的PNGまたはPDFを出力するのとは異なり、このスキルはアニメーション .gif を出力します。PlaywrightとWeb Animations API(オプションA、デフォルト)を介してCSS @keyframes アニメーションをフレームごとにキャプチャするか、Kling(オプションB)を介したAI画像-動画パイプラインを使用します。


重要ルール(各生成前に必読)

  1. デフォルトはcss-animatedです。 明示的にリクエストがない限り、ai-generated は絶対に使用しないでください。
  2. キャンバスは800×800pxの正方形です。 すべての clamp() 値は800px(1vw = 8px)で計算されます。
  3. 単一の自己完結型HTML。 すべてのCSSは <style> にインラインで記述します。フォントCDN <link> のみが外部依存です。
  4. HTMLをチャットにダンプしないでください。 ファイルに保存し、サマリーのみ表示します。
  5. フレームキャプチャはWeb Animations APIのシークを使用します。 setTimeout ループや animation-delay トリックは使用しません。
  6. 正確なフレーム数: Math.floor(duration_seconds * fps) フレーム。t=duration_ms のフレームは絶対にキャプチャしないでください。これは t=0 と重複し、ループポイントで目に見えるスタッターを引き起こします。
  7. プレースホルダーボックスなし。 CSSで生成されたビジュアルのみ。"ここに画像" 要素は使用しません。
  8. シンプルなパレット = 小さいファイル。 以下を使用: clean-slate、terminal、electric-burst、brutalist
  9. スタガリングに animation-delay を使用しないでください。 スタガリングは @keyframes のパーセンテージに組み込みます — フレームシークがタイミングを処理します。
  10. CSSを書く前にデザインの方向性を確定します。 トーン、シグネチャ要素、モーションスタイル、忘れられないディテール — すべてが最初のコード行の前に決定されていなければなりません。

ステップ1: 入力受付

必須: prompt(コンテンツ説明 AND モーションブリーフ)

デフォルト付きオプション:

パラメータデフォルトオプション
animation_typecss-animatedcss-animated / ai-generated
duration3.0秒
fps12フレーム/秒
looptruetrue / false
styleclean-slateclean-slate / terminal / electric-burst / brutalist
dimensions800x800幅x高さ(ピクセル)
optimizationbalancedquality / balanced / filesize

プロンプトがない場合、またはモーションの説明がない場合は、正確に次のように質問します:

「GIFに何を表示しますか?内容と動きの両方を説明してください(例: '統計がカウントアップ: 購入者の73%が購入前に3つ以上のコンテンツを読んでいます。タイプライター効果、一度に1文字ずつ。スタイル: terminal。3秒、12fps。')

キー設定(すべてオプション、デフォルト表示):

  • animation_type: css-animated(デフォルト)または ai-generated
  • duration: 3.0 秒
  • fps: 12
  • loop: true
  • style: clean-slate(オプション: clean-slate / terminal / electric-burst / brutalist)
  • dimensions: 800x800
  • optimization: balanced(オプション: quality / balanced / filesize)」

必要な情報がすべて揃っている場合 → 直接ステップ2に進みます。


ステップ2: 内部アーキテクチャ(ユーザーには絶対に表示しない)

css-animatedの場合:

  1. アニメーションタイプを次から選択: fade-in、slide-in、typewriter、counter、pulse、loop-scroll
  2. references/animation-library.md を読む — 選択したタイプの完全なHTML/CSS仕様を見つける
  3. references/style-presets.md を読む — 選択したスタイルのCSSトークンブロックをロードする
  4. フレーム数を計算: Math.floor(duration_seconds * fps) — この数値を書き留める
  5. デザインの方向性を確定:
決定事項導出元
トーン視聴者に合わせた感情的なレジスター(機械的 / 温かみ / 電気的 / プロフェッショナル)
シグネチャ要素一貫して使用される1つのビジュアルデバイス(カーソル点滅、ゴーストナンバー、スキャンラインオーバーレイ、アクセントボーダー)
モーションスタイルこのタイプのイージング曲線の哲学(スプリング / リニア / ステップ / イーズインアウト)
忘れられないディテール視聴者がこのGIFについて覚えているであろう1つのこと

ai-generatedの場合:

  1. ベースとなる静止フレームHTMLを生成(キャンバス用のポスター形式のレイアウト)
  2. スクリーンショットを使用してPNGとしてエクスポート
  3. Kling APIを呼び出す: POST https://api.klingai.com/v1/videos/image2video に image_url とモーションを説明する prompt を含める
  4. ジョブの完了をポーリング
  5. 動画をダウンロード → ffmpegでGIFに変換:
    # 最高の色品質のための2パスパレット
    ffmpeg -i input.mp4 -vf "fps=12,scale=800:800:flags=lanczos,palettegen=stats_mode=diff" palette.png
    ffmpeg -i input.mp4 -i palette.png -vf "fps=12,scale=800:800:flags=lanczos,paletteuse=dither=bayer:bayer_scale=5" output.gif
    

ステップ3: HTML生成(css-animatedパス)

生成前に references/animation-library.md と references/style-presets.md を読んでください。

キャンバスベース — すべてのGIFに必須:

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  width: 800px;
  height: 800px;
  overflow: hidden;
  background: var(--bg);
  font-family: var(--font-body);
}

.canvas {
  width: 800px;
  height: 800px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

アニメーションルール:

  • すべてのアニメーション要素に animation-fill-mode: forwards(または both)
  • タイプごとのタイミング関数:
    • typewriter → steps(N, end) ここでN = 正確な文字数
    • counter → linear
    • fade-in → cubic-bezier(0.22, 1, 0.36, 1)(イーズアウト)
    • slide-in → cubic-bezier(0.34, 1.56, 0.64, 1)(スプリングオーバーシュート)
    • pulse → ease-in-out で animation-iteration-count: infinite
    • loop-scroll → linear で animation-iteration-count: infinite
  • ワンショットアニメーション(fade-in、slide-in、typewriter、counter)の場合: animation-iteration-count: 1 — ループはGIFレベルで行われます
  • animation-delay は使用しない — スタガリングは @keyframes のパーセンテージに組み込みます

タイプライターNの計算: スペース、句読点、数字を含むすべての文字をカウント:

  • "73% of buyers" = 14文字 → steps(14, end)
  • "Hello, World!" = 13文字 → steps(13, end)

カウンターCSS @property(カウンタータイプに必須):

@property --num {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}
.counter {
  animation: countUp var(--duration) linear forwards;
  counter-reset: num var(--num);
}
.counter::after { content: counter(num); }
@keyframes countUp {
  from { --num: 0; }
  to   { --num: var(--target); }
}

ループスクロール: コンテンツは複製する必要があります:

<!-- 4つのオリジナルアイテム + 4つの複製アイテム -->
<div class="ticker-track" style="--item-count: 4;">
  [item1][item2][item3][item4][item1][item2][item3][item4]
</div>

translateX(0 → -50%) で linear infinite。

デザイン品質ルール(ステップ2の確定事項から):

  • 指定されたシグネチャ要素がCSS/HTMLに存在している必要がある(説明だけでなく)
  • タイポグラフィ: 表示テキストとサポートテキスト間のウェイトコントラストは最低2:1(例:700 vs 400)
  • 背景: ダークスタイルの場合、純粋な白 #fff は使用しない — プリセットの正確な --bg 値を使用
  • terminalスタイルの場合: opacity: 0.03 の repeating-linear-gradient でスキャンラインオーバーレイ ::after を追加
  • brutalistの場合: キー要素に 4px solid #000 または 4px solid var(--accent) の太い境界線
  • 忘れられないディテール: 追加の要素が必要な場合 — 今すぐ追加

ステップ4: セルフQA(ステップ5の前にすべての失敗を修正)

キャンバス:

  • body と .canvas が正確に800×800px(または指定された寸法)であること
  • overflow: hidden が body と .canvas の両方に設定されていること
  • キャンバス境界からはみ出している要素がないこと

アニメーション:

  • どこにも animation-delay がないこと — スタガリングは @keyframes のパーセンテージに組み込まれている
  • すべてのアニメーションが t=0 で開始すること(Web Animations APIはそこからシークする)
  • すべてのアニメーション要素に animation-fill-mode: forwards または both が設定されていること
  • ワンショットアニメーション: animation-iteration-count: 1
  • 無限アニメーション(pulse、loop-scroll): animation-iteration-count: infinite

タイプ固有チェック:

  • タイプライター: steps(N, end) のN = テキスト文字列の正確な文字数
  • カウンター: @property --num が syntax: '<integer>' および initial-value: 0 で宣言されていること
  • カウンター: counter-reset: num var(--num) および ::after { content: counter(num) } があること
  • ループスクロール: HTMLでコンテンツが正確に1回複製されていること

デザイン:

  • プレースホルダーボックスがないこと
  • references/style-presets.md からスタイルプリセットトークンが適用されていること — 浮遊する16進数カラーがないこと
  • ステップ2で指定されたシグネチャ要素が実際にHTML/CSSに存在していること
  • ステップ2の忘れられないディテールが実際に実装されていること
  • 選択したスタイルのフォントについて、フォントCDN <link> が存在していること

ステップ5: エクスポート

プロンプトからスラッグを決定(ケバブケース、30文字以内)。出力ディレクトリを作成:

mkdir -p [slug]

HTMLを保存:

[slug]/animation.html

クイックビジュアルチェックのためにブラウザで開く:

open [slug]/animation.html

エクスポートスクリプトを実行([skill-root] をこのスキルの実際のパスに置き換え):

bash [skill-root]/scripts/export-gif.sh \
  [slug]/animation.html \
  [slug]/animation.gif \
  --duration [duration] \
  --fps [fps] \
  [--no-loop if loop=false] \
  --optimization [optimization] \
  --width [W] \
  --height [H]

このスクリプトは:

  1. 一時ディレクトリに gifenc、sharp(または jimp)、playwright をインストール
  2. Chromiumがキャッシュされていない場合はダウンロード
  3. capture-and-encode.mjs を実行 — アニメーションを一時停止、各フレームをシーク、スクリーンショットを撮り、GIFをアセンブル
  4. 利用可能な場合、gifsicle 最適化パスを実行
  5. ファイルサイズを報告し、結果を開く

エクスポートスクリプトが見つからない場合 は [skill-root]/scripts/export-gif.sh にて、スキルが scripts/ フォルダごとインストールされているか確認してください。


ステップ6: 出力サマリー

エクスポート成功後に表示:

## GIF: [1行の説明]
日付: [YYYY-MM-DD] | スタイル: [style] | アニメーション: [type] | [duration]秒 @ [fps]fps
寸法: [WxH] | フレーム: [N] | ループ: [true/false]

ファイル
  ソース:   [slug]/animation.html
  出力:   [slug]/animation.gif
  サイズ:     [X] KB

チェックリスト
- [ ] プレビューが開始/終了ポイントでクリーンにループすること(スタッターなし)
- [ ] 意図した表示サイズでテキストが判読可能であること
- [ ] ファイルサイズが適切であること: メール <500KB / ソーシャル <3MB

AI生成パス(オプションB)

animation_type: ai-generated が明示的に指定された場合のみ使用。

要件:

  • 環境にKling APIキー: KLING_API_KEY(1日66無料クレジット、無料ティアにクレジットカード不要)
  • 動画→GIF変換のために ffmpeg がローカルにインストールされていること

ワークフロー:

  1. プロンプトに一致するベース静止フレームHTMLを生成(指定寸法のポスター/グラフィックスタイル)
  2. 静止フレームをPNGとしてエクスポート:
    # Playwrightによるクイックスクリーンショット
    node -e "
      const { chromium } = require('playwright');
      (async () => {
        const browser = await chromium.launch();
        const page = await browser.newPage({ viewport: { width: W, height: H } });
        await page.goto('file://[slug]/animation.html');
        await page.screenshot({ path: '[slug]/base-frame.png' });
        await browser.close();
      })();
    "
    
  3. Kling画像-動画エンドポイントにアップロード
  4. ffmpeg 2パスパレットで結果をGIFに変換
  5. gifsicle最適化を適用

Klingが利用不可の場合: メモ付きでcss-animatedにフォールバック: 「AI生成にはKling APIキー(KLING_API_KEY)が必要です。css-animatedにフォールバックします。AI生成を有効にするにはキーを設定してください。」


プロンプトのヒント(ユーザーがガイダンスを求めたときに表示)

「コンテンツだけでなく、動きを説明してください。'統計を表示' よりも '統計が一つずつカウントアップ' の方が優れています。」

「ファイルサイズのためにシンプルに保ってください。1~3個のアニメーション要素と無地の背景。」

「ループで考えてください。アニメーションは終わりから始まりに目に見えない形で流れるようにする必要があります。」

「アニメーションタイプを明示的に指定してください。typewriter と counter はソーシャルに最も効果的です。」

✅ 良い例: 「アニメーションGIFを作成、css-animated、タイプライター効果。テキスト: '73% of B2B buyers read 3+ pieces of content before contacting sales.' 各文字が一度に一つずつタイプアウトされます。スタイル: terminal。3秒、12fps、loop=true。」

❌ 悪い例: 「マーケティングのヒントのアニメーションGIFを作成」

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Varnan-Tech/opendirectory

Use when the user asks to generate a blog cover image, thumbnail, or article header. Automatically uses modern typography, brand logos, and Google Search grounding to create beautiful 16:9 images with Gemini 3.1 Flash Image Preview.

Varnan-Tech/opendirectory

World-class brand strategist and naming expert. Uses an interrogation-led discovery phase to extract your brand's DNA, then applies scientific naming frameworks (Phonosemantics) and automated multi-TLD domain checking.

Varnan-Tech/opendirectory

Use when the user asks to generate or update a project's CLAUDE or AGENTS context file from a codebase scan. Writes a focused file under 100 lines containing only the non-obvious build commands, conventions, and gotchas Claude Code needs.

Varnan-Tech/opendirectory

Use when the user wants to verify cold emails, enrich a lead list, or autonomously guess email addresses from a CSV using ValidEmail.co or the open-source Reacher engine.

Varnan-Tech/opendirectory

Competitive intelligence orchestrator tracking companies across 8+ platforms (GitHub, Twitter, Reddit, HN, PH, YC Jobs) with heat scores and AI briefings.

Varnan-Tech/opendirectory

Give it your product URL or description. It finds your top 5 competitors, runs three-track PR research across all of them (editorial, podcasts, communities), identifies which channels appear most frequently, looks up the journalist or host for each, and returns a tiered outreach list with story angles and ready-to-send cold pitch drafts tailored to your product. Use when asked to find PR opportunities, discover where competitors got featured, build a media outreach list, find which journalists cover my space, or get pitch templates for press coverage.

Varnan-Tech/opendirectory

Generate high-converting, deep-dive growth case studies in MDX format. Use this skill when asked to write a case study or blog post about a company's growth, tech stack, or product-led strategy. It handles the full pipeline (researching the company via Tavily, generating a 16:9 cover image, quality checking the draft, uploading assets to cloud storage, and pushing directly to the target repository).

Varnan-Tech/opendirectory

Scans your project for outdated npm, pip, Cargo, Go, or Ruby packages. Runs a CVE security audit. Fetches changelogs, summarizes breaking changes with Gemini, and opens one PR per risk group (patch, minor, major). Includes Diagnosis Mode for install conflicts. Use when asked to update dependencies, check for outdated packages, open dependency PRs, scan for package updates, audit for CVEs, or flag breaking changes in upgrades. Trigger when a user says "check for outdated packages", "update my dependencies", "open PRs for dependency updates", "scan for CVEs", or "which packages need upgrading".

Varnan-Tech/opendirectory

Generates and updates README.md and API reference docs by reading your codebase's functions, routes, types, schemas, and architecture. Uses graphify to build a knowledge graph first, then writes accurate docs from it. Use when asked to write docs, generate a README, document an API, update stale docs, create an API reference from code, add an architecture section, or document a project in any language. Trigger when a user says their docs are missing, outdated, or wants to document their codebase without writing it manually.

Varnan-Tech/opendirectory

Evaluates expired domain candidates against a target niche, scores them by topical relevance, historical activity level, and history cleanliness, then outputs a ranked shortlist with explainable reasoning and risk flags.

Varnan-Tech/opendirectory

Brutally honest developer-experience audit for a GitHub repo. Scores 10 DX dimensions (time-to-first-success, README clarity, visual proof, install, quick-start, docs, examples, community, trust, marketing), writes a shareable roast in the requested tone (brutal/honest/kind), produces a prioritized action plan ranked by impact × effort, and sketches an ideal README. Trigger when user says "roast my repo", "audit my README", "dx audit", "developer experience review", "score my GitHub project", "before launch checklist", or "make my repo shareable".

Varnan-Tech/opendirectory

Drafts and designs a complete HTML email newsletter from a topic or content brief. Outputs paste-ready HTML for Loops, Mailchimp, Beehiiv, Resend, or any standard email platform. Includes subject line options and plain-text fallback. Trigger when a user says "write a newsletter", "draft an email newsletter", "create an HTML email", "design an email for my subscribers", or "write a newsletter about [topic]".

Varnan-Tech/opendirectory

Takes a GitHub PR URL or the current branch and writes a plain-English explanation of what it does and why, then posts it as a PR comment. Use when asked to explain a PR, summarize a pull request, write a plain-English description of a PR, add a summary comment to a PR, or understand what a PR changes. Trigger when a user says "explain this PR", "summarize this pull request", "what does this PR do", "add a comment explaining the PR", or shares a GitHub PR URL and asks what it does.

Varnan-Tech/opendirectory

Audit how often LLMs recommend your brand vs competitors and generate a GEO action plan.

Varnan-Tech/opendirectory

Takes a competitor's public GitHub repo URL, fetches their open issues via the GitHub REST API, filters noise locally, clusters issues into 6 demand categories, computes a demand score per issue and per cluster, and outputs a ranked demand gap report with a GTM messaging brief. Use when asked to scan a competitor's GitHub issues, find what their users are begging for, turn GitHub complaints into product positioning, identify competitor feature gaps, or generate messaging from real user demand. Trigger when a user says "scan competitor issues", "what are users asking for on X repo", "find demand gaps in Y", "turn GitHub issues into messaging", or "what should I build based on competitor complaints".

Varnan-Tech/opendirectory

Find recurring confusion in your repo's GitHub Discussions, rank it by urgency, and draft the actual docs fixes and content angles — with verbatim community quotes and source links as evidence.

Varnan-Tech/opendirectory

SEO keyword research workflow for blog generation using Google Trends data. Use when writing blog posts, planning content calendars, or optimizing articles for search engines. Finds breakout keywords, builds content structure, and generates SEO-optimized blog outlines targeting tech and developer audiences.

Varnan-Tech/opendirectory

Generates a professionally designed case study PDF for B2B SaaS sales and marketing. Supports 7 page layouts, 9 style presets, 1-4 page output. Trigger when user says "create a case study", "write a customer story", "make a case study PDF", "design a success story", "turn this customer win into a PDF".

Varnan-Tech/opendirectory

Generates data visualization charts (bar, line, area, pie, doughnut, scatter, radar, treemap) as PNG using Apache ECharts v6. 1080×1080px default, 5 style presets, highlight annotations. Trigger when user says "create a chart", "visualize data", "make a bar chart", "line graph", "pie chart", "data visualization", "chart this data", "plot", "graph", or "visualize these numbers".

Varnan-Tech/opendirectory

Fetches low-star App Store and Google Play reviews, clusters them into broken-promise patterns, and generates a ranked copy brief with positioning opportunities.

関連スキル