कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

db-readonly

reed1898 द्वारा

Browser & Automation
835clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Run safe read-only queries against MySQL or PostgreSQL for data inspection, reporting, and troubleshooting.

विवरण

यह स्किल क्या करती है

Runs read-only queries against PostgreSQL or MySQL databases. Supports SELECT, WITH, and EXPLAIN statements, and can export results to CSV, TSV, or JSON. Blocks INSERT, UPDATE, DELETE, DROP, and ALTER to prevent accidental data modification.

Enforces read-only access at the skill level, so exploratory database work can't accidentally modify or delete data.

इसे कब इस्तेमाल करें

  • Inspecting table schemas before writing a migration
  • Counting rows to verify a data import completed
  • Sampling user records to debug a reported issue
  • Exporting query results to CSV for a stakeholder report
  • Running EXPLAIN on a slow query to diagnose performance

उदाहरण वर्कफ़्लो

इनपुट

User asks: Show me the 10 most recent orders with their totals

एजेंट
  1. 1

    Reads PGHOST, PGDATABASE, PGUSER, PGPASSWORD from environment

  2. 2

    Constructs a SELECT query with ORDER BY created_at DESC and LIMIT 10

  3. 3

    Runs scripts/db_readonly.sh postgres with the query

  4. 4

    Returns the result rows to the user

आउटपुट

A table of 10 order rows showing id, created_at, and total columns

आवश्यकताएँ

  • PostgreSQL connection environment variables: PGHOST, PGDATABASE, PGUSER, PGPASSWORD
  • MySQL connection environment variables: MYSQL_HOST, MYSQL_DATABASE, MYSQL_USER, MYSQL_PASSWORD

इंस्टॉलेशन

clawhub install reed1898/db-readonly

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक