Agent Skills › topoteretes/cognee › personalized-email

personalized-email

GitHub

基于用户历史邮件和会议记录,使用本地LLM生成个性化邮件回复草稿。读取Gmail只读数据,不发送,确保隐私安全。

.agents/skills/personalized-email/SKILL.md topoteretes/cognee

触发场景

需要回复最新Gmail邮件 要求以个人语气撰写邮件

安装

npx skills add topoteretes/cognee --skill personalized-email -g -y
更多选项

非标准路径

npx skills add https://github.com/topoteretes/cognee/tree/main/.agents/skills/personalized-email -g -y

不安装直接使用

npx skills use topoteretes/cognee@personalized-email

指定 Agent (Claude Code)

npx skills add topoteretes/cognee --skill personalized-email -a claude-code -g -y

安装 repo 全部 skill

npx skills add topoteretes/cognee --all -g -y

预览 repo 内 skill

npx skills add topoteretes/cognee --list

SKILL.md

Frontmatter
{
    "name": "personalized-email",
    "description": "Draft a reply to your newest Gmail email that knows what you discussed in your Granola meetings, what you promised the sender, and how you write, using cognee memory. Use when someone asks to answer or reply to their latest email in their own tone. Runs locally; reads Gmail read-only; the draft is printed, never sent."
}

Personalized email

Runs the personalized email cookbook in examples/cookbooks/personalized_email/. It remembers your Granola meeting notes and your Gmail inbox and sent mail in the cognee dataset personalized_email, then drafts a reply to the newest inbox email. Setup, the scripts and what each one does are in the cookbook's README.md.

Run every command from the repo root.

Steps

With neither Gmail nor Granola set up, the commands below run on a sample mailbox (the [setup] line says so) and draft a reply to a fictional email; only LLM_API_KEY is needed. Tell the user the reply is to sample data. Add --sample to use the sample even when their accounts are set up.

  1. Run uv run python examples/cookbooks/personalized_email/personalized_email.py --check.
    • Exit 0: go to step 2.
    • Exit 2: each [setup] MISSING: line names one fix. Don't create credentials yourself. Tell the user exactly which line to fix, using the README's "What it needs" table, and stop. If only the Granola line is missing, ask whether to run with --no-granola instead.
  2. Run uv run python examples/cookbooks/personalized_email/personalized_email.py. Add --days N if the user named a time range for meetings, and --no-granola if they don't want Granola used.
  3. The draft is everything after the line [draft] Reply:. Give it to the user, and say which email it answers (the [draft] Answering: line) and which sources went in (the [ingest_granola] and [ingest_email] lines). The draft is never sent: hand it to the user to send.
  4. If a script fails, personalized_email.py exits 1 with a line naming what went wrong. Run that script from examples/cookbooks/personalized_email/scripts/ on its own to look closer.

Rules

  • Gmail access is read-only and nothing is sent.
  • Don't print the contents of credentials.json, token.json or .env.
  • A sample run forgets the cookbook's dataset personalized_email before it ingests (the [clear] line). On the user's own data, pass --clear only when they asked to start over: it forgets everything the dataset holds.
  • Ingesting reads the user's real meetings and mailbox, and every run uses LLM credits, so run it only when the user asked for it.

Clean up

uv run cognee-cli forget --dataset personalized_email

版本历史

  • 37f788b 当前 2026-10-19 05:49

同 Skill 集合

.agents/skills/cognee-cli/SKILL.md
.agents/skills/cognee-community/SKILL.md
.agents/skills/cognee-custom-graph-models/SKILL.md
.agents/skills/cognee-custom-pipelines/SKILL.md
.agents/skills/cognee-docker/SKILL.md
.agents/skills/cognee-forget/SKILL.md
.agents/skills/cognee-improve-sessions/SKILL.md
.agents/skills/cognee-ingestion/SKILL.md
.agents/skills/cognee-integrations/SKILL.md
.agents/skills/cognee-migrations/SKILL.md
.agents/skills/cognee-performance/SKILL.md
.agents/skills/cognee-permissions/SKILL.md
.agents/skills/cognee-recall/SKILL.md
.agents/skills/cognee-server/SKILL.md
.agents/skills/company-brain-company-qa/SKILL.md
.agents/skills/company-brain-follow-up-agent/SKILL.md
.agents/skills/google-workspace-memory/SKILL.md
.agents/skills/multiagent-memory-setup/SKILL.md
.agents/skills/self-hosted-companion/SKILL.md
.claude/skills/cognee-cli/SKILL.md
.claude/skills/cognee-community/SKILL.md
.claude/skills/cognee-docker/SKILL.md
.claude/skills/cognee-integrations/SKILL.md
.claude/skills/cognee-permissions/SKILL.md
.claude/skills/cognee-server/SKILL.md
examples/demos/skill_feedback_loop/skills/skill-feedback-writer/SKILL.md
examples/demos/skill_feedback_loop/skills/pr-comment-evaluator/SKILL.md
examples/demos/skill_feedback_loop/skills/diff-risk-explainer/SKILL.md

元信息

文件数
0
版本
525b1d1
Hash
c407a959
收录时间
2026-10-19 05:49

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-18 08:17
浙ICP备14020137号-1