一键导入
docker-compose-exec
Run commands inside Docker Compose services. Use when services are only reachable from inside compose networks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run commands inside Docker Compose services. Use when services are only reachable from inside compose networks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
End-to-end Jira ticket creation harness. Gathers a summary and rough description, enhances the description in a chosen writing style, confirms with the user, and creates the ticket via the Atlassian MCP. Use when the user says "create a ticket", "open a Jira ticket", "file a bug", "draft a ticket", "new issue for ...", or otherwise asks to create work in Jira. Supports an optional writing style passed up front (e.g. "create a ticket in bug_report style"); when no style is given, the harness asks which style to use.
End-to-end Jira ticket implementation harness. Fetches ticket from Jira, creates an implementation plan, executes it with proper branching, commits, quality gates, and opens a PR. Use when the user says "implement TICKET-ID", "work on TICKET-ID", "pick up TICKET-ID", "start TICKET-ID", or provides a Jira ticket key (e.g., PREFIX-1810, TICKET-450) with implementation intent. Covers bugs, tasks, stories, and any other Jira issue type.
Review a GitHub pull request end-to-end and produce specific, actionable change requests classified as "required" or "good_to_have". Use when the user invokes the /review-pr command with a PR link, says "review this PR", "review pull request", or asks for a code review on a GitHub PR URL. Detects PR ownership via the gh CLI — for the user's own PRs, outputs findings locally; for collaborator PRs, presents findings as approve/reject/change questions and then posts approved feedback as inline review comments at file and line (or as a general PR comment when not line-specific).
Use this skill when writing, reviewing, or refactoring Ruby and Rails code in Develoz's preferred Rails style. Applies to Rails models, controllers, services, jobs, helpers, mailers, views, tests, routing, and architecture. Emphasizes clear Rails conventions, rich domain models, pragmatic service objects, RESTful defaults with practical exceptions, Hotwire, Tailwind, RSpec, FactoryBot, and simple infrastructure choices.
Perform comprehensive code audits of Ruby on Rails applications based on thoughtbot best practices. Use this skill when the user requests a code audit, code review, quality assessment, or analysis of a Rails application. The skill analyzes the entire codebase focusing on testing practices (RSpec), security vulnerabilities, code design (skinny controllers, domain models, PORO with ActiveModel), Rails conventions, database optimization, and Ruby best practices. Outputs a detailed markdown audit report grouped by category (Testing, Security, Models, Controllers, Code Design, Views) with severity levels (Critical, High, Medium, Low) within each category.
Debug and optimize slow ActiveRecord queries in a Ruby on Rails application. Use this skill when the user reports slow pages or jobs, suspects N+1 queries, asks to "optimize", "speed up", "profile", "add indexes", or "explain" an ActiveRecord query, or mentions tools like Bullet, rack-mini-profiler, pghero, pg_stat_statements, EXPLAIN/EXPLAIN ANALYZE, load_async, strict_loading, or query log tags. Also triggers on database-specific performance questions for PostgreSQL, MySQL, or SQLite inside a Rails codebase.
| name | docker-compose-exec |
| description | Run commands inside Docker Compose services. Use when services are only reachable from inside compose networks. |
First, determine which service to use:
docker compose ps
Look for:
docker-compose.ymlIf service is already running → Use docker compose exec
If service is not running → Use docker compose run --rm
docker compose exec <service_name> <command>
For interactive commands, add -it (or omit if compose defaults are fine):
docker compose exec -it <service_name> <command>
Examples:
# Run psql in a running postgres service
docker compose exec db psql -U myuser -d mydb
# Run a Rails migration
docker compose exec web rails db:migrate
# Check connectivity from inside service
docker compose exec web curl -s http://internal-service:3000/health
docker compose run --rm <service_name> <command>
Examples:
# Run psql against a database in the compose network
docker compose run --rm db psql -U myuser -d mydb
# Run a one-off script with volumes and env set by compose
docker compose run --rm app python /app/script.py
Run commands from the directory with docker-compose.yml or specify:
docker compose -f /path/to/docker-compose.yml ps
# PostgreSQL - running service
docker compose exec db psql -U postgres -d mydb -c "SELECT * FROM users LIMIT 5;"
# PostgreSQL - no running service
docker compose run --rm db psql -U postgres -d mydb
# MySQL - running service
docker compose exec mysql mysql -u root -p mydb
# Redis - running service
docker compose exec redis redis-cli KEYS '*'
# Rails
docker compose exec web rails db:migrate
docker compose exec web rails db:seed
# Django
docker compose exec web python manage.py migrate
docker compose exec web python manage.py loaddata fixtures.json
# Node.js (Prisma)
docker compose exec web npx prisma migrate deploy
# Check DNS resolution inside service
docker compose exec web nslookup service_name
# Test connectivity to internal service
docker compose exec web curl -v http://internal-api:8080/health
# Check what ports are listening
docker compose exec web netstat -tlnp
# Get a shell in running service
docker compose exec web /bin/sh
docker compose exec web /bin/bash
# Get a shell in fresh service container
docker compose run --rm web /bin/sh
| Flag | Purpose |
|---|---|
-it | Interactive terminal (use for shells, psql, etc.) |
--rm | Remove container after exit (for docker compose run) |
-e VAR=value | Set environment variable (run only) |
-v host:container | Mount volume (run only) |
-w /path | Set working directory |
--user uid:gid | Run as specific user |
"Service not found": Check service name with docker compose ps
"Compose file not found": Run from directory containing docker-compose.yml or pass -f
"Command not found": The tool may not be installed in that service. Try a different service or add it to the image.
Permission denied: Try adding --user root or check volume mount permissions