ponytail-sec

ponytail-sec is a skill for Claude Code from andypitcher/ponytail-sec. It costs 73 tokens per session (3,003 once invoked), scanned A, original, MIT.

A focused security review for code that is being changed now. It checks the current code changes, newly added software packages, and up to three important ways the changes could be made safer.

In plain words
What is it for?
Use it before merging a pull request or code change to review insecure settings, authentication, encrypted connections, network controls, and newly added packages.
Why use it?
It keeps security checks limited to the work being reviewed, making the most urgent issue easier to find before merging. It also checks whether new dependencies and unnecessary code add risk.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the ponytail-sec plugin — 5 skills, 1 agent shipped together

Good fit Use it before merging a pull request or code change to review insecure settings, authentication, encrypted connections, network controls, and newly added packages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andypitcher/ponytail-sec/ponytail-sec
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 andypitcher/ponytail-sec --skill ponytail-sec
Clone the repo
git clone --depth 1 https://github.com/andypitcher/ponytail-sec

Made for: Claude Code.

Or install ponytail-sec, the plugin that ships this one along with the rest of its 5 skills, 1 agent.

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 ponytail-sec

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/andypitcher/ponytail-sec/ponytail-sec"><img src="https://agentmods.dev/badge/skills/andypitcher/ponytail-sec/ponytail-sec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,003 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Tool Misuse · line 26
    Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.
    Fix: Override unsafe defaults with secure settings (verify=True, auth required, restrictive permissions). Review and harden all tool configurations.
How audits are shown
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.00073 $0.03003
Opus 5.5 $0.00029 $0.01201
Sonnet 5.5 $0.00015 $0.00601
Haiku 4.5 $0.00007 $0.00300

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

Security

Grade A, and why

ponytail-sec 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 4d 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.

skills/ponytail-sec/SKILL.md · 252 lines

How it starts

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

The lazy senior security engineer. The best vuln is the one you make unreachable with the smallest change.

Scope

Changed files and new code only — the current diff or the files explicitly named by the user. Do not scan the whole project. If no diff is available, ask the user which files are in scope before proceeding.

Ranking model

Fix lower layers first. A network control does not excuse skipping a code fix.

Layer 4 · Code       verify=False, InsecureSkipVerify          ← must-fix
Layer 3 · Auth       OAuth 2.1, JWT audience / issuer / alg    ← must-fix
Layer 2 · Transport  TLS with verified CA                       ← must-fix
Layer 1 · Network    NetworkPolicy (default-deny)               ← should-do
Layer 0 · Mesh       Istio mTLS                                 ← additive only

Break-risk — applies to all three passes

Break-risk is confidence the fix could break functionality, based on what static analysis can verify — not severity. Every finding in every pass carries one: code, dependency, and security alike.

  • Low — additive, or provably-unused removal (nothing references it). Apply freely.
  • Medium — tightening that may reject real inputs/flows the diff doesn't show.
  • High — removing/narrowing a grant, capability, or class whose consumers can live outside the diff (RBAC, shared service accounts, host mounts, reflection). Static review is blind here.

Medium/High findings of any type carry the ⚠️ validate-at-runtime line below.

Three passes, in order

Pass 1 — Code review

Does this new code need to exist? YAGNI, stdlib first, remove over refactor. Fewer lines = smaller attack surface. Dead code and unrequested abstractions are security debt. Scope to changed files only.

Pass 2 — Dependency assessment

New deps introduced in this diff only — any language (npm, PyPI, Maven, Cargo, Go modules, etc.). For each, web-search the registry page and OpenSSF Scorecard before judging — do not assess from name alone. Check: last release date, number of contributors, individual vs. company/org maintainer, presence of SECURITY.md, and OpenSSF Scorecard maintained score.

  • Does stdlib or the platform already do this? → remove.
  • Solo maintainer, low OpenSSF Scorecard, or stale? → fork or vendor and flag the risk.
  • Brings more than it costs, healthy upstream? → keep, pin immutably: exact version + lockfile for package deps, commit hash for VCS deps, digest for container images.

Prefer: remove > stdlib > vendor/fork > immutable pin > keep floating.

This pass judges supply-chain health — maintainer, freshness, whether the dep should exist at all. Enumerating published CVEs in third-party packages is out of scope for now; that is scanner work, tracked separately.

Pass 3 — Security findings

Kill-chain stages in order. A Stage 1 break voids all downstream defences. Rank within a stage by attacker leverage removed ÷ lines changed.

  • Stage 1 · Trust: TLS cert bypass, token validation gaps, auth bypass modes.
  • Stage 2 · Authz: RBAC wildcards, server-side claim validation, write/read separation.
  • Stage 3 · Exec: container escape surface, supply chain, shell injection, deserialization.
  • Stage 4 · Data: hardcoded secrets, debug endpoints, missing TLS, verbose logging.

Tags: auth rbac isolate dep inject secret expose

Every security finding carries a kind — practical triage, so a reader can sort "there's a way in" from "tighten this":

  • vulnerability — an exploitable weakness in code this project owns: privesc, auth bypass, injection, path traversal, unsafe deserialization.
  • hardening — a control is missing or too loose. Nothing is broken; the fix is a small diff.
  • secret — hardcoded credential or token material.

Published CVEs in third-party dependencies are out of scope. Do not enumerate advisories for packages the project consumes. Companion mode has three slots — a stream of pre-scored advisories, each fixed by a version bump, would bury the one small change that actually closes an attack path.

Read the full file on GitHub · 252 lines

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. 4d ago Changed 930e8599fbff
  2. 1mo ago Changed · +38 lines · -1 tokens per session 463b66940cff
  3. 1mo ago First seen · 214 lines · 74 tokens per session scan A 96d327556c0b

Subscribe to this mod's changes

ponytail-sec is a skill published in the GitHub repository andypitcher/ponytail-sec (12 stars, last pushed yesterday), licensed MIT. It adds 73 tokens to every session and 3,003 once invoked, about $0.0003 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 skills, from other repositories

prowler-compliance-review

Reviews Pull Requests that add or modify compliance frameworks. Trigger: When reviewing PRs with compliance framework changes, CIS/NIST/PCI-DSS additions, or compliance JSON files.

prowler-cloud/prowler · 41 tokens

prowler-pr

Creates Pull Requests for Prowler following the project template and conventions. Trigger: When working on pull request requirements or creation (PR template sections, PR title Conventional Commits check, changelog gate/no-changelog label), or when inspecting PR-related GitHub workflows like conventional-commit.yml…

prowler-cloud/prowler · 84 tokens

reviewer

Get a second-opinion review from Google's Antigravity CLI (agy staffer, fast Gemini) - of code (a diff, PR, working tree) or of a decision, plan, or design. Use when the user says /agy:reviewer, "have agy review this", "second opinion on my diff/PR/plan", or after finishing work and wanting an independent verifier…

keli-wen/agy-staff · 94 tokens

gemini-prompting

Internal guidance for composing Gemini and AGY prompts for coding, review, diagnosis, and research tasks inside the Gemini Claude Code plugin.

arcobaleno64/agy-plugin-cc · 31 tokens

Architecture Boundaries & Dependencies

Ensure architecture/design docs define clear boundaries, ownership, dependency direction, and change impact to avoid tight coupling.

s977043/river-review · 27 tokens

External Dependencies & Vendor Risks

Ensure designs document third-party dependencies, SLAs, quotas, failure modes, and vendor lock-in mitigation.

s977043/river-review · 27 tokens