pplx-sdk-dev
pplx-sdk Development Meta-Skill
This meta-skill orchestrates all project-specific and community skills for pplx-sdk development. Activate this skill for any development task — it coordinates the right sub-skills automatically.
When to use
Use this skill for any development task on the pplx-sdk project: implementing features, fixing bugs, reviewing code, writing tests, or scaffolding new modules.
Subagent Architecture
Each skill delegates to a specialist subagent via context: fork. Subagents run in isolated context windows with restricted tool access.
┌───────────────────────────────────────────────────────┐
│ orchestrator │
│ (meta-orchestrator, delegates subtasks) │
├───────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ ┌──────────────┐ │
│ │ code-reviewer │ │ test-runner │ │
│ │ (read-only) │ │ (run & fix) │ │
│ │ view,grep, │ │ bash,view, │ │
│ │ glob,bash │ │ edit,grep │ │
│ └──────────────┘ └──────────────┘ │
│ │
│ ┌──────────────┐ ┌──────────────┐ │
│ │ scaffolder │ │ sse-expert │ │
│ │ (create new) │ │ (streaming) │ │
│ │ view,edit, │ │ view,edit, │ │
│ │ bash,grep │ │ bash,grep │ │
│ └──────────────┘ └──────────────┘ │
│ │
│ ┌──────────────┐ ┌──────────────┐ │
│ │ reverse- │ │ architect │ │
│ │ engineer │ │ (diagrams & │ │
│ │ (API disc.) │ │ design) │ │
│ │ view,edit, │ │ view,edit, │ │
│ │ bash,grep │ │ bash,grep │ │
│ └──────────────┘ └──────────────┘ │
│ │
│ ┌──────────────┐ ┌──────────────┐ │
│ │ spa-expert │ │ codegraph │ │
│ │ (SPA RE, │ │ (AST, deps, │ │
│ │ CDP, ext.) │ │ knowledge) │ │
│ │ view,edit, │ │ view,edit, │ │
│ │ bash,grep │ │ bash,grep │ │
│ └──────────────┘ └──────────────┘ │
│ │
└───────────────────────────────────────────────────────┘
Subagent Definitions (.claude/agents/)
| Subagent | Role | Tools | Isolation |
|---|---|---|---|
orchestrator |
Decomposes tasks, coordinates others | view, bash, grep, glob | fork |
code-reviewer |
Read-only architecture review | view, grep, glob, bash | fork |
test-runner |
Run tests, diagnose, fix failures | bash, view, edit, grep, glob | fork |
scaffolder |
Create new modules and files | view, edit, bash, grep, glob | fork |
sse-expert |
SSE streaming implementation | view, edit, bash, grep, glob | fork |
reverse-engineer |
API discovery, traffic analysis | view, edit, bash, grep, glob | fork |
architect |
Architecture diagrams, design validation | view, edit, bash, grep, glob | fork |
spa-expert |
SPA RE: React/Vite/Workbox/CDP, extensions | view, edit, bash, grep, glob | fork |
codegraph |
AST parsing (Python + JS/TS), dep graphs, knowledge graphs | view, edit, bash, grep, glob | fork |
Skill Dependencies
This meta-skill composes the following skills. Apply them in the order shown based on the task type.
Project-Specific Skills (repo root)
| Skill | Path | Subagent | Purpose |
|---|---|---|---|
code-review |
code-review/SKILL.md |
code-reviewer |
Architecture compliance and conventions |
test-fix |
test-fix/SKILL.md |
test-runner |
Diagnose and fix failing tests |
scaffold-module |
scaffold-module/SKILL.md |
scaffolder |
Create new modules per layered architecture |
sse-streaming |
sse-streaming/SKILL.md |
sse-expert |
SSE protocol and streaming patterns |
reverse-engineer |
reverse-engineer/SKILL.md |
reverse-engineer |
API discovery from browser traffic |
architecture |
architecture/SKILL.md |
architect |
System diagrams and design visualization |
spa-reverse-engineer |
spa-reverse-engineer/SKILL.md |
spa-expert |
React/Vite/Workbox/CDP webapp RE |
code-analysis |
code-analysis/SKILL.md |
codegraph |
AST parsing (Python + JS/TS), dependency graphs, knowledge graphs |
Community Skills (installed via npx skills)
| Skill | Source | Purpose |
|---|---|---|
python-testing-patterns |
wshobson/agents |
pytest patterns, fixtures, mocking |
python-type-safety |
wshobson/agents |
Type annotations, mypy strict mode |
python-error-handling |
wshobson/agents |
Exception hierarchies, error patterns |
python-design-patterns |
wshobson/agents |
Protocol pattern, DI, factory |
api-design-principles |
wshobson/agents |
REST API design, endpoint conventions |
async-python-patterns |
wshobson/agents |
async/await, concurrency patterns |
skill-creator |
anthropics/skills |
Guide for creating new skills |
mcp-builder |
anthropics/skills |
Build MCP servers for tool integration |
webapp-testing |
anthropics/skills |
Test web apps with Playwright |
ast-grep |
ast-grep/agent-skill |
Structural code search via AST patterns |
knowledge-graph-builder |
daffy0208/ai-dev-standards |
Knowledge graph design and entity relationships |
steering |
nahisaho/codegraphmcpserver |
CodeGraph MCP orchestration and traceability |
Workflow: New Feature
[plan] → [explore] → [research] → [implement] → [test] → [review] → [done]
- Plan —
orchestratordecomposes the task, identifies target layer - Explore —
code-reviewer(read-only fork) analyzes existing code and dependencies - Research —
reverse-engineerorsse-expert(fork) studies API behavior, reads docs, gathers context needed before implementation - Scaffold —
scaffolder(fork) creates files from templates - Implement —
sse-expertorscaffolder(fork) writes the code - Test —
test-runner(fork) runs pytest, fixes failures - Review —
code-reviewer(fork) validates architecture compliance - Verify —
ruff check --fix . && ruff format . && mypy pplx_sdk/ && pytest -v
Workflow: Bug Fix
- Reproduce —
test-runner(fork) runs failing test with-v - Research —
code-reviewer(fork) traces the code path, reads related modules and tests - Diagnose —
test-runnerreads traceback, identifies root cause - Fix —
test-runneredits source/test, appliespython-error-handlingpatterns - Verify —
test-runnerruns full suite
Workflow: SSE/Streaming Work
- Research —
sse-expert(fork) reviews SSE protocol spec, existing transport code, and API response patterns - Implement —
sse-expertwrites streaming code, appliesasync-python-patterns - Test —
test-runner(fork) runs tests with mock SSE responses - Review —
code-reviewer(fork) validates transport layer compliance
Workflow: API Discovery (Reverse Engineering)
[capture] → [research] → [document] → [scaffold] → [test] → [review]
- Capture —
reverse-engineer(fork) analyzes cURL/traffic from perplexity.ai DevTools - Research —
reverse-engineerstudies request/response patterns, tests variations, maps edge cases and auth flows - Document —
reverse-engineerwrites endpoint documentation with field types and examples - Scaffold —
scaffolder(fork) creates Pydantic models and service methods from schema - Implement —
sse-expertorscaffolderimplements transport and domain code - Test —
test-runner(fork) validates with mock responses matching discovered schemas - Review —
code-reviewer(fork) ensures architecture compliance
Workflow: API Endpoint
- Research —
code-reviewer(fork) studies existing endpoints andapi-design-principlespatterns - Design —
code-reviewerreviews proposed schema against REST conventions - Implement —
scaffolder(fork) creates FastAPI endpoint - Test —
test-runner(fork) validates with pytest-httpx mocks
Workflow: Architecture Design & Visualization
[analyze] → [research] → [diagram] → [validate] → [document]
- Analyze —
architect(fork) reads existing code, maps imports and layer dependencies - Research —
architectstudies the components involved and their relationships - Diagram —
architectproduces Mermaid diagrams (layer map, sequence, class hierarchy, state machine) - Validate —
architectchecks for circular deps, upward imports, protocol conformance - Document —
architectembeds diagrams in README, docs, or PR descriptions
Workflow: SPA Reverse Engineering
[detect] → [research] → [intercept] → [extract] → [code-graph] → [document] → [implement]
- Detect —
spa-expert(fork) identifies the SPA stack (React version, bundler, state management, service workers) - Research —
spa-expertstudies the SPA internals, React component tree, and network patterns - Intercept —
spa-expertcaptures network traffic via CDP, Chrome extension, or DevTools - Extract —
spa-expertextracts React state shapes, API schemas, and Workbox cache strategies - Code Graph —
codegraph(fork) analyzes SPA source code: component tree, import graph, hook chains, TypeScript types; cross-references withspa-expertruntime findings - Document —
reverse-engineer+spa-expertmap runtime + static discoveries to SDK architecture - Implement —
scaffoldercreates models and services;spa-expertbuilds tools/extensions
Workflow: Code Analysis & Knowledge Graph
[parse] → [graph] → [analyze] → [report] → [act]
- Parse —
codegraph(fork) parses source AST: Python viaastmodule, JavaScript/TypeScript via grep-based import parsing - Graph —
codegraphbuilds dependency graph (module-to-module imports) and knowledge graph (Python: IMPORTS, INHERITS, IMPLEMENTS, CALLS, RAISES; SPA: RENDERS, USES_HOOK, CALLS_API, PROVIDES, CONSUMES) - Analyze —
codegraphdetects patterns: circular deps, layer violations, dead code, complexity hotspots (Python); barrel file cycles, prop drilling, orphan routes (SPA) - Report —
codegraphproduces structured insights report with Mermaid diagrams and actionable findings - Act — Delegate findings:
architectupdates diagrams,code-reviewerreviews violations,scaffolderfixes gaps,spa-expertcross-references runtime analysis
Project Quick Reference
# Install dependencies
pip install -e ".[dev]"
# Install/update community skills
npx skills add wshobson/agents --skill python-testing-patterns --skill python-type-safety --skill python-error-handling --skill python-design-patterns --skill api-design-principles --skill async-python-patterns --agent github-copilot -y
npx skills add anthropics/skills --skill skill-creator --skill mcp-builder --skill webapp-testing --agent github-copilot -y
npx skills add ast-grep/agent-skill --skill ast-grep --agent github-copilot -y
npx skills add "daffy0208/ai-dev-standards@knowledge-graph-builder" --agent github-copilot -y
npx skills add nahisaho/codegraphmcpserver --skill steering --agent github-copilot -y
# Lint, format, type-check, test
ruff check --fix . && ruff format .
mypy pplx_sdk/ --ignore-missing-imports
pytest tests/ -v --cov=pplx_sdk
# Manage skills
npx skills list # Show installed skills
npx skills check # Check for updates
npx skills update # Update all skills
Architecture Invariants
These rules must never be violated regardless of which sub-skill is active:
- Layer dependencies:
core/ → shared/ → transport/ → domain/ → client.py(never reverse) - Exception hierarchy: All errors extend
PerplexitySDKError - Type annotations: 100% coverage,
from __future__ import annotations - Google docstrings: On all public APIs
- Protocol pattern: Use
typing.Protocol, never ABC
More from pv-udpv/pplx-sdk
code-analysis
Deep code analysis for pplx-sdk — parse Python AST, build dependency graphs, extract knowledge graphs, detect patterns, and generate actionable insights about code structure, complexity, and relationships. Use when analyzing code quality, mapping dependencies, or building understanding of the codebase.
19spa-reverse-engineer
Reverse engineer Single Page Applications built with React + Vite + Workbox — analyze SPA internals via Chrome DevTools Protocol (CDP), write browser extensions, intercept service workers, and extract runtime state for SDK integration.
19sse-streaming
Implement and debug SSE (Server-Sent Events) streaming for the Perplexity AI API, including parsing, reconnection, and retry logic.
18reverse-engineer
Reverse engineer Perplexity AI web APIs — intercept browser traffic, decode undocumented endpoints, map request/response schemas, extract auth flows, and translate discoveries into SDK code.
18api-design-principles
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
18test-fix
Diagnose and fix failing pytest tests in the pplx-sdk project, following existing test patterns and conventions.
17