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

Varnan-Tech/opendirectory

ユーザーが現在のブランチのGitHubプルリクエスト説明文の作成、ドラフト、生成、更新を依頼したときに使用します。ブランチの差分とコミットメッセージを読み取り、構造化されたPR本文(概要、変更内容、テスト)を作成し、必要に応じてgh CLIでPRを作成または更新します。

opendirectory とは?

このスキルは、現在のブランチの差分を自動的に分析し、GitHubプルリクエストの説明文を生成・更新するためのツールです。開発者がPR説明文を手作業で記述する手間を省き、一貫性のある質の高いPRを作成できます。対応プラットフォームはGitHub CLI(gh)を使用するあらゆるリポジトリで、主にClaude CodeやCursor、CodexなどのAIエージェント環境で動作します。スキルは5つのステップで構成され、ghの認証確認、差分コンテキストの収集(git diff、git log)、フォーマットガイド(references/pr-format-guide.md)の読み込み、ガイドに沿った説明文の生成、そしてgh pr create/editによるPRの作成・更新を行います。生成された説明文は能動態で具体的な記述が重視され、QAチェックポイントによる品質確認を経て、ユーザーの承認後にPRが発行されます。

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

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

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

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

ドキュメント

PR説明文ライター

現在のブランチの差分を読み取り、完全なGitHubプルリクエスト説明文を作成します。1つのコマンドでPRを作成または更新します。

ライティングスタイル

生成されるすべてのPR説明文に適用:

  • 能動態を使用。「Xが追加されました」ではなく「Xを追加」
  • 概要は現在形(「キャッシュ層を追加」)、文脈は過去形(「従来のアプローチはリクエストごとにN回のレンダリングを引き起こしていた」)
  • 短い文、箇条書きは1項目1アイデア
  • ダッシュ(—)は使用せず、代わりにカンマまたはピリオドを使用
  • 不要な表現を避ける:「このPR」「このコミット」「議論に基づき」
  • 具体性が一般性に勝る:「p95レイテンシを800msから90msに削減」は「パフォーマンスを改善」よりも優れる

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

gh が認証されていることを確認:

gh auth status

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

現在のディレクトリがgitリポジトリであり、アクティブなブランチがあることを確認:

git branch --show-current

HEADが切り離されている、またはブランチがない場合は、処理を停止し、ユーザーに説明するブランチを尋ねます。


ステップ2:差分コンテキストを収集

以下の3つのコマンドを実行してコンテキストを構築:

ファイルサマリー(何が変わったか):

git diff main...HEAD --stat

コミットメッセージ(なぜ変わったか):

git log main...HEAD --oneline

完全な差分(どのように変わったか):

最初に origin/main(常に最新)を使用し、フォールバックとしてローカルの main、次に master を使用:

if git rev-parse origin/main &>/dev/null 2>&1; then
  BASE=origin/main
elif git rev-parse main &>/dev/null 2>&1; then
  BASE=main
else
  BASE=master
fi
git diff $BASE...HEAD

差分が非常に大きい場合(500行超)、--stat サマリーとコミットメッセージのみを読み取ります。また、差分の最初の200行を読み取り、主要な変更を把握します。出力全体を処理する必要はありません。

また、既存のPRを確認し、その現在のタイトル/本文を読み取ります:

gh pr view --json title,body,baseRefName 2>/dev/null

ステップ3:フォーマットガイドを読む

何かを書き始める前に、references/pr-format-guide.md を全文読んでください。以下の内容を内部化します:

  • 必須セクションとその順序
  • 各セクションの書き方
  • 含めるべきものと省略すべきもの
  • テストセクションのフォーマット

ステップ4:説明文を生成する

references/pr-format-guide.md のフォーマットを使用してPR説明文を書きます。

ルール:

  • Changesセクションのすべての箇条書きは、差分内の何かに対応している必要があります
  • コード変更から示唆されないテスト手順をでっち上げないでください
  • 関連するコンテンツがないセクションは完全に省略してください(「N/A」と書いたり空のままにしないでください)
  • スクリーンショットセクション:差分にUI変更が含まれている場合のみ含めてください
  • コミットメッセージが「なぜ」を説明している場合は、その文脈をサマリーで使用してください

QAチェックポイント: 提示前に以下を確認:

  • サマリーは1~2文、能動態、不要な表現なし
  • すべての変更箇条書きが具体的で差分に対応している
  • でっち上げられた指標や結果がない
  • テスト手順が実行可能である(誰かが従える内容)
  • どの行にもダッシュ(—)がない

ステップ5:PRを作成または更新する

説明文をユーザーに提示し、「PRを作成しますか、既存のPRを更新しますか、それとも出力のみにしますか?」と尋ねます。

新規PRを作成:

バッククォート、引用符、改行を安全に扱うため、stdinで本文を渡します:

gh pr create --title "タイトル" --body-file - << 'EOF'
本文
EOF

タイトルはコミットメッセージと差分サマリーに基づいて提案します。タイトルは命令形で、72文字以内にします:「Redisキャッシュをユーザーセッションルックアップに追加」とし、「追加されました」とはしないでください。

既存のPRを更新:

gh pr edit --body-file - << 'EOF'
本文
EOF

出力のみ: 手動でコピー&ペーストできるように、タイトルと本文をコードブロックで表示します。

作成または更新後、「PR description updated. View it at: [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

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.

関連スキル