sast-configuration
Skill by wshobson
Configures Static Application Security Testing (SAST) tools such as Semgrep, SonarQube and CodeQL to detect vulnerabilities in application code. Written for teams setting up security scanning and DevSecOps pipelines.
Install sast-configuration
Built from the published package, never by AI.
git clone --depth 1 https://github.com/wshobson/agents /tmp/agents && mkdir -p ~/.claude/skills && cp -r /tmp/agents/plugins/security-scanning/skills/sast-configuration ~/.claude/skills/sast-configurationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/wshobson/agents /tmp/agents && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agents/plugins/security-scanning/skills/sast-configuration ~/.gemini/antigravity-cli/skills/sast-configurationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant guidance for setting up and configuring Static Application Security Testing (SAST) tools. It covers Semgrep, SonarQube and CodeQL, including custom rule creation, CI/CD integration examples for GitHub Actions, GitLab CI and Jenkins, and a pre-commit hook for Semgrep. It also includes a sample custom rule that flags a hardcoded JWT secret.
The source describes quality gates, security hotspot analysis, SARIF result processing and a PCI-DSS focused Semgrep scan. It also lists troubleshooting steps for false positives, performance problems and integration failures. The skill is aimed at teams setting up security scanning, implementing DevSecOps practices or automating code vulnerability detection. It points to related STRIDE analysis and threat mitigation skills.
Written from the project's SKILL.md and checked against it.
What it can do
- Semgrep configurationCovers custom rule creation, language-specific rules and false positive tuning for Semgrep.
- SonarQube setupCovers quality gates, security hotspot analysis and custom quality profiles.
- CodeQL analysisCovers GitHub Advanced Security integration, custom queries and SARIF result processing.
- CI/CD integrationShows Semgrep setup for GitHub Actions, GitLab CI and Jenkins.
- Pre-commit hookProvides a .pre-commit-config.yaml example that runs Semgrep before commits.
- Custom rule developmentShows a YAML Semgrep rule that flags a hardcoded JWT secret.
- Compliance scanningShows a Semgrep scan using the PCI-DSS ruleset with JSON output.
- TroubleshootingLists steps for high false positive rates, performance issues and integration failures.
What you need
- Python with pip, to install Semgrep
- Docker, to run SonarQube
- GitHub CLI with the CodeQL extension, for CodeQL
- A CI/CD runner with permissions for the chosen pipeline
Try asking
- Set up Semgrep in my GitHub Actions workflow with the OWASP Top Ten rules
- Write a Semgrep rule that flags hardcoded JWT secrets in my code
- Run a PCI-DSS focused Semgrep scan and save the results as JSON
Good to know
- The SonarQube Docker example disables Elasticsearch bootstrap checks, which the source says is only for a local try-out.
- A real SonarQube deployment needs vm.max_map_count of at least 524288 and fs.file-max of at least 131072 on the host.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/security-scanning/skills/sast-configuration/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to sast-configuration
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
sast-configuration: common questions
Which SAST tools does this skill cover?
The source covers Semgrep, SonarQube and CodeQL. It includes a comparison table with best use, language support, cost and integration notes for each.
What does the source say about cost?
The comparison table lists Semgrep as Free or Enterprise, SonarQube as Free or Commercial, and CodeQL as Free for open source.
Can I write my own security rules with it?
Yes. The source shows a YAML Semgrep rule using pattern matching, and describes custom CodeQL query development and custom SonarQube quality profiles.
How do I install sast-configuration?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sast-configuration free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is sast-configuration safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. 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 sast-configuration?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
