psalm-security-analysis
Skill by psalm
Runs and interprets Psalm taint analysis on a Laravel project to find security issues like SQL injection and XSS. Built for developers auditing Laravel code, and requires psalm-plugin-laravel.
Install psalm-security-analysis
Built from the published package, never by AI.
git clone --depth 1 https://github.com/psalm/psalm-plugin-laravel /tmp/psalm-plugin-laravel && mkdir -p ~/.claude/skills && cp -r /tmp/psalm-plugin-laravel/resources/boost/skills/psalm-security-analysis ~/.claude/skills/psalm-security-analysisRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install psalm-security-analysis in Claude Code
git clone --depth 1 https://github.com/psalm/psalm-plugin-laravel /tmp/psalm-plugin-laravel && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/psalm-plugin-laravel/resources/boost/skills/psalm-security-analysis ~/.gemini/antigravity-cli/skills/psalm-security-analysisAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install psalm-security-analysis in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through a run, triage and report workflow for Psalm security (taint) analysis on a Laravel project. It runs Psalm in either a baseline mode that reports only new findings or a full mode that ignores the baseline. Results come as compact stdout lines plus a JSON report with source-to-sink taint traces, which the assistant queries with jq.
For each finding the assistant checks whether user input reaches the sink, whether any sanitization sits in between, and who can reach the endpoint. It then assigns a severity from HIGH to FALSE. The skill is for Laravel developers who want to find or fix taint errors. A separate reference file covers fixes and suppression annotations.
Written from the project's SKILL.md and checked against it.
What it can do
- Baseline runRuns Psalm taint analysis and reports only new findings since psalm-baseline.xml was created.
- Full audit runRuns Psalm taint analysis with the baseline ignored to surface all findings.
- Triage with JSON tracesUses the JSON report and jq to inspect source-to-sink taint chains for each finding.
- Severity classificationLabels findings as HIGH, MEDIUM, LOW or FALSE based on endpoint exposure and impact.
- Cross-file taint tracingGreps for method callers to trace taint flows across files when the trace is incomplete.
- Fix and suppression guidancePoints to a reference file with per-issue fix patterns and @psalm-taint-escape usage.
- Baseline policy checkExplains that Tainted* findings must be fixed or escaped, not added to the baseline.
What you need
- A Laravel project with Composer dependencies installed
- psalm-plugin-laravel installed in the project
- Psalm available at ./vendor/bin/psalm
- jq for querying the JSON report
Try asking
- Run a full Psalm security audit on this Laravel project
- Check for new taint issues since the last baseline
- Show the taint trace for every TaintedSql finding
Good to know
- Do not pipe Psalm output, because an early exit can stop the report file from being written.
- Do not add Tainted* findings to psalm-baseline.xml; fix or escape them instead.
- Http::get() facade calls may not propagate taint; calling the underlying class is more reliable.
- Psalm cannot track taint through chained calls such as ->upper() on Str::of() results.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: resources/boost/skills/psalm-security-analysis/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to psalm-security-analysis
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
psalm-security-analysis: common questions
Does this skill need psalm-plugin-laravel?
Yes. The skill description states that it requires psalm-plugin-laravel to be installed.
What does the skill check for?
It runs Psalm taint analysis and covers issues such as SQL injection, XSS, SSRF, file, shell and redirect sinks.
Does it fix the code automatically?
The source describes triage and reporting in this file and points to a separate reference file for fix patterns and annotations.
How do I install psalm-security-analysis?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is psalm-security-analysis free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is psalm-security-analysis safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to psalm-security-analysis?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
