naver-mail

naver-mail is a skill for Claude Code from bam-bam-2/solo-skills. It costs 52 tokens per session (1,121 once invoked), scanned A, original, MIT.

A guide for reading Naver Mail through IMAP, a standard email-access method, when the webmail session is unavailable. It also documents a provided script for sending messages with attachments.

In plain words
What is it for?
Connecting to Naver's mail server, reading inbox messages and large attachments, and sending email with an optional file attachment.
Why use it?
It provides an alternative when browser login is blocked by an expired session and keeps the account details in environment settings.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the solo-skills plugin — 26 skills shipped together

Good fit Connecting to Naver's mail server, reading inbox messages and large attachments, and sending email with an optional file attachment.

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

Made for: Claude Code.

Or install solo-skills, the plugin that ships this one along with the rest of its 26 skills.

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 naver-mail

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

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

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 →

  • high Privilege Escalation · line 37
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 38
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 54
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
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.00052 $0.01121
Opus 5 $0.00026 $0.00561
Sonnet 5 $0.00010 $0.00224
Haiku 4.5 $0.00005 $0.00112

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

Security

Grade A, and why

naver-mail 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 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/send_naver_mail.py), 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.

Makes network callslowCapability

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

typ, d = M.fetch(ids[-1], '(BODY.PEEK[HEADER.FIELDS (FROM SUBJECT DATE)])')
skills/naver-mail/SKILL.md · 106 lines

How it starts

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

네이버 메일 IMAP 읽기

이 스킬이 시스템에 하는 일 (설치 전 확인)

  • 네이버 IMAP/SMTP 서버에 접속해 메일을 읽고 보냅니다.
  • 계정 정보는 .env에서만 읽습니다. 코드에 값을 넣지 말고, 애플리케이션 비밀번호를 발급해 쓰세요.
  • 자격증명을 출력하거나 다른 파일로 복사하지 않습니다.

네이버 웹메일은 세션이 자주 만료되고, 만료되면 저장된 비밀번호가 없어 로그인 화면에서 막힌다. 앱 비밀번호가 이미 .env에 있으므로 IMAP으로 바로 붙는 게 빠르다.

바로 쓰는 스크립트

scripts/send_naver_mail.py — 네이버 SMTP 발송기입니다. 첨부파일을 지원합니다.

python scripts/send_naver_mail.py \
  --to [email protected] --subject "제목" \
  --body-file body.txt --attach report.pdf

계정 정보는 코드에 넣지 말고 .env에 둡니다. 네이버는 애플리케이션 비밀번호를 따로 발급받아야 합니다.

자격증명 위치

~/Projects/<프로젝트>/운영/.env
~/Projects/<프로젝트>/운영/서초aict-웰커밍데이/.env

키 이름: NAVER_MAIL_USER, NAVER_MAIL_APP_PASSWORD (커뮤니티 레터 발송용으로 세팅된 것)

⚠️ 값을 출력하거나 다른 파일로 복사하지 말 것. 스크립트 안에서만 읽어 쓴다.

접속

imap.naver.com:993 SSL. 표준 imaplib이면 충분하다.

import imaplib, email
from email.header import decode_header
from pathlib import Path

env = {}
for p in [Path('.env'), Path('서초aict-웰커밍데이/.env')]:
    if p.exists():
        for line in p.read_text().splitlines():
            if '=' in line and not line.strip().startswith('#'):
                k, v = line.split('=', 1)
                env.setdefault(k.strip(), v.strip().strip('"').strip("'"))

M = imaplib.IMAP4_SSL('imap.naver.com', 993)
M.login(env['NAVER_MAIL_USER'], env['NAVER_MAIL_APP_PASSWORD'])
M.select('INBOX')

자주 쓰는 조회

# 발신자로 검색 (한글 검색어는 인코딩 이슈가 있으니 이메일 주소로 찾는 게 안전)
typ, data = M.search(None, 'FROM', '"[email protected]"')
ids = data[0].split()

# 헤더만 빠르게 (읽음 처리 안 되게 BODY.PEEK)
typ, d = M.fetch(ids[-1], '(BODY.PEEK[HEADER.FIELDS (FROM SUBJECT DATE)])')

# 전문 + 첨부
typ, d = M.fetch(ids[-1], '(RFC822)')
msg = email.message_from_bytes(d[0][1])

제목·파일명은 반드시 decode_header로 디코드한다(MIME 인코딩).

첨부파일

일반 첨부part.get_filename() + part.get_payload(decode=True)로 바로 저장된다.

대용량 첨부(네이버 "대용량 첨부")는 본문에 안 들어 있다. HTML 파트에서 링크를 뽑아 따로 받아야 한다.

import re
fids = re.findall(r'bigfile\.mail\.naver\.com/download\?fid=([^"\'&<>\s]+)', html)
# 중복 제거 후 각각:
# https://bigfile.mail.naver.com/download?fid=<urlencode한 fid>

Read the full file on GitHub · 106 lines

Files

What ships with it

1 file 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. 8d ago Changed · +11 lines 23fd71900864
  2. 12d ago First seen · 95 lines · 52 tokens per session scan A dc490cccf7b6

Subscribe to this mod's changes

naver-mail is a skill published in the GitHub repository bam-bam-2/solo-skills (363 stars, last pushed 9d ago), licensed MIT. It adds 52 tokens to every session and 1,121 once invoked, about $0.0003 per session on Opus 5. 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-30.