Day-one data bootstrapping for a new brain. Sequences the highest-leverage data sources to go from empty brain to useful brain in one session. The agent never holds raw OAuth tokens or API keys: Google data comes through gbrain's own connector, an offline export, or a host's credential gateway. Covers Gmail import, calendar sync, contacts seeding, X/Twitter archive, conversation imports, and file archives. Use when a user has just finished gbrain setup and asks "now what?"
78%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Fix and improve this skill with Tessl
tessl review fix ./plugin/skills/cold-start/SKILL.mdThe canonical home for this skill is cold-start in garrytan/gbrain
You have a working brain. Search works. Now what?
An empty brain is a static database. A brain with your email history, calendar, contacts, conversations, and social media is a live context membrane that makes every future interaction smarter. This skill sequences the highest-leverage data sources to get you from zero to useful in one session.
gbrain google setup — tokens live in gbrain's
credential vault, mode 0600, never in the agent's context; see
docs/guides/google-connect.md and skills/google-loops/SKILL.md),
a credential gateway the host already integrates, such as ClawVisor (it
vaults credentials, scopes each task, logs every API call, and asks a
human before destructive operations), or offline file exports (Google Takeout, Twitter archive
download).cold-start-state.json in the brain's config directory so interrupted sessions
can resume.gbrain doctor --json all green)gbrain CLI commandsData sources ranked by information density × ease of import:
| Priority | Source | Why | Time | Pages Created |
|---|---|---|---|---|
| 1 | Existing markdown/Obsidian | Highest density — it's already structured | 5 min | 100s-1000s |
| 2 | Google Contacts | Seeds the people/ directory — names, emails, companies | 10 min | 50-500 |
| 3 | Google Calendar (90 days) | Meeting history with attendee context | 15 min | 30-90 |
| 4 | Gmail (recent threads) | Relationship context, active threads, org chart signals | 20 min | 50-200 |
| 5 | Conversations (ChatGPT/Claude exports) | Your thinking, questions, mental models | 15 min | 10-100 |
| 6 | X/Twitter archive | Your public positions, takes, engagement patterns | 20 min | 30-365 |
| 7 | File archives (Dropbox/Drive/local) | Historical documents, old writing, photos | 30+ min | varies |
| 8 | Meeting transcripts (Circleback/etc.) | Deep relationship context from recorded calls | 20 min | 10-50 |
Ask the user which path to use for Contacts, Calendar and Gmail (phases 2-4). None of them puts a Google token in the agent's hands:
gbrain google setup connects the
user's own Google OAuth client for live sync of mail threads, calendar
events and contacts. Setup imports right away and keeps syncing, so before
running it ask which account and which services (--services) to connect,
and say that it starts syncing at once. Tokens live in gbrain's local credential vault (a 0600
file, redacted in listings); the agent only runs CLI commands. See
docs/guides/google-connect.md and skills/google-loops/SKILL.md.Whichever path the user picks, never ask them to paste a token into the chat and never hold OAuth tokens in the agent's own context or files. Secrets travel by file or environment intake, never on the command line or in chat.
For an existing company Git repository, use the migrate (host-side) company
workflow instead of the generic import below. On the trusted brain host, start with
gbrain sources inspect <path> --profile company-brain; confirm an initialized
company brain and a new source, show the connect destination/access preview, and
obtain approval before --yes. Do not flatten its vocabulary by activating or
normalizing an unrelated personal schema. The offline gbrain sources demo company-brain needs no keys or private data. Details:
docs/guides/company-brain-ingestion.md.
For this company path, stop after reporting the durable receipt; skip the generic
import and post-bootstrap checklist below. Later enrichment or scheduling needs
separate consent and must respect the source's immutable keyless sync policy.
The highest-leverage first import. If the user already has a notes system, this is hundreds or thousands of structured pages ready to go.
echo "=== Markdown Repository Discovery ==="
for dir in ~/git/* ~/Documents/* ~/notes/* ~/obsidian/*; do
if [ -d "$dir" ]; then
md_count=$(find "$dir" -name "*.md" -not -path "*/node_modules/*" \
-not -path "*/.git/*" -not -path "*/.obsidian/*" 2>/dev/null | wc -l | tr -d ' ')
if [ "$md_count" -gt 5 ]; then
total_size=$(du -sh "$dir" 2>/dev/null | cut -f1)
echo " $dir ($total_size, $md_count .md files)"
fi
fi
done# Obsidian vaults are markdown directories — import directly, then wire wikilinks
# (full flow: migrate (host-side))
gbrain import /path/to/vault --no-embed --workers 4
gbrain extract links --source db # parses [[wikilinks]] natively
# For plain markdown directories
gbrain import /path/to/dir --no-embed --workers 4
# Verify
gbrain stats
gbrain search "<topic from the imported data>"gbrain extract links --source dbgbrain extract timeline --source dbgbrain embed --stale.Track progress: after each phase, merge it into the state file the
Resume Protocol reads (set PHASE to the phase just finished and NEXT
to the next one; add SKIPPED=1 for a phase the user skipped):
PHASE=1 NEXT=2 python3 - <<'PY'
import datetime, json, os, pathlib
p = pathlib.Path(os.environ.get('GBRAIN_HOME') or pathlib.Path.home()) / '.gbrain' / 'cold-start-state.json'
s = json.loads(p.read_text()) if p.exists() else {
'started': datetime.datetime.now(datetime.timezone.utc).isoformat(timespec='seconds')}
key = 'phases_skipped' if os.environ.get('SKIPPED') == '1' else 'phases_completed'
s[key] = sorted(set(s.get(key, [])) | {int(os.environ['PHASE'])})
s['next_phase'] = int(os.environ['NEXT'])
p.parent.mkdir(parents=True, exist_ok=True)
p.write_text(json.dumps(s, indent=2) + '\n')
PYSeeds the people/ directory. Every person in your contacts becomes a brain page with name, email, phone, company, and notes. This is the foundation that all other imports build on — when Gmail references "bob@example.com", the brain already knows who Bob is.
// Fetch all contacts
const contacts = await clawvisor('google.contacts', 'list_contacts', {
limit: 1000,
fields: 'names,emailAddresses,phoneNumbers,organizations,biographies'
});For each contact:
gbrain search "name" to avoid duplicates[Source: Google Contacts, YYYY-MM-DD]After importing 5 contacts, pause and show the user a sample page. Ask:
"Here's what a contact page looks like. Want me to continue with the rest, or adjust the format first?"
Meeting history with attendee context. Calendar events reveal who the user meets with, how often, and in what context. Combined with contacts, this builds a rich relationship map.
Via Google Takeout (offline): export Calendar from takeout.google.com (ICS format, one file per calendar). Parse each event (title, start/end, attendees), keep the last 90 days, and file them into the brain structure below.
Via a host credential gateway (pseudo-code):
// Query ALL calendar accounts the user named
const accounts = ['alice@example.com', 'alice@work.example.com'];
for (const account of accounts) {
const events = await clawvisor(`google.calendar:${account}`, 'list_events', {
timeMin: new Date(Date.now() - 90 * 86400000).toISOString(),
timeMax: new Date().toISOString(),
singleEvents: true,
orderBy: 'startTime'
});
}Follow the three-tier calendar architecture:
brain/daily/calendar/
├── calendar-log.md ← compiled truth (patterns, key people)
├── YYYY/
│ ├── YYYY-MM.md ← monthly summary
│ └── YYYY-MM-DD.md ← daily event logFor each event with attendees:
gbrain whois <email or name> --json)
(identity rule)Relationship context and active threads. Email reveals organizational relationships, ongoing conversations, and communication patterns.
Offline, the source is the Gmail mbox file from a Google Takeout export. The sampling and filtering rules below apply the same way.
Don't import every email. Import the signal:
For each email thread:
Auto-skip (never import):
Always import:
Your thinking, captured. AI conversation exports reveal what the user was researching, building, and thinking about. This is original thinking preserved in dialog form.
conversations.jsonFor each conversation:
Only import conversations rated 3+. The brain is for signal, not noise.
Your public positions and engagement patterns. Twitter reveals what the user thinks, who they engage with, and what ideas they're developing publicly.
brain/media/x/{handle}/
├── x-log.md ← compiled truth (themes, voice, key threads)
├── daily/YYYY-MM-DD.md ← daily tweet log
├── monthly/YYYY-MM.md ← monthly rollup
└── bookmarks/ ← saved/bookmarked contentHistorical documents, old writing, photos with metadata. This is the long tail — less structured but potentially very high value (old journals, letters, early writing).
Delegate to the archive-crawler skill. It handles:
Safety gate: Archive crawling can be slow and create many pages. archive-crawler is a skill, not a CLI command — it refuses to run without an explicit
archive-crawler.scan_paths:allow-list ingbrain.yml. Add the archive path to the allow-list, run the skill's scan pass first, and show the user the manifest before proceeding with full ingestion.
Supported sources:
Deep relationship context from recorded calls. If the user has a meeting recording service (Circleback, Otter, Fireflies, Read.ai), import recent transcripts.
Delegate to meeting-ingestion skill. Key rules:
After completing available phases:
Verify brain health:
gbrain doctor --json
gbrain statsTest retrieval:
gbrain query "who do I meet with most often?"
gbrain query "what am I working on?"
gbrain search "<person from contacts>"Offer live sync (if not already set up) as its own yes/no. For each source, say how often it runs and what each run can spend (embedding and model extraction), and schedule only the ones the user agrees to:
gbrain sync --repo <path> every 5-30 minutes. A managed brain
(gbrain sources writer status --json shows "mode": "managed") refuses
that line: use the managed recipe in skills/cron-scheduler/SKILL.md
("Managed brain") with --source <id>, e.g.
gbrain sources refresh <id>; gbrain sync --source <id> --no-pull --hard-deadline 13m
every 15 minutes on the owner host.Check the state file (cold-start-state.json in the brain's config
directory, written by the snippet in Phase 1); it should look like:
{
"started": "2026-01-15T10:00:00+00:00",
"phases_completed": [1, 2, 3, 4],
"phases_skipped": [6, 7],
"next_phase": 5
}Tell the user what to do next:
"Your brain has N pages across people, calendar, email, and conversations. Live sync runs for [the sources you agreed to]. From here:
- The signal-detector captures entities from every conversation
- The briefing skill can compile daily context
- The daily-task-prep skill handles day planning
- Say 'enrich [person]' to deep-dive any contact"
Follow the agent operator protocol for any gbrain error code, exit code, [AGENT] block or notice block. Specific to this skill:
confirmation_required) or prints an [AGENT] ask, relay the [SHOW USER] block and wait; do not chain phases with --yes.gbrain google setup prints [SHOW USER] steps: relay them verbatim and wait for the user to finish the consent click. Credential errors carry their own fix; follow it.gbrain query after an import is empty with a degraded notice: embeddings are off or still backfilling, so the import may have worked. Check gbrain doctor --json before telling the user the import failed.If the session is interrupted:
cold-start-state.json in the brain's config directory ($GBRAIN_HOME/.gbrain/, or ~/.gbrain/ when GBRAIN_HOME is unset)next_phaseAfter each phase:
PHASE N COMPLETE: [source name]
================================
Pages created: N
Pages updated: N
Entities linked: N
Time elapsed: N min
Sample pages:
- people/jane-smith.md (created — 3 emails, 5 meetings)
- companies/acme-corp.md (updated — 2 new employees linked)
Next: Phase N+1 — [description]. Ready to proceed?search — check for existing pages before creatingquery — hybrid search for entity deduplicationget_page — read existing pages for merge decisionsput_page — create and update brain pagesadd_link — cross-reference entitiesadd_timeline_entry — record events on entity timelinessync_brain — sync changes to the index after each phasegarrytan/gbrain
96f26a5
Canonical home
since Jul 24, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.