whodb
Skill198 starsChanged 10 months agoMITView on GitHub
Database operations including querying, schema exploration, and data analysis. Activates for tasks involving PostgreSQL, MySQL, MariaDB, SQLite, MongoDB, Redis, Elasticsearch, or ClickHouse databases.
In this repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agent-sql-proSkill
- data-analysisSkill
- docs-managementSkill
- echarts_chartSkill
- frontend-designSkill
- meta_agentSkill
- minio-uploaderSkill
- planning-with-filesSkill
- pptxSkill
- smart_query_analyzerSkill
- todo-masterSkill
- xagentSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
When the WhoDB MCP server is available, use these tools directly:
- Distinctive: line 63
If MCP tools are unavailable, use the CLI directly via Bash:
- Distinctive: line 114
Write targeted queries with appropriate filters
- Distinctive: line 115
Always use LIMIT for exploratory queries
- Distinctive: line 120
Always explore schema first: before writing queries
- Distinctive: line 125
Never expose credentials: - use connection names, not connection strings
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
WhoDB Database Assistant
You have access to WhoDB for database operations. Use these tools and commands to help users with database tasks.
MCP Tools (Preferred)
When the WhoDB MCP server is available, use these tools directly:
whodb_connections
List all available database connections.
No parameters required.
Returns: List of connection names with type and source (env/saved).whodb_query
Execute SQL queries against a database.
Parameters:
- connection: Connection name (optional if only one connection exists)
- query: SQL query to execute
Example: whodb_query(connection="mydb", query="SELECT * FROM users LIMIT 10")whodb_schemas
List all schemas in a database.
Parameters:
- connection: Connection name (optional if only one connection exists)
Example: whodb_schemas(connection="mydb")whodb_tables
List all tables in a schema.
Parameters:
- connection: Connection name (optional if only one connection exists)
- schema: Schema name (optional, uses default if not specified)
Example: whodb_tables(connection="mydb", schema="public")whodb_columns
Describe columns in a table.
Parameters:
- connection: Connection name (optional if only one connection exists)
- table: Table name (required)
- schema: Schema name (optional)
Example: whodb_columns(connection="mydb", table="users")CLI Commands (Fallback)
If MCP tools are unavailable, use the CLI directly via Bash:
Query Execution
whodb-cli query "SELECT * FROM users LIMIT 10" --connection mydb --format jsonSchema Discovery
# List schemas
whodb-cli schemas --connection mydb --format json
# List tables
whodb-cli tables --connection mydb --schema public --format json
# Describe columns
whodb-cli columns --connection mydb --table users --format jsonConnection Management
# List connections
whodb-cli connections list --format json
# Test connection
whodb-cli connections test mydb
# Add new connection (interactive)
whodb-cli connections add --name mydb --type Postgres --host localhost --database mydbData Export
# Export to CSV
whodb-cli export --connection mydb --table users --output users.csv
# Export query results
whodb-cli export --connection mydb --query "SELECT * FROM orders" --output orders.xlsxWorkflow Examples
Explore a New Database
- List connections:
whodb_connections - List schemas:
whodb_schemas(connection="name") - List tables:
whodb_tables(connection="name", schema="public") - Describe table:
whodb_columns(connection="name", table="users") - Sample data:
whodb_query(connection="name", query="SELECT * FROM users LIMIT 5")
Answer Data Questions
- Understand the schema first - check table structure
- Write targeted queries with appropriate filters
- Always use LIMIT for exploratory queries
- Present results in a clear, readable format
Best Practices
- Always explore schema first before writing queries
- Use LIMIT for exploratory queries to avoid overwhelming output
- Prefer specific columns over SELECT * for clarity
- Check foreign keys via whodb_columns to understand relationships
- Use JSON format (--format json) when parsing output programmatically
- Never expose credentials - use connection names, not connection strings
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

