Sast configuration

From kumaran-is/claude-code-onboarding · View interactive version

Sast configuration is an AI agent skill from the GitHub repository kumaran-is/claude-code-onboarding. Static Application Security Testing (SAST) configuration skill. Use when setting up security scanning, configuring Semgrep rules, running SAST in CI/CD, reviewing SAST findings, or writing custom security rules. Triggers: SAST, static analysis, Semgrep, Bandit, ESLint security, code scanning, vulner

How to use this skill

Skill file

Iron Law: NO SAST CONFIGURATION WITHOUT READING THE CUSTOM RULES FILE FIRST

Read references/semgrep-custom-rules.md before writing or modifying any SAST configuration.

When to Use

Process

  1. Detect languages — Check for pom.xml (Java), package.json (TS), pyproject.toml (Python), pubspec.yaml (Dart)
  2. Load custom rules — Read references/semgrep-custom-rules.md for project-specific rules already in place
  3. Select tools — Java → SpotBugs + Semgrep; TS/Angular/NestJS → ESLint security + Semgrep; Python → Bandit + Semgrep; Dart → dart analyze
  4. Configure — See references/sast-tool-config.md for config file templates and CI/CD step
  5. Run and triage — Execute /security-sast [path], classify findings, suppress false positives per the suppression patterns in tool config

References

| File | Content |

|------|---------|

| references/semgrep-custom-rules.md | 10 custom Semgrep rules for Java/TS/Python, usage, suppression syntax |

| references/sast-tool-config.md | Tool comparison matrix, config templates (Bandit/.bandit, ESLint, dart analyze, Semgrep CI), risk scoring thresholds |

Error Handling

If a scanner is not installed, report the install command from the tool config reference rather than skipping the scan silently.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.