database-analysis
Skill0 starsChanged 3 months agoMITView on GitHub
Analyze relational database artifacts such as DDL, migrations, ORM models, SQL queries, EXPLAIN plans, and sample result sets. Use when Codex needs cross-database, read-only review of schema design, query behavior, indexing, migration safety, data integrity risk, or evidence-driven next checks without defaulting to live production access.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- j99way99/claude-skillstheir own version, first seen Sep 16, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- j99way99/claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository66 other files it gives its agents.
- adb-android-app-opsSkill
- agents-sdkSkill
- api-documentationSkill
- atlasSkill
- backend-api-auth-guardrailsSkill
- browser-useSkill
- bundleSkill
- changelogSkill
- chatgpt-appsSkill
- chrome-devtools-testSkill
- chronicleSkill
- cloudflare-deploySkill
- cloudflare-email-serviceSkill
- cloudflare-one-migrationsSkill
- cloudflare-oneSkill
- cloudflareSkill
- computer-useSkill
- create-planSkill
- database-data-guardrailsSkill
- debug-memory-leakSkill
- deep-initSkill
- deploySkill
- develop-web-gameSkill
- dev-workflowSkill
- docSkill
- durable-objectsSkill
- explainSkill
- figmaSkill
- firmware-feature-writerSkill
- fix-bugSkill
- fix-lintSkill
- frontend-mobile-uiux-designerSkill
- frontend-ui-guardrailsSkill
- gemini-cliSkill
- grok-x-searchSkill
- hermes-chromeSkill
- image-file-readerSkill
- imagegenSkill
- infra-ops-mobile-guardrailsSkill
- layout-reviewSkill
- localizeSkill
- multimodal-lookerSkill
- openai-docsSkill
- optimizeSkill
- parallel-devSkill
- plan-modeSkill
- playwrightSkill
- project-planningSkill
- qa-testerSkill
- refactorSkill
- review-changesSkill
- review-fix-shipSkill
- rust-programmerSkill
- sandbox-sdkSkill
- screenshotSkill
- security-auditSkill
- security-scanSkill
- security-threat-modelSkill
- source-command-collab-startSkill
- turnstile-spinSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 17 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill to review database-related artifacts without assuming direct database access.
- Distinctive: line 16
Use schema analysis for DDL, migrations, ORM models, table definitions, indexes, or relationship questions.
- Distinctive: line 17
Use query analysis for SQL text, performance complaints, EXPLAIN output, or indexing suggestions.
- Distinctive: line 18
Use migration and data checks for backfills, type changes, renames, constraint changes, or data repair plans.
- Distinctive: line 40
If a missing fact changes the conclusion, state the gap explicitly.
- Distinctive: line 44
Prefer one primary lane:
- Distinctive: line 50
Avoid broad “optimize the whole database” advice when the evidence only supports one area.
- Distinctive: line 61
Do not rely on vendor-specific behavior unless the engine is known.
- Distinctive: line 72
Keep recommendations actionable.
- Distinctive: line 76
Default to artifact-first, read-only analysis.
- Distinctive: line 77
Do not assume direct database access.
- Distinctive: line 78
Do not run write statements, destructive checks, or production experiments by default.
- Distinctive: line 79
If the user explicitly requests live investigation, confirm that the access is read-only and avoid production-impacting queries.
- Distinctive: line 81
Prefer parameterized SQL and allowlisted identifier mappings in all examples.
- Distinctive: line 86
Check join cardinality, filter selectivity, sorting, grouping, and pagination before suggesting indexes.
- Distinctive: line 87
Treat missing constraints, weak nullability, or inconsistent naming as integrity risks, not just style issues.
- Distinctive: line 89
When sample sizes or statistics are absent, avoid claiming exact performance outcomes.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Database Analysis
Overview
Use this skill to review database-related artifacts without assuming direct database access. Start from evidence, keep recommendations reversible, and highlight unknowns instead of guessing.
Quick Triage
Classify the request before going deep:
- Use schema analysis for DDL, migrations, ORM models, table definitions, indexes, or relationship questions.
- Use query analysis for SQL text, performance complaints, EXPLAIN output, or indexing suggestions.
- Use migration and data checks for backfills, type changes, renames, constraint changes, or data repair plans.
- Combine paths only when the artifacts clearly overlap.
Load only the references that match the task:
references/schema-analysis.mdreferences/query-analysis.mdreferences/migration-and-data-checks.md
Default Workflow
1. Inventory the evidence
List what is available and what is missing:
- Database engine and version
- DDL, migration files, or ORM models
- SQL text and bound parameters
- EXPLAIN or execution-plan output
- Table sizes, cardinality hints, or sample result sets
- Existing incidents, error messages, or latency symptoms
If a missing fact changes the conclusion, state the gap explicitly. Ask only for the smallest artifact that unlocks the next step.
2. Pick the narrowest analysis lane
Prefer one primary lane:
- Structure and consistency
- Query correctness and performance
- Migration safety and data integrity
Avoid broad “optimize the whole database” advice when the evidence only supports one area.
3. Analyze from artifact to conclusion
Work from observable evidence:
- Quote or summarize the relevant schema, SQL fragment, or plan node.
- Explain why it matters.
- Distinguish confirmed findings from informed hypotheses.
- Name the smallest safe next check when proof is incomplete.
Do not rely on vendor-specific behavior unless the engine is known.
4. Produce findings-first output
Order the response like this:
- Findings, ordered by severity or likely impact
- Supporting evidence
- Evidence gaps or assumptions
- Safe next checks or validation steps
Keep recommendations actionable. Prefer “add or verify an index matching these predicates” over generic tuning advice.
Safety Rules
- Default to artifact-first, read-only analysis.
- Do not assume direct database access.
- Do not run write statements, destructive checks, or production experiments by default.
- If the user explicitly requests live investigation, confirm that the access is read-only and avoid production-impacting queries.
- Flag any SQL injection risk, unsafe dynamic identifiers, or missing input validation immediately.
- Prefer parameterized SQL and allowlisted identifier mappings in all examples.
Analysis Heuristics
- Separate correctness problems from performance problems. A fast wrong query is still wrong.
- Check join cardinality, filter selectivity, sorting, grouping, and pagination before suggesting indexes.
- Treat missing constraints, weak nullability, or inconsistent naming as integrity risks, not just style issues.
- For migration work, prefer expand/contract thinking and call out rollback difficulty.
- When sample sizes or statistics are absent, avoid claiming exact performance outcomes.
Output Expectations
When responding, include:
- A short statement of what was analyzed
- Findings first, with concrete evidence
- Cross-database-safe guidance unless the engine is known
- Explicit assumptions and unknowns
- A validation or follow-up checklist when relevant
Example Triggers
- “Review this schema dump and tell me what is risky.”
- “Analyze this SQL query and EXPLAIN output.”
- “Check whether this migration plan is backward compatible.”
- “Look at these ORM models and infer database design problems.”
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

