mandu-security

mandu-security is a skill for Claude Code, Codex from konamgil/mandu. It costs 46 tokens per session (853 once invoked), scanned A, original, MPL-2.0.

A security guide for Mandu applications, focused on authentication, authorization, input validation, and common web risks such as CSRF and XSS. Authentication checks who a user is; authorization checks what that user may do.

In plain words
What is it for?
Adding access guards, validating server input, configuring security headers and environment variables, and reviewing authentication or API changes.
Why use it?
It helps prevent unauthorized access, unsafe input handling, exposed secrets, and common browser-based attacks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Adding access guards, validating server input, configuring security headers and environment variables…

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/konamgil/mandu/mandu-security.svg)](https://agentmods.dev/skills/konamgil/mandu/mandu-security)
Your own site
<a href="https://agentmods.dev/skills/konamgil/mandu/mandu-security"><img src="https://agentmods.dev/badge/skills/konamgil/mandu/mandu-security.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 853 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.00046 $0.00853
Opus 5 $0.00023 $0.00426
Sonnet 5 $0.00009 $0.00171
Haiku 4.5 $0.00005 $0.00085

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

Security

Grade A, and why

mandu-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 7d 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.

docs/archive/skills/mcp-v0/mandu-security/SKILL.md · 128 lines

How it starts

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

Mandu Security

Mandu 애플리케이션의 보안 모범 사례 가이드. slot guard를 통한 인증/인가, 입력 검증, CSRF/XSS 방어, 환경 변수 관리를 다룹니다.

Agent Workflow Contract

This skill is a Domain addendum. It must not replace mandu-agent-workflow. Use it only after mandu.agent.plan selects security, auth, slot, API, or runtime domains.

Canonical workflow step: plan -> verify -> repair.

Preferred MCP tools:

Step Tools
plan mandu.agent.plan, mandu.docs.search
apply mandu.agent.apply
verify mandu.agent.verify, mandu.guard.check, mandu.contract.validate
repair mandu.agent.repair, mandu.guard.explain

Allowed file edits:

  • Auth/session slot logic named in the plan
  • Server-only validation and security header configuration
  • Environment templates, never secret values

Verification command:

mandu agent verify --changed --json --write

Common failures:

  • Exposing secrets through client bundles or sync artifacts
  • Changing auth behavior without route/API/slot verification
  • Treating guard findings as policy problems before checking source boundaries

Repair path:

mandu agent repair --from .mandu/agent-verify.json --json

When to Apply

Reference these guidelines when:

  • Implementing authentication in slots
  • Adding authorization guards
  • Validating user input
  • Protecting against CSRF/XSS attacks
  • Managing secrets and environment variables
  • Handling sensitive data

Rule Categories by Priority

Priority Category Impact Prefix
1 Authentication CRITICAL sec-auth-
2 Input Validation CRITICAL sec-input-
3 CSRF/XSS Protection HIGH sec-protect-
4 Environment & Secrets HIGH sec-env-
5 Data Handling MEDIUM sec-data-

Quick Reference

1. Authentication (CRITICAL)

  • sec-auth-guard - Use guard() for authentication checks
  • sec-auth-session - Secure session management
  • sec-auth-jwt - JWT token handling best practices

Read the full file on GitHub · 128 lines

Files

What ships with it

8 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. 7d ago First seen · 128 lines · 46 tokens per session scan A 28fe8c738a7e

Subscribe to this mod's changes

mandu-security is a skill published in the GitHub repository konamgil/mandu (46 stars, last pushed 10d ago), licensed MPL-2.0. It adds 46 tokens to every session and 853 once invoked, about $0.0002 per session on Opus 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.