Works with the AI Agents you already use
PHP Code Doctor
Review PHP applications for correctness, security, performance, modern practices, and testable fixes.
$9.99
PHP Code Doctor
Example session with this skill installed
A PHP endpoint accepts a user ID and builds a SQL query by concatenating it. Create a remediation checklist.
- Read your context and instructions
- Compiled the php code doctor
PHP Code Doctor: practical plan
Security remediation
Immediate fix
Use a parameterized query through the project’s database abstraction. Validate the ID as the expected type, but do not rely on validation alone to prevent injection.
Authorization
Check that the authenticated user is allowed to access the requested record. An unpredictable ID is not authorization. Return a safe response that does not reveal whether another user’s record exists.
Input and output handling
Validate route parameters, escape output for its rendering context, and avoid echoing raw database errors. Apply CSRF protection if the endpoint changes state.
Tests
Test normal IDs, malformed values, SQL metacharacters, unauthenticated access and cross-user access. Assert safe status codes and no data leakage.
Operations
Review logs for accidental exposure, update dependencies, enable static analysis and add the test to CI. Follow project version support and coding standards.
Rollout
Deploy the parameterized query with monitoring for errors and latency. Preserve a rollback plan, but do not revert to unsafe concatenation.
Measurement and review
Record the baseline, source, date range, denominator and owner. Use one primary measure plus quality guardrails; compare like-for-like cohorts and disclose missing data. Treat estimates as scenarios, not observed outcomes.
Risks and controls
Check relevance, consent, disclosure, workload and downside before scaling. Keep an evidence trail, obtain human review for material commitments, and pause if trust, quality or compliance signals deteriorate.
Next steps
- Confirm the goal, audience and available capacity.
- Gather the minimum evidence for a first test.
- Assign an owner, budget and review date.
- Run a small pilot, record outcomes and decide whether to iterate, expand or stop.
Connects securely to your tools. The creator never sees your data.
About this skill
Create a practical, evidence-led PHP Code Doctor workflow. Review PHP applications for correctness, security, performance, modern practices, and testable fixes. Distinguish observations from assumptions, request missing inputs, give actionable recommendations with owners and measurable outcomes, and flag uncertainty. Avoid fabricated metrics, unsupported guarantees, deceptive tactics and unnecessary personal data.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scanned
Verified clean 3 days ago
- Passed all security checks, Safe to install