CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

postgres-patterns

Patrones de base de datos PostgreSQL para optimización de consultas, diseño de esquemas, indexación y seguridad. Basado en las buenas prácticas de Supabase.

Quality

79%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./docs/es/skills/postgres-patterns/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

83%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The content is an excellent lean reference: dense, executable, pattern-based SQL with no padding, well organized by use case. Its weaknesses are the missing validation steps around the system-configuration template (a batch/destructive change applied blindly) and progressive disclosure that relies on inline tables rather than split reference files.

Suggestions

Add a verification step to the configuration template, e.g. checking current grants ('SELECT grantee, privilege_type FROM information_schema.role_table_grants') before the REVOKE, and confirming settings take effect after pg_reload_conf().

Add a brief diagnostic loop for slow queries: run the pg_stat_statements query, EXPLAIN ANALYZE the top offender, then match against the index decision table.

Move the anti-pattern detection queries or config template into a references/ file (or link the database-reviewer agent's location explicitly) to keep SKILL.md a tighter overview.

DimensionReasoningScore

Conciseness

The body is almost entirely dense reference tables and terse, commented SQL snippets — 'Orden del Índice Compuesto', 'Paginación por Cursor -- O(1) vs OFFSET que es O(n)' — with zero padding and no explanation of concepts Claude already knows. Every token earns its place.

5 / 5

Actionability

All guidance is copy-paste-ready executable SQL: index-type decision table, covering/partial index patterns, RLS policy with the auth.uid() wrapping gotcha, SKIP LOCKED queue processing, anti-pattern detection queries, and a full configuration template. Specific examples cover the common cases; the only flexibility ('ajustar según RAM') is explicitly justified.

5 / 5

Workflow Clarity

The 'Cuándo Activar' section gives clear activation triggers, but the configuration template performs batch/system-level changes ('ALTER SYSTEM SET max_connections', 'REVOKE ALL ON SCHEMA public FROM public') with no validation or verification steps (e.g., checking existing grants or testing settings before applying), which caps workflow clarity at 3 per the rubric guidelines. Not 2 because the sections that exist are coherent and well-sequenced.

3 / 5

Progressive Disclosure

Well-organized sections with a clearly signaled one-level-deep pointer for detail ('Para orientación detallada, usa el agente database-reviewer') and a Related section linking sibling skills. Not 5 because the body runs ~145 lines of inline reference material (anti-pattern queries, config template) with no bundle files to split into, and the reference/agent pointers are not formatted as navigable file links.

4 / 5

Total

17

/

20

Passed

Description

66%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is specific and appropriately concise, clearly naming the PostgreSQL domain and four capability areas with natural Spanish keywords. Its main weakness is the complete absence of a 'Use when...' trigger clause, which caps completeness and slightly weakens trigger quality and distinctiveness.

Suggestions

Append an explicit trigger clause, e.g. 'Úsalo al escribir o revisar SQL, migraciones, esquemas o índices, o al diagnosticar consultas lentas.'

Add natural trigger synonyms users would actually say — 'SQL', 'RLS', 'consultas lentas', 'connection pooling' — to improve retrieval.

Consider a third-person verb form ('Optimiza consultas...') instead of a noun-phrase opening to state capabilities as concrete actions.

DimensionReasoningScore

Specificity

The description names the domain (PostgreSQL) and four concrete capability areas — 'optimización de consultas, diseño de esquemas, indexación y seguridad' — giving several specific actions with only minor gaps. Not 5 because capabilities are stated as noun phrases rather than explicit concrete actions, and no 'when' context is covered.

4 / 5

Completeness

Has a clear 'what' (patterns for query optimization, schema design, indexing, security) but no 'Use when...' clause or equivalent explicit trigger guidance, which caps completeness at 3 per the judging guidelines. The 'Basado en las buenas prácticas de Supabase' sentence is provenance, not usage guidance.

3 / 5

Trigger Term Quality

Includes natural terms users would say: 'PostgreSQL', 'optimización de consultas', 'indexación', 'esquemas', 'seguridad'. A few common variations are missing (e.g., 'SQL', 'RLS', 'consultas lentas', 'migraciones'), keeping it below anchor 5.

4 / 5

Distinctiveness Conflict Risk

PostgreSQL-specific framing carves a clear niche with minimal overlap against unrelated skills. Not 5 because without explicit trigger phrases it could still collide with adjacent skills such as ClickHouse analytics or general backend database work.

4 / 5

Total

15

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

affaan-m/ECC

Path

docs/es/skills/postgres-patterns/SKILL.md

Reviewed

Table of Contents

Is this your skill?

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.