locus: Command for GitHub Copilot

.github/prompts/gemini-security-audit.md

gemini-security-audit is a command for GitHub Copilot from Nano-Nimbus/locus. It costs 0 tokens per session (365 once invoked), scanned A, original, MIT.

A GitHub Actions prompt for an AI coding agent to audit a Python repository for security problems and write review files. GitHub Actions is GitHub's service for running automated jobs such as tests and checks.

In plain words
What is it for?
It helps inspect application code, agent code, workflows, and dependency files, then produce a detailed Markdown report, scanner output files, and a short pull-request comment.
Why use it?
It combines unit tests, dependency checks, automated code scanning, and manual review so security findings are recorded in one place instead of being scattered across job logs.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

This is Nano-Nimbus/locus's own configuration. It tells GitHub Copilot how to work on locus 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 locus configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Nano-Nimbus/locus. 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/Nano-Nimbus/locus/main/.github/prompts/gemini-security-audit.md
Clone the repo
git clone --depth 1 https://github.com/Nano-Nimbus/locus

Made for: GitHub Copilot.

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 gemini-security-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/nano-nimbus/locus/gemini-security-audit/github.svg)](https://agentmods.dev/commands/nano-nimbus/locus/gemini-security-audit)
Your own site
<a href="https://agentmods.dev/commands/nano-nimbus/locus/gemini-security-audit"><img src="https://agentmods.dev/badge/commands/nano-nimbus/locus/gemini-security-audit/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 gemini-security-audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/nano-nimbus/locus/gemini-security-audit"><img src="https://agentmods.dev/badge/commands/nano-nimbus/locus/gemini-security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 365 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00365
Opus 5.5 $0.00000 $0.00146
Sonnet 5.5 $0.00000 $0.00073
Haiku 4.5 $0.00000 $0.00036

Measured 1mo ago against content hash 83da7b0ba5b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gemini-security-audit 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 1mo 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.

.github/prompts/gemini-security-audit.md · 50 lines

What it actually says

Gemini Code Assist GitHub Action Prompt: Security Audit + Reporting

You are running in GitHub Actions. Execute a full security audit pass and generate auditable artifacts.

Workflow

  1. Install dependencies:
    • uv sync --extra dev
  2. Run unit tests:
    • uv run pytest tests/unit/ -v --tb=short
  3. Run security tooling:
    • mkdir -p docs/audits/artifacts
    • uv run --with bandit bandit -r locus -f json -o docs/audits/artifacts/gemini-bandit.json || true
    • uv run --with pip-audit pip-audit > docs/audits/artifacts/gemini-pip-audit.txt 2>&1 || true
  4. Manually review exploitability and attack vectors in:
    • locus/mcp/
    • locus/agent/
    • .github/workflows/
    • dependency configuration (pyproject.toml, uv.lock)

Deliverables

Write:

  1. docs/audits/gemini-security-pr-review-report.md
  2. docs/audits/gemini-security-pr-comment.md

Full Report Schema

  1. Executive summary
  2. Scope and methodology
  3. Scanner results summary
  4. Findings by severity
  5. For each finding:
    • ID
    • Severity
    • Location with line numbers
    • Evidence
    • Exploit narrative
    • Impact
    • Fix recommendation
    • Temporary mitigation
  6. Final merge recommendation

Output Discipline

  • Be explicit about uncertainty.
  • Do not overstate scanner output.
  • If no major issues are found, still include residual risks and hardening suggestions.
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. 1mo ago First seen · 50 lines · 0 tokens per session scan A 83da7b0ba5b0

Subscribe to this mod's changes

gemini-security-audit is a command published in the GitHub repository Nano-Nimbus/locus (0 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 365 tokens. 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-09-08.