Mandu security

From konamgil/mandu · View interactive version

Mandu security is an AI agent skill from the GitHub repository konamgil/mandu. Security best practices for Mandu applications. Use when implementing authentication, authorization, input validation, or protecting against common vulnerabilities. Triggers on guard, auth, CSRF, XSS, or security tasks.

How to use this skill

Skill file

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:

Verification command:

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

Common failures:

Repair path:

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

When to Apply

Reference these guidelines when:

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)

2. Input Validation (CRITICAL)

3. CSRF/XSS Protection (HIGH)

4. Environment & Secrets (HIGH)

5. Data Handling (MEDIUM)

Security Checklist

□ Authentication required for protected routes
□ Input validated on server side
□ Output escaped/sanitized
□ CSRF tokens for state-changing operations
□ Security headers configured
□ Secrets in environment variables only
□ No sensitive data in client bundles

How to Use

Read individual rule files for detailed explanations:

rules/sec-auth-guard.md
rules/sec-input-validate.md
rules/sec-protect-csrf.md
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.