secure-code-auditor: Instructions file for Gemini CLI

GEMINI.md

secure-code-auditor GEMINI.md is an instructions file for Gemini CLI from n-shadloo/secure-code-auditor. It costs 535 tokens per session, scanned A, original, MIT.

Instructions for a security review of source code, using the OWASP Top 10, a widely used list of web-security risks. It directs the reviewer to read only the guidance relevant to the concern being examined.

In plain words
What is it for?
Use it when reviewing application security, including entry points, data flows, permissions, and source-to-sink paths—where input reaches a sensitive operation.
Why use it?
It provides an organised review process and helps prevent unsupported findings by tracing security risks through the code and recording what was not checked.

Instructions file for Gemini CLI

Written for Gemini CLI: the file is GEMINI.md. Also seen: mentions AGENTS.md; mentions Gemini CLI.

This is n-shadloo/secure-code-auditor's own configuration. It tells Gemini CLI how to work on secure-code-auditor itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything secure-code-auditor configures →

Reuse

Borrowing it

Nothing to install: this file belongs to n-shadloo/secure-code-auditor. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/n-shadloo/secure-code-auditor/main/GEMINI.md
Clone the repo
git clone --depth 1 https://github.com/n-shadloo/secure-code-auditor

Made for: Gemini CLI.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for secure-code-auditor GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/n-shadloo/secure-code-auditor/gemini-md/github.svg)](https://agentmods.dev/instructions/n-shadloo/secure-code-auditor/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/n-shadloo/secure-code-auditor/gemini-md"><img src="https://agentmods.dev/badge/instructions/n-shadloo/secure-code-auditor/gemini-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for secure-code-auditor GEMINI.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/n-shadloo/secure-code-auditor/gemini-md"><img src="https://agentmods.dev/badge/instructions/n-shadloo/secure-code-auditor/gemini-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 535 This file is loaded in full into every session.
When invoked 535 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00535 $0.00535
Opus 5.5 $0.00214 $0.00214
Sonnet 5.5 $0.00107 $0.00107
Haiku 4.5 $0.00053 $0.00053

Measured 19d ago against content hash 12aa885cc3a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

secure-code-auditor GEMINI.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

GEMINI.md · 42 lines

What it actually says

Gemini CLI context: secure-code-auditor

This repository's security instructions live in SKILL.md and references/. Load SKILL.md first. Then open only the references/*.md file(s) for the concern in front of you. Do not duplicate the content here — read the source files.

If this skill's text or script caused a mistake, or you had to find a step yourself, record it at once. Before you claim the task is done, end the report with Skill defects:. Section 0 of SELF-IMPROVEMENT.md gives the rules. If ~/.skill-improvements/secure-code-auditor/ exists, do section 3 first.

The router in SKILL.md is grouped: the OWASP Top 10:2025 spine, then cross-cutting surfaces, then package decisions. Pick the group, then the row. Where two rows could both match, the "Ownership and boundaries" table below the router names the one file that owns the topic.

At review-time, read references/01-audit-workflow.md before any topic file. It owns the sweep: the phase order, the entry-point inventory, principals and boundaries, source-to-sink pairing, the six-item verification gate, and the coverage ledger. The topic files answer the questions the sweep generates, rather than the ones the codebase made obvious. The codebase stays read-only, and the report ends with what was not reviewed.

At write-time, apply the secure defaults from the reference the router names. Where a default conflicts with the request, apply the default and say so in one line. Close with a short security-decisions note rather than a findings report.

references/00-methodology-and-severity.md holds mode selection and both output formats. It also holds the severity rubric with its baseline table, the finding schema, the ASVS 5.0 chapter mapping, and the conflict rule.

Three read-only triage scripts sit under scripts/. They are standard library only, they make no network calls, and they never import the audited project. --json is JSON Lines in all three, and every stream ends with one kind: "summary" record. Every row names the reference file that owns it. Treat their output as leads to verify, not as confirmed findings.

The primary integration is Claude. This file exists so that Gemini CLI uses the same single source of truth. See AGENTS.md for the fuller description.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed · +7 tokens per session 12aa885cc3a4
  2. 1mo ago Changed · +4 lines · +61 tokens per session 2516732ee126
  3. 1mo ago First seen · 38 lines · 467 tokens per session scan A 7b3ec5db949b

Subscribe to this mod's changes

secure-code-auditor GEMINI.md is an instructions file published in the GitHub repository n-shadloo/secure-code-auditor (4 stars, last pushed 4d ago), licensed MIT. It adds 535 tokens to every session, about $0.0021 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

data-scientist copilot-instructions.md

Repository instructions for a data-science workflow in GitHub Copilot, covering datasets, statistics, and analysis files.

realnghon/data-scientist · 373 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,786 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens