MySQLClaw

# paradoxfuzzle/custom-mysql

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "MySQLClaw" with this command: npx skills add paradoxfuzzle/custom-mysql

paradoxfuzzle/custom-mysql

Overview

Security-hardened MySQL profile storage with capability bounding for OpenClaw. Tracks interactions, relationships, context, skill usage, and notes for users via the custom_mysql.sh tool.

Version

1.1.5 – 2026-05-05

Capabilities

  • MySQL read/write operations only (no external APIs, crypto, or wallets)
  • Uses .env files for credentials
  • All SQL routed through sql_safe_exec.sh for safety
  • query command is SELECT-only
  • DML requires interactive confirmation (no non-interactive bypass)
  • Table allowlist enforced for all write operations

Configuration

OptionDefaultNotes
MYSQL_HOSTlocalhostMySQL server address
MYSQL_USERmysqlclawRead/write account (least privilege)
MYSQL_PASSWORDrequiredStore in .env or vault
MYSQL_PORT3306Standard MySQL port
DATABASEmysqlclawTarget database

Installation

# Install ClawHub CLI if not installed
npm i -g clawhub

# Create .env file with credentials
cat > .env <<'EOF'
MYSQL_USER=mysqlclaw
MYSQL_PASSWORD=your_secure_password
MYSQL_HOST=localhost
MYSQL_PORT=3306
EOF'
chmod 600 .env

# Apply schema with setup wizard
cd ~/.openclaw/workspace/skills/clawhub/paradoxfuzzle/custom-mysql
./setup_wizard.sh

Usage

# Query
custom_mysql.sh query "SELECT * FROM users LIMIT 5;"

# Execute script
custom_mysql.sh exec --file /path/to/scripts.sql

# Convenience commands:
custom_mysql.sh insert_interaction <uid> <dir> <topic> <summary> [sentiment]
custom_mysql.sh insert_context <uid> <key> <value> [expires_at]``

Security

  • Credentials stored in secure .env files (600 permissions)
  • No dangerous SQL allowed via sql_safe_exec.sh
  • query command is SELECT-only (no DML through query)
  • DML (INSERT/UPDATE/DELETE/REPLACE) requires interactive user confirmation
  • Table allowlist: only approved mysqlclaw tables can be written to
  • Dedicated least-privilege MySQL user required (no root, no cross-database access)
  • Data retention: 30-day default TTL on snapshots and interactions
  • Full user data deletion supported across all tables
  • Foreign key constraints prevent orphaned data

Change Log

[v1.1.1] – 2026-05-05

  • Security fix: Removed hardcoded credentials, fixed SQL injection, and added user tracking tables.
  • Added more detailed changelog entries for v1.1.0.

[v1.1.0] – 2026-05-05

  • Added 5 new tracking tables (user_interactions, user_relationships, ...)
  • Enriched users table with display name/avatar/status fields
  • DML requires interactive confirmation (no non-interactive bypass)
  • .env file support for credential persistence

Visit https://clawhub.ai/paradoxfuzzle/custom-mysql for live updates.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

SQL Data Analyst

Natural language to SQL. Ask questions about your data in plain English, get queries, results, and explanations. Supports SQLite, PostgreSQL, and MySQL. Impo...

Registry SourceRecently Updated
4891Profile unavailable
General

SQL Guard Copilot

Simplify SQL querying and troubleshooting for MySQL, PostgreSQL, and SQLite. Use when users ask to inspect schema, convert natural language to SQL, debug SQL...

Registry SourceRecently Updated
3460Profile unavailable
General

Database Engineering Mastery

Database Engineering Mastery covers schema design, indexing, query optimization, and migration for PostgreSQL, MySQL, SQLite, supporting OLTP/OLAP workloads.

Registry SourceRecently Updated
7851Profile unavailable
General

DBCheck 数据库巡检

执行 MySQL、PostgreSQL、Oracle、SQL Server、DM8、TiDB 数据库健康巡检,内置 130+ 条增强风险分析规则 + 慢查询深度分析引擎 + 本地 Ollama AI 大模型诊断建议,一键生成专业 Word 巡检报告。适用于 DBA 和运维人员快速掌握数据库运行状况、排查风险。项目...

Registry SourceRecently Updated
3370Profile unavailable