CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

postgresql-best-practices-cloudbase

CloudBase PostgreSQL access-pattern and slow-query quality guidance. Use when designing how tables are read and written, eliminating per-row database calls, adding indexes for filters or joins, reviewing high-traffic data access, or explaining a slow SQL query. Not for first-time PG SDK setup, login UI, or NoSQL collections.

Quality

93%

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

93%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 exemplary skill body: token-efficient, concrete code and tool invocations, per-step completion gates, and a well-signaled one-level reference structure verified against the actual bundle. The single gap is the absence of an explicit feedback loop for recovering when a workflow gate fails.

DimensionReasoningScore

Conciseness

The ~90-line body is lean and directive with no explanations of concepts Claude already knows; every section is functional (workflow gates, routing table, self-check), and the two-sentence intro and short sibling-skills note each earn their place. This fits "every token earns its place" rather than level 4's "minor instances of over-explanation".

5 / 5

Actionability

Executable, copy-paste-ready artifacts throughout: a complete `CREATE POLICY ... USING ((SELECT auth.uid()) = owner_id)` statement, a TypeScript batching example using `.in("id", userIds)`, bounded-access specifics ("`.limit()` / `.range()`", "keyset pagination"), and a concrete `queryEnv(action="info", envId=...)` invocation. The common cases (row authorization, batched reads, capacity inspection) are each covered by a specific example.

5 / 5

Workflow Clarity

Four numbered steps each with an explicit validation gate ("**Complete when:** every changed path has a concrete query inventory..." and equivalents) plus a final "Minimum self-check" checklist. However, there is no explicit error-recovery feedback loop (e.g., what to re-examine when a gate fails or a query remains slow after indexing), which keeps it just below the level-5 validate→fix→retry pattern; it is noticeably above the level-3/4 midpoint because most checkpoints are present.

4 / 5

Progressive Disclosure

The body is a clear overview with a routing table mapping each branch ("Missing indexes, slow SQL/RPC..." → `references/indexes-and-explain.md`, etc.) to one of four reference files, all of which exist in `references/` and are one level deep with no nested chains. "Load only the references required by the current branch" makes navigation explicit, matching the level-5 anchor.

5 / 5

Total

19

/

20

Passed

Description

92%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 strong description: concrete capability list, explicit "Use when" triggers, and clear negative boundaries that separate it from sibling skills. The only weakness is modest synonym coverage for performance-related trigger terms.

DimensionReasoningScore

Specificity

Names the domain ("CloudBase PostgreSQL access-pattern and slow-query quality guidance") and lists five concrete actions: "designing how tables are read and written", "eliminating per-row database calls", "adding indexes for filters or joins", "reviewing high-traffic data access", and "explaining a slow SQL query". Coverage is comprehensive for the skill's stated scope, so it fits the level-5 anchor better than level 4's "minor gaps in coverage".

5 / 5

Completeness

Explicitly answers both what ("CloudBase PostgreSQL access-pattern and slow-query quality guidance") and when ("Use when designing how tables are read and written... or explaining a slow SQL query") with concrete trigger phrases, and adds negative boundaries ("Not for first-time PG SDK setup, login UI, or NoSQL collections"). Clearly matches the level-5 anchor; level 4's weaker "when" does not apply.

5 / 5

Trigger Term Quality

Natural phrases users would say are present ("slow SQL query", "adding indexes", "per-row database calls", "high-traffic data access"), but common synonyms such as "query performance", "optimize", "N+1", or "query plan" are missing. This matches "good keyword coverage; a few natural terms missing" rather than the comprehensive synonym coverage of level 5.

4 / 5

Distinctiveness Conflict Risk

Occupies a clear niche (CloudBase PG access-pattern and slow-query review) and explicitly deflects adjacent scopes — "Not for first-time PG SDK setup, login UI, or NoSQL collections" — so wrong-skill triggering risk is minimal. This is the level-5 "clear niche with distinct triggers" anchor.

5 / 5

Total

19

/

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

TencentCloudBase/CloudBase-AI-Toolkit

Path

config/source/skills/postgresql-best-practices-cloudbase/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.