mirror of
https://github.com/Piebald-AI/claude-code-system-prompts.git
synced 2026-06-13 14:43:33 +08:00
14 lines
725 B
Markdown
14 lines
725 B
Markdown
<!--
|
|
name: 'Skill: Code Review (Angle E — wrapper/proxy correctness)'
|
|
description: Code-review finder angle for wrapping types (caches, proxies, decorators), checking every method forwards faithfully to the wrapped object
|
|
ccVersion: 2.1.173
|
|
-->
|
|
### Angle E — wrapper/proxy correctness
|
|
|
|
When the PR adds or modifies a type that wraps another (cache, proxy, decorator,
|
|
adapter): check that every method routes to the wrapped instance and not back
|
|
through a registry/session/global — e.g. a caching provider holding a
|
|
`delegate` field that resolves IDs via `session.get(...)` instead of
|
|
`delegate.get(...)` will re-enter the cache or recurse. Also check that the
|
|
wrapper forwards all the methods the callers actually use.
|