imap-manual
Configure the IMAP email addon for this agent — read this when the human asks to set up email.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Configure the IMAP email addon for this agent — read this when the human asks to set up email.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
灵台量化数据管道——股票/加密币行情采集、清洗、存储与质量检查。含 Yahoo Finance + Kraken (CCXT) 双数据源,支持日线/1h 自动增量更新。
Configure the Feishu (Lark) bot addon for this agent — read this when the human asks to set up a Feishu bot.
Configure the Telegram bot addon for this agent — read this when the human asks to set up a Telegram bot.
Configure the WeChat addon for this agent — read this when the human asks to set up WeChat.
Reference manual for the `avatar` tool — debugging, advanced patterns, best practices, and worked examples. Read when you need depth beyond the tool description.
Reference manual for the `bash` tool — debugging, advanced patterns, best practices, and worked examples. Read when you need depth beyond the tool description.
| name | imap-manual |
| description | Configure the IMAP email addon for this agent — read this when the human asks to set up email. |
| version | 3.0.0 |
You are helping the human set up IMAP email for this agent. Your job is to create the config file yourself — do not just list the steps and ask the human to do it.
.secrets/The IMAP config lives inside your own working directory:
.secrets/imap.json (relative to your working directory)
init.json addons.imap.config field is simply .secrets/imap.json (no ../, no absolute path).*_env indirection. No .env file involved. The config is self-contained.Addons are an admin-only responsibility. Avatars should never configure addons — the orchestrator owns them. Colocating the config with the orchestrator's working directory makes that ownership explicit.
If your init.json already has addons.imap.config pointing at ../.addons/imap/config.json and the old setup is working, leave it alone. The old path keeps functioning. Only migrate to the new convention when the human explicitly asks you to, or when you are creating IMAP setup for the first time.
If the human does ask you to migrate an old setup:
../.addons/imap/config.json.*_env fields by reading the referenced env vars from the .env file named in your init.json env_file field, substituting the plaintext value and dropping the _env suffix..secrets/imap.json.init.json addons.imap.config to .secrets/imap.json.system(action="refresh").imap(action="check"). If it works, tell the human the old file at ../.addons/imap/config.json can be deleted at their discretion.accounts array format — even for a single account. Adding more accounts later is then just an append.email_password_env. The .env file is only for LLM API keys and other non-addon secrets..secrets/imap.json, run system(action="refresh") yourself to reload..secrets/imap.json exists, is valid JSON, and that your init.json addons.imap.config points at .secrets/imap.json. Report back to the human with the specific problem.imap(action="accounts") may show connected: false even when IMAP is working. This is a known display bug. Always verify with imap(action="check") — if it returns emails, the connection is working regardless of what connected says.Ask the human for:
myagent@gmail.com)Once you have the email address and app password:
Create the config file at .secrets/imap.json in your own working directory. If the file already exists with other accounts, append to its accounts array — do not overwrite it.
Example config (always use the accounts array format):
{
"accounts": [
{
"email_address": "<their email>",
"email_password": "<app password plaintext>",
"imap_host": "imap.gmail.com",
"smtp_host": "smtp.gmail.com",
"allowed_senders": ["<human's email if provided>"],
"poll_interval": 30
}
]
}
imap.gmail.com / smtp.gmail.comimap.outlook.com / smtp.outlook.comTo add another account later, just append another object to the accounts array in the same file.
Wire it into init.json. Read your init.json. If addons.imap is missing, add it:
"addons": {
"imap": {
"config": ".secrets/imap.json"
}
}
If addons.imap.config already exists and points at a legacy path (e.g. ../.addons/imap/config.json), see the "Legacy Path" section above — do not rewrite it unless the human asked you to migrate.
Activate: run system(action="refresh") to reload the addon config. Then verify with imap(action="check") — if it returns emails or connects without error, you're done. Tell the human IMAP is configured.
See the example config at assets/config.json (next to this SKILL.md) for a full reference of all available fields.