database
БесплатноБез исполняемых скриптовНе проверенDatabase management commands and the bin/run utility for executing Ruby scripts against specific event databases. Use when the user needs to query…
Об этом скилле
Database Management
Standard Database Commands
# Prepare database (creates and runs migrations)
bin/rails db:prepare
# Run migrations
bin/rails db:migrate
# Load seed data
bin/rails db:seed
# Load fixtures (for test data)
bin/rails db:fixtures:load
Running Scripts Against Existing Databases
The bin/run command allows you to execute Ruby scripts against any database in the project.
Basic Usage
# Run a script file against a specific database
bin/run db/2025-boston.sqlite3 path/to/script.rb
# Evaluate Ruby code directly against a database
bin/run db/2025-boston.sqlite3 -e "puts Event.current.name"
# Run against test database (automatically loads fixtures)
bin/run test -e "puts Person.count"
Common Query Examples
# Count heats
bin/run db/2025-boston.sqlite3 -e "Heat.count"
# Get all student names
bin/run db/2025-boston.sqlite3 -e "Person.where(type: 'Student').pluck(:name)"
# List studios with person counts
bin/run db/2025-boston.sqlite3 -e "Studio.all.map { |s| [s.name, s.people.count] }"
How bin/run Works
The script automatically sets up:
RAILS_APP_DBenvironment variable from database filenameRAILS_STORAGEpath for Active Storage files- For test database: runs
db:prepareand loads fixtures
This allows you to query and manipulate any event database without starting a full Rails server.
Установить database в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл database?
Database management commands and the bin/run utility for executing Ruby scripts against specific event databases. Use when the user needs to query, manipulate, or run scripts against existing databases without starting a Rails server.
Как установить скилл database?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл database запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic