pplx-sdk-dev
17
总安装量
16
周安装量
#20267
全站排名
安装命令
npx skills add https://github.com/pv-udpv/pplx-sdk --skill pplx-sdk-dev
Agent 安装分布
mcpjam
16
claude-code
16
replit
16
junie
16
zencoder
16
Skill 文档
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