Przejdź do treści
Biblioteka skilli
Dane i analityka · Integracja z narzędziem

dataspoke-ingestion

/dataspoke-ingestion

Zarządza źródłami ingestii DataSpoke: lista i podgląd źródeł, tworzenie i edycja, uruchomienia próbne i właściwe, historia przebiegów, wyemitowane zbiory i koszyk niezarządzany.

Licencja
Apache-2.0
Ostatnia zmiana repozytorium
05.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 05.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

Zarządza źródłami ingestii DataSpoke: lista i podgląd źródeł, tworzenie i edycja, uruchomienia próbne i właściwe, historia przebiegów, wyemitowane zbiory i koszyk niezarządzany.

Wyzwalacze z opisu

register/check ingestionis this dataset ingestedhow do I add a new data sourcewhy isnrun this ingestion source

Argumenty

/dataspoke-ingestion [question or action]
Oryginalny opis (EN)

Manage DataSpoke ingestion sources (UC1) on a deployed instance — list and inspect sources, create or edit ACTIVE_CUSTOM_MANAGED and PASSIVE sources, trigger dry-run and real extractor runs, and review run history, emitted datasets, and the unmanaged bucket. Triggers on "register/check ingestion", "is this dataset ingested", "how do I add a new data source", "why isn't this table showing up in DataSpoke", "run this ingestion source", and the equivalent phrasing in the user's own working language. Answers questions and, on request, writes and fires the API calls.

Jak działa

  1. Purpose
  2. Read the contract before authoring a body
  3. Source modes
  4. Capabilities → routes
  5. Operating rules
  6. Reading a run report
Sekcje z nagłówków SKILL.md, w oryginale · 98 linii, 810 słów
Podgląd SKILL.md
---
name: dataspoke-ingestion
description: Manage DataSpoke ingestion sources (UC1) on a deployed instance — list and inspect sources, create or edit ACTIVE_CUSTOM_MANAGED and PASSIVE sources, trigger dry-run and real extractor runs, and review run history, emitted datasets, and the unmanaged bucket. Triggers on "register/check ingestion", "is this dataset ingested", "how do I add a new data source", "why isn't this table showing up in DataSpoke", "run this ingestion source", and the equivalent phrasing in the user's own working language. Answers questions and, on request, writes and fires the API calls.
argument-hint: "[question or action]"
allowed-tools: Read, Write, Bash(dataspoke-api *), Bash(dataspoke-schema *), AskUserQuestion
---

## Purpose

Drive Ingestion Control (UC1) through the public API. Acts as a question-answerer about how
ingestion works and, when the user asks, an API writer/launcher. Every call goes through
`dataspoke-api`; if it reports no access, send the user to `/dataspoke:dataspoke-access` first.

## Read the contract before authoring a body

The tables below cover intent → route. For exact **request and response shapes** — field names,
required fields, enums, nested recipe structure — read the deployment's own OpenAPI rather than
guessing or working from memory:

```bash
dataspoke-schema ingestion/sources --list     # discover operations, one line each
dataspoke-schema ingestion/sources            # full schema for those operations
```

Do this before writing any `POST`/`PUT`/`PATCH` body — the source body is the most detailed shape
in the plugin, and `CreateIngestionSourceRequest` documents every field including the recipe
structure and the schedule tiers. Narrow the fragment to keep the output small
(`dataspoke-schema 'sources/{id}/method/run'`). `/redoc` is the same document rendered for
**humans** — hand that URL to the user; use `dataspoke-schema` yourself.

## Source modes

- **`DATAHUB_MANAGED`** — synced from DataHub; read-only here (cannot be authored/edited).
- **`ACTIVE_CUSTOM_MANAGED`** — DataSpoke-owned extractor with a recipe + schedule; runnable.
- **`PASSIVE`** — an external ingestor with a declared scope; observed, not run by DataSpoke.

## Capabilities → routes

| Intent | Call |
|--------|------|
| List sources (optionally `?mode=…`) | `dataspoke-api GET /spoke/ingestion/sources` |
| Inspect one source | `dataspoke-api GET /spoke/ingestion/sources/{id}` |
| Create a source | `dataspoke-api --confirm POST /spoke/ingestion/sources @PATH` |
| Replace / update | `dataspoke-api --confirm PUT|PATCH /spoke/ingestion/sources/{id} @PATH` |
| Delete a source | `dataspoke-api --confirm DELETE /spoke/ingestion/sources/{id}` |
| Dry-run (connection check, no writes) | `dataspoke-api --confirm POST '/spoke/ingestion/sources/{id}/method/run?dry_run=true' '{}'` |
| Real run | `dataspoke-api --confirm POST /spoke/ingestion/sources/{id}/method/run '{}'` |
| Run / event history | `dataspoke-api GET /spoke/ingestion/sources/{id}/event` |
| Datasets covered by a source | `dataspoke-api GET /spoke/ingestion/sources/{id}/datasets` |
| Datasets covered by no source | `dataspoke-api GET /spoke/ingestion/unmanaged` |
| Available credential refs (Editor+) | `dataspoke-api GET /spoke/ingestion/secrets` |
| Reverse lookup for a dataset | `dataspoke-api GET /spoke/common/data/{urn}/attr/ingestion` |

`@PATH` writes the verified JSON to a scratch file with the `Write` tool and passes it by
reference — the recipe body is the most detailed shape in the plugin (nested, multi-field), and
`@PATH` avoids shell-quoting mistakes a literal argument would invite.

Every list route is paginated — **`limit` defaults to 20** (cap 1000), with `offset` and `sort`.
Never conclude "there are only N sources" from an unpaged first page; check `total_count`. The
`sources` list omits the internal DataHub CLI wrapper sources entirely, so `?mode=DATAHUB_MANAGED`
returns regular synced sources only.

Row shapes worth knowing: `…/datasets` rows carry `authority` + `derivation`; `…/event` rows
carry a derived `wrapper: bool` (`true` when the event originated on a linked internal wrapper
rather than the source itself); `/secrets` rows are `{ref, secret_name, key}` and **never**
include values. `/unmanaged` reads a registry refreshed hourly by the `datahub-sync-hourly`
sweep, so a just-ingested dataset can still appear there for up to an hour.

## Operating rules

- **Always dry-run before a real run** on `ACTIVE_CUSTOM_MANAGED` sources, and show the user the
  dry-run result before firing the real run.
- **Confirm before any write** (create/update/delete/run): restate the source name, mode, and
  schedule, and get explicit agreement. `DELETE` also cascades the source's dataset mappings.
- Recipes reference credentials as `${secret_name__key}` placeholders — never inline a plaintext
  secret. Discover available refs with `GET /spoke/ingestion/secrets`. A malformed reference is
  rejected at create/update time with `422 SECRET_REF_MALFORMED`. DataSpoke has no secret-write
  API: an Admin authors the K8s Secret out-of-band
  (`kubectl create secret generic dataspoke-source-cred-<name> --from-literal=<key>=… -n <ns>`),
  and the recipe only ever holds the reference.
- Surface conflict codes (`409 INGESTION_SOURCE_READONLY`, `409 INGESTION_RUNNING`,
  `409 INGESTION_RUN_NOT_APPLICABLE`) and `403 READ_ONLY_ROLE` verbatim — do not work around them.
- After a real run, poll `…/event` (and `…/datasets`) to confirm completion and emitted datasets;
  newly ingested datasets can lag a couple of minutes in DataHub search.

## Reading a run report

The run response carries `run_id` and `status` at the top level, plus a `detail` object — and the
matching `INGESTION.COMPLETE` / `INGESTION.FAIL` event `detail` carries the same fields (plus
`run_id` and `platform`). Interpret it rather than dumping it:

| Field | Meaning |
|-------|---------|
| `dry_run` | Whether this was a preview |
| `discovered_urns` / `_count` | Datasets passing the filter — the "would emit" plan. Present on **both** dry-run and real runs |
| `emitted_urns` / `_count` | Datasets actually written to DataHub. Empty with count `0` on a dry-run |
| `errors`, `warnings` | Per-run diagnostics |

A dry-run connects, crawls `information_schema`, and applies `schema_pattern` — so
`discovered_urns` is the concrete list to show the user before a real run. `emitted_urns ⊆
discovered_urns` always. On a **real** run, `discovered_urns_count − emitted_urns_count > 0`
means per-table emit failures: report it as a partial success and point at `errors`, never as a
clean run.

Wersje

W bazie nie ma innych skilli o nazwie dataspoke-ingestion.

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

Pobrania w ostatnich 30 dniach: 3 · ranking

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

Podobne skille

  • 90dataspoke-metagen
    Zarządza generowaniem metadanych i opisów zbiorów w DataSpoke, włącznie z przeglądem propozycji dokumentacji.
  • 100dataspoke-governance
    Prowadzi przez konfigurację i obsługę metryk governance w DataSpoke: świeżość ingestii, wynik walidacji i stan dokumentacji, z interpretacją wyników przez publiczne REST API.
  • 100datasets
    Wyświetla listę podłączonych zbiorów danych ze statusem, liczbą tabel i datą ostatniej analizy.
  • 100data-ingestion-pipeline
    Buduje potoki pobierania danych wsadowych i strumieniowych z wielu źródeł: strategie ekstrakcji, normalizację formatów, deduplikację, bramki walidacji i obszary pośrednie.
  • 86knowledge-automation
    Tworzy harmonogramowe automatyzacje ingestii do Knowledge ze zweryfikowanym workerem, uprawnieniami prywatnego vaultu i pełnym uruchomieniem zaplanowanym, także przy naprawie cyklicznej ingestii z dowolnego źródła.

Uwagi i zgłoszenia

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