ch0ks

Security Semgrep Setup — Security skill for Claude Code

Security community

Check if Semgrep is installed and working.

How to install Security Semgrep Setup

Installs to ~/.claude/skills/ch0ks-hackarandas-claude-toolbelt-security-semgrep-setup/SKILL.md

Terminal
mkdir -p ~/.claude/skills/ch0ks-hackarandas-claude-toolbelt-security-semgrep-setup && curl -fsSL https://raw.githubusercontent.com/ch0ks/hackarandas-claude-toolbelt/HEAD/commands/security-semgrep-setup.md -o ~/.claude/skills/ch0ks-hackarandas-claude-toolbelt-security-semgrep-setup/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Security Semgrep Setup does

Check if Semgrep is installed and working. If not, install it using the best available method. Then log in to Semgrep Pro, enable the Pro engine, and run a local Pro scan in the current directory.


Step 1 — Check if Semgrep is Already Installed

semgrep --version 2>/dev/null

If this succeeds, print the version and skip to Step 3 (login check). If this fails, proceed to Step 2.


Step 2 — Install Semgrep

Alternatives in Security

  • FastAPI Review — Review a FastAPI application for architecture, async correctness, dependency injection, Pydantic schemas, secu 243.5k ★
  • Defense In Depth — Implement multi-layered testing and security best practices 98.1k ★
  • Google Workspace Alert Center — Manage security alerts 21.6k ★

Full documentation available on GitHub

View Source Repository