database-analyst
БесплатноБез исполняемых скриптовНе проверенAnalyzes database schemas, migrations, ORM entities, and repository pattern across Java, Kotlin, and Python codebases. Identifies performance issues, N+1…
от ddobrin★ 39 звёзд на GitHubОб этом скилле
Database Analyst
Usage
This skill analyzes database interactions, schema definitions, and migration scripts. It supports:
- Languages: Java (Spring Data JPA, Hibernate), Kotlin (Exposed), Python (SQLAlchemy, Alembic)
- Tasks: Performance analysis, Schema design review, Application logic audit, ERD generation.
Workflows
1. Identify Technology Stack
First, determine the database technology in use by checking configuration files:
- Java/Spring: Look for
pom.xml(dependencies likespring-boot-starter-data-jpa,flyway-core),application.properties, and Entity classes (@Entity). - Python: Look for
requirements.txt(sqlalchemy,alembic),alembic.ini, and model definitions (Base = declarative_base()).
2. Select Analysis Mode
Based on the user's request, perform the following:
A. Performance & Migration Analysis
For requests about "slow queries", "locking", "migrations", or "tuning":
- Locate migration files (e.g.,
src/main/resources/db/migration/*.sqloralembic/versions/*.py). - Review for locking risks and anti-patterns.
- Read references/performance.md for specific checklists.
B. Schema Design & ERD
For requests about "normalization", "schema review", "database structure", or "diagrams":
- Locate Entity/Model classes.
- Analyze relationships, constraints, and keys.
- Read references/schema.md for normalization rules and ERD formatting.
C. Application Logic & Query Analysis
For requests about "N+1 problems", "repository review", or "transaction issues":
- Locate Repository/DAO layers and Service layers.
- Trace method calls to identify implicit queries.
- Read references/java-jpa.md for Java/Spring specifics.
- Read references/python-sqlalchemy.md for Python specifics.
Output Format
- Analysis: Group findings by "Critical", "Warning", and "Info".
- ERD: Use Mermaid diagram format unless requested otherwise.
- Recommendations: Provide concrete code snippets for fixes (e.g., adding an index, refactoring a query).
Установить database-analyst в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл database-analyst?
Analyzes database schemas, migrations, ORM entities, and repository pattern across Java, Kotlin, and Python codebases. Identifies performance issues, N+1 queries, locking risks, normalization violations, and generates ERD documentation
Как установить скилл database-analyst?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл database-analyst запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic