Reviews Dolibarr PHP code for compliance with coding standards and security best practices, and fixes identified issues. Use when the user asks to review, audit, fix, or update code for Dolibarr, or mentions code quality, security vulnerabilities, or PSR-12 compliance.
Use this skill whenever the user asks to review, audit, or fix Dolibarr code to match best practices.
The user request should contain, when available:
htdocs/modulebuilder/templatesWhen generating code:
Action:
htdocs/fournisseur/ directory for common vulnerabilitiesGETPOST() with type parametersdolPrintHTML() or dolPrintHTMLForAttribute()Action:
| Issue | Validation | Solution |
|---|---|---|
| File not found | Verify path exists | Check module structure and file location |
| Syntax errors after fix | Run PHP lint | Roll back and reapply changes carefully |
| Breaking existing functionality | Run existing tests | Verify tests pass before and after changes |
| False positives in security scan | Manual verification | Cross-check with Dolibarr security guidelines |
| Mixed line endings | Check with cat -A | Normalize to LF |
Before applying fixes:
$db, $conf, $user. Do not remove these without understanding the architecturedol_print_date(), getDolGlobalString()) over native PHP functions$db->escape(), casting to (int), $db->sanitize()). Do not replace with prepared statements without testingdolPrintHTML(), dolPrintHTMLForAttribute(), or dol_htmlentities() for output, not native htmlentities()<input type="hidden" name="token" value="'.newToken().'">1791120
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.