Databases
Microck/ordinary-claude-skills
Work with MongoDB (document database, BSON documents, aggregation pipelines, Atlas cloud) and PostgreSQL (relational database, SQL queries, psql CLI, pgAdmin).
Complete knowledge of the optimizer PostgreSQL database: 57 ingestion tables, schema, relationships, live row counts, query patterns, and conventions.
$ npx skills add SilvioBaratto/optimizer --skill db-context -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install SilvioBaratto/optimizer db-context --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/SilvioBaratto/optimizer.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/db-context .claude/skills/db-context && 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 "db-context" agent skill from https://github.com/SilvioBaratto/optimizer/tree/development/.claude/skills/db-context into .claude/skills/db-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db-context", 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/SilvioBaratto/optimizer/tree/development/.claude/skills/db-contextType 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 SilvioBaratto/optimizer --skill db-context -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install SilvioBaratto/optimizer db-context --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SilvioBaratto/optimizer.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/db-context .agents/skills/db-context && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "db-context" agent skill from https://github.com/SilvioBaratto/optimizer/tree/development/.claude/skills/db-context into .agents/skills/db-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db-context", 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 SilvioBaratto/optimizer --skill db-context -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install SilvioBaratto/optimizer db-context --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SilvioBaratto/optimizer.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/db-context .cursor/skills/db-context && 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 "db-context" agent skill from https://github.com/SilvioBaratto/optimizer/tree/development/.claude/skills/db-context into .cursor/skills/db-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db-context", 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/SilvioBaratto/optimizer.git --path .claude/skills/db-context--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 SilvioBaratto/optimizer --skill db-context -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install SilvioBaratto/optimizer db-context --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SilvioBaratto/optimizer.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/db-context .gemini/skills/db-context && 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 "db-context" agent skill from https://github.com/SilvioBaratto/optimizer/tree/development/.claude/skills/db-context into .gemini/skills/db-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db-context", 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 SilvioBaratto/optimizer db-contextInstalls 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 SilvioBaratto/optimizer --skill db-context -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/SilvioBaratto/optimizer.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/db-context .github/skills/db-context && 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 "db-context" agent skill from https://github.com/SilvioBaratto/optimizer/tree/development/.claude/skills/db-context into .github/skills/db-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db-context", 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 SilvioBaratto/optimizer --skill db-context -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install SilvioBaratto/optimizer db-context --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SilvioBaratto/optimizer.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/db-context .opencode/skills/db-context && 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 "db-context" agent skill from https://github.com/SilvioBaratto/optimizer/tree/development/.claude/skills/db-context into .opencode/skills/db-context/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "db-context", 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.
db-contextComplete knowledge of the optimizer PostgreSQL database: 57 ingestion tables, schema, relationships, live row counts, query patterns, and conventions.
DB Context is an agent skill from SilvioBaratto/optimizer. Complete knowledge of the optimizer PostgreSQL database: 57 ingestion tables, schema, relationships, live row counts, query patterns, and conventions. Load this skill proactively whenever working with database models (packages/portopt-db/src/portoptdb/models/), repositories (packages/portopt-db/src/portoptdb/repositories/ + ingestion/app/repositories/jobs/), Alembic migrations (packages/portopt-db/alembic/), SQL queries, or any code that reads from or writes to the database. Also load when discussing table…
Its SKILL.md is about 6.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/data-inventory.md` and `references/full-schema.md`).
It sits in Databases, covering Database migrations, SQL and Database schema design. It works with PostgreSQL, SQL and yfinance. The repository describes itself as: Quantitative portfolio construction and optimization platform built on skfolio and scikit-learn.
9 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 63e897b. 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 and bash).
From 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 these keys or tokens, usually read from environment variables:
FRED_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
DB Context loads about 6.4k tokens when it runs, and up to ~16k if it reads all its reference files. Until then it costs about 166 tokens; SKILL.md has 1,952 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 noted patterns worth knowing about, such as sudo or a known installer.
Overridable via `.env` (`DATABASE_POOL_SIZE`, …); the running container may show larger values.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.
Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,952 words (~6,434 tokens).
“PostgreSQL 16 (Alpine) in Docker on host port 54320. Connection: postgresql://postgres:postgres@localhost:54320/optimizer_db”
SKILL.md and 2 other files (references) in .claude/skills/db-context of SilvioBaratto/optimizer.
Open the folder on GitHubat commit 63e897b
DB Context 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 |
|---|---|---|---|---|---|---|
| DB Context this skillSilvioBaratto/optimizer | 176 | — | ~6.4k | Automated safety check: Notes | Custom licence | |
| DatabasesMicrock/ordinary-claude-skills | 403 | — | ~1.9k | Automated safety check: Notes | MIT | |
| Supabase Postgres Best Practicessupabase/agent-skills | 2.7k | 24 repos | ~808 | Automated safety check: Pass | MIT | |
| Schema Explorationtimescale/pg-aiguide | 1.9k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Cursor BYOK Database Schemaleookun/cursor-byok | 3.2k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Database Migrations SQL Migrationsrmyndharis/antigravity-skills | 1.7k | 3 repos | ~577 | Automated safety check: Notes | MIT |
Microck/ordinary-claude-skills
Work with MongoDB (document database, BSON documents, aggregation pipelines, Atlas cloud) and PostgreSQL (relational database, SQL queries, psql CLI, pgAdmin).
supabase/agent-skills
Gives the agent Postgres rules to consult before writing or changing tables, queries, indexes, RLS policies or migrations, and when diagnosing slow queries.
timescale/pg-aiguide
Explore an existing PostgreSQL database before answering questions about its data or writing SQL.
leookun/cursor-byok
Guides SQLite schema changes in the Cursor BYOK server, keeping SQLx migrations, the Rust store, API contracts and fixtures aligned.
rmyndharis/antigravity-skills
SQL database migrations with zero-downtime strategies for PostgreSQL, MySQL, SQL Server
ayarotsky/diesel-guard
Lints Diesel and SQLx Postgres migrations for unsafe schema changes that lock tables or cause downtime, and authors custom Rhai checks.
SilvioBaratto/optimizer
Load proactively whenever the user works with yfinance or Yahoo Finance data — pulling price history, fetching financials or analyst data, screening stocks / funds / ETFs, streaming real-time…
SilvioBaratto/optimizer
Sequence the fund pipeline and delegate to the four subagents (economist, allocator, risk, executor).
SilvioBaratto/optimizer
Map a chosen ConstraintSet.objective to the correct optimizer cone / risk-measure and factory config.
SilvioBaratto/optimizer
Read macro/FRED series from the DB and label the current market regime for the economist.
SilvioBaratto/optimizer
Translate approved target weights into paper orders under a no-trade band and an L1 turnover penalty, then place them behind human approval.
SilvioBaratto/optimizer
Validate a proposed weight vector against the ConstraintSet — drawdown ceilings nu1/nu2/nu3, ESG hard gate, robust uncertainty, and a walk-forward backtest — and BLOCK on any breach.
Works with
Categories
Complete knowledge of the optimizer PostgreSQL database: 57 ingestion tables, schema, relationships, live row counts, query patterns, and conventions. DB Context is an agent skill from SilvioBaratto/optimizer. Complete knowledge of the optimizer PostgreSQL database: 57 ingestion tables, schema, relationships, live row counts, query patterns, and conventions.
DB Context fits situations like: tasks that involve Database migrations; tasks that involve SQL; tasks that involve Database schema design.
Run `npx skills add SilvioBaratto/optimizer --skill db-context -a claude-code`. Or copy the skill folder (.claude/skills/db-context in SilvioBaratto/optimizer) into .claude/skills/db-context in your project. Claude Code loads it when a task matches its description.
Run `npx skills add SilvioBaratto/optimizer --skill db-context -a codex`. Or copy the skill folder (.claude/skills/db-context in SilvioBaratto/optimizer) into .agents/skills/db-context 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 SilvioBaratto/optimizer --skill db-context -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/db-context, .gemini/skills/db-context, .github/skills/db-context and .opencode/skills/db-context in your project.
Going by SKILL.md and its folder, DB Context needs credentials named FRED_API_KEY. Our summary lists: Docker; A credential in FRED_API_KEY.
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 notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
DB Context has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.
About 6.4k tokens (SKILL.md is roughly 26k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 9.8k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with DB Context: Databases (Microck/ordinary-claude-skills, 403 stars), Supabase Postgres Best Practices (supabase/agent-skills, 2.7k stars), Schema Exploration (timescale/pg-aiguide, 1.9k stars) and Cursor BYOK Database Schema (leookun/cursor-byok, 3.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
SilvioBaratto (a GitHub user) maintains it in SilvioBaratto/optimizer, which has 176 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.
Source: SilvioBaratto/optimizer on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.