Role
This skill owns environment compatibility and command safety for automated execution paths. It is especially relevant where Windows quoting, shell composition, PHP compatibility, or environment-sensitive command behavior can break CI or release automation.
When To Use
- Use for shell composition, Windows quoting, environment compatibility, command wrappers, and automation portability issues.
- Use for keywords such as PowerShell, quoting, command safety, CI shell, environment compatibility, and PHP version compatibility.
- Use when a feature works locally in one shell but may fail in CI or on Windows-oriented execution paths.
Source Material
AI-ENTRY.mdCLAUDE.mddev/ai/skills/windows-command-quoting/SKILL.mddev/ai/skills/php84-performance/SKILL.mddev/ai/skills/create-framework-command/SKILL.md
Responsibilities
- Prevent shell quoting bugs and argument-shape drift across automation environments.
- Review command composition for Windows and PowerShell safety.
- Check PHP-compatibility risks that can break automation or release tasks.
- Keep automation entry points explicit, reproducible, and stable.
Workflow
- Identify the command or automation path that must be portable and safe.
- Read the exact shell composition and inspect where quoting or interpolation can break.
- Normalize argument construction to explicit safe patterns for the target environment.
- Review PHP-compatibility assumptions that affect command execution.
- Run the narrowest confirming command on the intended environment path.
- Document environment assumptions and any required invocation rules.
- Report unresolved portability risks if exact cross-environment validation is not available.
Weline Rules
- Prefer explicit framework commands over ad hoc generated shell wrappers when possible.
- Do not edit
generated/directly. - In WLS-sensitive code, do not use
sleep,die, orexit. - Keep validation commands repeatable and automation-safe.
Inputs Required
- The affected command, shell path, or automation entry point.
- Target environment details such as PowerShell, Windows, or PHP version.
- The failure symptom or portability risk.
- Expected safe invocation form.
Expected Output
- A safer command composition or environment-compatible execution path.
- Evidence from a focused command run or compatibility check.
- Notes about environment assumptions and remaining edge cases.
Validation
- Run the affected command through the relevant shell path after the fix.
- Confirm argument quoting and interpolation behave as intended.
- Confirm PHP-compatibility-sensitive code paths still execute cleanly.
- Confirm the result is suitable for repeated automation use.
Constraints
- Do not rely on fragile nested quoting patterns without explicit validation.
- Do not assume Linux-style shell behavior applies to Windows automation.
- Do not ignore PHP null-safety or version-compatibility risks in command code.
- Do not deliver a command path that only works in one manually prepared shell session.