Static analysis security scanning and architectural trifecta detection using semgrep. Use when reviewing code for security vulnerabilities, running SAST scans, checking for the lethal trifecta (private data + untrusted input + external comms co-occurrence), or when the user says 'scan', 'security scan', 'trifecta check', 'check for vulnerabilities', 'SAST', or 'secure this code'. On-demand via /scan and /trifecta-check commands.
Integrate semgrep as a deterministic SAST oracle into the agent workflow. Two capabilities:
/scan): Run semgrep on target files, parse findings into severity-grouped markdown./trifecta-check): Detect architectural anti-patterns where private data access, untrusted input processing, and external communication co-occur in a single file.Use this skill when:
/scan or /trifecta-checkRun setup before first use:
bash <skill-dir>/scripts/setup.sh
bash <skill-dir>/scripts/scan.sh <targets> | python3 <skill-dir>/scripts/parse_findings.py
references/secure-coding-guidelines.md for the relevant vulnerability class.python3 <skill-dir>/scripts/trifecta_audit.py <targets>
references/lethal-trifecta.md for separation guidance.Report findings with:
Project-specific semgrep rules live in rules/. Run them with:
bash <skill-dir>/scripts/scan.sh <targets> --config <skill-dir>/rules/
See references/writing-custom-rules.md for authoring guidance.
| Severity | Action | |----------|--------| | CRITICAL | Flag immediately. Block merge recommendation. | | HIGH | Flag prominently. Recommend fix before merge. | | MEDIUM | Report with context. Fix recommended but not blocking. | | LOW | Report in summary. Informational. |
semgrep rule downloads require network access on first run. After initial fetch, rules are cached locally. Use --metrics=off and --disable-version-check to minimize network calls.
Two security skills, distinguished by scope.
repo-hardening — broader posture audit (supply-chain, CI/CD, GitHub Actions pinning, branch protection). Pair on high-stakes audits; this skill is the application-code half.audit-skill — security audit specifically for agent skills. Different artifact; use it before installing third-party skills.Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer