pgfaq
Was er macht
Dieser Skill beantwortet Fragen zur Datenbank PostgreSQL selbst anhand ihrer offiziellen Dokumentation und ihres Quellcodes. Er richtet sich an Datenbankadministratoren und Entwickler, die genaue PostgreSQL-Antworten brauchen.
Wann du ihn nutzt
- ✓Wenn du eine Frage zu PostgreSQL-Verhalten, Konfiguration oder Leistung hast.
- ✓Wenn du wissen musst, wie eine PostgreSQL-Funktion im Quellcode arbeitet.
- ✓Wenn du eine PostgreSQL-Antwort willst, die durch die offizielle Dokumentation gedeckt ist.
Link zum Skill
https://github.com/digoal/blog/blob/master/skills/pgfaq/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Wie entscheidet PostgreSQL, ob ein Index-Scan oder ein sequenzieller Scan genutzt wird? Prüfe Dokumentation und Quellcode.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Er prüft, ob er in einem PostgreSQL-Quellordner läuft, durchsucht die offizielle Dokumentation und den passenden Quellcode und antwortet dann mit den gefundenen Belegen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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.
Häufige Fragen
Beantwortet er Fragen zu PostgreSQL-Erweiterungen?
Nein. Er deckt nur das PostgreSQL-Kernprojekt ab und lehnt Anfragen zu Erweiterungen von Drittanbietern ab.
Braucht er einen Quellcode-Checkout?
Ja, er muss aus einem PostgreSQL-Quellcode-Checkout heraus laufen.
Antwortet er aus dem Gedächtnis?
Nein. Der Skill bevorzugt die primäre PostgreSQL-Dokumentation und den Code gegenüber dem Gedächtnis.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 8.6k
- Platz im Ranking
- #12370
- Lizenz
- GPL-2.0
- Aktualisiert
- 1.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
article-to-podcast-script
8.6kHilft deinem Agenten, einen Markdown-Artikel in ein Podcast-Skript in der Ich-Form für ein bis vier Sprecher umzuwandeln, als Textdatei gespeichert, standardmäßig auf Chinesisch.
axiom-explainer
8.6kHilft deinem Agenten, einen klaren chinesischen Artikel zu schreiben, der einen Standpunkt, ein Gesetz oder eine Theorie erklärt, mit Beispielen, Grenzen und einfachen Diagrammen.
blog-cover-poster
8.6kHilft deinem Agenten, einen Artikel oder Notizen in eine Reihe vertikaler Poster-Bilder zu verwandeln, mit einem Titelbild und mehreren Folien, die die Hauptpunkte erklären.
buffett
8.6kHilft deinem Agenten, Unternehmens- und Aktienentscheidungen so zu durchdenken, wie Warren Buffett es tut, mit seinen Ideen zu Burggräben, Management und Sicherheitsmarge.
Ähnliche Skills
discrawl
394kLässt deinen Agenten ein gespeichertes lokales Archiv von Discord-Nachrichten durchsuchen und zusammenfassen, dessen Aktualität prüfen und Direktnachrichten lesen.
clickhouse-io
280kHilft deinem Agenten, Abfragen und Schemas in ClickHouse zu optimieren. Nutzt Best Practices für schnelle Analyse-Workloads. Ideal, wenn Auswertungen zu langsam laufen.
scientific-db-pubmed-database
280kHilft deinem Agenten, wissenschaftliche Artikel im biomedizinischen Bereich zu suchen. Nützlich für Recherchen mit speziellen medizinischen Informationen.