/caddis-extras:db-testingfrom caddis-extras
Test, debug, and validate database connectivity and queries. Use when diagnosing connection errors, testing configurations, or validating queries before deployment.
Ships in caddis-extras. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Specialized skill for testing, debugging, and validating database connectivity and queries.
# Test if server is reachable
ping <DB_HOST>
# Test database port
# SQL Server: 1433, PostgreSQL: 5432, MySQL: 3306
telnet <DB_HOST> <DB_PORT>
Check environment configuration:
DB_HOST=<server_name>
DB_NAME=<database_name>
DB_USER=<username>
DB_PASSWORD=<password>
DB_DRIVER=<driver_name>
# Generic connection test pattern
import os
try:
conn = create_connection(
host=os.getenv("DB_HOST"),
database=os.getenv("DB_NAME"),
user=os.getenv("DB_USER"),
password=os.getenv("DB_PASSWORD"),
)
print("Connection successful!")
cursor = conn.cursor()
cursor.execute("SELECT 1")
print(f"Query test: {cursor.fetchone()}")
conn.close()
except Exception as e:
print(f"Connection failed: {e}")
query = "SELECT TOP 5 * FROM <table_name>" # Adjust syntax for your DB
df = pd.read_sql(query, conn)
print(f"Returned {len(df)} rows")
print(df.columns.tolist())
| Error | Cause | Solution |
|---|---|---|
| Connection refused | Server unreachable | Check network/VPN, firewall rules |
| Login failed | Auth issue | Verify credentials, check auth mode |
| Invalid connection string | Malformed config | Review driver docs for correct format |
| Certificate error | SSL validation | Configure trust settings for your DB |
| Driver not found | Missing driver | Install appropriate database driver |
## Database Connection Test Results
**Server**: `<server>`
**Database**: `<database>`
**Auth Mode**: <auth_type>
| Test | Status | Details |
|------|--------|---------|
| Network ping | Pass/Fail | Response time |
| Port check | Pass/Fail | TCP connection |
| DB connection | Pass/Fail | Driver info |
| Sample query | Pass/Fail | Row count |
**Conclusion**: [Summary]
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub saajunaid/caddis-plugin --plugin caddis-extras81 skills in this plugin
/adopt-rbacPointer to the org's RBAC adoption skill. Use for "add RBAC to this app" or "adopt rbac-kit"./agent-md-refactorRefactor bloated agent instruction files (AGENTS.md, .cursorrules, .github/ files) into linked, progressively disclosed docs./agent-orchestrationBlueprint for orchestrating the agent pipeline from spec to planning, implementation, testing and debugging, plus when a second model is worth it, the intent→model map and cost guardrails.