arctrls/agent-workbench/mysql-read

Claude Code and agent skill by arctrls/agent-workbench

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Run read-only MySQL queries against a project-local Docker MySQL or the dev Aurora database. Use when the user wants quick schema inspection, SQL lookups, NATION/STATE mapping checks, or direct read-only validation without relying on MCP.

Install

npx vskill@latest install arctrls/agent-workbench/mysql-read

SKILL.md

The same SKILL.md was published earlier as arctrls/agent-workbench/mysql-read.

MySQL Read

Use the bundled shell script for read-only MySQL access. Always choose the database target deliberately before running a query.

Default targets:

  • local: the current project's local Docker MySQL, reached through the local mysql client
  • dev: the shared DEV Aurora read endpoint, reached through the local mysql client after loading credentials from AWS Secrets Manager

The script loads the workbench per-user environment file before applying process environment and CLI overrides. Use AGENT_WORKBENCH_ENV_FILE to select a different file. Dev connections require explicit host, secret ARN, and region; there are no company-specific defaults. Resolve the script from this skill's installed path, not a fixed Codex home.

Workflow

  1. Decide the target:
  • Use local only for local Docker data seeded or generated on this machine.
  • Use dev only for shared development data in Aurora after aws sso login.
  • If the user says "local", "Docker", "compose", "seeded data", "my machine", or asks to validate a local change, use local.
  • If the user says "DEV", "development DB", "Aurora", "shared data", "real dev data", or asks to compare against the deployed development environment, use dev.
  • If the request does not identify the data source and the answer would differ between local and DEV, ask one concise clarifying question before querying.
  1. Keep queries read-only.
  2. Run the script instead of hand-assembling credentials inline.
  3. Summarize the result briefly and include the important rows or counts in the reply.
  4. Mention which target was queried (local or dev) in the reply when the distinction matters.

Local Target Resolution

For local, do not assume a Thomas-specific container name, database, user, or password. Projects differ.

Resolution order:

  1. Use explicit flags or env vars, such as --host, --port, --user, --password, --database, or MYSQL_READ_LOCAL_*.
  2. Inspect the current Spring Boot project's local datasource config under the working directory, especially application-local.properties, application-local.yml, or application-local.yaml.
  3. If no Spring Boot local datasource is found, inspect running Docker containers for a MySQL/MariaDB container with host port 3306/tcp published.
  4. Fall back to 127.0.0.1:3306 with user/pass only as a last resort.

Use --project-dir <path> or MYSQL_READ_PROJECT_DIR when running the script from outside the Spring Boot project.

Commands

bash
<resolved-skill-directory>/scripts/mysql-read.sh --target local --database <database> --sql "SELECT 1"
bash
<resolved-skill-directory>/scripts/mysql-read.sh --target dev --database <database> --sql "SELECT NATION_NO, COUNTRY_ID, DEF_NATION_NM FROM NATION WHERE COUNTRY_ID IN ('US','CA')"

Behavior

  • Only SELECT, SHOW, DESCRIBE, DESC, EXPLAIN, and WITH ... SELECT queries are allowed.
  • local resolves connection details from the current project before falling back to Docker port discovery:
  • Spring Boot local datasource URL, username, password
  • running Docker MySQL/MariaDB host port mapping
  • final fallback 127.0.0.1:3306, user user, password pass
  • dev defaults to:
  • AWS profile default
  • region from MYSQL_READ_DEV_REGION, AWS_REGION, or --region
  • host from MYSQL_READ_DEV_HOST or --host
  • secret ARN from MYSQL_READ_DEV_SECRET_ARN or --secret-arn
  • Override defaults with flags or env vars when needed.
  • Do not use Docker as a MySQL client shim. The script assumes the local mysql client is installed and uses it for both targets.
  • local never reads AWS Secrets Manager. dev never depends on a local Docker container.

Common Cases

  • Find a nation number:
  • --sql "SELECT NATION_NO, COUNTRY_ID, DEF_NATION_NM FROM NATION WHERE COUNTRY_ID = 'US'"
  • Check state code mapping:
  • --sql "SELECT NATION_NO, STATE_NM, STATE_CD FROM STATE WHERE STATE_NM = 'New York'"
  • Inspect schema:
  • --sql "SHOW COLUMNS FROM STATE"

Prerequisites

  • mysql
  • aws

If local is used, run the command from the Spring Boot project directory, or pass --project-dir. If dev is used, run aws sso login first.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
Repository forks
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/arctrls/agent-workbench/mysql-read/badge)](https://verified-skill.com/skills/arctrls/agent-workbench/mysql-read)

Something wrong with this skill or its page? Tell us.