com um clique
code-review
// Use to review code changes with a two-stage process - first checking spec/requirements compliance, then code quality. Works on staged changes, branches, or PRs.
// Use to review code changes with a two-stage process - first checking spec/requirements compliance, then code quality. Works on staged changes, branches, or PRs.
Deep reliability audit for OpenMetadata connectors — runs 7 investigation prompts (metadata, errors, auth, lineage, scale, synthesis, implementation) against connector standards
Meta-skill loaded at session start. Directs Claude to check for applicable OpenMetadata skills before starting any task. Ensures structured workflows are followed.
Use when starting a non-trivial feature, refactor, or multi-file change. Forces structured design thinking before writing any code - brainstorm approaches, get approval, then create a step-by-step implementation plan.
Use when implementing new features or fixing bugs to enforce test-driven development. Guides the RED-GREEN-REFACTOR cycle for Java (JUnit), Python (pytest), and TypeScript (Jest/Playwright) in OpenMetadata.
Use before claiming any task is complete. Requires running actual verification commands and showing evidence — no "should work" claims without proof.
Build a new OpenMetadata connector from scratch — scaffold JSON Schema, Python boilerplate, and AI context using schema-first architecture with code generation across Python, Java, TypeScript, and auto-rendered UI forms.
| name | code-review |
| description | Use to review code changes with a two-stage process - first checking spec/requirements compliance, then code quality. Works on staged changes, branches, or PRs. |
| user-invocable | true |
| argument-hint | [branch name, PR number, or file paths] |
Two-stage review process: requirements compliance first, then code quality.
/code-review # Review uncommitted changes
/code-review feature-branch # Review branch diff against main
/code-review #1234 # Review GitHub PR
/code-review path/to/file.java # Review specific files
Verify the changes do what they're supposed to do — no more, no less.
git diff to see the full scope:
git diff main...HEAD # Branch diff
git diff --staged # Staged changes
gh pr diff <number> # PR diff
openmetadata-spec/) + model regeneration (make generate)bootstrap/sql/)yarn parse-schema for UI forms## Spec Compliance: [PASS / FAIL / PARTIAL]
### Requirements Met
- [x] Requirement A — implemented in file.java:42
- [ ] Requirement B — MISSING: no migration for new field
### Scope Issues
- file.java:100-120 — unrelated refactor, consider separate PR
### Cross-Layer Gaps
- Schema updated but `make generate` not run (models out of sync)
If Stage 1 fails, stop here. Fix compliance issues before reviewing quality.
Now review the implementation quality.
Architecture:
builders.py)Java:
import java.util.*)mvn spotless:apply has been runopenmetadata-integration-tests/)Python:
assert, no unittest.TestCase)make py_format && make lint passesTypeScript/React:
any types — use proper types or unknown with type guardsopenmetadata-ui-core-componentstw: prefixt('label.xxx')) not string literalsshowErrorToast/showSuccessToastTesting (use /test-enforcement for full analysis):
Security:
## Code Quality: [GOOD / NEEDS WORK / SIGNIFICANT ISSUES]
### Issues (must fix)
- file.java:42 — wildcard import, use specific imports
- Component.tsx:15 — `any` type, use `EntityReference` from generated types
### Suggestions (nice to have)
- connector.py:80 — could use `yield from` instead of loop
### Positive Notes
- Good test coverage for the new endpoint
- Follows existing pagination pattern correctly
When reviewing a GitHub PR by number:
# Get PR details
gh pr view <number>
# Get the diff
gh pr diff <number>
# Get review comments
gh api repos/{owner}/{repo}/pulls/<number>/comments
# Check CI status
gh pr checks <number>
After review, optionally post findings:
gh pr review <number> --comment --body "Review findings..."