xsavikx/okf-skills

okf-mysql

MySQL connector that produces and ingests Open Knowledge Format (OKF) bundles from database schemas and table/column comments.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/xsavikx/okf-skills --skill okf-mysql

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

MySQL OKF Connector

This skill provides a Go-based CLI tool to convert MySQL database schemas and comments (table and column comments) into Open Knowledge Format (OKF) bundles, and synchronize comments back to a MySQL database from an OKF bundle.

When to Use

Use this skill when you need to:

  1. Extract table structures, column definitions, keys, and native MySQL comments from a schema into a portable OKF bundle.
  2. Synchronize business descriptions or documentation changes written in an OKF bundle back into native MySQL table and column comments.

Setup

The connector requires Go 1.24+:

bash
# Install the published binary (Go 1.24+) — no clone needed:
go install github.com/xSAVIKx/okf-skills/skills/okf-mysql@v0.1.0

# …or build from a clone of the repository:
cd skills/okf-mysql
go build -o okf-mysql .

How to Use

1. Produce an OKF Bundle

Extract database schema metadata and comments:

bash
./okf-mysql produce --host <host> --port <port> --user <user> --password <password> --db <database-name> --out <output-bundle-dir> [--tables <comma-separated-table-names>] [--sample <N>] [--profile]

2. Ingest / Synchronize an OKF Bundle

Synchronize table/column descriptions from the OKF bundle back into database comments:

bash
./okf-mysql ingest --host <host> --port <port> --user <user> --password <password> --db <database-name> --bundle <path-to-okf-bundle> [--sync]

Parameters:

  • --host (default localhost): MySQL host.
  • --port (default 3306): MySQL port.
  • --user (required): MySQL user.
  • --password (required): MySQL password. May also be supplied via the MYSQL_PASSWORD environment variable to keep secrets out of the command line.
  • --db (required): Target database schema.
  • --bundle (required for ingest): Path to the OKF bundle.
  • --out (required for produce): Path to output OKF bundle.
  • --tables (optional): Filter to extract only specific tables.
  • --sample <N> (optional): Embed up to N sample rows per table as a ## Sample section in each table doc (default 0 = none).
  • --profile (optional): Compute per-column statistics (non-null, null, distinct, min, max) and embed a ## Data Profile section.
  • --sync (optional for ingest): If provided, runs ALTER TABLE ... COMMENT = ... and MODIFY COLUMN ... COMMENT ... statements to synchronize descriptions.

3. Inspect the Schema (self-description)

Print a machine-readable JSON description of this skill's commands and flags (used by okf-mcp to expose the skill as an MCP tool):

bash
./okf-mysql schema

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills
xsavikx
커뮤니티

okf-csv

CSV connector that produces and ingests Open Knowledge Format (OKF) bundles from a directory of CSV files. Infers each file's column schema (integer/number/boolean/date/string) by sampling rows, optionally embeds a per-column data profile and sample rows, and syncs descriptions back to a .okf-metadata.yaml sidecar. Use when documenting or cataloging a folder of CSV/flat files, or capturing their inferred schema and stats as an OKF bundle. CGO-free, pure Go.

설치 수
1
GitHub Stars
34
업데이트
8월 30일
xsavikx
커뮤니티

okf-enrich

Guidance for an AI agent to enrich an Open Knowledge Format (OKF) bundle with high-quality concept descriptions using its own LLM — grounded in the bundle's schema, data profile, and samples — then optionally sync them back to the source. Use when an OKF bundle has missing, weak, or low-quality descriptions that should be improved before publishing or ingestion. Instructions-only; no binary required.

설치 수
1
GitHub Stars
34
업데이트
8월 30일
xsavikx
커뮤니티

okf-fs

Local filesystem connector that produces and ingests Open Knowledge Format (OKF) bundles documenting directory trees and file metadata, honoring .okfignore and .okf-metadata.yaml. Use when documenting or cataloging a local folder structure, or capturing filesystem metadata as an OKF bundle.

설치 수
1
GitHub Stars
34
업데이트
8월 30일
xsavikx
커뮤니티

okf-graphql

GraphQL connector that produces and ingests Open Knowledge Format (OKF) bundles from a GraphQL SDL document. Parses the schema into one concept per user-defined type (object/input/interface/enum/union) and per root operation (query/mutation/subscription field), links fields and operations to the types they reference as native relationship edges, and syncs descriptions back to a .okf-metadata.yaml sidecar. Use when documenting or cataloging a GraphQL API from its schema, with no live server. Pure

설치 수
1
GitHub Stars
34
업데이트
8월 30일