Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Debug Craft Production Debugging Php?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aniruddhaadak80-debug-craft-production-debugging-php)
---
name: debug-craft-production-debugging-php
description: "Safe live diagnosis using flags, traces, and snapshots instead of restart roulette."
---
# Debug production without stopping the world (PHP)
> Safe live diagnosis using flags, traces, and snapshots instead of restart roulette.
**Track:** 🧰 Engineering Essentials · **Domain:** Debugging Craft · **Level:** advanced · **~40 min**
**Who this is for:** All Software Engineers
## When to Use This Skill
Safe live diagnosis using flags, traces, and snapshots instead of restart roulette.
Use it whenever a matching task appears in conversation — the agent loads these instructions on demand.
## Steps
1. Correlate user report to trace IDs through gateway → service → data layer
2. Capture state non-invasively: heap/profile snapshots over process restarts
3. Enable dynamic log levels temporarily rather than redeploying
4. Test hypotheses against staging replicas of prod data shape
5. Timebox live debugging; mitigate via rollback/flag if past window
6. Write postmortem linking timeline to evidence artifacts
7. Run static analysis (PHPStan/Psalm) at max level in CI
8. Profile request cycles with Xdebug + cachegrind on real routes
## Common Pitfalls
- Restarting away evidence mid-diagnosis
- Debugging against sanitized data missing the trigger shape
## Commands
**Install with skills CLI**
```bash
npx skills add aniruddhaadak80/skills --skill debug-craft-production-debugging-php
```
**Install globally**
```bash
npx skills add aniruddhaadak80/skills --skill debug-craft-production-debugging-php -g
```
---
Part of [aniruddhaadak80/skills](https://github.com/aniruddhaadak80/skills) · Browse all at https://skills.sh/aniruddhaadak80/skills