Skip to content

Guide · Agent skill

How to use the SAST Configuration Guide agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The SAST Configuration Guide is an agent skill that teaches your AI agent how to set up static application security testing (SAST) tools, which scan source code for security flaws without running it. It is aimed at developers, DevOps engineers and security teams who want automated code scanning in a repository or CI pipeline. After reading this guide you will know what the skill does, how to install it, how to ask for help with natural requests, and what to check before you trust its output.

SAST Configuration Guidewshobson/agents · MIT

Quick start

  1. 1Download and unzip the skill. Download the ZIP from this page and unzip it into ~/.claude/skills/ for all projects, or into .claude/skills/ in one project.
  2. 2Check your requirements. Confirm you have Python with pip, Docker if you want SonarQube, the GitHub CLI with the codeql extension for CodeQL, and access to a CI/CD platform.
  3. 3Describe your goal. Ask the agent in plain language which tool you want and what the scan should cover, such as a Python repo or PCI-DSS checks.
  4. 4Run the example commands. Install Semgrep with pip and run it with --config=auto --error, or follow the SonarQube or CodeQL examples, checking each against the tool's documentation.
  5. 5Add the scan to CI/CD. Ask the agent to produce a workflow for your platform, then review it and store any tokens as secrets.
  6. 6Tune and review results. Start with a baseline, reduce false positives with path filters and documented suppressions, and have a person review findings.

What is an agent skill and what does this one do?

An agent skill is a folder containing a SKILL.md file that gives an AI agent specialised instructions for a task. This skill is named sast-configuration and its description says it is for configuring SAST tools to detect vulnerabilities in application code, typically when you set up security scanning, adopt DevSecOps practices or automate code vulnerability detection.

Once installed, the agent can guide you through setting up Semgrep, SonarQube or CodeQL, writing custom security rules, wiring scans into CI/CD pipelines such as GitHub Actions, GitLab CI or Jenkins, and reducing false positives. The skill provides guidance and example commands. It does not scan your code by itself; scans run only when you run the tools.

  • Semgrep: custom rules with pattern matching, language-specific security rules, CI/CD integration and false positive tuning
  • SonarQube: quality gates, security hotspot analysis, custom quality profiles and LDAP/SAML integration
  • CodeQL: GitHub Advanced Security integration, custom queries and SARIF result processing

How do you install the SAST Configuration skill?

Download the ZIP file for the skill from this page and unzip it. You can install it in one of two ways. For a personal setup that applies to all your projects, unzip it into ~/.claude/skills/. For a single project, unzip it into the .claude/skills/ folder inside that project.

If you use the Claude apps instead, open Settings, go to Capabilities, and upload the skill under Skills. The skill package contains one file, SKILL.md.

  • Personal install: unzip into ~/.claude/skills/
  • Project install: unzip into .claude/skills/ in your project root
  • Claude apps: Settings → Capabilities → Skills, then upload the ZIP

What do you need before using it?

The guidance assumes you already have a codebase and a development workflow. Check which of these you have before you start, because the skill's examples depend on them.

  • Python with pip, to install Semgrep
  • Docker, for the SonarQube example
  • GitHub CLI with the codeql extension, for CodeQL
  • A CI/CD platform account such as GitHub, GitLab or Jenkins
  • API tokens or credentials for your chosen SAST tool, if you use hosted or enterprise features

How do you trigger the skill with a natural request?

You do not need a special command. Describe what you want in plain language and mention the tool or the goal. The skill is meant to be used when you are setting up scanning, adding security checks to CI, or writing custom rules.

Good requests name the tool, the language and the target, for example asking the agent to add Semgrep to a Python repository with a GitHub Actions workflow. Vague requests still work, but the agent will need to ask you more questions first.

  • "Set up Semgrep on this Python repo and tell me the commands to run."
  • "Add a SAST scan to our GitHub Actions pipeline using the OWASP Top Ten rules."
  • "Write a custom Semgrep rule that flags JWT secrets hardcoded in our code."
  • "Help me tune out false positives from our last Semgrep run."
  • "We need a PCI-DSS scan configured for our payments service."

What commands does the skill cover?

The skill includes example commands for each tool. Treat them as starting points and check them against the tool's own documentation before running them on real code. The examples below are quoted from the skill's guidance.

Semgrep installs with pip and runs with a config and an error flag. SonarQube runs in Docker on port 9000. CodeQL is installed as a GitHub CLI extension and creates a database for a language.

pip install semgrep semgrep --config=auto --error docker run -d --name sonarqube -p 9000:9000 sonarqube:10.8-community gh extension install github/gh-codeql codeql database create mydb --language=python

What does a CI/CD integration look like?

The skill shows a GitHub Actions step that runs Semgrep with the p/security-audit and p/owasp-top-ten rule sets. Ask the agent to adapt this to your GitLab CI or Jenkins setup if that is what you use. Review the generated workflow before committing it, since it will run in your pipeline with your permissions.

- name: Run Semgrep uses: returntocorp/semgrep-action@v1 with: config: >- p/security-audit p/owasp-top-ten

What about safety, scripts and network access?

This skill is marked as running scripts and using the network. Its guidance refers to a helper script, ./scripts/run-sast.sh, and to reference files such as references/semgrep-rules.md. Read any script before you run it, and check what network calls it makes. Tools such as SonarQube and hosted Semgrep features may need credentials, so keep API tokens out of committed files and store them in your CI secrets.

Because SAST only reads source code, it will not find runtime or configuration problems. Scan results still need expert review, and the skill does not replace a professional security audit.

  • Read scripts such as run-sast.sh before executing them
  • Store API tokens in CI secrets, not in the repository
  • Confirm that any network access matches what you expect

What tips help you get useful results?

The skill's own best practices are a good checklist. Start with a baseline scan and prioritise critical and high findings. Add security rules first, then code quality rules, and block builds only for critical issues at the start. Document any suppressions and review them regularly. Exclude test files and generated code to cut noise.

  • Run a baseline scan first and build a remediation list
  • Begin with security rules and block only on critical findings
  • Record suppressions and review them regularly
  • Exclude tests and generated code from scans
  • Use the troubleshooting advice for false positives, slow scans and integration failures

What people use it for

  • Adding a Semgrep scan with OWASP rules to a GitHub Actions pipeline on every pull request
  • Writing a custom Semgrep rule that flags hardcoded JWT secrets in your codebase
  • Setting up SonarQube locally in Docker to try quality gates and security hotspot review
  • Creating a CodeQL database for a Python project as a first step toward GitHub Advanced Security
  • Preparing scan configuration for a PCI-DSS or SOC 2 compliance review

Frequently asked questions

How do I install the SAST Configuration agent skill?

Download the ZIP from this page and unzip it into ~/.claude/skills/ for a personal install, or into .claude/skills/ inside a project. In the Claude apps you can instead go to Settings, Capabilities, Skills and upload the ZIP.

Is the SAST Configuration skill free?

The skill is published under the MIT licence. The tools it covers have their own terms: Semgrep and CodeQL have free options, while SonarQube has community and commercial editions, so check each tool's licence before you rely on it.

What are the requirements to use this skill?

You need Python with pip for Semgrep, Docker for the SonarQube example, the GitHub CLI with the codeql extension for CodeQL, and a CI/CD platform such as GitHub, GitLab or Jenkins. Hosted or enterprise features also need API tokens or credentials.

Does the skill scan my code for vulnerabilities?

No. The skill provides guidance and example commands. Scans only happen when you run the SAST tools yourself, and the results still need expert review.

Which is better, Semgrep, SonarQube or CodeQL?

It depends on your goal. The skill describes Semgrep for custom rules and fast scans, SonarQube for code quality plus security, and CodeQL for deep analysis and GitHub-native integration. Pick based on your languages and CI platform.

Why is my SAST scan showing too many false positives?

The skill suggests tuning rule sensitivity, adding path filters to exclude test files, using documented suppressions for known safe patterns and creating organisation-specific rule exceptions.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

This skill is a good fit for developers, DevOps engineers and security teams who already have a codebase and CI pipeline and want step-by-step help setting up SAST. It is not a dynamic testing tool, will not work well for non-technical users without a development workflow, and does not replace a professional security audit.

Download the skill