code-review

Review code changes following pplx-sdk project standards and the layered architecture.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "code-review" with this command: npx skills add pv-udpv/pplx-sdk/pv-udpv-pplx-sdk-code-review

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 → client dependency flow. No circular imports allowed.

  • Verify type safety: All functions must have complete type annotations. Use from future import annotations at the top of every module.

  • Validate error handling: Custom exceptions from pplx_sdk.core.exceptions must be used — never bare Exception . Chain exceptions with from 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 BaseModel with Field() descriptions.

  • Verify transport protocol: Transport implementations conform to the Transport protocol from pplx_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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

code-analysis

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

python-testing-patterns

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

pplx-sdk-dev

No summary provided by upstream source.

Repository SourceNeeds Review