pgfaq
できること
このスキルは、PostgreSQLデータベース自体についての質問に、公式ドキュメントとソースコードを使って答えます。正確なPostgreSQLの回答が必要なデータベース管理者と開発者向けです。
使う場面
- ✓PostgreSQLの動作、設定、性能について質問があるとき。
- ✓ソースコードの中で、PostgreSQLの機能がどう動くかを知る必要があるとき。
- ✓公式ドキュメントに基づくPostgreSQLの回答が欲しいとき。
スキルのリンク
https://github.com/digoal/blog/blob/master/skills/pgfaq/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“PostgreSQLは、インデックススキャンと順次スキャンのどちらを使うかをどう決めますか?ドキュメントとソースを確認してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、PostgreSQLのソースのチェックアウトの中にいることを確認し、公式ドキュメントと関連するソースコードを検索して、見つけた証拠とともに答えます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
pgfaq
Scope
Use this skill only for questions about the PostgreSQL core open-source project in postgres/postgres.
Refuse the request if it is about a project outside PostgreSQL core, including third-party extensions, plugins, tools, drivers, cloud products, forks, wrappers, or ecosystem projects. State briefly that pgfaq only answers PostgreSQL core questions.
Required Workflow
Confirm the current working directory is a PostgreSQL source checkout.
- Verify expected paths exist, especially
doc/src/sgml. - Prefer
git remote -v,git rev-parse --show-toplevel, and directory checks when needed. - If the current directory is not a PostgreSQL source tree, stop and ask the user to run from a postgres source checkout or provide the correct path.
- Verify expected paths exist, especially
Classify the question before researching.
- Confirm it is within PostgreSQL core scope.
- Identify likely documentation areas under
doc/src/sgml. - Identify likely source areas, such as
src/backend,src/include,src/bin,src/test, orcontribonly when the topic is a PostgreSQL core/contrib module shipped in the postgres repository.
Search local documentation and code first.
- Use
rgfor targeted searches indoc/src/sgmland relevant source directories. - Read the smallest necessary source and documentation excerpts.
- Prefer primary PostgreSQL docs and code over memory.
- Capture exact file paths and line numbers for claims that matter.
- Use
Ask DeepWiki MCP for repository-grounded context.
- Use
mcp__deepwiki__ask_questionwithrepoName: "postgres/postgres". - Ask focused questions tied to the user's topic, not broad general prompts.
- Treat DeepWiki as guidance to cross-check against local code and docs, not as the sole source.
- Use
Synthesize the answer.
- Write in Chinese unless the user asks for another language.
- Make the answer practical and source-backed.
- Include code/doc references as local paths with line numbers when available.
- Distinguish confirmed facts from inference.
- Avoid unsupported advice, folklore, and version claims not backed by the checked source tree or docs.
Validate and revise before saving.
- Send the draft substance to DeepWiki MCP and ask it to check correctness against
postgres/postgres. - Re-check any DeepWiki correction against local docs or source code.
- Revise the answer when a correction is substantiated.
- Repeat the DeepWiki validation and local verification loop until no material correctness issues remain or remaining uncertainty is explicitly documented.
- Send the draft substance to DeepWiki MCP and ask it to check correctness against
Save the final answer as Markdown.
- Ensure the current project has a
markdowndirectory; create it if missing. - Save the final answer under
markdown/with a concise, filesystem-safe filename derived from the question. - Include a short source section listing the key local docs/code files and DeepWiki checks used.
- Tell the user the saved file path.
- Ensure the current project has a
Answer Format
Use this structure unless the user's requested format clearly conflicts:
# <question-title>
## 结论
<direct answer>
## 原理与证据
<explanation grounded in PostgreSQL docs/code>
## 实践建议
<commands, SQL examples, configuration notes, or diagnostic steps when relevant>
## 边界与版本说明
<scope, caveats, source-tree/version limitations, uncertainties>
## 参考来源
- `doc/src/sgml/...`
- `src/...`
- DeepWiki MCP: `postgres/postgres` correctness check
Research Discipline
- Use local PostgreSQL docs and source as the authority.
- Do not answer from memory when code or docs can be checked.
- Do not browse the web unless the user explicitly asks and the answer still stays within PostgreSQL core scope.
- Do not cite DeepWiki as a replacement for local evidence.
- Do not modify PostgreSQL source files while answering.
- Keep changes limited to the generated Markdown file and creating
markdown/if needed.
よくある質問
PostgreSQLの拡張機能についての質問にも答えますか?
いいえ。PostgreSQLのコアプロジェクトだけを扱い、サードパーティの拡張機能に関する依頼は断ります。
PostgreSQLのソースのチェックアウトが必要ですか?
はい。PostgreSQLのソースのチェックアウトの中から実行する必要があります。
記憶から答えますか?
いいえ。記憶よりも、PostgreSQLの一次的なドキュメントとコードを優先するようスキルは定めています。
詳細
作者による元の説明
Answer PostgreSQL core database questions by researching the local postgres source tree, PostgreSQL documentation under doc/src/sgml, relevant source code, and DeepWiki repository knowledge for postgres/postgres; use when the user asks any PostgreSQL database behavior, internals, SQL, configuration, administration, performance, storage, planner, executor, replication, or documentation question and wants a sourced Markdown answer saved to the current project's markdown directory. Refuse questions about non-PostgreSQL-core projects, including PostgreSQL ecosystem plugins, extensions maintained o
repo: digoal/blog
人気
- GitHubのスター
- 8.6k
- ランキング
- #12370
- ライセンス
- GPL-2.0
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
article-to-podcast-script
8.6kエージェントが、Markdownの記事を、1〜4人の話し手による一人称のポッドキャストの台本に変え、テキストファイルとして保存できるよう支援します。既定は中国語です。
axiom-explainer
8.6kエージェントが、一つの見解、法則、理論を説明する、わかりやすい中国語の記事を書けるよう支援します。例、限界、簡単な図を含みます。
blog-cover-poster
8.6kエージェントが、記事やメモを、表紙と、要点を説明するいくつかのスライドからなる縦型のポスター画像のセットに変えられるよう支援します。
buffett
8.6kエージェントが、ウォーレン・バフェットの考え方(参入障壁、経営陣、安全域)を使って、企業や株式の判断を検討できるよう支援します。
似ているスキル
discrawl
394k保存済みのローカルなDiscordメッセージのアーカイブを検索して要約し、その新しさを確認し、ダイレクトメッセージを読めるようエージェントを支援します。
clickhouse-io
280kエージェントがClickHouseデータベースのクエリとスキーマを最適化できるようにします。高性能な分析処理向けのベストプラクティスを適用します。分析クエリが遅すぎるときに使います。
scientific-db-pubmed-database
280kエージェントが生物医学分野の科学論文を検索するのに役立ちます。特定の医療情報が必要な研究に便利です。