一键导入
profile-wp-functions
Profile WordPress to identify functions suitable for Rust replacement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Profile WordPress to identify functions suitable for Rust replacement.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a WordPress function replacement. Full workflow from WP source to Rust implementation, testing, and registration.
Benchmark a change to prove it is faster. Runs Criterion and PHP benchmarks before and after, compares results, and rejects regressions.
Debug when a Rust implementation produces different output than the WordPress fixture. Identifies the exact behavioral difference and fixes it.
Build the extension for PHP 8.3, install in the WordPress profiling stack, and verify it works end-to-end.
| name | profile-wp-functions |
| description | Profile WordPress to identify functions suitable for Rust replacement. |
| disable-model-invocation | true |
cd profiling && docker compose up -d
./profiling/setup-wordpress.sh # if not already installed
SPX UI: http://localhost:8080/?SPX_UI_URI=/&SPX_KEY=dev
curl -H "Cookie: SPX_ENABLED=1; SPX_KEY=dev" http://localhost:8080/
curl -H "Cookie: SPX_ENABLED=1; SPX_KEY=dev" http://localhost:8080/patina-benchmark/
curl -H "Cookie: SPX_ENABLED=1; SPX_KEY=dev" http://localhost:8080/?s=lorem
For each function using >0.5% wall time or >50 calls/request, score on:
Score >= 70: implement. Also note if pluggable, if it calls apply_filters, if it depends on DB/state (skip those).
cd profiling && docker compose down