CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

postgres-patterns

PostgreSQL database patterns for query optimization, schema design, indexing, and security. Based on Supabase best practices.

Quality

81%

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

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.

An excellent lean quick-reference with fully executable, copy-paste-ready SQL covering indexing, data types, common patterns, anti-pattern detection, and configuration. Its main gaps are the absence of validation/verification guidance around risky database operations (ALTER SYSTEM, production index creation) and no progressive-disclosure split despite exceeding the single-file quick-reference size.

Suggestions

Add validation checkpoints around risky operations, e.g., check current settings with SHOW before ALTER SYSTEM SET, and verify settings took effect after pg_reload_conf().

Note verification steps for production changes, such as using EXPLAIN ANALYZE to confirm an index is used after CREATE INDEX, or creating indexes CONCURRENTLY on live tables.

Consider moving the anti-pattern detection queries or config templates into a references/ file to keep SKILL.md as a tighter overview with well-signaled one-level-deep links.

DimensionReasoningScore

Conciseness

The body is a lean quick reference: dense tables (index cheat sheet, data types) and terse SQL snippets whose comments add non-obvious value ("O(1) vs OFFSET は O(n)", "SELECTでラップ!"), with no explanation of concepts Claude already knows. Every token earns its place.

5 / 5

Actionability

Nearly all guidance is copy-paste-ready executable SQL: CREATE INDEX variants, optimized RLS policy, UPSERT with ON CONFLICT, cursor pagination, FOR UPDATE SKIP LOCKED queue processing, anti-pattern detection queries against pg_stat_statements/pg_constraint, and ALTER SYSTEM config templates — covering the common cases comprehensively.

5 / 5

Workflow Clarity

This is a lookup reference with no sequenced multi-step workflow, and the database-operations feedback-loop cap applies: the config template runs ALTER SYSTEM SET statements (max_connections, work_mem, timeouts) with only a hint to "adjust per RAM" and no validation steps such as checking current values or verifying settings after pg_reload_conf().

3 / 5

Progressive Disclosure

Sections are well-organized with clear headers and the content is a cohesive single quick-reference, but at ~140 lines everything is inlined (exceeding the under-50-line simple-skill exception) and the only cross-links (database-reviewer agent, clickhouse-io, backend-patterns skills) point to other skills rather than bundle files.

4 / 5

Total

17

/

20

Passed

Description

70%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.

A concise, domain-specific description that clearly communicates what the skill covers, weakened only by the absence of any explicit "when to use" trigger clause and missing common synonym terms like "Postgres". It is clearly distinguishable from other skills and free of vague fluff.

Suggestions

Add an explicit trigger clause, e.g., "Use when writing or optimizing SQL queries, designing database schemas, creating indexes, or troubleshooting slow PostgreSQL queries."

Include natural synonyms and variations users actually say, such as "Postgres", "SQL", "slow queries", "Row Level Security (RLS)", and "connection pooling".

Consider converting the topic list into concrete actions (e.g., "Optimize queries, design schemas, create indexes, implement RLS") to match the specificity of the strongest exemplars.

DimensionReasoningScore

Specificity

"patterns for query optimization, schema design, indexing, and security" names several specific capability areas within the PostgreSQL domain, but they are topic categories rather than the concrete actions (e.g., "extract text, fill forms, merge documents") of the top anchor.

4 / 5

Completeness

The description has a clear "what" ("PostgreSQL database patterns for query optimization, schema design, indexing, and security") but no "Use when..." clause or equivalent explicit trigger guidance, which caps completeness at 3 per the judging guidelines.

3 / 5

Trigger Term Quality

"PostgreSQL", "query optimization", "schema design", "indexing", and "security" are terms users naturally say, but common synonyms and variations like "Postgres", "SQL", "slow query", or "RLS" are missing, so coverage is good rather than comprehensive.

4 / 5

Distinctiveness Conflict Risk

"PostgreSQL" plus "Based on Supabase best practices" carves out a clear niche with distinct triggers and minimal conflict risk against non-PostgreSQL or non-database skills.

5 / 5

Total

16

/

20

Passed

Validation

100%

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

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

affaan-m/ECC

Path

docs/ja-JP/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.