By pronskiy
Claude Code plugin for developing the PHP language core (php-src): bug fixing, idea prototyping, and code review.
Entry point for a php-src bug fix. Fetches a GitHub issue (and its linked PRs/commits) via the gh CLI, writes the Context phase of SPEC.md in the current directory, and stubs out the remaining phases. Use when the user says "fix GH-12345", "let's work on this php-src bug", "/bug-context", "start a bug fix for issue NN on php/php-src", "pull the context for php-src issue NN", or otherwise wants to begin a bug-fix workflow from a GitHub issue. Always invoke this skill FIRST in the bug flow — the bug-reproduce-test, bug-fix, and bug-verify skills refuse to run without a SPEC.md created here.
Locate the root cause in php-src C code and implement the fix so the failing .phpt now passes. Use when the user says "fix the bug", "implement the fix for GH-12345", "/bug-fix", "now write the patch", "find and fix the root cause", or otherwise wants to advance a bug-fix SPEC.md past Reproduction into Analysis & Plan and Implementation. Refuses if Reproduction phase is not done. Commits test + fix as a single commit on the current branch. Never pushes.
Reproduce a php-src bug captured in SPEC.md and convert it into a failing .phpt test. Use when the user says "reproduce the bug", "write a failing test for this issue", "/bug-reproduce-test", "make a phpt that captures GH-12345", "let's prove the bug exists", or otherwise wants to lock down a reproduction case for a php-src bug after /bug-context has been run. The test MUST fail on the current build — that is the post-guardrail.
Final step of the php-src bug-fix flow. Runs the related test suite, checks for new compiler warnings, optionally runs the full test suite or AddressSanitizer/Valgrind, and flips SPEC.md status to done. Use when the user says "verify the fix", "/bug-verify", "did I break anything", "run the regression checks", "check the fix", or otherwise wants to confirm the fix is safe to commit. Refuses if Implementation phase is not done.
Turn a one-line hypothesis about php-src into a measurable prototype that proves or disproves the idea. Use when the user says "I have an idea for php-src", "prototype this idea", "/idea-prototype", "let's see if X would speed up Y", "what if PHP supported …", "explore whether …", or otherwise wants to test feasibility/sense of a php-src change before committing to an RFC. Drives a SPEC.md through Context → Hypothesis & Metric → Survey & Plan → Prototype → Measurement & Verdict. Resumable — re-run the same command to advance to the next phase.
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A Claude Code plugin for working on the PHP language core (php/php-src).
Three workflows: bug fixing, idea prototyping, and code review. Every task is captured in a living document (SPEC.md for bugs and ideas, REVIEW.md for reviews) under .claude/php-core-dev/<slug>/ inside your php-src checkout, so work is stoppable mid-flow and resumable from exactly where the last invocation left off.
# 1. One-time install in Claude Code:
/plugin marketplace add /path/to/php-src-developer
/plugin install php-core-developer
# 2. In a terminal, go to your php-src checkout and cut a branch:
cd ~/projects/php-src
git checkout -b fix/gh-12345 master # name the branch after the task
# 3. Launch Claude Code from there:
claude
Then drive the workflow with prompts:
| You want to… | First prompt |
|---|---|
| Fix a bug | Fix php-src issue GH-12345 |
| Prototype an idea | /idea-prototype "caching common zend_string parameter names could speed up function calls" |
| Review your local diff | /review-local |
| Review a GitHub PR | /review-pr 12345 |
Prerequisites: the plugin runs inside a php-src checkout (any subdirectory works — the plugin walks up to find the root). Recommended before first use:
cd ~/projects/php-src ./buildconf && ./configure --enable-debug && make -j$(nproc) gh auth login # for /bug-context, /research, /review-pr
/bug-context → /research → /bug-reproduce-test → /bug-fix → /bug-verifycd ~/projects/php-src
git checkout -b fix/gh-12345 master
claude
In Claude Code:
| Step | Slash command | What it does |
|---|---|---|
| 1 | /bug-context 12345 | Fetches the GH issue with gh issue view, writes Context phase of SPEC.md, stubs out the remaining phases. |
| 2 | /research | Sweeps prior discussion across four sources: php.internals (via externals.io Algolia), gh issue list, gh pr list, git log --grep. Populates Research phase with synthesised findings. Soft-gated — downstream steps warn if skipped, never block. |
| 3 | /bug-reproduce-test | Writes a minimal repro.php, converts it into a .phpt test under tests/..., runs run-tests.php, asserts FAIL (post-guardrail). Stages the test (git add) — does not commit yet. |
| 4 | /bug-fix | Pins the root cause in C code (consulting Research findings), plans the change, implements it, rebuilds, asserts the .phpt now PASSES. Commits test + fix as one commit (Fix GH-NNNNN: <subject>) on the current branch. |
| 5 | /bug-verify | Runs the related test directory + checks for new compiler warnings. Marks the task done. |
Close the terminal at any point. Re-open it, cd back to the checkout, and run the next prompt (or re-run the last) — the skill reads SPEC.md from .claude/php-core-dev/gh-12345/, finds the first non-done phase, and continues.
/idea-prototype "<one-line hypothesis>"cd ~/projects/php-src
git checkout -b idea/zstring-cache master
claude
/idea-prototype "caching common zend_string parameter names could speed up function calls"
One skill that walks the hypothesis through six phases: Context → Hypothesis & Metric → Research → Survey & Plan → Prototype → Measurement & Verdict. Re-run /idea-prototype (no argument) to advance to the next phase. When the next phase is Research, run /research instead (it owns that phase across both bug and idea flows). The metric must be falsifiable — the skill refuses fuzzy hypotheses ("it'll be faster") at the Hypothesis & Metric guardrail.
End state: SPEC.md with a verdict of pursue-as-rfc / reframe / kill, plus the prototype patch and the benchmark or example evidence. Commits land at the end of Prototype and Measurement phases.
/review-local [base-ref]cd ~/projects/php-src
git checkout my-fix-branch
claude
/review-local
Defaults to git merge-base HEAD origin/master. Override with /review-local PHP-8.3 or a SHA. Writes REVIEW.md with severity-graded findings (Blocker / Major / Minor / Nit) anchored to path:line. Read-only against the source tree.
/review-pr <pr-number>/review-pr 12345
npx claudepluginhub pronskiy/php-src-developer --plugin php-core-developerAccess thousands of AI prompts and skills directly in your AI coding assistant. Search prompts, discover skills, save your own, and improve prompts with AI.
Complete developer toolkit for Claude Code
Intelligent draw.io diagramming plugin with AI-powered diagram generation, multi-platform embedding (GitHub, Confluence, Azure DevOps, Notion, Teams, Harness), conditional formatting, live data binding, and MCP server integration for programmatic diagram creation and management.
Feature development with code-architect/explorer/reviewer agents, CLAUDE.md audit and session learnings, and Agent Skills creation with eval benchmarking from Anthropic.
Orchestrate multi-agent teams for parallel code review, hypothesis-driven debugging, and coordinated feature development using Claude Code's Agent Teams
Production-grade engineering skills for AI coding agents — covering the full software development lifecycle from spec to ship.