self-review-connector
БесплатноБез исполняемых скриптовНе проверенSingle step only: audit a completed connector — implementation, testing & simulator validation, artifacts, security smells, cross-doc consistency — and…
от databrickslabs★ 74 звезды на GitHubОб этом скилле
Self-Review the Connector
Goal
Mechanically audit the {{source_name}} connector and emit a
markdown report at
tests/unit/sources/{{source_name}}/SELF_REVIEW.md containing:
- Overall score (0–100) and verdict (
READY/ALMOST/NEEDS WORK/NOT READY). - Top 3–5 prioritized recommendations.
- Per-section findings with
path:linecitations so the developer can navigate to each spot in seconds.
The skill does not modify connector code or run agents. Output is the input to a fix loop, not part of one.
When to use
After connector-dev → connector-tester → connector-doc-writer
→ connector-spec-generator. Run before declaring the connector
ready to ship, or any time the developer wants a checkpoint.
Inputs
source_name(required).- Optional: report path. Default
tests/unit/sources/{{source_name}}/SELF_REVIEW.md. The default path is gitignored — same convention asdev_table_config.json. - PR auto-detection. When run on a branch that has an open PR, the
skill posts the report as a sticky comment and adds the
connector-self-reviewedlabel on pass. The repo's CI workflow (.github/workflows/connector-self-review.yml) requires that label to merge — see Posting to GitHub below.
Severity & scoring
Every check resolves to pass / warn / fail. Apply weights:
| Severity | pass |
warn |
fail |
|---|---|---|---|
| BLOCKER | +3 | −3 | −10 |
| MAJOR | +2 | −1 | −3 |
| MINOR | +1 | 0 | −1 |
Sum points; normalize to 0–100 against the max (all checks pass).
Any BLOCKER fail caps the verdict at NOT READY regardless of
point total — abstract methods missing or tests failing means the
connector cannot ship even if everything else is perfect.
Bands:
- 90+ — READY: minor polish only.
- 75–89 — ALMOST: 1–2 MAJOR findings to address.
- 50–74 — NEEDS WORK: meaningful gaps.
- <50 or any BLOCKER fail — NOT READY.
Procedure
For each section below, run the listed checks in order. For each check, record one line in the report:
✅ A1. <one-line description> — `<file>:<line>`
⚠️ A7. 3 of 11 HTTP calls lack `timeout=` — `source.py:142, 178, 256`
❌ E2. Connection-parameter naming mismatch (see Top recommendations)
Cite a path on every finding except where genuinely none exists (e.g. "no record-mode run on file"). Citations are what make the report actionable.
Section A — Connector implementation (13 checks)
Source under audit:
src/databricks/labs/community_connector/sources/{{source_name}}/{{source_name}}.py
| # | Severity | What | How |
|---|---|---|---|
| A1 | BLOCKER | Class extends LakeflowConnect |
grep -nE "class .*\\(LakeflowConnect\\b" src/.../sources/{{source_name}}/{{source_name}}.py |
| A2 | BLOCKER | Abstract methods present (list_tables, get_table_schema, read_table_metadata, read_table) |
`grep -nE "def (list_tables\ |
| A3 | BLOCKER | read_table_deletes implemented if any table is cdc_with_deletes |
parse read_table_metadata returns; grep cdc_with_deletes; if found, require def read_table_deletes |
| A4 | MAJOR | Read pattern is a deliberate choice — one of: standard, sliding window (Strategy A), server-side limit (Strategy B), or partitioned stream | look for _read_incremental_by_window / _read_incremental_by_limit / SupportsPartitionedStream mixin / single-page snapshots |
| A5 | MAJOR | Termination contract: _init_time cap present for incremental tables |
grep -nE "_init_time\\s*=" ...; verify a guard cursor >= self._init_time → return iter([]), same_offset |
| A6 | MAJOR | Admission control: every incremental table reads max_records_per_batch from table_options. Append-only tables use server-side limit (Strategy B), not client-side truncation |
grep -nE "max_records_per_batch" ... cross-checked with ingestion type per table |
| A7 | MAJOR | All requests.get/post/put/delete/patch and Session.* calls have timeout= |
`grep -nE "(requests\.\ |
| A8 | MINOR | Schemas use LongType not IntegerType; StructType not MapType |
`grep -nE "IntegerType\ |
| A9 | MINOR | get_table_schema does not flatten nested fields |
spot-check schemas for StructType returns |
| A10 | MAJOR | Imports clean — no imports outside sources/{{source_name}}/, interface/, libs/, requests, pyspark, std-lib |
`grep -nE "^(from\ |
| A11 | MAJOR | Pylint clean on connector source — same gate as .github/workflows/pylint.yml and the tools/scripts/precommit_pylint.sh PreToolUse hook |
see "Running pylint" below |
| A12 | MAJOR | Connector does not implement the experimental ingestion-agent surface (still in design). | grep -nE "SupportsIngestionAgent|AgentOperation|agent_operations\(\)" src/.../sources/{{source_name}}/ — must be empty |
| A13 | BLOCKER | Source package |
Установить self-review-connector в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл self-review-connector?
Single step only: audit a completed connector — implementation, testing & simulator validation, artifacts, security smells, cross-doc consistency — and produce a scored markdown review report. Read-mostly; does not modify connector code.
Как установить скилл self-review-connector?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл self-review-connector запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic