security

security is a skill for Claude Code, Codex from rafaelghif/antigravity-agents. It costs 30 tokens per session (624 once invoked), scanned B, original, MIT.

A security review skill for changes involving login access, permissions, deployment pipelines, Dockerfiles, user input, or secrets. It requires checking the real database schema and using established password and session protections.

In plain words
What is it for?
Use it while changing authentication or permissions, CI/CD configuration, Dockerfiles, input handling, or secret-related code. It guides schema checks, access-control design, cryptography, and security scanning.
Why use it?
It helps prevent unsafe authentication, authorization, secret-handling, and input-processing changes. It also requires automated scans such as gitleaks or semgrep when available.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/rafaelghif/antigravity-agents/security
Any agent
npx skills add rafaelghif/antigravity-agents --skill security
Clone the repo
git clone --depth 1 https://github.com/rafaelghif/antigravity-agents

Made for: Claude Code, Codex.

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 security

README.md
[![agentmods](https://agentmods.dev/badge/skills/rafaelghif/antigravity-agents/security.svg)](https://agentmods.dev/skills/rafaelghif/antigravity-agents/security)
Your own site
<a href="https://agentmods.dev/skills/rafaelghif/antigravity-agents/security"><img src="https://agentmods.dev/badge/skills/rafaelghif/antigravity-agents/security.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 624 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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.00030 $0.00624
Opus 5 $0.00015 $0.00312
Sonnet 5 $0.00006 $0.00125
Haiku 4.5 $0.00003 $0.00062

Measured today against content hash a5bd51c654e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

security scanned grade B with 1 finding 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 today.

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.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

6. **Shell Isolation (Terminal-First Security)**: You are FORBIDDEN from executing global installs (`npm i -g`, `sudo`), modifying SSH keys, or running destructive recursive commands (`rm -rf /`). All shell execution MUS

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.agents/skills/security/SKILL.md · 32 lines

What it actually says

<CRITICAL_DIRECTIVE> Execute strict AppSec procedural audits and mandate ZERO-TOLERANCE for dummy authentication or authorization logic. </CRITICAL_DIRECTIVE>

<ENTERPRISE_STANDARDS>

  1. ZERO Dummy Auth: You are strictly FORBIDDEN from using hardcoded roles (e.g., if user.role == 'admin') or dummy data. You MUST implement industrial-standard Policy-Based Access Control (PBAC), Attribute-Based Access Control (ABAC), or a robust RBAC system backed by actual database relations.
  2. Industrial Cryptography: NEVER use mock hashes or plain-text passwords. You MUST integrate production-grade cryptography (e.g., Argon2id, bcrypt, or framework-native secure hashers) and fully implement JWT/Session validation.
  3. Strict Schema Fidelity: DO NOT hallucinate User, Role, or Permission tables. You MUST use grep_search to verify the exact database schema or Prisma/TypeORM/SQL models before writing authorization logic. </ENTERPRISE_STANDARDS>

<PROCEDURAL_WORKFLOW>

  1. Automated Scanning: Execute gitleaks detect or semgrep scan on your diffs before concluding the security audit. Do not rely solely on visual inspection. If tools are unavailable, explicitly note this in your report.
  2. Secret Scanning & Git Hygiene: Ensure all credentials, tokens, and private keys are strictly referenced via environment variables. Run python3 scripts/git_hygiene_guard.py --check to ensure zero untracked secrets or dirty stashes.
  3. Boundary Audit: If you added a new input vector (API endpoint, CLI argument), verify that a strict validation schema sits at the immediate boundary.
  4. Execution Context: If modifying Dockerfiles or CI workflows, verify that execution privileges are explicitly dropped (USER nonroot).
  5. Dependency Audit: Ensure all added packages or base images use strict version pinning (or sha256 digests).
  6. Shell Isolation (Terminal-First Security): You are FORBIDDEN from executing global installs (npm i -g, sudo), modifying SSH keys, or running destructive recursive commands (rm -rf /). All shell execution MUST be isolated to the project workspace.
  7. Verification & Audit Report: Run python3 scripts/verify.py --execute and output a <security_audit> block confirming these checks are complete. </PROCEDURAL_WORKFLOW>

<L9_STANDARDS>

  • Zero Trust: Always sanitize and validate input payloads. Never trust client-side validation.
  • Secrets Management: Never hardcode credentials. Always use environment variables or secret managers.
  • OWASP Top 10: Protect against SQL Injection, XSS, CSRF, and IDOR by default. </L9_STANDARDS>
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. today Changed a5bd51c654e3
  2. 6d ago First seen · 32 lines · 30 tokens per session scan B c1397f9db18f

Subscribe to this mod's changes

security is a skill published in the GitHub repository rafaelghif/antigravity-agents (5 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 624 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.