Diagnose StaticPHP v3 failures. Use when investigating build, compile, linker, download, doctor, environment, CI, smoke-test, terminal output, spc.output.log, spc.shell.log, config.log, CMake logs, or user-provided error snippets from StaticPHP commands.
76
95%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Use this skill to triage StaticPHP failures from the outside in: command and environment first, SPC module/stage metadata next, shell/config logs last. The goal is to isolate the failing package, stage, command, and root cause before editing code.
-v, -vv, or -vvv.log/spc.output.log: user-facing SPC messages and exception summary.log/spc.shell.log: executed commands, working directories, env, stdout/stderr.php-src.config.log, lib.<pkg>.console.log, lib.<pkg>.cmake-error.log, lib.<pkg>.cmake-configure.log, lib.<pkg>.cmake-output.log.references/log-triage.md for pattern matching, likely causes, and next checks.Command exited, error:, undefined reference, not found, No package, CMake Error, configure: error, fatal error, Failed module, and Failed stage.config.log and CMake logs for configure detection failures; use spc.shell.log for the actual command and env.spc reset --with-download --yes is destructive to caches; ask before clearing caches unless the user explicitly asked.Use focused commands when reproducing:
php bin/spc doctor -vvv
php bin/spc download --for-extensions="curl,openssl" --with-php=8.5 --parallel=4 --retry=3 -vvv
php bin/spc build:libs "openssl" -vvv
php bin/spc build:php "bcmath,openssl,curl" --build-cli -vvv
php bin/spc dev:lint-configChoose the smallest command that still reaches the failing package.
After finding the failing package/stage:
$staticphp-package-maintenance, then edit config/pkg/* or config/artifact/*.src/Package/*.doctor, toolchain classes, and config/pkg/tool/*.GITHUB_TOKEN.src/StaticPHP/Exception, src/StaticPHP/Runtime/Shell, or executor classes only after package-level causes are ruled out.references/log-triage.md: log files, failure categories, search patterns, and likely fixes.59584de
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.