/retool-query
Run queries against the moderator PostgreSQL database (the former Retool database, consolidated 2026-08-21) for moderation notes, user notes, strikes and other Retool-era data. Read-only by default. Use when you need to query that database directly.
Claude Code
$ npx -y skills add civitai/civitai --skill retool-query --agent claude-code
Codex
$ npx skills add civitai/civitai --skill retool-query -a codex -y
Cursor
$ npx skills add civitai/civitai --skill retool-query -a cursor -y
Gemini CLI
$ npx skills add civitai/civitai --skill retool-query -a gemini-cli -y
GitHub Copilot
$ npx skills add civitai/civitai --skill retool-query -a github-copilot -y
OpenCode
$ npx skills add civitai/civitai --skill retool-query -a opencode -y
Windsurf
$ npx skills add civitai/civitai --skill retool-query -a windsurf -y
SKILL.md
retool-query.SKILL.mdname: retool-query
description: Run queries against the moderator PostgreSQL database (the former Retool database, consolidated 2026-08-21) for moderation notes, user notes, strikes and other Retool-era data. Read-only by default. Use when you need to query that database directly.
Moderator Database Query
Queries the moderator PostgreSQL database. Reads use the read-only login (`MODERATOR_DATABASE_READONLY_URL`), and only `--writable` uses the application login (`MODERATOR_DATABASE_URL`). It is one instance since the 2026-08-21 consolidation, holding the Retool-era moderation tables (`UserNotes`, `UserStrikes`, `ReToolActions`, …) alongside the xguard-lab tables.
Running Queries
node .claude/skills/retool-query/query.mjs "SELECT * FROM \"UserNotes\" LIMIT 5"
Options
| Flag | Description | |------|-------------| | `--writable` | Allow write operations (requires user permission) | | `--timeout <s>`, `-t` | Query timeout in seconds (default: 30) | | `--file`, `-f` | Read query from a file | | `--json` | Output results as JSON | | `--quiet`, `-q` | Minimal output, only results |
Examples
# List tables
node .claude/skills/retool-query/query.mjs "SELECT tablename FROM pg_tables WHERE schemaname = 'public'"
# View UserNotes schema
node .claude/skills/retool-query/query.mjs "SELECT column_name, data_type, is_nullable FROM information_schema.columns WHERE table_name = 'UserNotes'"
# Look up notes for a user
node .claude/skills/retool-query/query.mjs "SELECT * FROM \"UserNotes\" WHERE \"userId\" = 12345 ORDER BY created_at DESC LIMIT 10"
# JSON output
node .claude/skills/retool-query/query.mjs --json "SELECT * FROM \"UserNotes\" LIMIT 3"
Safety Features
1. **Read-only by default**: Blocks write operations unless `--writable` flag is used 2. **Explicit permission required**: Before using `--writable`, you MUST ask the user for permission 3. **Timeout protection**: 30-second default timeout
When to Use
- Exploring the `UserNotes` table schema
- Looking up moderation notes for a specific user
- Writing new moderation notes (with `--writable`)
- Investigating Retool-era moderation data
Read more
name: retool-query description: Run queries against the moderator PostgreSQL database (the former Retool database, consolidated 2026-08-21) for moderation notes, user notes, strikes and other Retool-era data. Read-only by default. Use when you need to query that database directly.
Moderator Database Query
Queries the moderator PostgreSQL database. Reads use the read-only login (`MODERATOR_DATABASE_READONLY_URL`), and only `--writable` uses the application login (`MODERATOR_DATABASE_URL`). It is one instance since the 2026-08-21 consolidation, holding the Retool-era moderation tables (`UserNotes`, `UserStrikes`, `ReToolActions`, …) alongside the xguard-lab tables.
Running Queries
node .claude/skills/retool-query/query.mjs "SELECT * FROM \"UserNotes\" LIMIT 5"
Options
| Flag | Description | |------|-------------| | `--writable` | Allow write operations (requires user permission) | | `--timeout <s>`, `-t` | Query timeout in seconds (default: 30) | | `--file`, `-f` | Read query from a file | | `--json` | Output results as JSON | | `--quiet`, `-q` | Minimal output, only results |
Examples
# List tables node .claude/skills/retool-query/query.mjs "SELECT tablename FROM pg_tables WHERE schemaname = 'public'" # View UserNotes schema node .claude/skills/retool-query/query.mjs "SELECT column_name, data_type, is_nullable FROM information_schema.columns WHERE table_name = 'UserNotes'" # Look up notes for a user node .claude/skills/retool-query/query.mjs "SELECT * FROM \"UserNotes\" WHERE \"userId\" = 12345 ORDER BY created_at DESC LIMIT 10" # JSON output node .claude/skills/retool-query/query.mjs --json "SELECT * FROM \"UserNotes\" LIMIT 3"
Safety Features
1. **Read-only by default**: Blocks write operations unless `--writable` flag is used 2. **Explicit permission required**: Before using `--writable`, you MUST ask the user for permission 3. **Timeout protection**: 30-second default timeout
When to Use
- Exploring the `UserNotes` table schema
- Looking up moderation notes for a specific user
- Writing new moderation notes (with `--writable`)
- Investigating Retool-era moderation data
Other skills on civitai.
More skills from other plugins.
hf-cli
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…
feast-architecture
Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the…
accessing-mlflow
Query and browse evaluation results stored in MLflow. Use when the user wants to look up runs by invocation ID, compare metrics…
Questions about retool-query.
- Which coding agents can use retool-query?
- retool-query installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

