security-audit

security-audit is a skill for Claude Code from marcoguillermaz/Tierward. It costs 0 tokens per session (5,151 once invoked), scanned A, original, MIT.

A review of web or native-app security, covering login permissions, input checks, record access, responses, secrets, headers, and platform protections.

In plain words
What is it for?
It helps audit API routes, middleware, database access policies, environment settings, dependencies, and native permissions, then record findings in a refactoring backlog.
Why use it?
It looks for ways users could access data or actions they should not, expose secrets, send unsafe input, or weaken the app's security.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Part of the tierward plugin — 29 skills, 1 command, 1 hook, 1 MCP server shipped together

Good fit It helps audit API routes, middleware, database access policies, environment settings, dependencies, and native permissions, then record findings in a refactoring backlog.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/marcoguillermaz/tierward/security-audit
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.

Any agent
npx skills add marcoguillermaz/Tierward --skill security-audit
Clone the repo
git clone --depth 1 https://github.com/marcoguillermaz/Tierward

Made for: Claude Code.

Or install tierward, the plugin that ships this one along with the rest of its 29 skills, 1 command, 1 hook, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/marcoguillermaz/tierward/security-audit"><img src="https://agentmods.dev/badge/skills/marcoguillermaz/tierward/security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,151 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.05151
Opus 5 $0.00000 $0.02576
Sonnet 5 $0.00000 $0.01030
Haiku 4.5 $0.00000 $0.00515

Measured 9d ago against content hash c184a5c6b9bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

security-audit scanned grade A 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 9d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**Live check** (staging): curl the staging URL and compare actual headers received vs configuration. A header present in config but absent in the response indicates a misconfiguration.
packages/cli/templates/tier-l/.claude/skills/security-audit/SKILL.md · 381 lines

How it starts

The opening of the file, as written. The whole thing — 381 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Configuration (adapt before first run)

Replace these placeholders:

  • [SITEMAP_OR_ROUTE_LIST] - file listing all API routes with method, path, roles, and grouping - e.g. docs/sitemap.md, docs/routes.md. If not configured, the skill discovers routes by scanning the project's route handler directories. Announce the discovered routes before proceeding.

Scope: API routes, middleware/proxy, row-level access control policies, data validation, response shapes, environment variables, database configuration, dependencies. For native stacks: secrets management, platform security (Keychain/Keystore/entitlements), input validation, signing credentials, sensitive data protection. Out of scope: SEO, robots.txt, public crawlability, OpenGraph, sitemap.xml. Do NOT make code changes. Audit only. All findings are persisted to docs/refactoring-backlog.md via the backlog write-once protocol (.claude/rules/backlog-protocol.md).


Applicability check

Before any other step: read CLAUDE.md and check the Framework and Language fields.

  • Web or API project (Framework is NOT N/A - native app, OR route handler directories exist): proceed to Step 0 - full web audit (Steps 0–5) + Step 3e if the language is non-JS.
  • Native with API (Framework is N/A - native app AND route handler directories exist): proceed to Step 0 - full web audit (Steps 0–5) + Step 3e (native checks run in addition to web checks).
  • Native only (Framework is N/A - native app AND no route handler directories): skip Steps 0–5. Proceed directly to Step 3e (native-only audit). Then skip to Step 6 for the report.

Announce the execution path: Running security-audit - mode: [WEB | WEB+NATIVE | NATIVE-ONLY]


Step 0 - Target resolution

Parse $ARGUMENTS for a target: token.

Pattern Meaning
target:role:admin Focus on admin routes
target:section:export Focus on all export/bulk-data routes
target:section:<other> Read [SITEMAP_OR_ROUTE_LIST] - find rows matching the section keyword, resolve to API routes and related route files
No argument Full audit - all API routes

Read the full file on GitHub · 381 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 381 lines · 0 tokens per session scan A c184a5c6b9bb

Subscribe to this mod's changes

security-audit is a skill published in the GitHub repository marcoguillermaz/Tierward (4 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,151 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.