본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

sql-query-generator

cerbug45 제작

CLI Utilities
1.0kclawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Generate secure SQL queries with validation, pagination helpers, risk analysis, and audit-focused safeguards.

설명

이 스킬이 하는 일

Converts natural language descriptions into SQL queries across six database systems: PostgreSQL, MySQL, SQLite, SQL Server, Oracle, and MariaDB. All queries use parameterized inputs by default, with built-in injection detection, input validation, rate limiting, and audit logging.

It enforces parameterized queries and injection detection at generation time, catching security issues before they reach a database.

사용 시점

  • Translating a business question into a JOIN query without writing SQL manually
  • Generating paginated report queries for admin dashboards
  • Building parameterized search queries for user-facing web forms
  • Auditing database access logs for suspicious query patterns
  • Creating data migration scripts with validated INSERT and UPDATE statements

예시 워크플로

입력

User asks: Show all customers who spent over $500 in Q1 2024

에이전트
  1. 1

    Parse natural language to identify required tables, filter conditions, and aggregation logic

  2. 2

    Generate a parameterized SQL query using JOIN and SUM with placeholders for the date range and spending threshold

  3. 3

    Run injection pattern detection on any dynamic identifiers

  4. 4

    Append index recommendations and a LIMIT clause for large datasets

  5. 5

    Return the formatted query, parameter list, expected result structure, and a language-specific execution example

출력

A complete parameterized SQL query with documented parameters, performance notes, and a psycopg2 or mysql-connector code snippet for immediate use

설치

clawhub install cerbug45/sql-query-generator

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크