# Obsidian Second Brain — Google Drive Setup & AI Writeback

> Set up a Google Drive–synced Obsidian second brain, search the right notes before every task, and write AI sessions back as verified knowledge. Global or per-project configuration, read-back checks, and local-only scripts. No author vault or personal data included.

Obsidian Second Brain — Google Drive Setup & AI Writeback is a paid AI agent skill on Agensi by Frica Chai, in Productivity. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $15 (one-time purchase)
- Creator: [Frica Chai](https://www.agensi.io/creators/frica-chai)
- Category: [Productivity](https://www.agensi.io/skills/productivity)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/obsidian-second-brain-google-drive-setup-ai-writeback
- Tags: productivity, automation, research, obsidian, second-brain, google-drive, knowledge-management, session-writeback

## About this skill

Most "AI + notes" setups fail for one of three reasons: the vault is not connected, the agent cannot tell current facts from old notes, or the session ends and nothing useful is written back.

This skill fixes all three.

### What it does

- **Onboarding** — guides Google Drive for desktop, Obsidian installation, the `2ndbrain` folder, offline access, vault creation, first note, and sync verification.
- **Existing vault** — detects the vault, validates `.obsidian`, write access, home note, links, and note count.
- **Configuration** — chooses a global default (`OBSIDIAN_VAULT` + global instruction block), a project file (`OBSIDIAN.md`), or a one-off session.
- **Retrieval before work** — turns the task into 2–6 keywords, ranks notes, reads the closest 1–3, and checks `updated`, `status`, source, and scope.
- **Session writeback** — classifies the session output, merges into existing notes first, writes the minimum, reads back, and checks duplicates and conflicts.

### How it works

1. `detect_environment.py` reads Obsidian's own vault registry and Google Drive roots. It does not modify anything.
2. `init_vault.py` creates a generic skeleton in a new vault. It refuses an existing vault and never overwrites a file.
3. `check_vault.py` validates the vault and verifies a writeback with `--expect-note` and `--expect-text`.
4. `find_notes.py` ranks notes by filename, path, tags, headings, content, recency, and status, then prints a short excerpt.
5. `configure_vault.py` resolves global vs project vs session and prints the exact environment and instruction snippets.

### The configuration decision

A vault path is not enough. The agent also needs to know how far it may read and write.

| Situation | Recommended |
|---|---|
| One person, one vault, all projects | Global: `OBSIDIAN_VAULT` + global instruction block |
| Multiple vaults, clients, courses, research projects | Project: `<project>/OBSIDIAN.md` |
| One-off test or borrowed vault | Session: `--vault` only |

Precedence:

```text
explicit --vault → project OBSIDIAN.md → OBSIDIAN_VAULT → global instruction → auto-detect → ask
```

A project file wins over the global default, so a client project cannot write into a personal vault.

### Requirements

- Windows 10/11 (verified); macOS and Linux paths implemented, not end-to-end tested by the author.
- Python 3.9+ (standard library only; no pip install).
- Obsidian desktop. A local vault needs no Obsidian account.
- Google Drive for desktop for the default sync path (Windows/macOS). Linux uses a local synced folder.
- Any agent that can run local commands and read/write files. Obsidian MCP is optional.

### Verification

- `detect_environment.py --json` reports the platform, Obsidian install, vault registry, Google Drive roots, and per-vault note counts.
- `check_vault.py` returns `PASS` only after a write test, note count, home note, frontmatter sanity, and optional link check.
- A writeback is complete only when `--expect-note` and `--expect-text` both pass.
- The skill reports explicit status codes: `SETUP_COMPLETE`, `VAULT_CONNECTED`, `WRITEBACK_COMPLETE`, `WRITEBACK_PARTIAL`, `WRITEBACK_PENDING`, `WRITEBACK_BLOCKED`, `NO_QUALIFIED_WRITEBACK`.

### Limitations

- Google Drive sync is not a backup; keep a dated snapshot and test a restore.
- Google Drive for desktop has no official Linux client.
- The Google Drive mobile app alone does not expose a vault folder to Obsidian mobile; use Obsidian Sync or a folder-sync app.
- The skill does not create accounts or handle passwords. Account creation and sign-in are interactive and must be done by the user.
- Search is lexical, not semantic. Use 2–6 terms and synonyms.
- "Automatic" means the skill or instruction is loaded; it is not a background service.

### Privacy

The package contains no author vault, no author folder tree, and no author note content. It contains generic methods, scripts, and templates only. The scripts run locally; there are no uploads, no telemetry, and no network calls. The buyer's vault and notes belong to the buyer. The skill never stores passwords, tokens, cookies, API keys, or private keys.

## Requires

- Python 3.9+
- Obsidian desktop
- Google Drive for desktop (or a local synced folder)
- Optional: Obsidian MCP

## Known limitations

Requires Python for helper scripts. Google Drive for desktop is not natively supported on Linux. Mobile sync requires manual third-party configuration.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Obsidian Second Brain — Google Drive Setup & AI Writeback skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill help my AI agent remember information across different sessions?

This skill creates a persistent memory layer by automatically searching your personal Obsidian notes for context before tasks and writing back new insights at the end of a session, preventing the 'reset' that usually occurs between AI chats.

### Can I connect this skill to an Obsidian vault I have already built?

Yes, it supports both existing Obsidian vaults and the creation of new ones; the 'check_vault.py' utility will validate your current markdown structure to ensure the agent can read and write to it correctly.

### Which AI agents or frameworks are compatible with the Obsidian Second Brain skill?

The skill is compatible with any AI agent that can run local Python scripts and read/write files. Google Drive for desktop is the default sync example, but any local folder that Obsidian can open works.

### What digital assets are included in this purchase?

You will receive a suite of Python-based utility scripts (like detect_environment.py and find_notes.py), configuration templates for local or global vaults, and a standardized protocol for markdown knowledge retrieval and writeback.

### Do I have to use Google Drive, or can I use other cloud synchronization services?

While it uses Google Drive for Desktop for syncing, the agent only interacts with your local filesystem; if you are on Linux or prefer not to use Drive, you can point the skill to any local folder synced via Dropbox, iCloud, or Syncthing.

### How does the skill ensure the AI doesn't accidentally overwrite or corrupt my existing notes?

The skill includes a 'Quality Verification' step where the agent performs a mandatory read-back after every update to confirm the markdown formatting is preserved and no data was lost during the write process.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
