Skip to content
Skills Library
Programming · Review & audit

review-core-sdk

/review-core-sdk

Use when reviewing a change, diff, or PR to the SODAX core SDK (packages/sdk plus the type and wallet packages it touches) — checking correctness, scope, architecture, types/safety, tests, source-derived config, secrets, and AI-doc faithfulness before it lands. Triggers on "review this SDK change", "review the diff/PR", "code review for the sdk", "is this ready to merge", "check this against the working rules". Operationalizes the root AGENTS.md Working Rules as a concrete review pass backed by the repo gates.

Repository
sodax-sdks ↗
Licence
MIT
Last repository change
27.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when reviewing a change, diff, or PR to the SODAX core SDK (packages/sdk plus the type and wallet packages it touches) — checking correctness, scope, architecture, types/safety, tests, source-derived config, secrets, and AI-doc faithfulness before it lands. Triggers on "review this SDK change", "review the diff/PR", "code review for the sdk", "is this ready to merge", "check this against the working rules". Operationalizes the root AGENTS.md Working Rules as a concrete review pass backed by the repo gates.

Triggers from the description

review this SDK changereview the diff/PRcode review for the sdkis this ready to mergecheck this against the working rules
Original author description

Use when reviewing a change, diff, or PR to the SODAX core SDK (packages/sdk plus the type and wallet packages it touches) — checking correctness, scope, architecture, types/safety, tests, source-derived config, secrets, and AI-doc faithfulness before it lands. Triggers on "review this SDK change", "review the diff/PR", "code review for the sdk", "is this ready to merge", "check this against the working rules". Operationalizes the root AGENTS.md Working Rules as a concrete review pass backed by the repo gates.

How it works

  1. 1. Scope the diff
  2. 2. Run the gates (read real output, don't assume)
  3. 3. Review dimensions
  4. 4. Verdict
Original SKILL.md headings · 31 lines, 576 words
SKILL.md preview
---
name: review-core-sdk
description: 'Use when reviewing a change, diff, or PR to the SODAX core SDK (packages/sdk plus the type and wallet packages it touches) — checking correctness, scope, architecture, types/safety, tests, source-derived config, secrets, and AI-doc faithfulness before it lands. Triggers on "review this SDK change", "review the diff/PR", "code review for the sdk", "is this ready to merge", "check this against the working rules". Operationalizes the root AGENTS.md Working Rules as a concrete review pass backed by the repo gates.'
---

# Reviewing a Core SDK Change

> Operationalizes the **Working Rules** in root `AGENTS.md` as a review pass. Verify every claim
> against current `src/` and trust real command output over assumption. Default to skeptical — a
> finding you cannot reproduce against the diff is not a finding.

## 1. Scope the diff
`git diff origin/main...HEAD --stat`, then read the hunks. Anything outside the stated task — an unrelated refactor, rename, or restyle — is a defect; the change should be scoped.

## 2. Run the gates (read real output, don't assume)
- `pnpm checkTs` · `pnpm lint` · `pnpm --filter @sodax/sdk test` (add `pnpm --filter @sodax/sdk test:e2e` if cross-chain logic changed; run the `apps/node` smoke script for the affected chain when relevant).
- `pnpm check:ai-dev-files`, and `pnpm check:ai` if `packages/skills` changed.
- `pnpm check:doc-links` if the diff touches a doc listed in `scripts/docs-pages-map.json` (`packages/sdk/docs/**`, package READMEs, `docs/ai-integration-guide.md`).
- Docs Drift (job **Docs ship with code**): each package whose `src/` changed needs a *related* mapped doc (`packages/<pkg>/…` in `scripts/docs-pages-map.json`, a mapped `packages/sdk/docs/` page, or a mapped root-level `docs/` guide whose `pkgs` array lists the package), the package README, or `packages/<pkg>/docs/` (non-sdk). JSDoc, `unpublished` sdk/docs pages, `packages/skills`, an unrelated mapped file, and deleting a README or docs file do not count; moving source out of `src/` still counts as a source change. A new `packages/sdk/docs/` page must be on the map's `mirrored` or `unpublished` list even without an `src/` change, a renamed published page must take its map entry with it, and every mapped src must exist and be a `.md`/`.mdx` page. The `docs-not-needed` label is the only skip.
- The Security workflow runs gitleaks + Semgrep — a new hardcoded `0x`+64-hex key or other secret is a hard reject.

## 3. Review dimensions
Walk the diff against each:
- **Source-verified** — every behavioral claim matches `src/`; no stale references to refactored-away symbols.
- **Architecture & boundaries** — dependency direction intact (`@sodax/types` ← sdk ← dapp-kit); chain-specific work routes through `this.spoke.getSpokeService(chainKey)`, not new chain providers; feature services stay lean (reusable/chain-specific logic moved to `utils/`, entities, or spoke services).
- **Types & safety** — no `any` / `@ts-ignore` / non-null `!` / unsafe casts; public ops return `Result<T>` and fail via `SodaxError` (discriminate on `feature` / `code`); validation, amount/decimal, address, and signing surfaces are not weakened (financial code).
- **Source-derived config** — no chain/token lists hardcoded in feature code; config flows through `ConfigService` / `@sodax/types`.
- **Tests** — new behavior has meaningful tests beside it (flows, invariants, edge cases, chain/feature matrix); no `.only` / `.skip` (lint blocks these); a new EVM spoke is added to `TEST_CHAINS`.
- **Established pattern** — token / chain / wallet / feature work used the matching skill (`add-token` / `add-chain` / `add-wallet-provider` / `add-feature`), not ad-hoc wiring.
- **AI docs faithful** — public behavior, imports, signatures, examples, chains, or tokens changed ⇒ `packages/skills` updated (partner-agent surface, not Docs Drift) and `pnpm check:ai` green.
- **docs.sodax.com links** — in a doc generated into the Mintlify site under `docs/`, a relative link is only valid when the target lands in the same directory under the same name; anything else needs an absolute `sodax-sdks/blob/main/…` URL, never a `sodax-document` one.

## 4. Verdict
Report against the **definition of done** (root `AGENTS.md`): scoped diff · behavior verified vs `src/` · relevant gates green · `packages/skills` updated when public behavior changed · no unrelated refactor. Cite `file:line` per finding and separate must-fix (correctness, safety, gate failures) from nits.

Versions

The database has no other skills named review-core-sdk.

Database snapshot: 13.11.2026 · package version 4ea588279523 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90code-review
    Review EF Core pull requests or local changes for concrete correctness, compatibility, performance, security, and test-coverage problems. Use when asked to review, critique, or check code changes before merge or submission.
  • 90review
    Review a branch, diff, or pull request in this repository before merge. Use when asked to review changes or a PR, self-review work before opening or marking a PR ready, or check a change for correctness, backward compatibility, security, tests, docs, and changesets.
  • 85sodax-wallet-sdk-react-bridge-to-sdk
    Granular skill for the @sodax/wallet-sdk-react v2 wallet-provider bridge only — useWalletProvider, which turns the connected wallet into a typed IXxxWalletProvider to pass into @sodax/sdk (or @sodax/dapp-kit hooks) for signing. Use when a React dapp has wallet connectivity…
  • 100code-review
    Use this skill when asked to review code changes — a pull request, a branch, a commit range, or the current diff — for correctness, security, and maintainability before they merge. Triggers: user says "review", "code review", "review this PR", "review my changes", "look over the…
  • 90code-review
    Review a code diff for correctness, regressions, security, compatibility, and maintainability. Use when asked to review a proposed or completed change.
  • 100code-review
    Review C code changes for correctness, safety, and style. Use this when you want to review C code changes or PRs.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.