Gmail Query Syntax
provos/ironcurtain
Reference for Gmail's search query syntax — operators like is:sent, newerthan:, from:, has:attachment, label:, and how they compose.
Connects, registers, and operates a personal mailbox, reading, searching, sending, and organizing, through a managed mail server for nine domains.
$ npx skills add agentscope-ai/QwenPaw --skill mailbox -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install agentscope-ai/QwenPaw mailbox --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/agentscope-ai/QwenPaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/qwenpaw/agents/skills/mailbox-en .claude/skills/mailbox && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "mailbox" agent skill from https://github.com/agentscope-ai/QwenPaw/tree/main/src/qwenpaw/agents/skills/mailbox-en into .claude/skills/mailbox/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mailbox", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/agentscope-ai/QwenPaw/tree/main/src/qwenpaw/agents/skills/mailbox-enType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add agentscope-ai/QwenPaw --skill mailbox -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install agentscope-ai/QwenPaw mailbox --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/agentscope-ai/QwenPaw.git skills-src && mkdir -p .agents/skills && cp -r skills-src/src/qwenpaw/agents/skills/mailbox-en .agents/skills/mailbox && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "mailbox" agent skill from https://github.com/agentscope-ai/QwenPaw/tree/main/src/qwenpaw/agents/skills/mailbox-en into .agents/skills/mailbox/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mailbox", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add agentscope-ai/QwenPaw --skill mailbox -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install agentscope-ai/QwenPaw mailbox --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/agentscope-ai/QwenPaw.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/src/qwenpaw/agents/skills/mailbox-en .cursor/skills/mailbox && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "mailbox" agent skill from https://github.com/agentscope-ai/QwenPaw/tree/main/src/qwenpaw/agents/skills/mailbox-en into .cursor/skills/mailbox/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mailbox", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/agentscope-ai/QwenPaw.git --path src/qwenpaw/agents/skills/mailbox-en--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add agentscope-ai/QwenPaw --skill mailbox -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install agentscope-ai/QwenPaw mailbox --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/agentscope-ai/QwenPaw.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/src/qwenpaw/agents/skills/mailbox-en .gemini/skills/mailbox && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "mailbox" agent skill from https://github.com/agentscope-ai/QwenPaw/tree/main/src/qwenpaw/agents/skills/mailbox-en into .gemini/skills/mailbox/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mailbox", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install agentscope-ai/QwenPaw mailboxInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add agentscope-ai/QwenPaw --skill mailbox -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/agentscope-ai/QwenPaw.git skills-src && mkdir -p .github/skills && cp -r skills-src/src/qwenpaw/agents/skills/mailbox-en .github/skills/mailbox && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "mailbox" agent skill from https://github.com/agentscope-ai/QwenPaw/tree/main/src/qwenpaw/agents/skills/mailbox-en into .github/skills/mailbox/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mailbox", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add agentscope-ai/QwenPaw --skill mailbox -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install agentscope-ai/QwenPaw mailbox --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/agentscope-ai/QwenPaw.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/src/qwenpaw/agents/skills/mailbox-en .opencode/skills/mailbox && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "mailbox" agent skill from https://github.com/agentscope-ai/QwenPaw/tree/main/src/qwenpaw/agents/skills/mailbox-en into .opencode/skills/mailbox/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "mailbox", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
mailboxConnects, registers, and operates a personal mailbox, reading, searching, sending, and organizing, through a managed mail server for nine domains.
This skill supports NetEase, Tencent, Sina, Alibaba, and Google personal mail domains, each needing either a 16-character authorization or app code, or for Alibaba an existing account's login password. Enterprise mailboxes, custom domains, and Microsoft mailboxes are explicitly unsupported, and it won't improvise raw IMAP or SMTP as a workaround.
It keeps sensitive fields such as the auth code, password, and phone number out of its public configuration file and redacted from API responses, resolving the encrypted credential into a managed connection only at runtime. It never reads, decrypts, prints, or searches logs for a stored secret, relying instead on its documented connect-or-create workflow.
2 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit f389534. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are json).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
zc.reg.163.comssl.zc.qq.commail.sina.com.cnmail.sina.cnaccounts.google.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Mailbox Operations Hub loads about 2.6k tokens when it runs. Until then it costs about 94 tokens; SKILL.md has 1,218 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from agentscope-ai/QwenPaw at commit f389534, republished under its Apache-2.0 licence (© agentscope-ai). 1,218 words, ~2,569 tokens.
.claude/skills/mailbox/SKILL.md (or your agent's skills folder).Use qwenpawmail-mcp to connect or register a mailbox and perform email operations.
The managed QwenPaw mailbox workflow supports these nine mail domains:
| Provider | Domains | Login credential |
|---|---|---|
| NetEase | 163.com, 126.com, yeah.net | 16-character authorization code |
| Tencent | qq.com, foxmail.com | 16-character authorization code |
| Sina | sina.com, sina.cn | 16-character authorization code |
| Alibaba | aliyun.com | Mailbox login password; existing accounts only |
gmail.com | 16-character app password after enabling 2-Step Verification |
Enterprise mailboxes, custom domains, and Microsoft mailboxes are not supported by the current managed workflow. Do not try enterprise provider overrides or custom IMAP/SMTP hosts. Ask the user to choose one of the supported personal domains instead.
create_mailbox provides built-in registration guidance only for 163.com, 126.com, yeah.net, qq.com, and foxmail.com. Other supported domains require their official registration flow. New aliyun.com registration is unavailable; only existing accounts can be connected.
For any email operation, use this skill as the entry point. Do not invent another email workflow or bypass qwenpawmail-mcp with raw IMAP/SMTP commands.
agent.json contains only public mailbox configuration. Its expected mail shape is:
{
"mail": {
"is_new_account": false,
"credential": {
"name": "myaccount",
"domain": "163.com",
"provider": ""
},
"push": {
"mode": "off",
"rules": [],
"poll_interval_seconds": 120,
"access_control_enabled": false
}
}
}The sensitive fields auth_code, password, and phone_number are intentionally absent from agent.json and redacted from Agent API responses. The provider credential represented by auth_code is stored encrypted after it is configured. Registration passwords and phone numbers are entered only on the provider page and are not stored by the current QwenPaw workflow. The absence of auth_code from public configuration does not mean that the user did not configure it.
QwenPaw resolves the encrypted provider credential into the managed DriverCard only at runtime. Never read, decrypt, print, copy, or modify credentials.yaml, and never search files or logs for a secret. Use the workflows below.
Read mail.is_new_account, mail.credential.name, and mail.credential.domain from agent.json. Treat provider as empty for every currently supported personal domain.
If mail is missing, ask the user to configure Email Management in the QwenPaw Agent Settings UI before continuing.
is_new_account is false: manage an existing mailboxcheck_auth directly. The managed DriverCard already receives the stored email credential through a runtime credential reference; do not look it up in agent.json and do not call set_credentials merely because secret fields are absent.check_auth succeeds, perform the requested mailbox operation.check_auth after the agent reloads.set_credentials may be used as a temporary session-only override, followed by check_auth. It does not update the encrypted QwenPaw configuration and is lost when the MCP process restarts.For temporary set_credentials, pass the full email and the provider-specific credential in the auth_code parameter. For aliyun.com, that parameter contains the login password; for the other supported domains, it contains the 16-character authorization code or app password.
is_new_account is true: register a dedicated mailboxUse the public username and domain from agent.json. If the username is blank, let create_mailbox generate one or agree on one with the user.
Registration passwords and phone numbers are entered on the provider page and are deliberately unavailable to the Agent. Do not try to recover them from files. The optional credential field in the QwenPaw dedicated-mailbox form is only for the final provider authorization code, app password, or mailbox login password after registration. Use one of these paths:
create_mailbox(domain, username) first to validate the username and obtain current provider guidance.Official registration entry points:
| Domain | Registration entry | Notes |
|---|---|---|
163.com, 126.com, yeah.net | https://zc.reg.163.com/regInitialized | Shared NetEase flow; phone verification required |
qq.com, foxmail.com | https://ssl.zc.qq.com/v3/index-chs.html | QQ registration; phone verification required |
sina.com | https://mail.sina.com.cn/register/weixin.php | WeChat-authorized registration |
sina.cn | https://mail.sina.cn/register/regmail.php | Phone/SMS registration |
gmail.com | https://accounts.google.com/signup | Enable 2-Step Verification, then create an app password |
aliyun.com | Unavailable | New personal registrations are closed; use an existing account |
Consider registration successful only after a clear success message or successful inbox access. If the final username differs from the requested one, report the reason and final address.
For NetEase or Tencent domains, call create_mailbox(domain, username) and relay its alternatives, registration URL, and steps. Ask the user to complete all password, phone, CAPTCHA, and SMS steps in their own browser.
For Sina or Gmail, direct the user to the official entry above. For aliyun.com, explain that a new account cannot be registered and ask the user to choose another supported domain.
agent.json.is_new_account to false, store the secret in encrypted form, synchronize the managed DriverCard, and reload the agent.check_auth. Do not run other mail tools until it succeeds.CONTACTS.md before contact-dependent work.| Tool | Purpose |
|---|---|
list_folders | List all mailbox folders |
list_messages | List message envelopes in a folder with pagination |
get_message | Fetch one message by folder and UID |
get_attachment | Get an attachment by filename or index |
search_messages | Search by keyword, sender, or date range |
check_auth | Verify fresh IMAP and SMTP logins using the current runtime credential |
create_mailbox | Return registration guidance for supported NetEase/Tencent domains |
list_threads | List conversation threads with incremental sync |
search_threads | Search conversation threads |
get_thread | Get all messages in one thread |
get_mailbox_stats | Get recent mailbox statistics |
| Tool | Purpose |
|---|---|
send_message | Send a plain-text email with to/cc/bcc |
reply_message | Reply with proper threading headers |
forward_message | Forward a message as an RFC 822 attachment |
mark_messages | Mark messages read/unread/flagged/unflagged |
move_message | Move a message to another folder |
create_folder | Create a mailbox folder |
set_credentials | Set a temporary in-memory credential for this MCP process |
clear_credentials | Clear the temporary override and fall back to injected startup credentials |
update_thread | Add or remove custom thread labels |
| Tool | Purpose |
|---|---|
delete_message | Permanently delete one message |
delete_thread | Move a whole thread to trash |
check_auth.agent.json, DriverCard YAML, CONTACTS.md, logs, or chat summaries.delete_message or delete_thread.list_messages or search_messages immediately before acting.check_auth first.CONTACTS.md when the user wants newly discovered contact information retained, but never store credentials there.© agentscope-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in src/qwenpaw/agents/skills/mailbox-en of agentscope-ai/QwenPaw.
Open the folder on GitHubat commit f389534
Mailbox Operations Hub next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Mailbox Operations Hub this skillagentscope-ai/QwenPaw | 35k | — | ~2.6k | Automated safety check: Pass | Apache-2.0 | |
| Gmail Query Syntaxprovos/ironcurtain | 613 | — | ~971 | Automated safety check: Pass | Apache-2.0 | |
| Connectorsautonomous-ai/Physical-AI-Operating-System | 381 | — | ~10k | Automated safety check: Notes | Apache-2.0 | |
| Email CheckAgriciDaniel/claude-email | 129 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Add Gmailsbusso/claudeclaw | 194 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Performance Patternss-morgan-jeffries/apple-mail-fast-mcp | 104 | — | ~1.5k | Automated safety check: Pass | MIT |
provos/ironcurtain
Reference for Gmail's search query syntax — operators like is:sent, newerthan:, from:, has:attachment, label:, and how they compose.
autonomous-ai/Physical-AI-Operating-System
Discover and use linked third-party services (Gmail, Google Calendar, Google Drive, Notion, Figma, Asana, Linear, GitHub, Ahrefs, Facebook Fan Page and others).
AgriciDaniel/claude-email
Intelligent inbox triage that connects to Gmail or Outlook, scores emails by importance (0-100) using sender recognition, urgency keywords, thread depth, time sensitivity, and business relevance…
sbusso/claudeclaw
Add Gmail integration to ClaudeClaw. An agent skill from sbusso/claudeclaw.
s-morgan-jeffries/apple-mail-fast-mcp
A skill your agent uses when optimizing Apple Mail MCP operations, diagnosing slow queries, adding new filtering logic, or modifying how data is fetched from Mail.app.
lanes-sh/app
A skill your agent uses when installing or standing up Lanes Link, the self-hostable MCP endpoint that gives an agent someone's own accounts, memory, tasks, assets, skills, identity and vault.
agentscope-ai/QwenPaw
Guidance for writing and testing Terraform and OpenTofu code: module structure, naming, test approaches, CI/CD workflows, state handling and security scanning.
agentscope-ai/QwenPaw
Turns reusable decisions, templates or workflows from the current conversation into a new workspace skill through plan, approval, draft, validation and publication.
agentscope-ai/QwenPaw
Creates a focused workspace skill from the current conversation in QwenPaw, moving through a planning, approval, drafting, validation and publishing script pipeline.
agentscope-ai/QwenPaw
Creates and manages scheduled or recurring jobs with the qwenpaw cron commands, always tied to an explicit agent ID and a confirmed target channel.
agentscope-ai/QwenPaw
Creates, reads and edits Word .docx files, including tracked changes and comments, using docx-js for new files and XML editing for existing ones.
agentscope-ai/QwenPaw
Gives the allowed_tools and skills preset for each OMP sub-agent role, to apply when calling spawn_subagent.
Works with
Categories
Connects, registers, and operates a personal mailbox, reading, searching, sending, and organizing, through a managed mail server for nine domains. This skill supports NetEase, Tencent, Sina, Alibaba, and Google personal mail domains, each needing either a 16-character authorization or app code, or for Alibaba an existing account's login password. Enterprise mailboxes, custom domains, and Microsoft mailboxes are explicitly unsupported, and it won't improvise raw IMAP or SMTP as a workaround.
Mailbox Operations Hub fits situations like: connecting a personal mailbox for the first time; searching, reading, or organizing email in a connected mailbox; sending, replying to, or forwarding a message.
Run `npx skills add agentscope-ai/QwenPaw --skill mailbox -a claude-code`. Or copy the skill folder (src/qwenpaw/agents/skills/mailbox-en in agentscope-ai/QwenPaw) into .claude/skills/mailbox in your project. Claude Code loads it when a task matches its description.
Run `npx skills add agentscope-ai/QwenPaw --skill mailbox -a codex`. Or copy the skill folder (src/qwenpaw/agents/skills/mailbox-en in agentscope-ai/QwenPaw) into .agents/skills/mailbox in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agentscope-ai/QwenPaw --skill mailbox -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mailbox, .gemini/skills/mailbox, .github/skills/mailbox and .opencode/skills/mailbox in your project.
SKILL.md names no scripts, command-line tools or credentials: Mailbox Operations Hub is instructions for the agent only. Our summary lists: A configured mailbox connection through the bundled mail server; A supported mail provider authorization code or app password.
SKILL.md names 5 domains. In commands or code: zc.reg.163.com, ssl.zc.qq.com, mail.sina.com.cn, mail.sina.cn and accounts.google.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Mailbox Operations Hub is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Mailbox Operations Hub: Gmail Query Syntax (provos/ironcurtain, 613 stars), Connectors (autonomous-ai/Physical-AI-Operating-System, 381 stars), Email Check (AgriciDaniel/claude-email, 129 stars) and Add Gmail (sbusso/claudeclaw, 194 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
agentscope-ai (a GitHub organization) maintains it in agentscope-ai/QwenPaw, which has 35,493 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 8, 2026.
Source: agentscope-ai/QwenPaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.