Chdb SQL
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…
Fix psycopg2 "IndexError: tuple index out of range" when using LIKE with parameterized queries.
$ npx skills add divinevideo/divine-mobile --skill psycopg2-like-percent-escape -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install divinevideo/divine-mobile psycopg2-like-percent-escape --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/divinevideo/divine-mobile.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/psycopg2-like-percent-escape .claude/skills/psycopg2-like-percent-escape && 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 "psycopg2-like-percent-escape" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/psycopg2-like-percent-escape into .claude/skills/psycopg2-like-percent-escape/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "psycopg2-like-percent-escape", 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/divinevideo/divine-mobile/tree/main/.agents/skills/psycopg2-like-percent-escapeType 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 divinevideo/divine-mobile --skill psycopg2-like-percent-escape -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install divinevideo/divine-mobile psycopg2-like-percent-escape --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/psycopg2-like-percent-escape .agents/skills/psycopg2-like-percent-escape && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "psycopg2-like-percent-escape" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/psycopg2-like-percent-escape into .agents/skills/psycopg2-like-percent-escape/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "psycopg2-like-percent-escape", 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 divinevideo/divine-mobile --skill psycopg2-like-percent-escape -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install divinevideo/divine-mobile psycopg2-like-percent-escape --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/psycopg2-like-percent-escape .cursor/skills/psycopg2-like-percent-escape && 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 "psycopg2-like-percent-escape" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/psycopg2-like-percent-escape into .cursor/skills/psycopg2-like-percent-escape/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "psycopg2-like-percent-escape", 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/divinevideo/divine-mobile.git --path .agents/skills/psycopg2-like-percent-escape--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 divinevideo/divine-mobile --skill psycopg2-like-percent-escape -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install divinevideo/divine-mobile psycopg2-like-percent-escape --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/psycopg2-like-percent-escape .gemini/skills/psycopg2-like-percent-escape && 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 "psycopg2-like-percent-escape" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/psycopg2-like-percent-escape into .gemini/skills/psycopg2-like-percent-escape/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "psycopg2-like-percent-escape", 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 divinevideo/divine-mobile psycopg2-like-percent-escapeInstalls 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 divinevideo/divine-mobile --skill psycopg2-like-percent-escape -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/psycopg2-like-percent-escape .github/skills/psycopg2-like-percent-escape && 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 "psycopg2-like-percent-escape" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/psycopg2-like-percent-escape into .github/skills/psycopg2-like-percent-escape/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "psycopg2-like-percent-escape", 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 divinevideo/divine-mobile --skill psycopg2-like-percent-escape -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install divinevideo/divine-mobile psycopg2-like-percent-escape --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/psycopg2-like-percent-escape .opencode/skills/psycopg2-like-percent-escape && 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 "psycopg2-like-percent-escape" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/psycopg2-like-percent-escape into .opencode/skills/psycopg2-like-percent-escape/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "psycopg2-like-percent-escape", 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.
psycopg2-like-percent-escapeFix psycopg2 "IndexError: tuple index out of range" when using LIKE with parameterized queries.
Psycopg2 Like Percent Escape is an agent skill from divinevideo/divine-mobile. Fix psycopg2 "IndexError: tuple index out of range" when using LIKE with parameterized queries. Use when: (1) cursor.execute() fails with IndexError on a query containing LIKE '%pattern%', (2) SQL LIKE wildcards conflict with psycopg2 %s parameter placeholders, (3) Query works in psql but fails in Python. The % character has dual meaning: SQL LIKE wildcard AND psycopg2's parameter substitution marker.
Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases, covering SQL. It works with SQL, PostgreSQL and Python. The licence is MPL-2.0.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit c3d6f7e. 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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
psycopg.orgpostgresql.orggithub.comFrom 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.
Psycopg2 Like Percent Escape loads about 1.1k tokens when it runs. Until then it costs about 108 tokens; SKILL.md has 300 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 divinevideo/divine-mobile at commit c3d6f7e, republished under its MPL-2.0 licence (© divinevideo). 300 words, ~1,141 tokens.
.claude/skills/psycopg2-like-percent-escape/SKILL.md (or your agent's skills folder).When using psycopg2 with parameterized queries containing SQL LIKE patterns, the % character
causes conflicts. The % is used both as:
'%pattern%')%s)This results in confusing errors like IndexError: tuple index out of range because psycopg2
interprets %c in %cdn as a format specifier.
IndexError: tuple index out of range from cursor.execute()WHERE column LIKE '%something%'%s parameters for other valuesExample failing code:
cursor.execute("""
SELECT * FROM vines
WHERE url LIKE '%cdn.vine.co%'
LIMIT %s OFFSET %s
""", (1000, 0))
# IndexError: tuple index out of range% with %% (for static patterns)Double the percent signs in hardcoded LIKE patterns:
cursor.execute("""
SELECT * FROM vines
WHERE url LIKE '%%cdn.vine.co%%'
LIMIT %s OFFSET %s
""", (1000, 0))The cleaner approach - pass the entire LIKE pattern as a parameter:
pattern = '%cdn.vine.co%'
cursor.execute("""
SELECT * FROM vines
WHERE url LIKE %s
LIMIT %s OFFSET %s
""", (pattern, 1000, 0))This is the recommended approach because:
For dynamic SQL construction:
from psycopg2 import sql
query = sql.SQL("""
SELECT * FROM {table}
WHERE url LIKE %s
""").format(table=sql.Identifier('vines'))
cursor.execute(query, ('%cdn.vine.co%',))After applying the fix:
%s parameters are still substituted correctlyBefore (broken):
def get_vines_by_cdn(db, limit, offset):
cursor = db.cursor()
cursor.execute("""
SELECT vine_id, url FROM discovered_vines
WHERE url LIKE '%cdn.vine.co%'
ORDER BY created_at
LIMIT %s OFFSET %s
""", (limit, offset))
return cursor.fetchall()After (fixed with Option 1):
def get_vines_by_cdn(db, limit, offset):
cursor = db.cursor()
cursor.execute("""
SELECT vine_id, url FROM discovered_vines
WHERE url LIKE '%%cdn.vine.co%%'
ORDER BY created_at
LIMIT %s OFFSET %s
""", (limit, offset))
return cursor.fetchall()After (fixed with Option 2 - recommended):
def get_vines_by_cdn(db, limit, offset):
cursor = db.cursor()
cdn_pattern = '%cdn.vine.co%'
cursor.execute("""
SELECT vine_id, url FROM discovered_vines
WHERE url LIKE %s
ORDER BY created_at
LIMIT %s OFFSET %s
""", (cdn_pattern, limit, offset))
return cursor.fetchall()%s placeholders%% escape only works when the query uses psycopg2's parameter substitution$1, $2 style placeholders, avoiding this conflict entirely% in data requires additional escaping with ESCAPE clause_ (single character wildcard) if using %_ pattern© divinevideo, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/psycopg2-like-percent-escape of divinevideo/divine-mobile.
Open the folder on GitHubat commit c3d6f7e
Psycopg2 Like Percent Escape 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 |
|---|---|---|---|---|---|---|
| Psycopg2 Like Percent Escape this skilldivinevideo/divine-mobile | 266 | — | ~1.1k | Automated safety check: Pass | MPL-2.0 | |
| Chdb SQLvemetric/vemetric | 395 | 1 repos | ~1.2k | Automated safety check: Pass | Apache-2.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 | |
| Mz BenchmarkMaterializeInc/materialize | 6.4k | — | ~2.8k | Automated safety check: Pass | Custom licence |
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…
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.
MaterializeInc/materialize
Add/modify/debug Materialize perf benchmark scenarios. An agent skill from MaterializeInc/materialize.
timescale/pg-aiguide
Explore an existing PostgreSQL database before answering questions about its data or writing SQL.
divinevideo/divine-mobile
Fix ArgoCD ExternalSecret deployment failing with "namespace X is not permitted in project Y".
divinevideo/divine-mobile
Art direction for any content — reads text, PDF, Word, HTML, PPT, then proposes 2-3 creative directions with photography style, mood, and visual language.
divinevideo/divine-mobile
Fix "Null check operator used on a null value" errors when an object is set to null during an async await.
divinevideo/divine-mobile
Add custom metadata headers (x-amz-meta-) to AWS v4 signed requests for GCS S3-compatible API.
divinevideo/divine-mobile
Fix password/secret authentication failures caused by trailing newlines when creating Google Cloud secrets (or similar) with bash here-strings.
divinevideo/divine-mobile
Fix silent video/media processing failures caused by URL extraction code that filters on file extensions (.mp4, .webm, .webp).
Works with
Categories
Fix psycopg2 "IndexError: tuple index out of range" when using LIKE with parameterized queries. Psycopg2 Like Percent Escape is an agent skill from divinevideo/divine-mobile. Fix psycopg2 "IndexError: tuple index out of range" when using LIKE with parameterized queries.
Psycopg2 Like Percent Escape fits situations like: Cursor.execute() fails with IndexError on a query containing LIKE %pattern%; SQL LIKE wildcards conflict with psycopg2 %s parameter placeholders; query works in psql but fails in Python.
Run `npx skills add divinevideo/divine-mobile --skill psycopg2-like-percent-escape -a claude-code`. Or copy the skill folder (.agents/skills/psycopg2-like-percent-escape in divinevideo/divine-mobile) into .claude/skills/psycopg2-like-percent-escape in your project. Claude Code loads it when a task matches its description.
Run `npx skills add divinevideo/divine-mobile --skill psycopg2-like-percent-escape -a codex`. Or copy the skill folder (.agents/skills/psycopg2-like-percent-escape in divinevideo/divine-mobile) into .agents/skills/psycopg2-like-percent-escape 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 divinevideo/divine-mobile --skill psycopg2-like-percent-escape -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/psycopg2-like-percent-escape, .gemini/skills/psycopg2-like-percent-escape, .github/skills/psycopg2-like-percent-escape and .opencode/skills/psycopg2-like-percent-escape in your project.
SKILL.md names no scripts, command-line tools or credentials: Psycopg2 Like Percent Escape is instructions for the agent only. Our summary lists: Python 3.
SKILL.md names 3 domains. As links in the text: psycopg.org, postgresql.org and github.com. 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.
Psycopg2 Like Percent Escape is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.6k 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 Psycopg2 Like Percent Escape: Chdb SQL (vemetric/vemetric, 395 stars), Safe SQL Execution (supabase/supabase, 111k stars), Citus Backport (citusdata/citus, 13k stars) and SQL Database Support for pREST (prest/prest, 4.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
divinevideo (a GitHub organization) maintains it in divinevideo/divine-mobile, which has 266 GitHub stars. The repository holds 103 skills in this directory. The repository was last updated on October 10, 2026.
Source: divinevideo/divine-mobile on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.