code-security

code-security is a skill for Claude Code from ApiliumCode/mayros. It costs 16 tokens per session (478 once invoked), scanned A, original, MIT.

A code-security review that identifies supported vulnerabilities and labels them with OWASP Top 10 categories, CWE identifiers, and severity levels. OWASP Top 10 is a common list of major web-security risks, while CWE is a catalog of software weakness types.

In plain words
What is it for?
Use it to review code for issues such as SQL injection, cross-site scripting, command injection, hardcoded secrets, weak cryptography, and missing authentication.
Why use it?
It gives security findings a consistent classification and severity, making them easier to assess before human review.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to review code for issues such as SQL injection, cross-site scripting, command injection, hardcoded secrets, weak cryptography, and missing authentication.

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

Made for: Claude Code.

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 code-security

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/apiliumcode/mayros/code-security"><img src="https://agentmods.dev/badge/skills/apiliumcode/mayros/code-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 478 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.00016 $0.00478
Opus 5.5 $0.00006 $0.00191
Sonnet 5.5 $0.00003 $0.00096
Haiku 4.5 $0.00002 $0.00048

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

Security

Grade A, and why

code-security 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.

The scan reads SKILL.md. This mod also ships 3 executable files (skill.test.ts, skill.ts, types.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/official/code-security/SKILL.md · 60 lines

What it actually says

code-security

Classifies code vulnerabilities by OWASP Top 10 categories and CWE identifiers, providing severity ratings for each finding.

When to Use

Use this skill when:

  • Reviewing code snippets stored in the knowledge graph for security vulnerabilities
  • Performing automated security audits on code content
  • Classifying findings by CWE identifier and severity level before human review

Vulnerability Coverage

The skill detects 12 vulnerability classes:

CWE Category Severity
CWE-89 SQL Injection critical
CWE-79 Cross-Site Scripting (XSS) high
CWE-78 Command Injection critical
CWE-22 Path Traversal high
CWE-502 Insecure Deserialization high
CWE-798 Hardcoded Secrets critical
CWE-95 Code Injection critical
CWE-918 Server-Side Request Forgery (SSRF) high
CWE-327 Weak Cryptography medium
CWE-601 Open Redirect medium
CWE-209 Information Exposure low
CWE-306 Missing Authentication medium

Instructions

  1. Store code content in the graph using skill_assert or other write tools
  2. Query with predicate security:finding to trigger the code-security runtime
  3. The skill enriches each result with a findings array containing CWE IDs and severity levels
  4. Use security:vulnerability (with proof) to record confirmed vulnerabilities
  5. Query security:history to review past audit results for the current agent
Files

What ships with it

9 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. 1mo ago First seen · 60 lines · 16 tokens per session scan A 987494944bac

Subscribe to this mod's changes

code-security is a skill published in the GitHub repository ApiliumCode/mayros (13 stars, last pushed 3mo ago), licensed MIT. It adds 16 tokens to every session and 478 once invoked, about $0.0001 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-30.