extract-json
/extract-json
Wyciąga z wolnego tekstu wskazane pola do obiektu JSON według schematu, na przykład dane kontaktowe lub zamówienia.
- Autor
- zerogpu ↗
- Repozytorium
- zerogpu-router ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 23.09.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 23.09.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wyciąga z wolnego tekstu wskazane pola do obiektu JSON według schematu, na przykład dane kontaktowe lub zamówienia.
Argumenty
/extract-json <text> -s '<json schema>
Oryginalny opis (EN)
Schema-driven structured JSON extraction (gliner2-base-v1). Use when the user wants to pull specific named fields out of free text into a JSON object — contact info, invoice details, order data, profile attributes — defined by a per-field type/description schema.
Jak działa
SKILL.md bez nagłówków drugiego poziomu · 21 linii, 199 słów
Podgląd SKILL.md
---
name: extract-json
description: Schema-driven structured JSON extraction (gliner2-base-v1). Use when the user wants to pull specific named fields out of free text into a JSON object — contact info, invoice details, order data, profile attributes — defined by a per-field type/description schema.
argument-hint: "<text> -s '<json schema>'"
allowed-tools: Bash(zerogpu chat_completions *)
---
Run structured JSON extraction. The request below holds the source text and the fields to extract, given as `-s '<json>'` or in plain words.
Run this with the Bash tool, putting the schema in `--metadata` and pasting the text into the heredoc verbatim — no escaping, the quoted heredoc handles every shell metacharacter, newline, quote, and paren:
```bash
zerogpu chat_completions -m gliner2-base-v1 --metadata '{"usecase":"json","schema":{"contact":["name::str::Full name","email::str::Email address","phone::str::Phone number"]}}' <<'ZGPU_END_OF_INPUT'
<the source text, verbatim>
ZGPU_END_OF_INPUT
```
- `"usecase":"json"` is required exactly as written; the API rejects the request without it.
- `schema` maps each group to its fields, and each field is `name::type::description`. If the request names fields in plain words, build the schema from them.
- `--metadata` is single-quoted JSON, so write any `'` inside a description as `'\''`.
Output is a JSON object whose `data` holds the extracted fields, keyed by group.
Savings note: only if the command output literally contains a line starting with `💰 ZeroGPU savings`, append that exact line, unchanged, as the last line of your reply. If no such line is present, say nothing about savings and do not mention or suggest `/zerogpu-router:cost-savings` — this note is intentionally occasional, not shown every time.
Request: $ARGUMENTS
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · zerogpu/zerogpu-router | 92 | MIT |
| zerogpu/zerogpu-router | 92 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki f634ffb07db1 (skrót SHA-256 całej paczki)
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100n8n-structured-extraction
Wyciąga lub klasyfikuje dane ustrukturyzowane z tekstu i dokumentów w n8n za pomocą LLM i schematu JSON, np. z faktur, umów i maili. - 100crw-extract
Wyciąga z jednej lub wielu stron typowany obiekt JSON zgodny ze schematem JSON za pomocą fastCRW, na przykład cenę, dostępność czy listę ofert pracy. - 100json-tools
Wyszukuje, filtruje, przekształca i waliduje JSON za pomocą jq lub Pythona, na przykład wyciąga pola z odpowiedzi API albo formatuje dane. - 100generate-data-schema
Buduje plik JSON ze schematem ekstrakcji danych, który wskazuje ScrapeOps, jakie pola pobierać ze stron, także na zlecenie innych skilli. - 95firecrawl-agent
Wyciąga ze złożonych serwisów ustrukturyzowany JSON zgodny ze schematem, na przykład cenniki, listy produktów czy katalogi. - 92extract-entities
Wyciąga nazwane encje o własnych etykietach z tekstu, na przykład osoby, organizacje, lokalizacje czy daty.