code-review

tarafından contentstack

PR kontrol listesi—API stabilitesi, dokümanlar, hatalar, uyumluluk, bağımlılıklar/SCA, testler, vendor kod; Blocker/Major/Minor.

npx skills add https://github.com/contentstack/contentstack-utils-swift --skill code-review

Code review – Contentstack Utils Swift

When to use

  • Reviewing a PR, self-review before submit, or automated review prompts.

Instructions

Work through the checklist below. Optionally tag findings: Blocker, Major, Minor.

API design and stability

  • Public API: New or changed public / open types in Sources/ContentstackUtils/ are necessary, semver-conscious, and documented (README.md / CHANGELOG.md when user-visible).
  • Backward compatibility: No breaking changes unless explicitly justified (e.g. major version). Prefer additive behavior and default Option() paths.
  • Naming: Matches existing Utils and RTE terminology (ContentstackUtils, Option, Node, GQL, etc.).

Error handling and robustness

  • Errors: New throws paths use clear domain types (e.g. VariantUtilityError); callers can distinguish invalid input from parsing failures where relevant.
  • Optionals: No force-unwraps on public code paths; document preconditions for non-optional parameters.
  • RTE JSON: Decoding and HTML traversal stay tolerant of documented stack payload shapes; embedded-item regressions are called out.

Dependencies and security

  • Dependencies: Package.swift / ContentstackUtils.podspec changes are justified; versions do not introduce known vulnerabilities.
  • SCA: Address security findings (e.g. Snyk, org scanners) in the PR or via an agreed follow-up.

Testing

  • Coverage: New or modified behavior in Sources/ContentstackUtils/ has tests under Tests/ContentstackUtilsTests/ when feasible.
  • Quality: Tests are readable, deterministic, and follow naming/mocks conventions.

Vendored and native code

  • Kanna / libxml2 / Modules/: Reviewed for upstream parity, licensing, and Apple vs Linux builds.

Severity (optional)

LevelExamples
BlockerBreaking public API without approval; security issue; no tests for new code where tests are practical
MajorInconsistent errors; README examples that do not compile
MinorStyle; minor docs

Detailed review themes (from checklist sections)

  • API: Breaking public/open without semver/CHANGELOG/podspec alignment.
  • Errors: throws changes that confuse callers without a version strategy.
  • README: Examples must match real APIs (jsonToHtml overloads, GQL.jsonToHtml).
  • Dependencies: New packages in Package.swift / podspec need justification.

References

  • skills/testing/SKILL.md
  • skills/contentstack-utils/SKILL.md

contentstack tarafından daha fazla skill

cms-assets
contentstack
Geliştiricilere Contentstack'te varlıkları düzenleme, teslim etme ve dönüştürme konusunda danışmanlık yapın. Klasör yapısını, Image Delivery API dönüşümlerini, yayınlamayı kapsar…
cms-branches-aliases
contentstack
Geliştiricilere, izole içerik geliştirme için Contentstack branch'lerini kullanma ve kesintisiz içerik dağıtımları için alias'ları kullanma konusunda önerilerde bulunun. Branch stratejisini ele alın,…
cms-data-modeling-best-practices
contentstack
Geliştiricilere Contentstack'te içeriği en basit yeniden kullanılabilir yapıyla modellemeleri için rehberlik eder. Bu beceri, content types, references, global… ne zaman kullanılacağını açıklar.
cms-live-preview-visual-builder-support-assistant
contentstack
Contentstack Live Preview ve Visual Builder uygulamalarını teşhis edin ve yönlendirin. Önizleme bağlamını izleyin, bozuk sözleşmeyi belirleyin ve öneride bulunun…
cms-releases
contentstack
Geliştiricilere, koordineli ve atomik içerik dağıtımı için Contentstack Releases kullanımı konusunda danışmanlık yapın. Release oluşturma, öğe yönetimi, aşamalı dağıtım,…
cms-roles-permissions
contentstack
Contentstack'te roller, izinler, ekipler ve token erişimi tasarlama konusunda geliştiricilere danışmanlık yapın. Yerleşik rolleri, özel rolleri, izin birleştirmeyi açıklayın,…
cms-taxonomy
contentstack
Geliştiricilere, Contentstack Taxonomy’yi yapılandırılmış, hiyerarşik içerik sınıflandırması ve teslimat tarafı filtreleme için kullanma konusunda danışmanlık yapar. Taxonomy ile etiketler arasındaki farkları kapsar,…
cms-tokens-authentication
contentstack
Geliştiricilere, frontend, backend, otomasyon ve üçüncü taraf uygulama kullanım senaryoları için doğru Contentstack kimlik doğrulama yöntemini ve token türünü seçme konusunda danışmanlık yapın.