code-review
17
总安装量
16
周安装量
#20482
全站排名
安装命令
npx skills add https://github.com/pv-udpv/pplx-sdk --skill code-review
Agent 安装分布
mcpjam
16
claude-code
16
replit
16
junie
16
zencoder
16
Skill 文档
code-review
Review code changes following pplx-sdk project standards and the layered architecture.
When to use
Use this skill when reviewing pull requests or code changes in the pplx-sdk repository to ensure compliance with project conventions.
Instructions
- Check architecture layer compliance: Verify imports respect
core â shared â transport/domain â clientdependency flow. No circular imports allowed. - Verify type safety: All functions must have complete type annotations. Use
from __future__ import annotationsat the top of every module. - Validate error handling: Custom exceptions from
pplx_sdk.core.exceptionsmust be used â never bareException. Chain exceptions withfrom exc. - Review docstrings: Google-style docstrings required on all public classes and methods, including Args, Returns, Raises sections.
- Check test coverage: Tests follow Arrange-Act-Assert pattern with descriptive names (
test_<module>_<behavior>). - Inspect Pydantic models: Domain models use Pydantic v2
BaseModelwithField()descriptions. - Verify transport protocol: Transport implementations conform to the
Transportprotocol frompplx_sdk.core.protocols.
Architecture Layer Rules
core/ â No imports from other pplx_sdk modules
shared/ â May import from core/ only
transport/ â May import from core/, shared/
domain/ â May import from core/, shared/, transport/
client.py â May import from all layers
Exception Hierarchy
PerplexitySDKError (base)
âââ TransportError (status_code, response_body)
â âââ AuthenticationError (401)
â âââ RateLimitError (429, retry_after)
âââ StreamingError
âââ ValidationError
Output Format
For each file reviewed, provide:
- â Passes â or
- â Issue found: description and suggested fix