Works with the AI Agents you already use
Zero-Trust Code Auditor & Security Guard
by Jocasta
Principal-level security auditor for detecting vulnerabilities, race conditions, and performance bottlenecks in code.
$3.99
Zero-Trust Code Auditor & Security Guard
Example session with this skill installed
Review this Go diff for a new payment handler. It uses a mutex to update the balance. Check for race conditions and IDOR vulnerabilities. Use the testing package for any generated tests.
- Read your context and instructions
- Compiled the zero-trust code auditor
I have audited the payment handler implementation in Go. The review identified a high-severity concurrency hazard regarding mutex scope and a critical authorization flaw.
🛡️ Zero-Trust Code Audit Report
1. Executive Summary & Verdict
- Verdict:
[REQUEST CHANGES] - Findings Summary:
[1 Critical, 1 High, 0 Medium, 1 Low]
2. Categorized Findings Matrix
🚨 [CRITICAL] Broken Object-Level Authorization (IDOR)
- Location:
internal/api/payments.go#L42-L45 - Vulnerability / Flaw: The handler fetches the
Accountrecord using only theaccount_idfrom the request body without verifying that the authenticateduserIDfrom the JWT context owns that account. An attacker can drain any account by guessing the ID. - Remediation:
- account, err := repo.GetAccount(req.AccountID)
+ account, err := repo.GetAccountForUser(req.AccountID, ctx.Value("userID"))
🚨 [HIGH] Improper Mutex Scope (Race Condition)
- Location:
internal/service/balance.go#L88-L102 - Vulnerability / Flaw: The mutex is unlocked before the database transaction is committed. Concurrent requests can read a stale balance from the database before the previous transaction finishes, leading to a double-spend.
- Remediation:
s.mu.Lock()
- defer s.mu.Unlock()
err := s.db.Transaction(func(tx *sql.Tx) error {
// update logic
})
+ s.mu.Unlock()
3. Defensive Security Audit (OWASP / CWE)
- Broken Object-Level Authorization (BOLA/IDOR): [Flagged]
- Injection & Input Validation: [Pass]
- Secret Exposure & Logging: [Pass]
4. Automated Regression & Concurrency Tests
func TestPaymentConcurrency(t *testing.T) {
service := NewPaymentService()
var wg sync.WaitGroup
for i := 0; i < 50; i++ {
wg.Add(1)
go func() {
defer wg.Done()
service.ProcessPayment(context.Background(), "acc_123", 100)
}()
}
wg.Wait()
// Assert final balance equals expected
}
Next steps
- Update the
GetAccountrepository call to includeuserIDvalidation. - Refactor the
balance.gomutex logic to ensure the lock covers the entire database transaction lifecycle. - Run the provided concurrency test to verify the fix under load.
Connects securely to your tools. The creator never sees your data.
About this skill
Automated code reviews often miss deep architectural flaws, race conditions, and subtle security vulnerabilities that lead to production outages or data breaches. This skill acts as a principal-level security auditor, performing zero-trust analysis on your pull requests to catch critical defects before they reach main.
What it does
- Security scanning identifies OWASP Top 10 vulnerabilities including SQLi, IDOR, and hardcoded secrets with precise line citations.
- Concurrency analysis detects race conditions, deadlocks, and missing distributed locks in asynchronous operations.
- Performance profiling assesses Big-O time and space complexity while flagging N+1 query bottlenecks and resource leaks.
- Automated test synthesis generates runnable unit, security, and concurrency tests for your specific framework.
- Remediation generation provides drop-in, production-ready diffs for every identified issue.
How it works
- Analyze input by inspecting your git diff or code snippet alongside your business intent and tech stack.
- Execute five-pillar audit covering severity categorization, defensive engineering, performance, test synthesis, and a merge verdict.
- Generate findings matrix with exact file paths, technical explanations, and before/after code blocks.
- Deliver verdict as a final "Request Changes" or "Approve" status based on strict enterprise standards.
Frameworks & tools
Works across any stack including TypeScript, Go, C#, and Python. Compatible with test runners like Vitest, pytest, and xUnit. Designed for use within Cursor, Claude Code, and GitHub Copilot.
Why this beats prompting it yourself
Generic prompts fail to enforce a systematic zero-trust protocol across five distinct engineering pillars. This skill guarantees every finding includes a technical justification and a valid code fix, preventing vague suggestions or hallucinated vulnerabilities.
Use cases
- Security sign-off for PRs handling sensitive PII or financial transactions.
- Concurrency debugging for high-throughput async services and distributed systems.
- Production readiness audits to ensure code meets SOLID principles and performance SLAs.
Known limitations
Does not perform syntax formatting or basic typo corrections. Vulnerabilities dependent on external infrastructure configuration are presented as verification questions rather than definitive flags.
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 buying a skill.
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 13 days ago
- Software
Python
Git
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.