pgfaq
Skill này làm gì
Skill này trả lời câu hỏi về bản thân cơ sở dữ liệu PostgreSQL dựa trên tài liệu chính thức và mã nguồn. Skill dành cho quản trị viên cơ sở dữ liệu và lập trình viên cần câu trả lời PostgreSQL chính xác.
Khi nào nên dùng
- ✓Khi bạn có câu hỏi về hành vi, cấu hình hoặc hiệu năng của PostgreSQL.
- ✓Khi bạn cần biết một tính năng PostgreSQL hoạt động bên trong mã nguồn ra sao.
- ✓Khi bạn muốn có câu trả lời PostgreSQL dựa trên tài liệu chính thức.
Liên kết skill
https://github.com/digoal/blog/blob/master/skills/pgfaq/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“PostgreSQL quyết định dùng quét chỉ mục hay quét tuần tự như thế nào? Hãy kiểm tra tài liệu và mã nguồn.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill kiểm tra xem bạn có đang ở thư mục mã nguồn PostgreSQL không, tìm trong tài liệu chính thức và mã nguồn liên quan, rồi trả lời kèm bằng chứng đã tìm được.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Skill có trả lời về tiện ích mở rộng PostgreSQL không?
Không. Skill chỉ bao quát dự án lõi PostgreSQL và từ chối các yêu cầu về tiện ích mở rộng bên thứ ba.
Skill có cần bản checkout mã nguồn không?
Có. Skill cần chạy từ một bản checkout mã nguồn PostgreSQL.
Skill có trả lời từ trí nhớ không?
Không. Skill yêu cầu ưu tiên tài liệu và mã nguồn PostgreSQL gốc hơn trí nhớ.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 8.6k
- Vị trí xếp hạng
- #12370
- Giấy phép
- GPL-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
article-to-podcast-script
8.6kGiúp agent của bạn biến bài viết Markdown thành kịch bản podcast cho một đến bốn người nói, lưu thành file văn bản, mặc định bằng tiếng Trung.
axiom-explainer
8.6kGiúp agent của bạn viết bài tiếng Trung rõ ràng, giải thích một quan điểm, định luật hoặc lý thuyết, kèm ví dụ, giới hạn và sơ đồ đơn giản.
blog-cover-poster
8.6kGiúp agent của bạn biến bài viết hoặc ghi chú thành bộ ảnh poster dọc gồm ảnh bìa và nhiều slide giải thích các ý chính.
buffett
8.6kGiúp agent của bạn suy nghĩ về quyết định công ty và cổ phiếu theo cách Warren Buffett, dựa trên ý tưởng về lợi thế cạnh tranh, quản trị và biên an toàn.
Skill tương tự
discrawl
394kCho phép agent của bạn tìm kiếm và tóm tắt kho lưu trữ tin nhắn Discord trên máy, kiểm tra độ mới của dữ liệu và đọc tin nhắn trực tiếp.
clickhouse-io
280kGiúp agent của bạn tối ưu truy vấn và schema trong ClickHouse theo thực hành tốt nhất cho phân tích dữ liệu hiệu năng cao khi truy vấn chậm.
scientific-db-pubmed-database
280kGiúp agent của bạn tìm bài báo khoa học trong lĩnh vực y sinh. Hữu ích cho nghiên cứu cần thông tin y khoa cụ thể.