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 outside postgres/postgres, external tools, drivers, cloud services, forks, or third-party products.
71
89%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
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.
Confirm the current working directory is a PostgreSQL source checkout.
doc/src/sgml.git remote -v, git rev-parse --show-toplevel, and directory checks when needed.Classify the question before researching.
doc/src/sgml.src/backend, src/include, src/bin, src/test, or contrib only when the topic is a PostgreSQL core/contrib module shipped in the postgres repository.Search local documentation and code first.
rg for targeted searches in doc/src/sgml and relevant source directories.Ask DeepWiki MCP for repository-grounded context.
mcp__deepwiki__ask_question with repoName: "postgres/postgres".Synthesize the answer.
Validate and revise before saving.
postgres/postgres.Save the final answer as Markdown.
markdown directory; create it if missing.markdown/ with a concise, filesystem-safe filename derived from the question.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 checkmarkdown/ if needed.digoal/blog
7abecbf
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.