Communityライティング&編集github.com

Varnan-Tech/opendirectory

GitHubのプルリクエストURLまたは現在のブランチを読み取り、何を変更し、なぜ変更したのかを平易な英語で説明し、PRコメントとして投稿します。

opendirectory とは?

このスキルは、開発者がプルリクエスト(PR)の内容を素早く理解し、レビュアーに明確なコンテキストを提供するためのものです。ユーザーがGitHubのPR URL、PR番号、または「current」というキーワードを入力すると、スキルはPRのメタデータ、差分、既存のコメントを取得します。その後、技術的な変更点(変更されたファイルや関数、システム)とビジネス的な影響(誰にどのような利益があるか、どのような問題を解決するか)を2段落で平易な英語で説明します。説明は150語以内に収め、推測や誇張は禁止されています。最後に、説明をPRコメントとして投稿するか、編集するかをユーザーに確認します。このスキルは、gh(GitHub CLI)が認証済みであることを前提としており、Claude Code、Cursor、CodexなどのAIエージェントと連携して使用できます。

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

Installed? Explore more ライティング&編集 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

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

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

ドキュメント

Explain This PR(このPRを説明する)

GitHubのプルリクエストを読み取り、その変更内容を理解し、平易な英語で説明します。PRコメントとして投稿することで、レビュアーがすぐにコンテキストを把握できます。


ステップ1: セットアップの確認

gh が認証済みであることを確認します:

git auth status

認証されていない場合: git auth login を実行し、プロンプトに従います。

入力を確認します。ユーザーは以下のいずれかを提供する必要があります:

  • GitHub PR URL(例: https://github.com/owner/repo/pull/123)
  • 現在のリポジトリのPR番号(例: #123)
  • キーワード「current」(現在のブランチのPRを使用する場合)

入力がない場合、「どのPRを説明しますか?URL、PR番号、またはアクティブブランチの場合は 'current' と入力してください。」と尋ねます。


ステップ2: PRコンテキストの取得

PRメタデータを取得:

git pr view PR_URL_OR_NUMBER --json number,url,title,body,author,baseRefName,headRefName,additions,deletions,changedFiles,commits,labels,state,isDraft

isDraft が true の場合、ユーザーに次のように注意します:「このPRはドラフトです。説明は現在の状態に基づいています。」

差分を取得:

git pr diff PR_URL_OR_NUMBER

差分が400行を超える場合は、--stat サマリーと差分の最初の200行を読み取ります:

git pr view PR_URL_OR_NUMBER --json files
git pr diff PR_URL_OR_NUMBER | head -200

既存のコメントを取得(重複を避けるため):

git pr view PR_URL_OR_NUMBER --json comments --jq '.comments[].body' 2>/dev/null | head -20

ステップ3: 説明を書く

2段落で書きます。各ルールを読んでから書き始めてください。

段落1: 何をするか(技術的)

  • 主要な変更ごとに1文
  • 変更された特定のファイル、関数、またはシステムに名前を付ける
  • 差分が明確な場合はbefore/afterを述べる
  • 差分に具体的な数値があれば含める(削除された行数、削除されたテーブル、追加されたエンドポイントなど)
  • 能動態、現在形

例:

auth.middleware.tsのインメモリセッションキャッシュをRedisバックアップのキャッシュ(src/cache/redis.ts)に置き換えます。新しいRedisモジュールにget、set、invalidateメソッドを追加し、UserService.getById()を5分TTLでラップします。単一プロセスに制限され、複数インスタンス間でセッションのずれを引き起こしていたMapベースのキャッシュを削除します。

段落2: なぜ重要か(ビジネス/プロダクトへの影響)

  • 誰がどのように恩恵を受けるか
  • この変更が解決する問題、または軽減するリスク
  • コミットメッセージに「なぜ」が含まれている場合は、そのコンテキストを使用する
  • 差分やコミットに明確な「なぜ」がない場合は、推測せずにこの段落を省略する

例:

負荷がかかった状態で /api/me エンドポイントにアクセスしたユーザーが、サーバーインスタンス間で一貫性のないセッションデータを受け取り、断続的に401エラーが発生していました。この変更により、すべてのインスタンスでセッション状態が一貫し、認証されたリクエストごとに1回のデータベースクエリが不要になるため、データベースへの負荷が軽減されます。

両段落に共通するルール:

  • ダッシュ(—)は使用しない。代わりにカンマまたはピリオドを使用する
  • 不要な言葉は使わない:「このPRは」「この変更は」「ご覧のとおり」
  • 結果を創作しない。差分またはコミットメッセージに直接見られる影響のみを述べる
  • PRが動作変更のない純粋なリファクタリングである場合は、明示的に次のように述べる:「観測可能な動作の変更なしにXをYにリファクタリングします。」
  • 合計150語以内

ステップ4: 自己QA

投稿前に確認:

  • 段落1で差分から特定のファイルまたは関数に名前を付けている
  • メトリクスや結果を創作していない
  • ダッシュ(—)を使用していない
  • 不要なフレーズを使用していない
  • 合計150語以内
  • 明確な「なぜ」が存在しない場合、推測せずに段落2を省略している

違反があれば投稿前に修正します。


ステップ5: PRコメントとして投稿

説明をユーザーに提示します。「この説明をPRコメントとして投稿しますか、それとも先に編集しますか?」と尋ねます。

確認が得られたら、バッククォート、引用符、改行を安全に処理するために、ボディを標準入力から渡します:

gh pr comment PR_URL_OR_NUMBER --body-file - << 'EOF'
説明内容をここに記述
EOF

投稿後:「コメントを追加しました。閲覧はこちら: [ステップ2のURL]」

ユーザーが「出力のみ」と言った場合は、手動でコピー&ペーストできるように、説明をコードブロック内に表示して投稿しません。

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

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

Creates professionally designed B2B SaaS e-books in HTML + CSS, exported as print-ready PDF. 3–10 pages, 9 style presets, 11 page layout types. Trigger when user says "create an ebook", "design a lead magnet", "make a PDF guide", "build a gated content piece", "write a B2B ebook", "design a white paper", "create a nurture asset", or "make a PDF report".

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.

関連スキル