Przejdź do treści
Biblioteka skilli
Programowanie · Konwersja i formaty

sql-formatting

/sql-formatting

Formatuje SQL narzędziem GoSQLX, czyli ustala wcięcia, wielkość liter słów kluczowych i średniki w pliku .sql.

Repozytorium
gosqlx ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
28.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 28.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Formatuje SQL narzędziem GoSQLX, czyli ustala wcięcia, wielkość liter słów kluczowych i średniki w pliku .sql.

Argumenty

/sql-formatting [SQL string or path to .sql file]
Oryginalny opis (EN)

Format or pretty-print SQL with GoSQLX - consistent indentation, keyword casing and optional trailing semicolon. Use when the user asks to format, beautify, pretty-print, reindent or clean up SQL, or to make a .sql file consistent.

Jak działa

  1. Steps
  2. Fallback when the MCP tools are unavailable
Sekcje z nagłówków SKILL.md, w oryginale · 31 linii, 293 słów
Podgląd SKILL.md
---
name: sql-formatting
description: Format or pretty-print SQL with GoSQLX - consistent indentation, keyword casing and optional trailing semicolon. Use when the user asks to format, beautify, pretty-print, reindent or clean up SQL, or to make a .sql file consistent.
argument-hint: "[SQL string or path to .sql file]"
allowed-tools: mcp__plugin_gosqlx_gosqlx__format_sql mcp__plugin_gosqlx_gosqlx__validate_sql Read Bash(gosqlx format:*)
---

# SQL formatting with GoSQLX

Input: `$ARGUMENTS` - a SQL string or a path to a `.sql` file.

## Steps

1. Get the SQL (read the file if a path was given).
2. Call `format_sql` (`mcp__plugin_gosqlx_gosqlx__format_sql`) with:
   - `sql` (required)
   - `indent_size` - integer 0–16, default 2. `0` puts each statement on one line. Clauses always start at column 0; larger values only indent nested blocks such as CREATE TABLE column lists
   - `uppercase_keywords` - `true` upper-cases all keywords (`AND`, `IN`, `CASE`, ...) but not data type names such as `int`. The default `false` still upper-cases clause keywords (`SELECT`, `FROM`, `WHERE`, ...) and leaves others such as `and`/`or` as written; the MCP tool cannot lowercase keywords
   - `add_semicolon` - default `false`
3. If formatting fails, the SQL probably does not parse: call `validate_sql` and report the error instead of guessing a fix.
4. Show the formatted SQL in a fenced `sql` block. When the input was a file, write the result back only if the user asked you to change the file; otherwise show it.

Formatting is whitespace and keyword-case only - it must not change meaning. If the output appears to drop or alter anything (comments, hints, dialect syntax), say so and keep the original.

## Fallback when the MCP tools are unavailable

```sh
gosqlx format query.sql                 # print formatted SQL (keywords uppercased by default)
gosqlx format --indent 4 query.sql
gosqlx format --uppercase=false query.sql  # lowercase clause keywords (do not use --no-uppercase: it currently uppercases)
gosqlx format --check query.sql         # exit non-zero if the file needs formatting
gosqlx format -i query.sql              # rewrite in place - only when asked
echo "select a from b" | gosqlx format
```

Both upper-case clause keywords by default. For lowercase keywords use the CLI with `--uppercase=false`.

Wersje

W bazie nie ma innych skilli o nazwie sql-formatting.

Migawka bazy z 28.10.2026 · wersja paczki 3447d556965b (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100sql-linting
    Sprawdza styl SQL narzędziem GoSQLX i wyjaśnia reguły od L001 do L030, w tym te, które da się poprawić automatycznie.
  • 100format
    Formatuje pliki SQL formatterem syntaqlite, gdy trzeba sformatować lub uporządkować kod SQL.
  • 100sql-analysis
    Sprawdza zapytanie SQL lub plik .sql pod kątem składni, wzorców ryzyka i stylu, a potem wyjaśnia, co robi.
  • 95sql-formatter
    Formatuje kod SQL, poprawia czytelność zapytań i pracuje na plikach .sql, także w dialekcie Oracle SQL.
  • 100pure-code-style
    Formatuje plik .pure lub fragment kodu Pure do jednolitego stylu, w tym wcięcia dwóch spacji i jeden parametr na linię, bez zmiany tokenów i logiki.
  • 100sql-guide
    Ustala zasady pracy z SQL i migracjami baz, czyli wzorce zapytań, indeksy, transakcje i standardy migracji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.