Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Review
web3p/rlp
claude-code
rlp
ethereum
code-review
php-library
testing
hex-validation
protocol-correctness

Review this repository as a senior PHP library engineer with particular attention to Ethereum RLP correctness.

Install
php artisan boost:add-skill web3p/rlp

Save this content to: .claude/skills/review/SKILL.md

# RLP Code Review

Review this repository as a senior PHP library engineer with particular attention to Ethereum RLP correctness.

## Process

1. Read `CLAUDE.md`.
2. Inspect `composer.json`, `phpunit.xml`, relevant `src/` files, and tests.
3. Trace helpers/callers before declaring behavior incorrect.
4. Prefer correctness and interoperability findings over style.
5. Do not modify code during review unless explicitly requested.

## Protocol checklist

Check:

- canonical RLP encoding
- scalar/string/list prefix boundaries
- payload lengths 0, 1, 55, 56 and larger boundaries
- length-of-length encoding
- empty string/list
- nested lists
- canonical single-byte encoding
- non-canonical encodings
- malformed/truncated input
- trailing/remainder bytes
- hex validation and `0x`
- odd-length hex and leading zeroes
- numeric zero, negatives, numeric strings
- values beyond PHP integer precision
- UTF-8/raw-byte handling
- `mb_*` usage where byte semantics matter
- recursion on malformed nested data

Do not call something a protocol bug unless you can state the invariant and show the violation.

## PHP/library checklist

Also inspect:

- PHP 7.1 compatibility
- public API compatibility
- native types versus PHPDoc
- exception behavior
- dependency constraints
- PHPUnit configuration
- test gaps
- duplicated/confusing code
- dead code
- error messages/documentation

Keep modernization findings separate from protocol/correctness findings.

## Finding format

For each finding provide:

- **Title**
- **Category:** correctness / security / compatibility / test / maintainability / modernization
- **Confidence:** high / medium / low
- **Affected files**
- **Current behavior**
- **Why it matters**
- **Proposed smallest fix**
- **Regression tests**
- **Risk of changing it**

At the end, propose an implementation order. Do not implement findings until asked.

RLP Code Review

Review this repository as a senior PHP library engineer with particular attention to Ethereum RLP correctness.

Process

  1. Read CLAUDE.md.
  2. Inspect composer.json, phpunit.xml, relevant src/ files, and tests.
  3. Trace helpers/callers before declaring behavior incorrect.
  4. Prefer correctness and interoperability findings over style.
  5. Do not modify code during review unless explicitly requested.

Protocol checklist

Check:

  • canonical RLP encoding
  • scalar/string/list prefix boundaries
  • payload lengths 0, 1, 55, 56 and larger boundaries
  • length-of-length encoding
  • empty string/list
  • nested lists
  • canonical single-byte encoding
  • non-canonical encodings
  • malformed/truncated input
  • trailing/remainder bytes
  • hex validation and 0x
  • odd-length hex and leading zeroes
  • numeric zero, negatives, numeric strings
  • values beyond PHP integer precision
  • UTF-8/raw-byte handling
  • mb_* usage where byte semantics matter
  • recursion on malformed nested data

Do not call something a protocol bug unless you can state the invariant and show the violation.

PHP/library checklist

Also inspect:

  • PHP 7.1 compatibility
  • public API compatibility
  • native types versus PHPDoc
  • exception behavior
  • dependency constraints
  • PHPUnit configuration
  • test gaps
  • duplicated/confusing code
  • dead code
  • error messages/documentation

Keep modernization findings separate from protocol/correctness findings.

Finding format

For each finding provide:

  • Title
  • Category: correctness / security / compatibility / test / maintainability / modernization
  • Confidence: high / medium / low
  • Affected files
  • Current behavior
  • Why it matters
  • Proposed smallest fix
  • Regression tests
  • Risk of changing it

At the end, propose an implementation order. Do not implement findings until asked.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings