Agent Skills › topoteretes/cognee › google-workspace-memory

google-workspace-memory

GitHub

集成Google日历、邮件和Drive数据,构建统一记忆以回答跨应用问题,如准备客户会议。支持本地运行或服务器模式,仅读取数据,确保隐私安全。

.agents/skills/google-workspace-memory/SKILL.md topoteretes/cognee

触发场景

用户请求连接、同步或摄入Google Workspace数据 用户询问需要结合日历、邮件和Drive信息的问题

安装

npx skills add topoteretes/cognee --skill google-workspace-memory -g -y
更多选项

非标准路径

npx skills add https://github.com/topoteretes/cognee/tree/main/.agents/skills/google-workspace-memory -g -y

不安装直接使用

npx skills use topoteretes/cognee@google-workspace-memory

指定 Agent (Claude Code)

npx skills add topoteretes/cognee --skill google-workspace-memory -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": "google-workspace-memory",
    "description": "Remember a user's Google Calendar, Gmail and Drive in one cognee memory and answer questions across them, by default preparing their client meetings of the coming week (which orders are late or at risk, why, and what to say). Use when someone asks to connect, ingest or sync their Google Workspace, or asks a question that needs their calendar, email and Drive together. Runs locally; reads Google read-only."
}

Google Workspace memory

Runs the Google Workspace memory cookbook in examples/cookbooks/google_workspace_memory/. It remembers the user's primary calendar, newest inbox emails and one Drive folder in the cognee dataset google_workspace_memory, then answers one question across them. Setup, the scripts and what each one does are in the cookbook's README.md.

Run every command from the repo root.

Steps

Without credentials.json in the cookbook folder, the commands below run on a sample workspace (the [setup] line says so) and answer about a fictional ceramics business; only LLM_API_KEY is needed. Tell the user the answer is about sample data. Add --sample to use the sample even when their account is set up. The sample lives in its own dataset, google_workspace_memory_sample, and never mixes with the user's data.

  1. Run uv run python examples/cookbooks/google_workspace_memory/google_workspace_memory.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 GOOGLE_DRIVE_FOLDER_ID is missing, ask whether to run with --no-drive instead.
  2. Run uv run python examples/cookbooks/google_workspace_memory/google_workspace_memory.py. Add --ask "..." with the user's question if they asked one, and --no-calendar, --no-gmail or --no-drive for any app they don't want used. The first run opens the browser once per app for consent; tell the user to approve each one.
  3. The answer is everything after the line [ask] Answer:. Give it to the user, and say which sources went in (the [ingest_calendar], [ingest_gmail] and [ingest_drive] lines).

If the user runs cognee as a server with their Google account connected there, add --api to both commands: the server syncs and answers, and --check reports each app that is not connected yet (the README's "Through a cognee server" section says how to connect it).

If a run stops after --check passed, the last [<step>] line (or the traceback) says why. Tell the user what failed; rerun only that step's script from scripts/ once it is fixed.

For a follow-up question on the same data, run uv run python examples/cookbooks/google_workspace_memory/scripts/ask.py --ask "...", with --sample if the first run was on the sample; it doesn't ingest again.

Rules

  • Google access is read-only: nothing is created, changed or sent.
  • Don't print the contents of credentials.json, the *_token.json files or .env.
  • A sample run forgets the sample's dataset google_workspace_memory_sample before it ingests (the [clear] line). On the user's own data (google_workspace_memory), pass --clear only when they asked to start over: it forgets everything the dataset holds.
  • Ingesting reads the user's real calendar, mailbox and Drive files, and every run uses LLM credits. The first run cognifies the whole primary calendar, which can take ten minutes or more, so tell the user before you start it and run it only when they asked for it.

Clean up

uv run cognee-cli forget --dataset google_workspace_memory
uv run cognee-cli forget --dataset google_workspace_memory_sample

版本历史

  • 525b1d1 当前 2026-11-02 22: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/multiagent-memory-setup/SKILL.md
.agents/skills/personalized-email/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
2c2a0e35
收录时间
2026-11-02 22:49

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