pgfaq
Qué hace
Esta skill responde preguntas sobre la propia base de datos PostgreSQL usando su documentación oficial y su código fuente. Está pensada para administradores de bases de datos y desarrolladores que necesitan respuestas precisas sobre PostgreSQL.
Cuándo usarla
- ✓Cuando tienes una pregunta sobre el comportamiento, la configuración o el rendimiento de PostgreSQL.
- ✓Cuando necesitas saber cómo funciona una función de PostgreSQL dentro del código fuente.
- ✓Cuando quieres una respuesta sobre PostgreSQL respaldada por la documentación oficial.
Link de la skill
https://github.com/digoal/blog/blob/master/skills/pgfaq/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Cómo decide PostgreSQL si usar un escaneo por índice o un escaneo secuencial? Revisa la documentación y el código.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
Comprueba que está en una carpeta de código fuente de PostgreSQL, busca en la documentación oficial y en el código relacionado, y después responde con las pruebas encontradas.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes
¿Responde preguntas sobre extensiones de PostgreSQL?
No. Solo cubre el proyecto principal de PostgreSQL y rechaza peticiones sobre extensiones de terceros.
¿Necesita una copia del código fuente?
Sí, tiene que ejecutarse desde una copia del código fuente de PostgreSQL.
¿Responde desde la memoria?
No. La skill indica que prefiere la documentación y el código primarios de PostgreSQL frente a la memoria.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 8,6 mil
- Posición en el ranking
- #12370
- Licencia
- GPL-2.0
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
article-to-podcast-script
8,6 milAyuda a tu agente a convertir un artículo en Markdown en un guion de podcast en primera persona para uno a cuatro locutores, guardado como archivo de texto, en chino por defecto.
axiom-explainer
8,6 milAyuda a tu agente a escribir un artículo claro en chino que explique un punto de vista, una ley o una teoría, con ejemplos, límites y diagramas sencillos para los lectores.
blog-cover-poster
8,6 milAyuda a tu agente a convertir un artículo o unas notas en un conjunto de imágenes verticales tipo cartel, con una portada y varias diapositivas que explican los puntos principales.
buffett
8,6 milAyuda a tu agente a pensar decisiones sobre empresas y acciones como lo haría Warren Buffett, usando sus ideas sobre las ventajas competitivas duraderas, la dirección y el margen de seguridad.
Skills parecidas
discrawl
394 milPermite que tu agente busque y resuma un archivo local guardado de mensajes de Discord, revise qué tan actual es y lea mensajes directos.
clickhouse-io
280 milAyuda a tu agente a optimizar consultas y esquemas en ClickHouse con buenas prácticas para cargas analíticas de alto rendimiento. Úsalo si las consultas son muy lentas.
scientific-db-pubmed-database
280 milAyuda a tu agente a buscar artículos científicos del ámbito biomédico. Es útil para investigaciones que necesitan información médica específica.