arctrls/agent-workbench/mysql-read
Claude Code and agent skill by arctrls/agent-workbench
- community
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-readSKILL.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 localmysqlclientdev: the shared DEV Aurora read endpoint, reached through the localmysqlclient 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
- Decide the target:
- Use
localonly for local Docker data seeded or generated on this machine. - Use
devonly for shared development data in Aurora afteraws 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.
- Keep queries read-only.
- Run the script instead of hand-assembling credentials inline.
- Summarize the result briefly and include the important rows or counts in the reply.
- Mention which target was queried (
localordev) 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:
- Use explicit flags or env vars, such as
--host,--port,--user,--password,--database, orMYSQL_READ_LOCAL_*. - Inspect the current Spring Boot project's local datasource config under the working directory, especially
application-local.properties,application-local.yml, orapplication-local.yaml. - If no Spring Boot local datasource is found, inspect running Docker containers for a MySQL/MariaDB container with host port
3306/tcppublished. - Fall back to
127.0.0.1:3306withuser/passonly as a last resort.
Use --project-dir <path> or MYSQL_READ_PROJECT_DIR when running the script from outside the Spring Boot project.
Commands
Behavior
- Only
SELECT,SHOW,DESCRIBE,DESC,EXPLAIN, andWITH ... SELECTqueries are allowed. localresolves 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, useruser, passwordpass devdefaults to:- AWS profile
default - region from
MYSQL_READ_DEV_REGION,AWS_REGION, or--region - host from
MYSQL_READ_DEV_HOSTor--host - secret ARN from
MYSQL_READ_DEV_SECRET_ARNor--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
mysqlclient is installed and uses it for both targets. localnever reads AWS Secrets Manager.devnever 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
mysqlaws
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
- SKILL.md in the repositoryCheckingcodex/skills/mysql-read/SKILL.md
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
[](https://verified-skill.com/skills/arctrls/agent-workbench/mysql-read)