Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

chore: remove basalt plugin — moved to team-skills repo

Jeremy Dawesf69bb4f113ce
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index f49dee20..edeeeea1 100644
--- a/.claude-plugin/marketplace.json
+++ b/.claude-plugin/marketplace.json
@@ -61,12 +61,6 @@
"source": "./plugins/wordpress",
"category": "productivity"
},
- {
- "name": "basalt",
- "description": "Mine knowledge from Gmail, Google Chat, Slack, Drive, local files, MCP servers, and web into an Obsidian-compatible vault. Basalt format: markdown with YAML frontmatter.",
- "source": "./plugins/basalt",
- "category": "productivity"
- },
{
"name": "social-media",
"description": "Social media content creation — platform-formatted posts for LinkedIn, Facebook, Instagram, and Reddit with character limits, hashtag strategies, and image specs.",
diff --git a/CLAUDE.md b/CLAUDE.md
index d56b4283..bda8bbd8 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -16,7 +16,7 @@ Production workflow skills for Claude Code CLI. Each skill guides Claude through
```
claude-skills/
-├── plugins/ # 11 plugins, 60 skills
+├── plugins/ # 10 plugins, 59 skills
│ ├── cloudflare/ # Cloudflare Workers, Hono, D1/Drizzle, Vite, TanStack Start
│ │ └── skills/
│ │ ├── cloudflare-worker-builder/
@@ -78,9 +78,6 @@ claude-skills/
│ │ ├── shopify-setup/
│ │ ├── shopify-products/
│ │ └── shopify-content/
-│ ├── basalt/ # Multi-source knowledge mining (Obsidian-compatible)
-│ │ └── skills/
-│ │ └── basalt-cortex/
│ ├── wordpress/ # WordPress content & Elementor
│ │ └── skills/
│ │ ├── wordpress-setup/
diff --git a/README.md b/README.md
index e679e7fc..dcdb43bd 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
Production workflow skills for [Claude Code](https://claude.com/claude-code). Each skill guides Claude through a recipe to produce tangible output — scaffolded projects, generated assets, professional documents, deployed services.
-11 plugins. 60 skills. Every one produces something.
+10 plugins. 59 skills. Every one produces something.
## Quick Start
@@ -51,9 +51,8 @@ Then just ask Claude what you need — installed skills trigger automatically fr
|--------|--------|-------------|
| **dev-tools** | project-health, project-docs, app-docs, team-update, github-release, brains-trust, git-workflow, ux-audit, responsiveness-check, agent-browser, deep-research, onboarding-ux, fork-discipline, roadmap | Project config, doc generation, app user guides, team updates, releases, multi-model second opinions, git workflows, UX dogfooding, responsive testing, browser automation, deep research, in-app onboarding, core/client boundary audit, autonomous phased app delivery |
| **integrations** | gws-setup, gws-install, google-chat-messages, google-apps-script, elevenlabs-agents, mcp-builder, nemoclaw-setup, parcel-tracking, stripe-payments | Google Workspace setup, Google Chat webhooks, Apps Script, ElevenLabs voice agents, MCP servers, NemoClaw, parcel tracking, Stripe payments (checkout, subscriptions, webhooks, billing portal) |
-| **basalt** | basalt-cortex | Mine knowledge from Gmail, Chat, Slack, Drive, local files, MCP, web into an Obsidian-compatible vault (~/.cortex/) |
-## All 60 Skills
+## All 59 Skills
<details>
<summary>Full skill list with trigger phrases</summary>
@@ -100,7 +99,6 @@ Then just ask Claude what you need — installed skills trigger automatically fr
| `ux-audit` | "ux audit", "dogfood the app" |
| `responsiveness-check` | "check responsiveness", "test viewports" |
| `agent-browser` | "browser automation", "navigate to" |
-| `basalt-cortex` | "run the cortex", "mine emails", "mine slack", "cortex search" |
| `deep-research` | "research this", "deep research", "explore the space" |
| `onboarding-ux` | "onboarding", "empty states", "new user experience" |
| `fork-discipline` | "fork discipline", "check the boundary", "core or client" |
diff --git a/plugins/basalt/.claude-plugin/plugin.json b/plugins/basalt/.claude-plugin/plugin.json
deleted file mode 100644
index 896aeb7c..00000000
--- a/plugins/basalt/.claude-plugin/plugin.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "name": "basalt",
- "description": "Mine knowledge from Gmail, Google Chat, Slack, Drive, local files, MCP servers, and web into an Obsidian-compatible vault. Basalt format: markdown files with YAML frontmatter.",
- "author": { "name": "Jeremy Dawes / Jezweb", "email": "[email protected]" }
-}
diff --git a/plugins/basalt/commands/basalt-cortex.md b/plugins/basalt/commands/basalt-cortex.md
deleted file mode 100644
index 3b995935..00000000
--- a/plugins/basalt/commands/basalt-cortex.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-description: Mine knowledge from multiple sources into an Obsidian-compatible vault
-argument-hint: "[init|mine|query|stats|sync] [source|search-term|--from DATE]"
----
-
-Load the `basalt-cortex` skill.
-
-Parse $ARGUMENTS for mode and parameters:
-- `init` — create ~/.cortex/ vault structure
-- `mine [source]` — extract from a source (gmail, chat, slack, drive, local, web). Default: gmail
-- `query [term]` — search across all Basalt files
-- `stats` — show vault statistics
-- `sync` — push to Frond (future)
-
-Examples: `/basalt-cortex mine gmail --from 2026-01-01`, `/basalt-cortex query smith holdings`, `/basalt-cortex init`
diff --git a/plugins/basalt/skills/basalt-cortex/SKILL.md b/plugins/basalt/skills/basalt-cortex/SKILL.md
deleted file mode 100644
index 5968ac4c..00000000
--- a/plugins/basalt/skills/basalt-cortex/SKILL.md
+++ /dev/null
@@ -1,17 +0,0 @@
----
-name: basalt-cortex
-description: "MOVED — This skill has moved to the team-skills repository (jezweb/team-skills). Install the basalt plugin from there instead. This stub remains for backwards compatibility."
-compatibility: claude-code-only
----
-
-# Basalt Cortex — MOVED
-
-This skill has moved to **jezweb/team-skills** (private repository).
-
-The basalt-cortex and basalt-daily skills are now in `team-skills/plugins/basalt/`.
-
-If you have access to the Jezweb team-skills repo:
-```bash
-/plugin marketplace add jezweb/team-skills
-/plugin install basalt@team-skills
-```
diff --git a/plugins/basalt/skills/basalt-cortex/references/basalt-format.md b/plugins/basalt/skills/basalt-cortex/references/basalt-format.md
deleted file mode 100644
index e2ba76c0..00000000
--- a/plugins/basalt/skills/basalt-cortex/references/basalt-format.md
+++ /dev/null
@@ -1,414 +0,0 @@
-# Basalt Format
-
-**Basalt** is the file format standard used by Knowledge Cortex.
-
-Name: basalt is the volcanic rock that obsidian forms from. It's the underlying substrate — fully compatible with Obsidian but not dependent on it.
-
-## What It Is
-
-Markdown files with structured YAML frontmatter. Every file is:
-- A valid Obsidian note (open `~/.cortex/` as an Obsidian vault)
-- Readable by Claude Code directly without parsing
-- Syncable to D1 via frontmatter field mapping
-- Embeddable in Vectorize via the `summary` field
-- Importable into Frond via `/api/notes`
-
-Files are the source of truth. D1, Vectorize, and Frond are projections.
-
----
-
-## Folder Structure
-
-```
-~/Documents/basalt-cortex/ # vault root — syncs to basaltcortex.com via CLI daemon
-├── .obsidian/ # Obsidian config (can be empty or gitignored)
-├── clients/
-│ └── smithholdings.com.au.md
-├── contacts/
-│ └── jane-smith.md
-├── communications/
-│ └── 2026/03/
-│ └── 2026-03-10-website-redesign-quote.md
-├── knowledge/
-│ └── smith-holdings-prefers-phone.md
-├── projects/ # future
-├── notes/ # manual notes, not mined
-└── state.json # cursor + run history (not a note)
-```
-
----
-
-## Universal Frontmatter Fields
-
-Every Basalt note has these fields:
-
-```yaml
----
-# Identity
-id: client_smithholdings.com.au # stable, deterministic, machine-generated
-type: client # client | contact | communication | knowledge | project | note
-created: 2024-03-15T09:00:00+11:00
-updated: 2026-03-13T06:15:00+11:00
-
-# Obsidian-native (Obsidian reads these, ignores everything else)
-tags: [client, active]
-aliases: [Smith Holdings, SH]
-
-# Provenance
-source: gmail # gmail | google_chat | calendar | manual | frond
-source_id: 18e2a3b4c5d6e7f8 # idempotency key — check before processing
-source_url: https://mail.google.com/mail/u/0/#all/18e2a3b4c5d6e7f8
-
-# Semantic layer
-summary: "Web dev client since 2019. Prefers phone. Active WordPress maintenance plan."
-# ^ 1-3 sentences, dense with names/context. This is the Vectorize embedding input.
-
-# Access
-visibility: private # private | team | public
----
-```
-
-### `id` generation rules
-
-The `id` field is for machine dedup/sync. It stays deterministic and unique.
-
-| Type | ID Pattern | Example |
-|------|---------|---------|
-| client | `client_{domain}` | `client_smithholdings.com.au` |
-| contact | `contact_{email_slug}` | `contact_jane-smith-smithholdings.com.au` |
-| communication | `comm_{unix_ts}_{4char_hash}` | `comm_1741824000_a3f2` |
-| knowledge | `know_{unix_ts}_{4char_hash}` | `know_1741824000_b7c1` |
-| project | `project_{slug}` | `project_smith-redesign-2025` |
-
-### Filename conventions (human-readable)
-
-Filenames are what users see in the sidebar. They should be scannable and descriptive. The `id` in frontmatter handles dedup — the filename is for humans.
-
-| Type | Filename Pattern | Example |
-|------|-----------------|---------|
-| client | `{domain}.md` | `smithholdings.com.au.md` |
-| contact | `{first-last}.md` | `jane-smith.md` |
-| communication | `{YYYY-MM-DD}-{subject-slug}.md` | `2026-03-10-website-redesign-quote.md` |
-| knowledge | `{topic-slug}.md` | `smith-holdings-prefers-phone.md` |
-| project | `{project-slug}.md` | `smith-redesign-2025.md` |
-
-**Rules:**
-- Slugify: lowercase, hyphens, no special characters
-- Communications: always lead with ISO date for chronological sorting
-- Knowledge: lead with the subject/client, describe the fact
-- Keep slugs under ~60 chars — long enough to be descriptive, short enough to scan
-
----
-
-## Type: `client`
-
-File: `clients/{domain}.md`
-
-```yaml
----
-id: client_smithholdings.com.au
-type: client
-created: 2024-03-15T09:00:00+11:00
-updated: 2026-03-13T06:15:00+11:00
-tags: [client, active]
-aliases: [Smith Holdings, SH]
-source: gmail
-source_id: ~
-source_url: ~
-summary: "Web dev client since 2019. Prefers phone. Active WordPress maintenance plan."
-visibility: private
-
-name: Smith Holdings Pty Ltd
-domain: smithholdings.com.au
-abn: ~
-industry: ~
-first_seen: 2024-03-15
-last_seen: 2026-03-10
-thread_count: 12
-significance: 3 # 1=minimal 2=light 3=normal 4=important 5=critical
-
-related: ["[[contacts/jane-smith]]"]
----
-
-# Smith Holdings Pty Ltd
-
-## Contacts
-- [[contacts/jane-smith]] — Director
-
-## Recent Communications
-<!-- cortex-mine appends here -->
-
-## Facts
-<!-- cortex-mine appends here -->
-```
-
----
-
-## Type: `contact`
-
-File: `contacts/{slug}.md`
-
-Contacts are the **identity resolution layer** — any system that needs to know "who is this person?" queries Basalt by any identifier (email, phone, chat ID, name) and gets the full profile. A single person may have multiple emails, phone numbers, businesses, and platform identities.
-
-### Simple contact (one email, one company):
-
-```yaml
----
-id: contact_jane-smith-smithholdings.com.au
-type: contact
-created: 2024-03-15T09:00:00+11:00
-updated: 2026-03-10T14:22:00+11:00
-tags: [contact]
-aliases: [Jane Smith]
-source: gmail
-source_id: ~
-source_url: ~
-summary: "Director at Smith Holdings. Primary contact for all web projects. Prefers brief emails."
-visibility: private
-
-name: Jane Smith
-identifiers:
- emails: [[email protected]]
- phones: []
-role: Director
-company: Smith Holdings Pty Ltd
-company_domain: smithholdings.com.au
-first_seen: 2024-03-15
-last_seen: 2026-03-10
-thread_count: 7
-
-related: ["[[clients/smithholdings.com.au]]"]
----
-
-# Jane Smith
-```
-
-### Complex contact (multiple identities, businesses, platforms):
-
-```yaml
----
-id: contact_george-petridis
-type: contact
-created: 2026-03-09T11:49:00+11:00
-updated: 2026-03-09T11:49:00+11:00
-tags: [contact, multi-entity]
-aliases: [George Petridis, George Fuel]
-source: gmail
-source_id: ~
-source_url: ~
-summary: "Director of Pumping Records, Pumping Management, and Pumping Entertainment. Goes by 'George Fuel' as brand name. L2Chat chatbot deployed. Reported wrong phone number in chatbot."
-visibility: private
-
-name: George Petridis
-also_known_as: [George Fuel]
-identifiers:
- google_chat: "users/105776807049217487682"
- emails:
- phones:
- - "+61 414 232 794"
- websites:
- - pumpingrecords.com
- - pumpingmanagement.com
- - pumpingentertainment.com
-role: Director
-companies:
- - name: Pumping Records
- domain: pumpingrecords.com
- - name: Pumping Management
- domain: pumpingmanagement.com
- - name: Pumping Entertainment
- domain: pumpingentertainment.com
-first_seen: 2026-03-09
-last_seen: 2026-03-09
-thread_count: 1
-
-related: ["[[clients/pumpingrecords.com]]"]
----
-
-# George Petridis
-```
-
-### Identity resolution rules
-
-- **`identifiers`** is the structured lookup block. Any system can query by email, phone, Google Chat ID, or website to find this person.
-- **`also_known_as`** captures brand names, nicknames, maiden names — anything someone might be known as that differs from `name`.
-- **`aliases`** (Obsidian-native) should include both `name` and `also_known_as` values for Obsidian search.
-- **`companies`** can be a single `company` + `company_domain` (simple) or an array of `{name, domain}` objects (multi-entity).
-- **Google Chat ID** (`identifiers.google_chat`) enables direct mapping from chat messages to contact profiles without needing the People API.
-- When mining, if you encounter a new email/phone for an existing contact, **update the existing file** rather than creating a duplicate.
-
----
-
-## Type: `communication`
-
-File: `communications/{YYYY}/{MM}/{YYYY-MM-DD}-{subject-slug}.md`
-
-Communications use a **universal header + freeform semantic fields** pattern. The universal fields are always present. Freeform fields are added only when evidenced by the thread content — see [field-catalog.md](field-catalog.md) for the full vocabulary.
-
-### Simple thread (2 messages):
-
-```yaml
----
-id: comm_1742352831_nova
-type: communication
-channel: email
-subject: "Re: Nova tinting website"
-date: 2026-03-19T14:53:51+11:00
-direction: inbound
-participants:
- - name: Brad Kendall
- - name: Jeremy Dawes
-message_count: 2
-summary: "Brad Kendall from Nova Pitstop confirmed 1pm meeting at Jezweb office to discuss tinting website. Also trades as Hi-Tech Autoglass Solutions."
-tags: [meeting, website-project, automotive]
-source: gmail
-source_id: 19cade5e9cf2fbc6
-
-# Freeform — only what's in the content
-companies: [Nova Pitstop, Hi-Tech Autoglass Solutions]
-phone: "02 4954 6828"
-website: www.novapitstop.com.au/book-online
-meeting_time: "1pm"
-meeting_location: "Jeremy's office"
-primary_intent: scheduling
----
-
-# Nova tinting website — 19 Mar 2026
-
-Brad Kendall confirmed 1pm meeting at Jezweb office to discuss the tinting website project. Also trades as Hi-Tech Autoglass Solutions.
-```
-
-### Complex thread (8 messages):
-
-```yaml
----
-id: comm_1740182400_skin
-type: communication
-channel: email
-subject: Micro Skin Website
-date: 2026-02-19T00:00:00+10:00
-direction: bidirectional
-participants:
- - name: Justin
- company: Big Colour
- - name: Belinda
- company: Big Colour
- - name: Jeremy Dawes
- company: Jezweb
- - name: Marianne Boughton
- company: Jezweb
- role: accounts
- - name: Karen Irvine
- company: Jezweb
-message_count: 8
-summary: "Big Colour commissioning Micro Skin product website. Justin requesting design iterations including darker grey and white outline changes. Multi-week back-and-forth."
-tags: [website-design, design-feedback, micro-skin]
-source: gmail
-source_id: 19c972f9c508ab2f
-
-# Freeform — richer because thread is richer
-companies: [Big Colour, Jezweb]
-project: micro-skin-website
-product: Micro Skin
-primary_intent: project_feedback
-client_lifecycle_stage: active_project
-design_changes: [darker grey, white outline adjustment]
-business_relationship: client-vendor
----
-
-# Micro Skin Website — 19 Feb to 3 Mar 2026
-
-Big Colour (signage company) working with Jezweb on a website for the Micro Skin product line. Justin from Big Colour drove the design feedback, requesting specific changes including making the grey darker and adjusting the white outline. Jeremy forwarded feedback internally to Marianne and Karen. Multiple rounds of iteration over two weeks as the design was refined to Big Colour's requirements.
-```
-
-### Key principles:
-
-- **Summary length is proportional** to thread complexity
-- **Freeform fields vary** per thread — a bug report looks different from a pricing dispute
-- **No empty fields** — if it's not in the content, don't add it
-- See [field-catalog.md](field-catalog.md) for the full vocabulary of discoverable fields
-```
-
----
-
-## Type: `knowledge`
-
-File: `knowledge/{topic-slug}.md`
-
-```yaml
----
-id: know_1741824000_b7c1
-type: knowledge
-created: 2026-03-10T11:30:00+11:00
-updated: 2026-03-10T11:30:00+11:00
-tags: [knowledge, preference]
-source: gmail
-source_id: 18e2a3b4c5d6e7f8
-source_url: https://mail.google.com/mail/u/0/#all/18e2a3b4c5d6e7f8
-summary: "Jane Smith at Smith Holdings prefers phone contact over email for project discussions."
-visibility: private
-
-kind: preference # decision | commitment | deadline | amount | preference | feedback | relationship | other
-client_domain: smithholdings.com.au
-contact_email: [email protected]
-project: ~
-thread_date: 2026-03-10T11:30:00+11:00
-
-related: ["[[clients/smithholdings.com.au]]", "[[contacts/jane-smith]]"]
----
-
-Client prefers phone contact over email for project discussions.
-```
-
----
-
-## D1 Sync Mapping
-
-When syncing to D1, extract frontmatter fields directly:
-
-| Frontmatter | D1 column | Notes |
-|-------------|-----------|-------|
-| `id` | PRIMARY KEY | Upsert key |
-| `type` | routes to table | `client` → `clients` etc |
-| `created` | `created_at` | ISO 8601 |
-| `updated` | `updated_at` | Drives incremental sync |
-| `summary` | `summary` | Vectorize embedding input |
-| `visibility` | `visibility` | Future team/public access |
-| `tags` | `tags` | JSON array |
-| `source` | `source` | |
-| `source_id` | `source_id` | Idempotency check |
-
-Upsert pattern: `INSERT OR REPLACE` keyed on `id`. Use `updated` to skip unchanged records.
-
----
-
-## Vectorize Embedding
-
-Embed the `summary` field only. Keep summary:
-- 1–3 sentences max
-- Dense with names, domains, context
-- A factual description, not a heading or label
-
-Vector metadata payload: `id`, `type`, `client_domain`, `visibility`, `updated`
-(lets you filter without a D1 roundtrip)
-
----
-
-## Obsidian Compatibility Notes
-
-- `tags` and `aliases` — Obsidian reads and renders natively
-- All other fields — Obsidian ignores silently, no errors or warnings
-- `[[wiki links]]` in `related` — Obsidian renders as clickable cross-references
-- Dataview plugin can query any frontmatter field as a table or list, zero config
-- Open `~/.cortex/` as a vault in Obsidian and it works today
diff --git a/plugins/basalt/skills/basalt-cortex/references/extraction-prompt.md b/plugins/basalt/skills/basalt-cortex/references/extraction-prompt.md
deleted file mode 100644
index b5fbd0bf..00000000
--- a/plugins/basalt/skills/basalt-cortex/references/extraction-prompt.md
+++ /dev/null
@@ -1,357 +0,0 @@
-# Extraction Prompt Toolkit
-
-The complete prompt for extracting structured knowledge from email threads and chat conversations into Basalt format notes. This prompt + the field catalog + the few-shot examples form the "schema" that makes extraction consistent and rich.
-
-## When to use
-
-This prompt is used by Claude Code agents (or any LLM) when processing raw email threads or chat conversations into Basalt communication notes. It can be:
-- Embedded in a Claude Code agent's system prompt
-- Sent as context with each thread to an external API (Gemini, GPT)
-- Used by Claude in-context during interactive mining sessions
-
----
-
-## System Prompt
-
-```
-You are a knowledge extraction specialist converting email threads and chat conversations into structured markdown notes for a personal knowledge vault called Basalt Cortex.
-
-Your job is to produce a markdown file with YAML frontmatter and a prose body that captures everything meaningful in the conversation.
-
-## Output Format
-
-The output is a single markdown file with two parts:
-
-1. YAML frontmatter between --- markers
-2. Prose body below the frontmatter
-
-## Universal Fields (always include)
-
-Every note MUST have these fields:
-
-- id: comm_{unix_timestamp}_{4char_slug_from_subject}
-- type: communication
-- channel: email | chat | sms | call | meeting | note
-- subject: the thread subject line (quote if it contains special chars)
-- date: ISO 8601 with timezone (use the latest message date)
-- direction: inbound (they initiated) | outbound (you initiated) | bidirectional (back-and-forth)
-- participants: array of {name, email} objects. Add company and role fields to participants ONLY when clearly stated in the thread (signature, context, CC patterns)
-- message_count: number of messages in the thread
-- summary: 1-3 sentences. Dense with names, companies, and specifics. This field is used for semantic search — make it useful for someone searching "what happened with HV Tours pricing" or "when did Brad confirm the meeting"
-- tags: keyword array for filtering. Use lowercase-hyphenated format
-- source: gmail | google_chat | slack | etc
-- source_id: thread ID for deduplication
-
-## Freeform Semantic Fields (add when evidenced)
-
-Consult the field catalog for a vocabulary of ~50 discoverable fields. Only add fields that are EVIDENCED by the thread content. Never add empty fields.
-
-### How to decide which fields to add
-
-Read the thread and ask yourself these questions:
-- What is the PRIMARY PURPOSE of this conversation? → primary_intent
-- Is there urgency or a deadline? → urgency_indicator, deadline
-- What is the emotional tone? → client_sentiment (only if notable — skip for neutral)
-- Was a task handed off from one person to another? → internal_delegation
-- Was a decision made? → decision
-- Did someone commit to doing something? → action
-- Is money discussed? → amount, financial_document, pricing_model
-- Are specific companies or products mentioned? → companies, product
-- Is there a project this belongs to? → project
-- Is there a blocker? → project_blocker
-- Is there a bug or issue? → issue, bug_report
-- Is there a notable quote? → key_quote (only truly memorable/useful ones)
-- Are there contact details in signatures? → phone, website, role_title
-- Does someone go by a different name? → real_name, also_known_as
-- Does one person run multiple businesses? → multi_entity_portfolio
-- Is someone being referred or introduced? → referral_chain
-- Where is this person in the client lifecycle? → client_lifecycle_stage (only when clearly changing stages)
-
-If a field doesn't apply, DON'T ADD IT. A simple "confirmed meeting" thread might only have 2-3 freeform fields. A complex multi-party dispute might have 10+.
-
-## Prose Body Rules
-
-### Length is proportional to substance
-
-- 1-2 message "thanks/confirmed" thread → 1-2 sentences
-- 3-5 message back-and-forth → short paragraph (3-5 sentences)
-- 6+ message project thread → full paragraph(s) with key points
-
-### What to include
-
-- WHO did WHAT — use names, not "the client" or "the team"
-- Direct quotes when they capture tone, decisions, or personality
-- The narrative arc: what triggered the thread → what happened → what's the outcome/next step
-- Contextual insight when you can infer it (but flag inferences)
-
-### What NOT to include
-
-- Don't list every message chronologically — synthesise
-- Don't repeat what's already in the YAML fields
-- Don't add section headers (## Decisions, ## Actions) — weave them into prose
-- Don't pad short threads with filler
-
-## Reasoning About Relationships
-
-### Internal delegation
-
-When someone assigns or hands off work, capture WHO initiated the handoff:
-
-CORRECT:
-- Karen flags the issue → Jeremy escalates → Stefan volunteers to handle
-- internal_delegation: [{assignor: "Karen/Jeremy", assignee: "Stefan Endt", task: "call Julie about pricing"}]
-
-WRONG:
-- Stefan says "I will manage her" → internal_delegation: [{assignor: "Stefan", assignee: "Stefan"}]
- (Stefan didn't assign to himself — the team identified the issue and Stefan volunteered)
-
-### Participant roles
-
-Add company and role to participants ONLY when explicitly stated:
-- In email signatures ("Director", "Events & Placement Coordinator")
-- In CC patterns (accounts@ email suggests accounts role)
-- In context ("Rabin is on leave" tells you Rabin is staff)
-
-DON'T guess roles. If you don't know, leave the participant as just {name, email}.
-
-### Direction
-
-- inbound: the first message came TO the vault owner (someone wrote to you)
-- outbound: the first message came FROM the vault owner (you wrote to them)
-- bidirectional: meaningful back-and-forth (not just "thanks" reply)
-
-A newsletter response is inbound (they responded to your newsletter).
-A support request is inbound (they asked for help).
-You forwarding something internally is outbound.
-
-### Client lifecycle
-
-Only add client_lifecycle_stage when the thread SHOWS a stage transition or makes the stage explicit:
-- "I would like to cancel" → churning
-- "Can you remove my web page" → churned
-- "Here's the signed agreement" → active_onboarding
-- Routine support request → don't add (it's just maintenance, not a stage change)
-
-## Anti-Patterns (things that make bad extractions)
-
-1. GENERIC SUMMARIES: "Discussion about website" → BAD. "Justin from Big Colour requested darker grey and white outline changes on Micro Skin website" → GOOD
-2. EMPTY FIELDS: sentiment: neutral, amount: ~, project: ~ → never add these
-3. OVER-EXTRACTION: Adding 15 fields to a 2-message "thanks" thread → too much
-4. MISSING THE POINT: Capturing metadata but missing that the client is frustrated, or that someone just sold their business, or that a $500 amount was mentioned
-5. WRONG DELEGATION: Person volunteering ≠ person being assigned. Read the thread flow.
-6. DUPLICATE INFO: Don't put the same information in both YAML and prose. YAML is for searchable structured data, prose is for narrative context.
-```
-
----
-
-## Few-Shot Examples
-
-### Example 1: Simple confirmation (2 messages)
-
-INPUT:
-```
-Subject: Re: Nova tinting website
-From: Nova Pitstop <[email protected]> → [email protected]
-Date: Thu, 19 Mar 2026 14:53:51 +1100
-Thread: 19cade5e9cf2fbc6 (2 messages)
-
-Brad: "Hi Jeremy, 1pm at your office works. Thanks, Brad Kendall, Nova Pitstop, Ph: 02 4954 6828, www.novapitstop.com.au/book-online, Hi-Tech Autoglass Solutions"
-(Jeremy's prior message invited Brad to discuss a tinting website project)
-```
-
-OUTPUT:
-```yaml
----
-id: comm_1742607231_nova
-type: communication
-channel: email
-subject: "Re: Nova tinting website"
-date: 2026-03-19T14:53:51+11:00
-direction: inbound
-participants:
- - name: Brad Kendall
- - name: Jeremy Dawes
-message_count: 2
-summary: "Brad Kendall from Nova Pitstop confirmed 1pm meeting at Jezweb office to discuss tinting website. Also trades as Hi-Tech Autoglass Solutions."
-tags: [meeting, website-project, automotive]
-source: gmail
-source_id: 19cade5e9cf2fbc6
-companies: [Nova Pitstop, Hi-Tech Autoglass Solutions]
-phone: "02 4954 6828"
-website: www.novapitstop.com.au/book-online
-meeting_time: "1pm"
-meeting_location: "Jezweb office"
-primary_intent: scheduling
----
-
-# Nova tinting website — 19 Mar 2026
-
-Brad Kendall confirmed 1pm meeting at Jezweb office to discuss the tinting website project. His signature reveals he also trades as Hi-Tech Autoglass Solutions, with phone 02 4954 6828.
-```
-
-WHY THIS IS GOOD:
-- Short summary matches short thread
-- Freeform fields are only what's in the content (phone, website, meeting details, companies)
-- No forced sections, no empty fields
-- Prose adds the signature detail without repeating YAML
-
----
-
-### Example 2: Newsletter response with SEO data (2 messages)
-
-INPUT:
-```
-Subject: Re: Google already answered the question
-From: Amanda Hinds <[email protected]> → [email protected]
-Date: Mon, 9 Mar 2026 23:18:46 +0000
-Thread: 19cd4e563d346411 (2 messages)
-
-Amanda: "Hey Jez, I haven't checked my website or ranking in ages so this was a good exercise - thanks :) I searched under: Heritage Architect Newcastle (Result - 4th listing on the first page, after 2 paid for positions), Heritage Impact Statement Newcastle (Result - not on the first page), Statement of Heritage Impact Newcastle (Result - not on the first page), Heritage Advice Newcastle (Result - 5th listing on the first page). I think the 2nd and 3rd search terms definitely need some attention."
-Context: Amanda is a heritage architect in Newcastle responding to a Jezweb newsletter.
-```
-
-OUTPUT:
-```yaml
----
-id: comm_1741564726_goog
-type: communication
-channel: email
-subject: "Re: Google already answered the question"
-date: 2026-03-09T23:18:46+00:00
-direction: inbound
-participants:
- - name: Amanda Hinds
- - name: Jez
-message_count: 2
-summary: "Heritage architect Amanda Hinds reports Google ranking results after Jezweb newsletter prompted her to check. 4th for 'Heritage Architect Newcastle', not on page 1 for impact statement terms."
-tags: [seo, rankings, newsletter-response, heritage-architect, newcastle]
-source: gmail
-source_id: 19cd4e563d346411
-primary_intent: newsletter_response
-client_sentiment: appreciative
-newsletter_edition: "Google already answered the question"
-seo_rankings:
- - term: "Heritage Architect Newcastle"
- position: 4
- page: 1
- notes: "after 2 paid positions"
- - term: "Heritage Impact Statement Newcastle"
- position: not_page_1
- - term: "Statement of Heritage Impact Newcastle"
- position: not_page_1
- - term: "Heritage Advice Newcastle"
- position: 5
- page: 1
-opportunity: "SEO work needed on heritage impact statement keywords"
-user_testing_queries: ["Heritage Architect Newcastle", "Heritage Impact Statement Newcastle", "Statement of Heritage Impact Newcastle", "Heritage Advice Newcastle"]
----
-
-# Google already answered the question — response from Amanda Hinds, 9 Mar 2026
-
-Amanda Hinds, a heritage architect in Newcastle, responded to the Jezweb newsletter by checking her own Google rankings — something she admitted she "hasn't done in ages." She found mixed results: 4th for "Heritage Architect Newcastle" (after two paid positions) and 5th for "Heritage Advice Newcastle," but not on page one at all for the impact statement terms. Her conclusion: "I think the 2nd and 3rd search terms definitely need some attention" — a potential SEO engagement opportunity.
-```
-
-WHY THIS IS GOOD:
-- Completely different freeform fields from Example 1 (SEO rankings, newsletter, opportunity)
-- The seo_rankings structure captures each term with position and page
-- Prose captures her personality ("hasn't done in ages") and the business opportunity
-- No generic fields forced in — only what's in this specific thread
-
----
-
-### Example 3: Multi-party pricing dispute (4 messages)
-
-INPUT:
-```
-Subject: Re: HVTours prices
-Participants: Stefan Endt (Adenium), Jeremy Dawes (Jezweb), Karen Irvine (Jezweb), Daniel Leary (Jezweb), Julie (HV Tours), Aaron (Aspire Financial)
-Date: Tue, 10 Mar 2026 09:58:53 +1100
-Thread: 19cc5f6267eaec07 (4 messages)
-
-Message flow: Karen flagged pricing discrepancy → Jeremy escalated to Stefan → Stefan responded:
-"AGREED...what is going on here lol. I will manage her...calling her this arvo to discuss."
-Julie at HV Tours set prices that don't match marketing materials. Aaron handles their books.
-```
-
-OUTPUT:
-```yaml
----
-id: comm_1741563533_hvtp
-type: communication
-channel: email
-subject: "Re: HVTours prices"
-date: 2026-03-10T09:58:53+11:00
-direction: bidirectional
-participants:
- - name: Stefan Endt
- company: Adenium
- role: digital marketing
- - name: Jeremy Dawes
- company: Jezweb
- - name: Karen Irvine
- company: Jezweb
- - name: Daniel Leary
- company: Jezweb
- - name: Julie
- company: HV Tours
- - name: Aaron
- company: Aspire Financial
- role: accountant
-message_count: 4
-summary: "Jezweb flagged pricing discrepancy on HV Tours website. Stefan Endt (Adenium) volunteered to call Julie this afternoon to resolve. Aaron from Aspire Financial in the loop as HV Tours' accountant."
-tags: [pricing, client-management, multi-vendor, hvtours]
-source: gmail
-source_id: 19cc5f6267eaec07
-primary_intent: issue_resolution
-companies: [HV Tours, Adenium, Jezweb, Aspire Financial]
-issue: "Website prices don't match marketing materials — Julie setting prices independently"
-internal_delegation:
- - assignor: Karen Irvine
- assignee: Stefan Endt
- task: "Call Julie to resolve pricing discrepancy"
- context: "Karen flagged → Jeremy escalated → Stefan volunteered"
-action: "Stefan calling Julie this arvo"
-key_quote: "AGREED...what is going on here lol. I will manage her...calling her this arvo to discuss."
-client_sentiment: frustrated
-business_relationship: multi_vendor_partnership
----
-
-# HV Tours pricing dispute — 10 Mar 2026
-
-Karen Irvine spotted that prices on the HV Tours website didn't match the marketing materials — Julie at HV Tours appears to be updating prices independently without coordinating with either the web team (Jezweb) or the marketing team (Adenium). Jeremy escalated to Stefan Endt at Adenium, who handles HV Tours' digital campaigns.
-
-Stefan's response captured both the frustration and the resolution: "AGREED...what is going on here lol. I will manage her...calling her this arvo to discuss." He volunteered to handle the client conversation directly. Aaron from Aspire Financial, who manages HV Tours' books, was kept in the loop — pricing changes affect their financial reporting too.
-```
-
-WHY THIS IS GOOD:
-- internal_delegation correctly shows Karen flagged → Stefan volunteered (not Stefan self-assigning)
-- Participant roles added only where known (Stefan = digital marketing, Aaron = accountant)
-- Julie identified by first name only (no last name available) with the generic info@ email
-- Prose explains the multi-vendor dynamic without over-explaining
-- key_quote captures personality and Australian slang
-
----
-
-## Quality Checklist
-
-Before finalising an extraction, verify:
-
-- [ ] Summary is specific enough to find via search (names, companies, what happened)
-- [ ] Freeform fields vary based on content (no default set applied to every thread)
-- [ ] No empty or placeholder fields (no `~`, no `null`, no empty arrays)
-- [ ] Participant roles only added when explicitly known
-- [ ] Direction is correct (who initiated the thread, not the latest message)
-- [ ] internal_delegation tracks the flow (who identified → who volunteered/was assigned)
-- [ ] Prose length matches thread complexity
-- [ ] Direct quotes used when they capture tone or decisions
-- [ ] No duplicate info between YAML and prose
diff --git a/plugins/basalt/skills/basalt-cortex/references/field-catalog.md b/plugins/basalt/skills/basalt-cortex/references/field-catalog.md
deleted file mode 100644
index 4309577e..00000000
--- a/plugins/basalt/skills/basalt-cortex/references/field-catalog.md
+++ /dev/null
@@ -1,131 +0,0 @@
-# Basalt Field Catalog
-
-Discovered from 80+ real email threads across 2015-2026 by Gemini 3.1 Pro. This catalog is the **springboard** for per-thread extraction — the AI selects relevant fields from this list AND can add new ones it discovers.
-
-## How to use this catalog
-
-When extracting metadata from an email thread or chat conversation:
-1. Read the thread content
-2. Scan this catalog for fields that match what's in the conversation
-3. Add only the fields that are **evidenced by the content** — never add empty fields
-4. If you discover something new that isn't in this catalog, add it anyway and note it as a new field
-5. The universal fields (type, channel, subject, date, direction, participants, summary, tags) are always present
-
----
-
-## Universal Fields (always present)
-
-| Field | Type | Description |
-|-------|------|-------------|
-| `id` | string | Deterministic ID: `comm_{unix_ts}_{4char_slug}` |
-| `type` | string | Always `communication` |
-| `channel` | string | `email`, `chat`, `sms`, `call`, `meeting`, `note` |
-| `subject` | string | Thread subject line |
-| `date` | string | ISO 8601 with timezone |
-| `direction` | string | `inbound`, `outbound`, `bidirectional` |
-| `participants` | array | List of `{name, email}` objects |
-| `message_count` | number | Messages in thread |
-| `summary` | string | 1-3 sentences, dense with names. Used for semantic search |
-| `tags` | array | Keyword tags for filtering |
-| `source` | string | `gmail`, `google_chat`, `slack`, etc. |
-| `source_id` | string | Thread ID for idempotency |
-
----
-
-## Freeform Semantic Fields (add when present in content)
-
-### Intent & Sentiment (any industry)
-
-| Field | Type | When to add | Examples |
-|-------|------|------------|---------|
-| `primary_intent` | string | Always useful | `support_request`, `sales_inquiry`, `billing_update`, `project_feedback`, `scheduling`, `referral`, `personal`, `legal_notice`, `admin`, `newsletter_response` |
-| `urgency_indicator` | string | When urgency is expressed | `critical_outage`, `date_specific_deadline`, `standard`, `low_priority` |
-| `client_sentiment` | string | When tone is notable | `frustrated`, `apologetic`, `appreciative`, `neutral`, `disputed`, `enthusiastic` |
-| `internal_delegation` | array of objects | When tasks are handed off | `[{assignor: "Natalie", assignee: "Ravelle", task: "follow up with Nick"}]` |
-
-### Client Lifecycle & Relationships
-
-| Field | Type | When to add | Examples |
-|-------|------|------------|---------|
-| `client_lifecycle_stage` | string | When stage is clear from context | `prospect`, `active_onboarding`, `active_project`, `active_maintenance`, `churning`, `churned` |
-| `churn_reason` | string | When client is leaving | "Sold the business", "Migrating to Shopify", "In liquidation" |
-| `referral_chain` | object | When someone introduces someone | `{referrer: "Chris Burgess", referee: "Alexander Dark", context: "BNI referral"}` |
-| `multi_entity_portfolio` | array | When one person runs multiple businesses | `["Pumping Records", "Pumping Management", "Pumping Entertainment"]` |
-| `business_relationship` | string | When the relationship type is notable | `client`, `partner`, `vendor`, `affiliate`, `referrer`, `prospect`, `former_client` |
-
-### Project & Technical
-
-| Field | Type | When to add | Examples |
-|-------|------|------------|---------|
-| `project` | string | When thread is about a specific project | `micro-skin-website`, `acps-launch`, `vsb-chatbot` |
-| `project_blocker` | string | When something is blocking progress | "No payment facility - Eway", "Client can't provide access", "Designer reviewing" |
-| `technical_assets` | array | When tech infrastructure is discussed | `["WordPress", "forms plugin"]`, `["Cloudflare DNS"]`, `["Stripe"]` |
-| `third_party_platforms` | array | When external platforms are mentioned | `["Shopify"]`, `["Commerce7"]`, `["Eway"]`, `["Rezdy"]` |
-| `infrastructure_action` | string | When a technical operation is happening | `provision`, `migrate`, `update`, `debug`, `teardown` |
-| `design_changes` | array | When visual changes are requested | `["darker grey", "white outline adjustment"]` |
-| `product` | string | When a specific product is being discussed | `L2Chat`, `Flare AI`, `JezPress` |
-
-### Financial & Commercial
-
-| Field | Type | When to add | Examples |
-|-------|------|------------|---------|
-| `financial_document` | string | When money docs are referenced | `remittance_advice`, `purchase_order`, `invoice`, `quote` |
-| `amount` | string | When dollar figures are mentioned | "$500", "$770/month", "PO 4400426649" |
-| `pricing_model` | string | When pricing structure is discussed | "Affiliate commission", "Subscription renewal", "One-off project" |
-
-### People & Identity
-
-These fields appear on **communication** notes when identity details are discovered in a thread. They should ALSO trigger an update to the corresponding **contact** file's `identifiers` block — see basalt-format.md for the contact identity schema.
-
-| Field | Type | When to add | Examples |
-|-------|------|------------|---------|
-| `real_name` | string | When display name differs from real name | "George Petridis" (display: "George Fuel") |
-| `also_known_as` | string | When aliases/brand names exist | "George Fuel", "Nova Pitstop" |
-| `phone` | string | When phone numbers appear in content | "02 4954 6828", "+61 414 232 794" |
-| `companies` | array | When multiple companies are involved | `["Verge Safety Barriers", "Uni-Fit", "Adenium"]` |
-| `role_title` | string | When job title is mentioned | "Events & Placement Coordinator", "Director" |
-| `google_chat_id` | string | When a Google Chat user ID is present | "users/105776807049217487682" |
-| `additional_emails` | array | When signature reveals extra emails | `["[email protected]"]` |
-| `website` | string | When a personal/business URL is shared | "www.novapitstop.com.au/book-online" |
-
-### Community & Networking
-
-| Field | Type | When to add | Examples |
-|-------|------|------------|---------|
-| `community_affiliation` | string | When networking/community groups are involved | "BNI Sunrisers", "Maryland Shortland Scouts" |
-| `mass_broadcast` | string | When email is one-to-many | `security_alert`, `newsletter`, `event_invite` |
-
-### Content-Specific (emergent)
-
-| Field | Type | When to add | Examples |
-|-------|------|------------|---------|
-| `seo_rankings` | array of objects | When search rankings are discussed | `[{term: "Heritage Architect Newcastle", position: 4}]` |
-| `newsletter_edition` | string | When responding to a newsletter | "Google already answered the question" |
-| `issue` | string | When a bug/problem is reported | "Wrong phone number in chatbot", "Forms not working" |
-| `bug_report` | boolean | When it's a product bug report | `true` |
-| `meeting_time` | string | When a meeting is scheduled | "1pm", "Wednesday 10am" |
-| `meeting_location` | string | When a meeting place is specified | "Jeremy's office", "Zoom" |
-| `deadline` | string | When a date constraint exists | "Wednesday night launch", "COB Friday 6th March" |
-| `decision` | string | When something was decided | "Launch rescheduled", "Landing page approved" |
-| `action` | string | When someone committed to doing something | "Stefan calling Julie this arvo" |
-| `website` | string | When a URL is shared | "www.novapitstop.com.au/book-online" |
-| `domain` | string | When a domain name is the topic | "peece.com.au", "bluewaterelectricalservices.com.au" |
-| `ai_context` | string | When AI is part of the discussion | `client_deployment`, `product_demo`, `product_ideation` |
-| `user_testing_queries` | array | When someone reports search/AI test results | `["Heritage Architect Newcastle", "recliner repairs near me"]` |
-| `key_quote` | string | When a quote captures the essence | "Did you just bang that out in a casual afternoon?" |
-
----
-
-## Adding New Fields
-
-This catalog is a living document. When extracting from a new thread, if you encounter metadata that doesn't fit any existing field:
-
-1. Add it with a descriptive `lowercase_snake_case` name
-2. Use the simplest appropriate type (string > array > object)
-3. The field will naturally join the catalog as more threads are processed
-
-Examples of fields that might emerge in other industries:
-- A tradie: `site_address`, `materials_list`, `safety_requirements`
-- A lawyer: `case_number`, `court_date`, `opposing_party`, `statute_reference`
-- A recruiter: `candidate_name`, `role_applied`, `salary_range`, `interview_stage`
-- A property manager: `property_address`, `tenant_name`, `lease_expiry`, `maintenance_type`
diff --git a/plugins/basalt/skills/basalt-cortex/references/prefilter-patterns.md b/plugins/basalt/skills/basalt-cortex/references/prefilter-patterns.md
deleted file mode 100644
index 418f8243..00000000
--- a/plugins/basalt/skills/basalt-cortex/references/prefilter-patterns.md
+++ /dev/null
@@ -1,86 +0,0 @@
-# Pre-filter Patterns
-
-Applied before any AI call. Goal: skip 60-80% of content at near-zero cost.
-
-## Step 1: Idempotency Check (always first)
-
-Check if this item has already been processed:
-
-```python
-import json
-state = json.load(open(f"{CORTEX_DIR}/state.json"))
-if source_id in state.get("processed_source_ids", []):
- skip # already processed
-```
-
-For file-based sources, check if a Basalt file already exists with matching `source_id` in frontmatter.
-
-## Step 2: Automated Sender Patterns (Gmail/Chat)
-
-Skip if `from` address matches (case-insensitive):
-
-```
-no-reply@, noreply@, do-not-reply@, donotreply@
-notifications@, notification@, alerts@, alert@
-mailer-daemon@, postmaster@, bounce@
-auto-confirm@, automated@, robot@, bot@
-newsletter@, newsletters@, marketing@, offers@, promotions@
-billing@, invoices@, receipts@, system@
-```
-
-Skip if sender domain is a known automated source:
-```
-xero.com, myob.com, quickbooks.com
-stripe.com, paypal.com, square.com
-github.com, gitlab.com, bitbucket.org
-atlassian.com, jira.com, trello.com
-slack.com, notion.so, asana.com
-google.com (calendar invites, drive shares)
-cloudflare.com, aws.amazon.com
-linkedin.com, facebook.com, twitter.com
-mailchimp.com, sendinblue.com, constantcontact.com
-```
-
-## Step 3: Content Length Filter
-
-Skip if body is too short to contain useful knowledge:
-- Email body < 50 characters after stripping HTML → skip
-- Chat message < 20 characters → skip
-- Web page < 200 characters → skip (likely JS-rendered blank)
-
-## Step 4: Subject Line Patterns (Gmail)
-
-Skip if subject matches:
-```
-/^(re:\s*)*out of office/i
-/^(re:\s*)*automatic reply/i
-/unsubscribe/i (in body, not subject)
-/^your .* receipt/i
-/^your .* order/i (unless from a real person)
-/^payment .* received/i
-/^invoice .* from/i
-```
-
-## Step 5: Bot Detection (Chat/Slack)
-
-Skip messages from:
-- Users with `[BOT]` or `[APP]` in their display name
-- Slack app messages (check `subtype: bot_message`)
-- Google Chat app messages (check `sender.type: BOT`)
-- Webhook-generated messages
-
-## Step 6: Duplicate Content Detection
-
-For communications that are part of a thread:
-- Only process the thread once (use thread ID, not individual message IDs)
-- For Gmail: the thread ID groups all replies together
-- For Slack: use `thread_ts` to group threaded replies
-- For Chat: use the space + thread key
-
-## Keep Rules (override skips)
-
-Always process if:
-- From/to a known client domain (check existing `clients/` folder)
-- Contains the owner's email in To/CC
-- Has attachments (may contain contracts, quotes, briefs)
-- Subject contains: quote, proposal, contract, agreement, invoice (from real senders)
diff --git a/plugins/basalt/skills/basalt-cortex/references/source-patterns.md b/plugins/basalt/skills/basalt-cortex/references/source-patterns.md
deleted file mode 100644
index 75c44e6f..00000000
--- a/plugins/basalt/skills/basalt-cortex/references/source-patterns.md
+++ /dev/null
@@ -1,261 +0,0 @@
-# Source Extraction Patterns
-
-Per-source patterns for fetching, pre-filtering, and extracting knowledge into Basalt format. Claude generates a script from these patterns adapted to the user's environment.
-
----
-
-## Gmail
-
-**Prerequisites**: Gmail MCP connected (`google-gmail-jez` or `google-gmail`)
-
-**Fetch pattern (MCP — preferred)**:
-
-```
-# Phase 1a: Extract contacts (quick scan, 100 emails)
-gmail_messages({ action: "extract_contacts", query: "in:inbox after:YYYY/MM/DD", field: "from",
- excludeDomains: ["jezweb.net", "google.com", "github.com", "cloudflare.com", ...], maxResults: 100 })
-
-# Phase 1a (sent): Who Jez emails
-gmail_messages({ action: "extract_contacts", query: "in:sent after:YYYY/MM/DD", field: "to",
- excludeDomains: [...], maxResults: 100 })
-
-# Phase 1b: List emails in monthly batches
-gmail_messages({ action: "list",
- query: "in:inbox -category:promotions -category:social -category:updates -category:forums after:YYYY/MM/DD before:YYYY/MM/DD",
- maxResults: 50, format: "compact", bodyPreview: 1000 })
-
-# Phase 1c: Get full content for significant threads
-gmail_messages({ action: "get", messageId: "...", bodyFormat: "text" })
-```
-
-**Pre-filter**: See prefilter-patterns.md. From the `list` results, skip:
-- Synergy Wholesale 2FA, eligibility reports, transaction statements
-- CrazyTel auto top-ups
-- Domain expiry/transfer/registration notifications
-- Wordfence login alerts
-- L2Chat/Bot notification emails
-- Payment receipts from automated systems
-
-**Extract**: Claude does AI extraction in-context while scanning list results. No external LLM call needed. Identify clients, contacts, communications, and knowledge facts from snippets + full bodies.
-
-**Basalt mapping**:
-- Each unique business domain → `clients/{domain}.md`
-- Each unique person → `contacts/{first-last}.md`
-- Each significant thread → `communications/{YYYY}/{MM}/{YYYY-MM-DD}-{subject-slug}.md`
-- Each extracted fact → `knowledge/{topic-slug}.md`
-
-**Idempotency**: Use Gmail thread ID as `source_id`. Check `state.json` processed list before processing.
-
-**Cursor**: Store the newest thread timestamp in `state.json` cursors.gmail.
-
-**Batch strategy**: Process one month at a time. For large mines (full year), fetch 50 emails per month-batch, process, then move to the next month. Generate a single Python script with all extracted entities at the end.
-
----
-
-## Google Chat
-
-**Prerequisites**: Google Chat MCP connected (`google-chat`)
-
-**Fetch pattern (MCP)**:
-
-```
-# List all spaces
-chat_spaces({ action: "list", filter: "all", limit: 50 })
-
-# Categorise spaces — skip bot-only spaces:
-# SKIP: Email Copilot, Coffee, Chat Copilot, Flux Copilot, Paste Bin
-# MINE: Client spaces, business ops, team discussions
-
-# Fetch messages ONE SPACE AT A TIME
-chat_messages({ action: "list", spaceId: "ABC123", range: "month", limit: 50 })
-
-# NEVER use search_active for mining — it fires all spaces in parallel
-# and times out on accounts with 50+ spaces (Jezweb has 57)
-```
-
-**Pre-filter**: Skip bot messages (`senderType: "BOT"`), join/leave events, webhook posts, reactions-only messages, messages under 20 chars.
-
-**Extract**: Group messages into conversation threads (by `threadId`). Extract decisions, action items, knowledge. Claude does extraction in-context.
-
-**Basalt mapping**:
-- Each conversation thread → `communications/{YYYY}/{MM}/{YYYY-MM-DD}-{subject-slug}.md` with `channel: google_chat`
-- Decisions and facts → `knowledge/{topic-slug}.md`
-- New participants → `contacts/{first-last}.md`
-
-**Idempotency**: Use message ID as `source_id`.
-
-**Space-by-space iteration**: Process spaces in order of business value:
-1. Client spaces (Verge, ACPS, Procool, etc.)
-2. Business ops (Help Desk, Website Sales, Accounts Receivable)
-3. Team/internal (Team Jezweb, HR, Finances)
-4. Dev/AI (Claude Code, MCP Servers, AI Agents)
-Save progress after each space so failures are resumable.
-
----
-
-## Slack
-
-**Prerequisites**: Slack MCP connected OR Slack API token
-
-**Fetch pattern (MCP)**:
-```
-Use Slack MCP tools to list channels, read messages
-```
-
-**Fetch pattern (API)**:
-```bash
-curl -s "https://slack.com/api/conversations.list" -H "Authorization: Bearer $SLACK_TOKEN"
-curl -s "https://slack.com/api/conversations.history?channel=CHANNEL_ID&limit=50" -H "Authorization: Bearer $SLACK_TOKEN"
-```
-
-**Pre-filter**: Skip bot messages, app notifications, channel join/leave.
-
-**Extract**: Same as Google Chat — group by thread, extract decisions and knowledge.
-
-**Basalt mapping**: Same as Google Chat with `channel: slack`, `source: slack`.
-
----
-
-## Google Drive
-
-**Prerequisites**: `gws` CLI authenticated with drive scope
-
-**Fetch pattern**:
-```bash
-# List recent files
-gws drive files list --query "modifiedTime > '2026-01-01'" --format json
-
-# Get file metadata
-gws drive files get FILE_ID --format json
-
-# Download text content (for Google Docs)
-gws drive files export FILE_ID --mime-type text/plain
-```
-
-**Pre-filter**: Skip files smaller than 100 bytes, skip image/video/audio files.
-
-**Extract**: For documents, extract the title, summary, owner, shared-with list. Don't mine the full content unless asked — Drive documents are better linked than copied.
-
-**Basalt mapping**:
-- Each document → `knowledge/know_{ts}_{hash}.md` with document URL in `source_url`
-- Shared-with lists → update `contacts/` with collaboration relationships
-- Folders → `projects/` if they represent a project
-
----
-
-## Local Folders
-
-**Prerequisites**: None
-
-**Fetch pattern**:
-```bash
-# Find markdown files in a directory
-find /path/to/folder -name "*.md" -type f
-
-# Read each file
-cat /path/to/file.md
-```
-
-**Pre-filter**: Skip files in `node_modules/`, `.git/`, `dist/`, `.wrangler/`.
-
-**Extract**: Read frontmatter if present. If no frontmatter, extract title from first heading. Generate a summary.
-
-**Basalt mapping**:
-- Each file → type depends on content (note, knowledge, project)
-- Preserve existing frontmatter where compatible with Basalt format
-- Add `source: local`, `source_url: file:///path/to/original`
-
----
-
-## MCP Servers
-
-**Prerequisites**: Any MCP server connected that has searchable data (ERPNext, custom servers, etc.)
-
-**Fetch pattern**:
-```
-# ERPNext MCP
-erpnext_customers list limit=100
-erpnext_contacts list limit=100
-erpnext_issues list limit=100
-
-# Any MCP with search/list tools
-mcp_tool list/search → extract structured data
-```
-
-**Pre-filter**: Skip items already in Basalt Cortex by checking `source_id`.
-
-**Extract**: MCP items often already have structured fields. Map directly to Basalt frontmatter.
-
-**Basalt mapping**:
-- Customers → `clients/{domain}.md` with `source: erpnext`
-- Contacts → `contacts/{name}.md` with `source: erpnext`
-- Knowledge items → `knowledge/{topic}.md` with `source: mcp`
-
----
-
-## Web Pages
-
-**Prerequisites**: WebFetch tool, Firecrawl MCP, or browser automation
-
-**Fetch pattern**:
-```
-# WebFetch
-WebFetch url="https://example.com/article"
-
-# Firecrawl
-firecrawl_scrape url="https://example.com" format=markdown
-
-# Browser
-playwright-cli -s=cortex open https://example.com
-playwright-cli -s=cortex snapshot
-```
-
-**Pre-filter**: Skip pages with less than 200 chars of content (likely JS-rendered blanks).
-
-**Extract**: Extract title, author, date, summary. For reference material, keep the full content.
-
-**Basalt mapping**:
-- Each page → `knowledge/know_{ts}_{hash}.md` or `notes/{slug}.md`
-- `source: web`, `source_url: https://...`
-
----
-
-## Calendar
-
-**Prerequisites**: `gws` CLI authenticated with calendar scope
-
-**Fetch pattern**:
-```bash
-gws calendar events list --time-min 2026-01-01 --max-results 100 --format json
-```
-
-**Pre-filter**: Skip all-day events without descriptions, skip declined events.
-
-**Extract**: Extract meeting title, attendees, description/agenda, recurring pattern.
-
-**Basalt mapping**:
-- Each meeting → `communications/{YYYY}/{MM}/comm_{ts}_{hash}.md` with `channel: calendar`
-- New attendees → `contacts/{slug}.md`
-- Meeting notes in description → `knowledge/know_{ts}_{hash}.md`
-
----
-
-## Obsidian Vault Import
-
-**Prerequisites**: Path to existing Obsidian vault
-
-**Fetch pattern**:
-```bash
-find /path/to/vault -name "*.md" -not -path "*/.obsidian/*" -not -path "*/.trash/*"
-```
-
-**Pre-filter**: Skip Obsidian system files (`.obsidian/`, `.trash/`).
-
-**Extract**: Read existing frontmatter. Normalise to Basalt format:
-- Add `id` if missing (generate from filename)
-- Add `type` if missing (infer from folder name or content)
-- Add `source: obsidian`, `source_url: obsidian://open?vault=NAME&file=PATH`
-- Preserve existing `tags` and `aliases` (Obsidian-native fields)
-- Generate `summary` if missing
-
-**Basalt mapping**: Preserve the file as-is with normalised frontmatter. Copy to `~/.cortex/notes/` unless the folder maps to a known type (clients/, contacts/, etc.).
diff --git a/plugins/basalt/skills/basalt-cortex/references/sync-patterns.md b/plugins/basalt/skills/basalt-cortex/references/sync-patterns.md
deleted file mode 100644
index 65f50da9..00000000
--- a/plugins/basalt/skills/basalt-cortex/references/sync-patterns.md
+++ /dev/null
@@ -1,148 +0,0 @@
-# Sync Patterns
-
-How `~/.cortex/` Basalt files sync to external systems. Files are the source of truth. Everything else is a projection.
-
-**Status**: Not yet built. Reference when implementing cortex-sync mode.
-
----
-
-## Architecture
-
-```
-~/.cortex/ <- source of truth (Basalt markdown files)
- |
- +-> Frond API <- visual web interface, search, browse
- +-> D1 <- SQL queries, structured lookups
- +-> Vectorize <- semantic search via embeddings
-```
-
-One-way sync. Files are truth. External systems are read projections.
-
----
-
-## Frond Sync
-
-Push Basalt files to Frond as notes via its API.
-
-### Prerequisites
-- Frond API token (generate at frond.au settings)
-- Store as `FROND_API_TOKEN` in `~/.cortex/.env`
-
-### Mapping
-
-| Basalt field | Frond field |
-|-------------|-------------|
-| `id` | `external_id` (upsert key) |
-| Full file content | `content` |
-| First `# heading` | `title` (auto-extracted by Frond) |
-| `type` | Determines target folder |
-| `updated` | Compare to skip unchanged |
-
-### Folder mapping
-
-| Cortex path | Frond folder |
-|-------------|-------------|
-| `clients/` | Clients |
-| `contacts/` | Contacts |
-| `communications/` | Communications |
-| `knowledge/` | Knowledge |
-| `notes/` | Notes |
-
-### Sync logic
-
-```python
-for md_file in walk_cortex():
- basalt = parse_frontmatter(md_file)
- existing = frond_find_by_external_id(basalt['id'])
-
- if existing and basalt['updated'] <= existing['synced_at']:
- continue # unchanged
-
- if existing:
- frond_patch(existing['id'], content=md_file.read_text())
- else:
- folder_id = get_or_create_folder(basalt['type'])
- frond_create(folder_id=folder_id, content=md_file.read_text())
-
- update_sync_state(basalt['id'], synced_at=now())
-```
-
----
-
-## D1 Sync
-
-Parse frontmatter, map fields to columns, upsert.
-
-### Mapping
-
-| Frontmatter | D1 column | Notes |
-|-------------|-----------|-------|
-| `id` | PRIMARY KEY | Upsert key |
-| `type` | Routes to table | `client` -> `clients` etc |
-| `created` | `created_at` | ISO 8601 |
-| `updated` | `updated_at` | Drives incremental sync |
-| `summary` | `summary` | Vectorize embedding input |
-| `tags` | `tags` | JSON array |
-| `source` | `source` | |
-| `source_id` | `source_id` | Idempotency |
-
-Upsert: `INSERT OR REPLACE` keyed on `id`. Use `updated` to skip unchanged.
-
----
-
-## Vectorize Sync
-
-Embed the `summary` field. Store vector with metadata for filtering without D1.
-
-### Embedding input
-Use only the `summary` field (1-3 sentences, dense with names/context).
-
-### Metadata payload
-```json
-{
- "id": "client_smithholdings.com.au",
- "type": "client",
- "client_domain": "smithholdings.com.au",
- "visibility": "private",
- "updated": "2026-03-13T06:15:00+11:00"
-}
-```
-
-### Pattern
-```python
-embedding = workers_ai_embed(basalt['summary'])
-vectorize.upsert([{
- "id": basalt['id'],
- "values": embedding,
- "metadata": { ... }
-}])
-```
-
----
-
-## Sync State
-
-Track sync progress in `state.json`:
-
-```json
-{
- "frond_sync": {
- "client_smithholdings.com.au": {
- "frond_note_id": "abc123",
- "synced_at": "2026-03-13T06:15:00+11:00"
- }
- }
-}
-```
-
----
-
-## Running
-
-```bash
-# Future CLI patterns:
-python3 cortex-sync.py --target frond
-python3 cortex-sync.py --target d1
-python3 cortex-sync.py --target vectorize
-python3 cortex-sync.py # all targets
-```