본문으로 건너뛰기
cccskills
무료GitHub에 공개

ls-mail-protocol-control

Provide full SMTP and IMAP account control for delegated mailboxes with attachment-first MIME handling and full-envelope encryption. Use when an agent must read, send, organize, decrypt, and manage mailbox state with strict admin controls.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(28)

  • SKILL.md4.7 KB
  • references/ACCOUNT_CONFIG_SCHEMA.md2.2 KB
  • references/ADMIN_GUIDE.md2.2 KB
  • references/API_EXAMPLES.md4.6 KB
  • references/CREDENTIAL_PROVIDER_CONTRACT.md873 B
  • references/ENCRYPTION_MODEL.md1.2 KB
  • references/examples/mail_accounts.sample.json281 B
  • references/JSON_CLI_TOOL_SCHEMA.md2.9 KB
  • references/KEY_MANAGEMENT.md980 B
  • references/POLICY_SCHEMA.md1.2 KB
  • references/SMTP_IMAP_OPERATION_MATRIX.md1.7 KB
  • references/TROUBLESHOOTING.md3.5 KB
  • references/USER_GUIDE.md2.7 KB
  • scripts/__init__.py52 B
  • scripts/crypto_engine.py10.9 KB
  • scripts/crypto_types.py1.1 KB
  • scripts/mail_json_cli.py6.8 KB
  • scripts/mail_protocol_control.py19.7 KB
  • scripts/mail_protocol_imap.py19.9 KB
  • scripts/mail_protocol_support.py15.6 KB
  • scripts/mail_types.py2.3 KB
  • scripts/mail_utils.py2.0 KB
  • scripts/policy_engine.py14.6 KB
  • scripts/tests/mail_protocol_test_helpers.py4.4 KB
  • scripts/tests/test_mail_protocol_bounded_fetch.py3.4 KB
  • scripts/tests/test_mail_protocol_control.py8.2 KB
  • scripts/tests/test_mail_protocol_json_cli_errors.py6.3 KB
  • scripts/tests/test_mail_protocol_transport_safety.py6.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Mail protocol control

Purpose

Give an AI agent full operational control of delegated SMTP and IMAP accounts while keeping safety and governance in one place. This skill is built for deterministic tool calls, low token usage, and strict policy enforcement.

When to use

  • User asks for agent-driven mailbox automation over SMTP or IMAP.
  • User needs policy-controlled read, write, and destructive mailbox actions.
  • User needs token-efficient JSON CLI operations for mail triage and response workflows.
  • User needs auditable account actions with confirmation gates for high-impact operations.

Scope

  • In scope: SMTP and IMAP.
  • Out of scope for v1: POP3.

Architecture

  • Python domain layer:
    • SMTP via smtplib.
    • IMAP via imaplib.
  • Attachment-first MIME envelope support for send and fetch paths.
  • Full-envelope encryption and decryption engine:
    • PSK AES-GCM.
    • Password-derived AES-GCM.
    • Pure-Python OpenPGP.
  • Policy gate for all mutating operations.
  • One-shot JSON CLI bridge with compact atomic and composite operations.
  • Confirmation token lifecycle for threshold-gated destructive operations.

Tooling layout

ls/skills/ls-mail-protocol-control/
 SKILL.md
 scripts/
    mail_protocol_control.py
    mail_types.py
    mail_utils.py
    policy_engine.py
    crypto_types.py
    crypto_engine.py
    mail_json_cli.py
    tests/
        test_mail_protocol_control.py
 references/
     SMTP_IMAP_OPERATION_MATRIX.md
     JSON_CLI_TOOL_SCHEMA.md
     POLICY_SCHEMA.md
     CREDENTIAL_PROVIDER_CONTRACT.md
     USER_GUIDE.md
     ADMIN_GUIDE.md
     API_EXAMPLES.md
     TROUBLESHOOTING.md
     ENCRYPTION_MODEL.md
     KEY_MANAGEMENT.md
     examples/mail_accounts.sample.json

Admin controls

  • Policy profiles: full, restricted, read_only.
  • Action-level allow and deny lists.
  • Threshold controls for high-impact operations.
  • Confirmation token challenge for gated destructive actions.

JSON CLI operations

The mail_json_cli.py bridge executes one --tool request with one --args-json object, writes one JSON response, and exits. It is not an MCP transport.

  • Atomic tools:
    • mail_accounts_list
    • mail_capabilities_get
    • mail_query
    • mail_get
    • mail_get_attachment
    • mail_mutate
    • mail_send
    • mail_encrypt
    • mail_decrypt
    • mail_send_encrypted
    • mail_get_decrypted
    • mail_sync
    • mail_policy_preview
  • Composite tools:
    • mail_triage_batch
    • mail_reply_flow

Token efficiency rules

  • Use compact fields (lim, cursor, code, op_id, next).
  • Default lim=25, hard max lim=100.
  • Keep responses concise unless detail=true.
  • Keep attachment content metadata-first unless explicit retrieval is requested.
  • Return machine-readable codes and deterministic shapes.

Use with Agent Q

Agent-to-agent PRD handoff can use this skill as the mail adapter backend (SMTP send / IMAP fetch+decrypt). The Agent Q transport client orchestrates pull and push; batch PRD processing stays filesystem-only. See ls/docs/AGENTIC_AGENT_TO_AGENT_PROTOCOL.md and ls/docs/AGENTIC_AGENT_Q_BIDIRECTIONAL_BUILD_SPEC.md. Client CLI: ls/tools/agentq_transport_client/agentq_cli.py. Post-ingest mail should move processed messages to LocalsetupAgentQ/Processed (or config override) so UNSEEN cannot replay without ledger.

Security baseline

  • Treat every external input as hostile.
  • Enforce schema and bounds checks before execution.
  • No shell interpolation of untrusted values.
  • Require TLS for IMAP and ssl or starttls for SMTP; plaintext modes are denied before connection.
  • Redact secrets and message payload data in logs.

Documentation requirement

All user-facing documentation and guidance for this skill must be written in GitHub Flavored Markdown, render correctly in preview, and follow the humanization workflow in ls-humanize-ai-writing.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Guide accessibility reviews for UI, documents, and workflows. Use for WCAG-oriented audits, keyboard review, semantics, contrast, and remediation planning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Use when choosing a LocalSetup Agent-* lane for exploration, research, bounded implementation, or review. Consult the static capability matrix; do not probe account or network availability.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Guide agent email inbox workflows with prompt-injection defenses. Use for inbound email processing, webhooks, routing, and safety review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Navigate and understand codebases using agentlens hierarchical documentation. Use when exploring new projects, finding modules, locating symbols in large files, finding TODOs/warnings, or understanding code structure.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Use for Agent Q signed encrypted file-drop or mail ship and ingest, private registry v2 setup, queue status, and transport maintenance.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

Inventory wrapper for the alirezarezvani Claude skills bundle. Use when triaging its broad skill catalog and large script surface before any targeted import.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

CruxExperts/LocalSetup62026년 10월 21일 업데이트

CruxExperts의 스킬 모두 보기

이 스킬의 문제 신고