Clickhouse Logs Queries
supabase/supabase
Write, review, and migrate Supabase logs queries against the ClickHouse-backed logs table (the logs.all.otel analytics endpoint).
Set up read-only PostgreSQL access for agents. An agent skill from davidondrej/skills.
$ npx skills add davidondrej/skills --skill create-readonly-db-role -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install davidondrej/skills create-readonly-db-role --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/davidondrej/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ops-and-setup/create-readonly-db-role .claude/skills/create-readonly-db-role && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "create-readonly-db-role" agent skill from https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/create-readonly-db-role into .claude/skills/create-readonly-db-role/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-readonly-db-role", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/create-readonly-db-roleType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add davidondrej/skills --skill create-readonly-db-role -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install davidondrej/skills create-readonly-db-role --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidondrej/skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/ops-and-setup/create-readonly-db-role .agents/skills/create-readonly-db-role && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "create-readonly-db-role" agent skill from https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/create-readonly-db-role into .agents/skills/create-readonly-db-role/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-readonly-db-role", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davidondrej/skills --skill create-readonly-db-role -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install davidondrej/skills create-readonly-db-role --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidondrej/skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/ops-and-setup/create-readonly-db-role .cursor/skills/create-readonly-db-role && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "create-readonly-db-role" agent skill from https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/create-readonly-db-role into .cursor/skills/create-readonly-db-role/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-readonly-db-role", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/davidondrej/skills.git --path skills/ops-and-setup/create-readonly-db-role--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add davidondrej/skills --skill create-readonly-db-role -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install davidondrej/skills create-readonly-db-role --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidondrej/skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/ops-and-setup/create-readonly-db-role .gemini/skills/create-readonly-db-role && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "create-readonly-db-role" agent skill from https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/create-readonly-db-role into .gemini/skills/create-readonly-db-role/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-readonly-db-role", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install davidondrej/skills create-readonly-db-roleInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add davidondrej/skills --skill create-readonly-db-role -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/davidondrej/skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/ops-and-setup/create-readonly-db-role .github/skills/create-readonly-db-role && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "create-readonly-db-role" agent skill from https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/create-readonly-db-role into .github/skills/create-readonly-db-role/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-readonly-db-role", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add davidondrej/skills --skill create-readonly-db-role -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install davidondrej/skills create-readonly-db-role --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/davidondrej/skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/ops-and-setup/create-readonly-db-role .opencode/skills/create-readonly-db-role && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "create-readonly-db-role" agent skill from https://github.com/davidondrej/skills/tree/main/skills/ops-and-setup/create-readonly-db-role into .opencode/skills/create-readonly-db-role/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-readonly-db-role", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
create-readonly-db-roleSet up read-only PostgreSQL access for agents. An agent skill from davidondrej/skills.
Create Readonly DB Role is an agent skill from davidondrej/skills. Set up read-only PostgreSQL access for agents. Use only when the user explicitly invokes /create-readonly-db-role.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).
It sits in Databases. It works with PostgreSQL and SQL. The repository describes itself as: access to david ondrej's personal agent skills. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 7874889. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
psqlFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Create Readonly DB Role loads about 1.3k tokens when it runs. Until then it costs about 35 tokens; SKILL.md has 448 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from davidondrej/skills at commit 7874889, republished under its MIT licence (© davidondrej). 448 words, ~1,334 tokens.
.claude/skills/create-readonly-db-role/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Prepare a SELECT-only role and protected connection. The SQL, role name, grants, denylist, RLS behavior, timeouts, and connection steps are examples to adapt to your system, not live production configuration.
<application_schema>, including future tables through default privileges, then revoke denylisted tables. Never grant the <restricted_schema> schema. New sensitive tables need a manual revoke.default_transaction_read_only = on and a short statement_timeout suited to the workload.RLS: tables may return no rows when the role has no applicable policy. Review row-level policies with the database administrator to ensure the role sees only the intended rows.
select rolname from pg_roles where rolname = '<reader_role>';. Use your chosen name; if it exists, update rather than recreate it.docs/<setup-file>.sql. Comment what changes, why, and how to apply, verify, and revert. Chat-only SQL is insufficient.<role>.<project-ref> on port 5432. Install psql if missing (Homebrew libpq on macOS).-- Example only. Rename the role, schema, timeout, and denylist for your system.
-- 1. role + soft guardrails
create role <reader_role> with login password 'REPLACE_ME';
alter role <reader_role> set default_transaction_read_only = on;
alter role <reader_role> set statement_timeout = '10s'; -- example timeout; change as needed
-- 2. SELECT-only grants, denylist model
grant usage on schema <application_schema> to <reader_role>;
grant select on all tables in schema <application_schema> to <reader_role>;
alter default privileges for role <owner_role> in schema <application_schema>
grant select on tables to <reader_role>; -- future tables auto-readable
-- 3. denylist: keep secrets and PII invisible (replace with your own tables)
revoke select on table <application_schema>.<sensitive_table_1> from <reader_role>;
revoke select on table <application_schema>.<sensitive_table_2> from <reader_role>;Revert: drop owned by <reader_role>; drop role <reader_role>;
All checks must pass before declaring done:
# Load the connection URL from your secret manager or local environment configuration.
psql "<readonly-connection-url>" -X -c "select current_user;" # -> <reader_role>
psql "<readonly-connection-url>" -X -c "show statement_timeout;" # -> matches your chosen timeout
psql "<readonly-connection-url>" -X -c "select count(*) from <application_schema>.<readable_table>;" # -> real number, NOT 0
psql "<readonly-connection-url>" -X -c "delete from <application_schema>.<any_table> where false;"
# -> ERROR: read-only transaction (soft guardrail)
psql "<readonly-connection-url>" -X -c "begin; set transaction read write; delete from <application_schema>.<any_table> where false; rollback;"
# -> ERROR: permission denied (the hard wall)
psql "<readonly-connection-url>" -X -c "select * from <application_schema>.<denylisted_table> limit 1;" # -> ERROR: permission denied
psql "<readonly-connection-url>" -X -c "select * from <restricted_schema>.<identity_table> limit 1;" # -> ERROR: permission deniedVerify both protections: writes fail under the read-only guardrail, and fail with permission denied when it is off. If any check fails, correct the configuration through the human and rerun all checks.
<role>.<project-ref>.revoke select to the denylist.alter role <reader_role> with password '...' and update the stored connection secret.© davidondrej, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in skills/ops-and-setup/create-readonly-db-role of davidondrej/skills.
Open the folder on GitHubat commit 7874889
Create Readonly DB Role next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Create Readonly DB Role this skilldavidondrej/skills | 4.1k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Clickhouse Logs Queriessupabase/supabase | 111k | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Citus Check Style Reindentcitusdata/citus | 13k | — | ~1.5k | Automated safety check: Notes | AGPL-3.0 | |
| Safe SQL Executionsupabase/supabase | 111k | — | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Citus Backportcitusdata/citus | 13k | — | ~3.2k | Automated safety check: Pass | AGPL-3.0 | |
| SQL Database Support for pRESTprest/prest | 4.6k | — | ~1.6k | Automated safety check: Pass | MIT |
supabase/supabase
Write, review, and migrate Supabase logs queries against the ClickHouse-backed logs table (the logs.all.otel analytics endpoint).
citusdata/citus
Fix a failing citusdata/citus check-style job by running make reindent with the exact uncrustify/citusindent versions the currently checked-out branch pins (read from its own STYLEGUIDE.md and its…
supabase/supabase
A skill your agent uses whenever code will build, return, fetch, or execute SQL that runs against a user's real Postgres database — even when the request reads like an ordinary feature or bug fix…
citusdata/citus
Backport one or more merged citusdata/citus main commits/PRs onto the active release branches.
prest/prest
Guides classifying, gap-analyzing and scaffolding support for a new SQL database in pREST, from Postgres-compatible variants to entirely new dialects.
vemetric/vemetric
A skill your agent uses when the user wants to run SQL — especially analytical SQL — on local files (parquet/csv/json), URLs, S3 paths, or remote databases (Postgres, MySQL, MongoDB, ClickHouse…
davidondrej/skills
Launch a new bb worker thread with the right project, model, worktree, and task brief.
davidondrej/skills
Direct browser control via CDP. An agent skill from davidondrej/skills.
davidondrej/skills
Manage persistent dev servers, APIs, and other local processes on a port using macOS LaunchAgents.
davidondrej/skills
Reset a stuck Cursor ACP thread in <chat-system and reload its configuration.
davidondrej/skills
Keep a Mac awake for a set duration or while a process runs.
davidondrej/skills
Use this when controlling bb. An agent skill from davidondrej/skills.
Works with
Categories
Set up read-only PostgreSQL access for agents. An agent skill from davidondrej/skills. Create Readonly DB Role is an agent skill from davidondrej/skills. Set up read-only PostgreSQL access for agents.
Create Readonly DB Role fits situations like: explicitly invokes /create-readonly-db-role.
Run `npx skills add davidondrej/skills --skill create-readonly-db-role -a claude-code`. Or copy the skill folder (skills/ops-and-setup/create-readonly-db-role in davidondrej/skills) into .claude/skills/create-readonly-db-role in your project. Claude Code loads it when a task matches its description.
Run `npx skills add davidondrej/skills --skill create-readonly-db-role -a codex`. Or copy the skill folder (skills/ops-and-setup/create-readonly-db-role in davidondrej/skills) into .agents/skills/create-readonly-db-role in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davidondrej/skills --skill create-readonly-db-role -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-readonly-db-role, .gemini/skills/create-readonly-db-role, .github/skills/create-readonly-db-role and .opencode/skills/create-readonly-db-role in your project.
Going by SKILL.md and its folder, Create Readonly DB Role needs the command-line tools its instructions call (psql).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Create Readonly DB Role is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Create Readonly DB Role: Clickhouse Logs Queries (supabase/supabase, 111k stars), Citus Check Style Reindent (citusdata/citus, 13k stars), Safe SQL Execution (supabase/supabase, 111k stars) and Citus Backport (citusdata/citus, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
davidondrej (a GitHub user) maintains it in davidondrej/skills, which has 4,112 GitHub stars. The repository holds 51 skills in this directory. The repository was last updated on October 8, 2026.
Source: davidondrej/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.