Borrowing it
Nothing to install: this file belongs to velesnitski/php-agents-boilerplate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/velesnitski/php-agents-boilerplate/main/.claude/skills/db-operations/SKILL.mdgit clone --depth 1 https://github.com/velesnitski/php-agents-boilerplateWrote 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/velesnitski/php-agents-boilerplate/db-operations)<a href="https://agentmods.dev/skills/velesnitski/php-agents-boilerplate/db-operations"><img src="https://agentmods.dev/badge/skills/velesnitski/php-agents-boilerplate/db-operations/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/velesnitski/php-agents-boilerplate/db-operations"><img src="https://agentmods.dev/badge/skills/velesnitski/php-agents-boilerplate/db-operations.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.00013 | $0.00356 |
| Opus 5.5 | $0.00005 | $0.00142 |
| Sonnet 5.5 | $0.00003 | $0.00071 |
| Haiku 4.5 | $0.00001 | $0.00036 |
Grade A, and why
db-operations 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 11d 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.
What it actually says
Database Operations
Migration Safety
- Always
--pretendfirst on production - Always have a
down()method - Never
DROPorTRUNCATEwithout backup - Test migration on staging before prod
- For large tables: use batched operations, avoid locking
Query Optimization Checklist
- Run
EXPLAIN ANALYZEon slow queries - Check for missing indexes (WHERE, JOIN, ORDER BY columns)
- Check for N+1 – use
with()eager loading - Avoid
SELECT *– specify columns - Use
chunk()orcursor()for large result sets - Consider composite indexes for multi-column WHERE
Dangerous Operations (require user confirmation)
- DROP TABLE / DROP COLUMN
- TRUNCATE
- DELETE without WHERE
- ALTER TABLE on large tables (may lock)
- Any direct production DB modification
Backup Commands
mysqldump -u USER -p DB > backup_$(date +%Y%m%d_%H%M%S).sql
pg_dump -U USER DB > backup_$(date +%Y%m%d_%H%M%S).sql
Monitoring Queries
-- Active connections
SHOW PROCESSLIST;
-- Slow queries
SHOW VARIABLES LIKE 'slow_query%';
-- Table sizes
SELECT table_name, ROUND(data_length/1024/1024, 2) AS size_mb
FROM information_schema.tables WHERE table_schema = 'YOUR_DB';
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.
- 11d ago Changed · +1 lines d7fabe4ce86e
- 2mo ago First seen · 47 lines · 13 tokens per session scan A fbd52744dc57
db-operations is a skill published in the GitHub repository velesnitski/php-agents-boilerplate (2 stars, last pushed 11d ago), licensed MIT. It adds 13 tokens to every session and 356 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
db-operations compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| db-operationsvelesnitski/php-agents-boilerplate | Skill | 2 | 11d ago | MIT | A | 13 | Claude Code |
| create-prprisma/orm | Skill | 48k | yesterday | Apache-2.0 | A | 48 | Claude Code, Codex |
| schema-explorationlangchain-ai/deepagents | Skill | 31k | yesterday | MIT | A | 57 | Claude Code, Codex |
| atlas-mssqlariga/atlas | Skill | 8.8k | yesterday | Apache-2.0 | A | 163 | Claude Code |
| ha-data-storesshiwenwen/hope-agent | Skill | 1.9k | yesterday | MIT | A | 115 | Claude Code, Codex |
| nornicdb-cypher-queriesorneryd/NornicDB | Skill | 923 | yesterday | MIT | A | 79 | Claude Code, Codex |
| volcengine-rds-postgresqlbytedance/agentkit-samples | Skill | 484 | today | Apache-2.0 | A | 63 | Claude Code, Codex |