reply-to-email
Skill1 starsChanged 7 months agoMITView on GitHub
Find a specific incoming message (by sender, subject, or UID) in the user's Yandex Mail and compose a threaded reply with quoted original, configured HTML signature, and proper Re:/In-Reply-To/References headers. Use when the user says "reply to X", "reply to the last email from X", "ответь X", "ответь на письмо от X", "напиши ответ".
In this repository2 other files it gives its agents.
- check-inboxSkill
- compose-emailSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 7 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when the user wants to reply to an existing incoming message.
- Distinctive: line 19
Search strategy (use the first that matches):
- Very specific: line 30
Call mcp__yandex-mail__get_email with the UID to get the full body, sender, headers, and attachment list.
- Very specific: line 39
Read $CLAUDE_PLUGIN_ROOT/assets/signature.html and signature.txt
- Very specific: line 40
Check for $CLAUDE_PLUGIN_ROOT/assets/logo.jpg or logo.png
- Very specific: line 41
If signature files do not exist, tell the user to run ./scripts/setup.sh and stop.
- Distinctive: line 47
If you commit to action, give a concrete timeframe
- Distinctive: line 48
If you need clarifications, ask specific questions
- Distinctive: line 60
Ask: "Отправить ответ? / Send this reply?"
- Very specific: line 84
Do not reply to system addresses (noreply@, no-reply@, mailer-daemon@) — confirm first that the user actually wants this.
- Very specific: line 85
Do not use reply_all=True without an explicit request — the Cc list may include people the user doesn't want to ping.
- Distinctive: line 86
Do not start with "Спасибо за ваше письмо!" / "Thanks for your email!" — get to the point.
- Distinctive: line 87
Do not duplicate the quoted text in your own body — the recipient will see the quote below.
- Distinctive: line 88
Do not send if you couldn't actually find the original — the threading would be broken.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Reply to Email — threaded reply with quoting and signature
Use this skill when the user wants to reply to an existing incoming message. For a brand-new email, use compose-email.
Steps
1. Locate the original
Parse the user's request for one of:
- Sender name or email — "reply to Ivanov", "reply to user@example.com"
- Subject keyword — "reply to the message about Q3 quote"
- UID — if explicitly given
Search strategy (use the first that matches):
- UID given → skip to step 2.
- Email given →
mcp__yandex-mail__search_emails(from_addr="<email>", limit=5). - Name only →
search_emails(from_addr="<name>", limit=5)(IMAPFROMmatches the display-name part ofFrom:too). - Subject keyword →
search_emails(subject="<keyword>", limit=5). - Name + subject → combine both parameters in one call.
search_emails returns newest first. If exactly one result, use it. If multiple plausible matches, show a short list with UID, sender, subject and date, and ask which one. If zero results, say so plainly — do not fall back to send_email without an original.
2. Load the full original
Call mcp__yandex-mail__get_email with the UID to get the full body, sender, headers, and attachment list. Read it carefully and identify:
- What the sender is asking for
- Any specific questions to answer
- Any deadlines
3. Load the signature
Same as compose-email:
echo $CLAUDE_PLUGIN_ROOTto get the plugin root- Read
$CLAUDE_PLUGIN_ROOT/assets/signature.htmlandsignature.txt - Check for
$CLAUDE_PLUGIN_ROOT/assets/logo.jpgorlogo.png - If signature files do not exist, tell the user to run
./scripts/setup.shand stop.
4. Draft the reply
- Address by name (use full first name + patronymic in Russian when known)
- Answer the sender's specific questions in order — bullet them if there are several
- If you commit to action, give a concrete timeframe
- If you need clarifications, ask specific questions
- Do not paraphrase the original — the server will quote it after your text
Match the language and formality level of the original message.
5. Show the draft and wait for confirmation
Show:
- To (the original sender's address)
- Subject (
Re: <original subject>) - Reply body (without the quote — that's appended automatically)
Ask: "Отправить ответ? / Send this reply?"
Send only after explicit yes.
6. Send
mcp__yandex-mail__reply_to_email(
uid="<UID of the original>",
body="<plain reply text + signature.txt> — DO NOT include the original; the server quotes it",
html_body="<full HTML reply with signature, same template as compose-email>",
inline_images=[{"path": "<abs path to assets/logo.{jpg,png}>", "cid": "plugin-logo"}], # only if logo file exists
reply_all=False, # set True only if the user explicitly says "reply all" / "ответь всем"
)Important behaviour: the server appends the quoted original to body (plain) but NOT to html_body. Most modern clients render the HTML version, so the user typically sees only the new reply text plus the signature. If the user wants the original quoted in the HTML version too, embed it manually as <blockquote style="border-left: 3px solid #ccc; padding-left: 12px; color: #666;">...</blockquote>.
7. Confirm
Reply briefly: "Ответ отправлен на <email>" / "Reply sent to <email>".
What not to do
- Do not reply to system addresses (
noreply@,no-reply@,mailer-daemon@) — confirm first that the user actually wants this. - Do not use
reply_all=Truewithout an explicit request — the Cc list may include people the user doesn't want to ping. - Do not start with "Спасибо за ваше письмо!" / "Thanks for your email!" — get to the point.
- Do not duplicate the quoted text in your own body — the recipient will see the quote below.
- Do not send if you couldn't actually find the original — the threading would be broken. Report "not found" instead.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

