Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add TencentCloudBase/cloudbase-skills --skill postgresql-best-practices-cloudbasegit clone --depth 1 https://github.com/TencentCloudBase/cloudbase-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/tencentcloudbase/cloudbase-skills/postgresql-best-practices-cloudbase)<a href="https://agentmods.dev/skills/tencentcloudbase/cloudbase-skills/postgresql-best-practices-cloudbase"><img src="https://agentmods.dev/badge/skills/tencentcloudbase/cloudbase-skills/postgresql-best-practices-cloudbase/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/tencentcloudbase/cloudbase-skills/postgresql-best-practices-cloudbase"><img src="https://agentmods.dev/badge/skills/tencentcloudbase/cloudbase-skills/postgresql-best-practices-cloudbase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.01103 |
| Opus 5.5 | $0.00030 | $0.00441 |
| Sonnet 5.5 | $0.00015 | $0.00221 |
| Haiku 4.5 | $0.00007 | $0.00110 |
Grade A, and why
postgresql-best-practices-cloudbase scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to postgresql-best-practices-cloudbase — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CloudBase PostgreSQL Best Practices
This skill turns a working CloudBase PG implementation into a reviewable access design. It makes query paths, indexes, row authorization, and launch capacity explicit before code is considered complete.
Sibling skills (local only)
Sibling CloudBase skills ship beside this skill. Use local relative paths such as ../postgresql-development-cloudbase/SKILL.md.
If a referenced sibling skill file is missing from this environment, ask the user to install the full CloudBase plugin (or the missing skill). Do not HTTP-fetch remote skill or protocol markdown into the agent context.
When to use
- A feature needs a new or changed access pattern.
- Application code performs repeated, serial, or high-frequency PG queries.
- A SQL query, RPC, endpoint, or polling path is slow.
- A high-traffic launch needs a database readiness review.
Do NOT use for
- PG environment setup,
app.rdb()syntax, migrations, GRANTs, or base RLS correctness: use../postgresql-development-cloudbase/SKILL.md. - Login provider or UI implementation: use the matching auth skill.
- Confirmed NoSQL collection work: use the document database skill.
- Platform alarm diagnosis or slow-log collection: use
../ops-inspector/SKILL.md.
Workflow
1. Inventory access paths
List every changed endpoint, job, RPC, or UI flow and its reads and writes. Record filters, joins, sort keys, expected cardinality, and request frequency.
Complete when: every changed path has a concrete query inventory; unknown volume or peak concurrency is marked as an assumption for the user.
2. Design schema, indexes, and row authorization together
Derive columns and indexes from the query inventory. Every frequent filter, join, and stable ordering path must have a deliberate index decision. For user-owned rows, use the role as the policy gate and identity as the row predicate:
CREATE POLICY orders_select_own ON public.orders
FOR SELECT TO authenticated
USING ((SELECT auth.uid()) = owner_id);
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago Changed 3bac18542eee
- 13d ago Changed 93165138460b
- 15d ago Changed e1296bac01bd
- 20d ago Changed 5d2981c303a1
- 25d ago Changed badbb27f18b0
- 27d ago Changed ef586aaf1bce
- 28d ago Changed 8bfda0b7c5b8
- 1mo ago Changed f8887db5619b
- 1mo ago Changed 447f2920604e
- 1mo ago First seen · 98 lines · 74 tokens per session scan A b71706c5222d
postgresql-best-practices-cloudbase is a skill published in the GitHub repository TencentCloudBase/cloudbase-skills (39 stars, last pushed yesterday), licensed MIT. It adds 74 tokens to every session and 1,103 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to postgresql-best-practices-cloudbase, differing in 0 lines, and is treated as a copy.
postgresql-best-practices-cloudbase compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| postgresql-best-practices-cloudbaseTencentCloudBase/cloudbase-skills | Skill | 39 | yesterday | MIT | A | 74 | Claude Code, Codex |
| alloydb-basicsgoogle/skills | Skill | 25k | yesterday | Apache-2.0 | A | 72 | Claude Code, Codex |
| postgresql-table-designwshobson/agents | Skill | 43k | 2d ago | MIT | A | 37 | Claude Code |
| db-repairgarrytan/gbrain | Skill | 34k | today | MIT | A | 96 | Claude Code |
| dsqlawslabs/agent-plugins | Skill | 956 | yesterday | Apache-2.0 | A | 247 | Claude Code |
| volcengine-rds-postgresqlbytedance/agentkit-samples | Skill | 496 | yesterday | Apache-2.0 | A | 63 | Claude Code, Codex |
| postgresdbericrisco/rsc-harness | Skill | 695 | yesterday | MIT | A | 91 | Claude Code, Codex |