More screenshots
Works with the AI Agents you already use
Go Code Safety Check
'%s'", name)) or one InsecureSkipVerify: true is enough to lose your data.
$5
Go Code Safety Check
Example session with this skill installed
Check this project with go-code-safety-check.
- Read your context and instructions
- Compiled the go code safety
$ python3 scripts/check_go.py examples/risky
BLOCK handlers.go:15 G03 HARDCODED_SECRET
const jwtSecret = "<redacted>"
Why: A password, API key, token or JWT signing key is written in the code (a const, var, struct field or []byte("...") key). Everyone with the code or the binary has it; a known JWT key lets anyone forge logins.
Safer: Read secrets from the environment or a secret manager (os.Getenv("JWT_SECRET")), fail at start-up when they are missing, and rotate the exposed secret.
BLOCK handlers.go:19 G01 SQL_INJECTION
BLOCK handlers.go:31 G02 SHELL_COMMAND_FROM_VALUE
BLOCK handlers.go:40 G04 JWT_NONE_ALGORITHM
REVIEW handlers.go:26 G15 FILE_PATH_FROM_REQUEST
REVIEW handlers.go:35 G13 FAST_PASSWORD_HASH
REVIEW main.go:6 G16 PPROF_EXPOSED
REVIEW main.go:14 G17 CORS_ANY_ORIGIN_WITH_CREDENTIALS
REVIEW main.go:15 G11 TLS_VERIFY_OFF
REVIEW main.go:17 G14 SERVER_WITHOUT_TIMEOUTS
REVIEW tokens.go:9 G12 WEAK_RANDOM_TOKEN
(Each finding also has Why and Safer lines, as in the first one.)
Verdict: BLOCK. Checked 3 files, 3 with Go content.
This is a static check of file text. NOT FLAGGED is not a guarantee.
Connects securely to your tools. The creator never sees your data.
About this skill
One db.Query(fmt.Sprintf("... '%s'", name)) or one InsecureSkipVerify: true is enough to lose your data. This skill finds those and nine other Go security mistakes before you deploy, and tells you how to fix each one.
Your agent runs a scanner on your .go files. It skips comments, understands Go strings (including raw strings), follows SQL built in a variable to the call that runs it, and knows which values come from the request (FormValue, URL queries, gin, echo and chi parameters). It knows the safe patterns: placeholders ($1, ?), fixed strings, filepath.Base and crypto/rand. Generated files are skipped. It never runs Go. It returns BLOCK, REVIEW, or NOT FLAGGED, with the file, line, reason, and a safer approach. Secrets are never printed.
What it checks
BLOCK
- G01: SQL built with fmt.Sprintf or + and passed to Query, Exec, sqlx or GORM Raw and Where
- G02: exec.Command running a shell with a command that is not a fixed string
- G03: a hard-coded secret, password, API key or JWT signing key
- G04: the JWT none algorithm allowed
REVIEW
- G11: InsecureSkipVerify: true
- G12: math/rand used for tokens, secrets, OTPs or salts
- G13: md5, sha1 or sha256 on passwords
- G14: http.ListenAndServe or an http.Server without timeouts
- G15: file paths from the request in os.Open, ServeFile and similar
- G16: net/http/pprof imported
- G17: CORS that allows every origin together with credentials
What's included
- The scanner (Python 3.9+, standard library only)
- A rules guide with the reason and safer approach for each rule
- A risky and a safe example Go service, and the real report the scanner produces on the risky one
Limits It reads code as text, not as the Go type checker: values are followed within one file. Dependencies, known CVEs (use govulncheck) and data flow across packages are not checked. NOT FLAGGED is not a guarantee.
Static check of Go text. Values are followed within one file only; dependencies and cross-package data flow are not checked. NOT FLAGGED is not a guarantee.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
Permissions
Runs one local Python script in the terminal. It reads your project's files, writes nothing, and makes no network calls. The example service includes clearly fake, inert secrets (not-a-real-...) for the scanner to find. It is never run.