Przejdź do treści
Biblioteka skilli
Dane i analityka · Nauka i wyjaśnianie

sql-to-business-logic

/sql-to-business-logic

Tłumaczy zapytania SQL na logikę biznesową prostym językiem: dokumentowanie zapytań, wyjaśnianie analiz nietechnicznym interesariuszom, review poprawności i katalog zapytań.

Licencja
MIT
Ostatnia zmiana repozytorium
25.09.2026

Ocena i bezpieczeństwo

90/ 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ść25 / 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
4
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

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

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/sql_explainer.py

Co robi i kiedy

Tłumaczy zapytania SQL na logikę biznesową prostym językiem: dokumentowanie zapytań, wyjaśnianie analiz nietechnicznym interesariuszom, review poprawności i katalog zapytań.

Oryginalny opis (EN)

Translate SQL queries into plain language business logic. Use when documenting queries, explaining analysis to non-technical stakeholders, code reviewing for correctness, or building a query catalog.

Jak działa

SKILL.md bez nagłówków drugiego poziomu · 30 linii, 345 słów

Podgląd SKILL.md
---
name: sql-to-business-logic
description: Translate SQL queries into plain language business logic. Use when documenting queries, explaining analysis to non-technical stakeholders, code reviewing for correctness, or building a query catalog.
---

# SQL to Business Logic Translator

# When to use
- A stakeholder asks "what exactly does this query calculate?"
- Documenting a query library or a dbt model for non-technical readers
- Reviewing a query for correctness by comparing its logic to the business requirement
- Onboarding new analysts to existing SQL patterns
- Translating legacy undocumented queries before refactoring

# Process
1. **Receive the query and context** — obtain the SQL and the business question it answers. Also collect any schema notes (what the key tables and columns represent in business terms).
2. **Translate the FROM/JOIN structure** — describe in plain language which data sources are combined and what type of join is used (inner keeps only matches; left keeps all rows from the left side). Note if the join type seems inconsistent with the stated purpose.
3. **Translate WHERE filters** — list each filter condition as a business rule in plain language (e.g., `status = 'completed'` → "only includes orders that have been paid and fulfilled").
4. **Explain GROUP BY and aggregations** — describe what each aggregation computes and at what grain. Use `scripts/sql_explainer.py` to automate a first-pass structural parse.
5. **Summarise output columns** — for each output column, state its business meaning and any edge cases (nulls, rounding, currency units).
6. **Flag issues and write validation questions** — identify potential problems (implicit null propagation, unexpected fan-out, hardcoded dates). Generate 3–5 questions the query author should confirm. Use `assets/query_documentation_template.md` to record the full translation.

# Inputs the skill needs
- The complete SQL query (SELECT through ORDER BY)
- The business question the query is intended to answer
- Table and column descriptions (or a data catalog entry)
- Any business rules for key status values, date handling, or currency
- The intended output: who reads the result and for what decision

# Output
- `scripts/sql_explainer.py` — parses a SQL query and generates a structured plain-language explanation
- `assets/query_documentation_template.md` — completed translation covering purpose, step-by-step logic, output columns, business rules, and validation questions
- Optionally: a flowchart representation of the query logic
Pliki w paczce (4)
  • SKILL.md 3 KB
  • assets/query_documentation_template.md 2 KB
  • references/sql_pattern_library.md 4 KB
  • scripts/sql_explainer.py 6 KB

Wersje

W bazie nie ma innych skilli o nazwie sql-to-business-logic.

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 13.11.2026 · wersja paczki ae7b1e5ca094 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

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

Podobne skille

  • 100sql-business-logic-review
    Przegląda SQL wpływający na raporty, metryki, transformacje i logikę finansową lub produktową pod kątem dryfu znaczenia biznesowego, gdy zapytanie nadal działa.
  • 90sql-expert
    Generuje, sprawdza i optymalizuje zapytania ClickHouse SQL dla danych i analiz.
  • 95sql-queries
    Tłumaczy pytania biznesowe na zapytania SQL i buduje raporty danych w BigQuery, PostgreSQL oraz MySQL.
  • 100optimizing-sql-queries
    Analizuje wydajność zapytań SQL i pomaga je optymalizować z użyciem automatyzacji.
  • 100query-optimizer
    Optymalizuje zapytania SQL: indeksy, przepisywanie zapytań i analizę planu wykonania, gdy zapytania są wolne.
  • 100optimizing-sql-queries
    Analizuje wydajność zapytań SQL, aby przyspieszyć ich wykonywanie, wspierając się automatyzacją.

Uwagi i zgłoszenia

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