Community코딩 & 개발github.com

mianhtsys/landingMod3

여러 Microsoft SQL Server 데이터베이스에 대해 읽기 전용 SQL 쿼리를 실행합니다. MSSQL/SQL Server 데이터베이스 쿼리, 스키마/테이블 탐색, SELECT 데이터 분석, 데이터베이스 내용 확인 시 사용하세요. 설명이 포함된 여러 데이터베이스 연결을 지원하여 지능적으로 자동 선택합니다. 모든 쓰기 작업(INSERT, UPDATE, DELETE, DROP 등)을 차단하여 안전하게 보호합니다.

landingMod3란 무엇인가요?

이 스킬은 여러 Microsoft SQL Server 데이터베이스에 대해 안전한 읽기 전용 쿼리를 실행할 수 있도록 설계된 AI 에이전트 도구입니다. 사용자가 데이터베이스 스키마를 탐색하고, SELECT 쿼리를 실행하여 데이터를 분석하며, 테이블 목록을 조회할 수 있습니다. 주요 특징은 모든 쓰기 작업(INSERT, UPDATE, DELETE, DROP 등)을 차단하는 강력한 안전 장치로, 실수로 인한 데이터 손상을 방지합니다. Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 사용할 수 있으며, JSON 설정 파일을 통해 여러 데이터베이스 연결을 구성하고 각 데이터베이스의 설명을 바탕으로 사용자 의도에 맞는 데이터베이스를 자동으로 선택합니다. 또한 TLS 암호화, 쿼리 타임아웃(30초), 최대 행 수 제한(10,000행), 컬럼 너비 제한(100자) 등의 추가 안전 기능을 제공하여 안정적인 운영을 지원합니다.

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mianhtsys/landingMod3/tree/HEAD/MODULO_3_DESARROLLO_AL_LADO_DEL_CLIENTE_Y_SERVIDOR_WEB/architecture-skills-framework/.agents/skills/mssql

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

MSSQL 읽기 전용 쿼리 스킬

구성된 Microsoft SQL Server 데이터베이스에 대해 안전하고 읽기 전용인 쿼리를 실행합니다.

요구 사항

  • Python 3.8+
  • pymssql: pip install -r requirements.txt

설정

스킬 디렉토리 또는 ~/.config/claude/mssql-connections.json에 connections.json을 생성하세요.

보안: 인증 정보가 포함되어 있으므로 파일 권한을 600으로 설정하세요:

chmod 600 connections.json
{
  "databases": [
    {
      "name": "production",
      "description": "Main app database - users, orders, transactions",
      "host": "db.example.com",
      "port": 1433,
      "database": "app_prod",
      "user": "readonly_user",
      "password": "your-password",
      "encrypt": true,
      "tds_version": "7.3"
    }
  ]
}

설정 필드

필드필수설명
name예데이터베이스 식별자 (대소문자 구분 안 함)
description예이 데이터베이스가 포함하는 데이터 (자동 선택에 사용됨)
host예데이터베이스 호스트명
port아니오포트 번호 (기본값: 1433)
database예데이터베이스 이름
user예사용자 이름
password예비밀번호
encrypt아니오TLS 암호화 활성화 (기본값: false)
tds_version아니오TDS 프로토콜 버전: 7.0, 7.1, 7.2, 7.3, 7.4 (기본값: 자동)

사용법

구성된 데이터베이스 목록 보기

python3 scripts/query.py --list

데이터베이스 쿼리 실행

python3 scripts/query.py --db production --query "SELECT TOP 10 * FROM users"

테이블 목록 보기

python3 scripts/query.py --db production --tables

스키마 보기

python3 scripts/query.py --db production --schema

결과 제한

python3 scripts/query.py --db production --query "SELECT * FROM orders" --limit 100

참고: MSSQL은 LIMIT 대신 TOP N을 사용합니다. --limit 플래그는 SELECT 뒤에 자동으로 TOP N을 삽입합니다.

데이터베이스 선택

사용자 의도와 데이터베이스 description을 매칭하세요:

사용자가 문의하는 내용다음을 포함하는 description 찾기
users, accountsusers, accounts, customers
orders, salesorders, transactions, sales
analytics, metricsanalytics, metrics, reports
logs, eventslogs, events, audit

명확하지 않으면 --list를 실행하고 사용자에게 어떤 데이터베이스를 사용할지 물어보세요.

안전 기능

  • 읽기 전용 강제: 쿼리 유효성 검사가 쓰기 작업을 차단합니다 (서버 측 보호를 위해 db_datareader 역할 사용자를 사용하세요)
  • 쿼리 유효성 검사: SELECT, SHOW, EXPLAIN, WITH, SP_HELP 쿼리만 허용됩니다
  • 단일 문장: 쿼리당 여러 문장은 거부됩니다
  • TLS 지원: 안전한 연결을 위한 구성 가능한 암호화
  • 쿼리 타임아웃: pymssql을 통해 30초 타임아웃 적용
  • 연결 타임아웃: 10초 로그인 타임아웃
  • 메모리 보호: OOM 방지를 위해 쿼리당 최대 10,000행
  • 컬럼 너비 제한: 읽기 쉬운 출력을 위해 컬럼당 최대 100자
  • 자격 증명 정리: 오류 메시지에 비밀번호가 노출되지 않음

문제 해결

오류해결 방법
설정 파일을 찾을 수 없음스킬 디렉토리에 connections.json 생성
인증 실패설정에서 사용자 이름/비밀번호 확인
연결 타임아웃호스트/포트 확인, 방화벽/VPN 점검
TDS 버전 오류"tds_version": "7.3" 또는 "7.4" 시도
암호화 오류Azure SQL의 경우 "encrypt": true 설정
권한 경고chmod 600 connections.json 실행

종료 코드

  • 0: 성공
  • 1: 오류 (설정 누락, 인증 실패, 잘못된 쿼리, 데이터베이스 오류)

워크플로우

  1. --list를 실행하여 사용 가능한 데이터베이스 표시
  2. 사용자 의도를 데이터베이스 설명과 매칭
  3. --tables 또는 --schema를 실행하여 구조 탐색
  4. 적절한 --limit와 함께 쿼리 실행 (자동으로 TOP N으로 변환)

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

mianhtsys/landingMod3

Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.

mianhtsys/landingMod3

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

mianhtsys/landingMod3

Diseña y compara alternativas arquitectónicas trazables a RF/RNF sin implementar código.

mianhtsys/landingMod3

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture for a new microservice, when refactoring a monolith to use bounded contexts, when implementing hexagonal or onion architecture patterns, or when debugging dependency cycles between application layers.

mianhtsys/landingMod3

Revisión adversarial de la arquitectura contra RF/RNF, detectando contradicciones, cobertura faltante y complejidad innecesaria.

mianhtsys/landingMod3

Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.

mianhtsys/landingMod3

>- Generate grounded-and-verified, engine-agnostic database documentation that reaches 100% parity with the real schema. Introspects the LIVE database as ground truth and cross-validates it against ORM models, migrations, generated types, seeds, and application queries, then proves completeness by diffing the docs back against the database. Produces ER diagrams (mermaid), per-table data dictionaries, and a machine-readable schema.json. Works with PostgreSQL, MySQL, SQL Server, and SQLite across any ORM (Prisma, TypeORM, Drizzle, Sequelize, Knex, Django, Rails) or raw SQL. Use when asked to document a database, produce an ERD or data dictionary, write db/schema docs, audit schema drift, or refresh existing DB docs.

mianhtsys/landingMod3

Compara estrategias de persistencia y motores de datos según consistencia, concurrencia, volumen, recuperación y operación.

mianhtsys/landingMod3

Design robust, scalable database schemas for SQL and NoSQL databases. Provides normalization guidelines, indexing strategies, migration patterns, constraint design, and performance optimization. Ensures data integrity, query performance, and maintainable data models.

mianhtsys/landingMod3

Consolida análisis especializados en una recomendación arquitectónica, matriz de decisión, ADR y plan de validación.

mianhtsys/landingMod3

Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.

mianhtsys/landingMod3

Build and maintain web frontends — component architecture, state management, API integration, responsive layout, client-side performance, and frontend testing patterns. Framework agnostic, focused on web frontend implementation. Do not use for backend service implementation, data engineering, or platform infrastructure work.

mianhtsys/landingMod3

Evalúa despliegue, contenedores, escalado, alta disponibilidad, observabilidad, backup, recuperación y CI/CD de forma proporcional.

mianhtsys/landingMod3

Generate and maintain OpenAPI 3.1 specifications from code, design-first specs, and validation patterns. Use when creating API documentation, generating SDKs, or ensuring API contract compliance.

mianhtsys/landingMod3

PHP 8.0+ development — XAMPP, RESTful APIs, PDO/MySQL/MariaDB, and authentication. Use when building PHP backends, creating API endpoints, configuring XAMPP, or integrating PHP with databases.

mianhtsys/landingMod3

Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features

mianhtsys/landingMod3

Analiza requisitos funcionales y no funcionales, reglas, restricciones, capacidad y ambigüedades antes de seleccionar tecnologías.

mianhtsys/landingMod3

Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.

mianhtsys/landingMod3

>- Use when designing or implementing software securely: define security requirements, threat-model a feature, choose secure defaults, design authentication and authorization, handle untrusted data and secrets, evaluate dependencies, design multi-tenant trust boundaries, or review security-sensitive changes. Use for prevention during requirements, design, implementation, and review; not for post-build security assessments or scanning an existing codebase.

mianhtsys/landingMod3

Revisa seguridad arquitectónica, identidad, autorización, secretos, APIs, auditoría, fraude y resiliencia antes de implementar.

관련 스킬