You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: assistant/CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Skills are loaded from ~/.obk/skills/ — run `obk setup` to configure.
4
4
5
5
## How to access data
6
6
7
-
Use the skills provided to query data via `sqlite3`, send messages via `obk`, or interact with Google Workspace via `gws`. Each skillcontains the exact schema, query patterns, and command usage.
7
+
Use the skills provided to query data via `sqlite3`, send messages via `obk`, or interact with Google Workspace via `gws`. Each skill's SKILL.md contains a summary. Before using a skill, read its REFERENCE.md file for the full schema, query patterns, and command usage.
Full database schema: see schema.sql in this skill directory.
4
+
5
+
## Query patterns
6
+
7
+
```bash
8
+
# Recent notes
9
+
obk db applenotes "SELECT modified_at, folder, title FROM applenotes_notes ORDER BY modified_at DESC LIMIT 20;"
10
+
11
+
# Search by title
12
+
obk db applenotes "SELECT modified_at, folder, title FROM applenotes_notes WHERE LOWER(title) LIKE '%keyword%' ORDER BY modified_at DESC LIMIT 20;"
13
+
14
+
# Full text search across title and body
15
+
obk db applenotes "SELECT modified_at, folder, title, substr(body, 1, 200) FROM applenotes_notes WHERE LOWER(title) LIKE '%term%' OR LOWER(body) LIKE '%term%' ORDER BY modified_at DESC LIMIT 10;"
16
+
17
+
# Read full note
18
+
obk db applenotes "SELECT title, folder, account, created_at, modified_at, body FROM applenotes_notes WHERE id = <id>;"
19
+
20
+
# Notes in a specific folder
21
+
obk db applenotes "SELECT modified_at, title FROM applenotes_notes WHERE LOWER(folder) = 'notes' ORDER BY modified_at DESC LIMIT 20;"
22
+
23
+
# List all folders
24
+
obk db applenotes "SELECT name, account, (SELECT COUNT(*) FROM applenotes_notes WHERE folder_id = f.apple_id) as note_count FROM applenotes_folders f ORDER BY name;"
25
+
26
+
# Notes by account
27
+
obk db applenotes "SELECT account, COUNT(*) FROM applenotes_notes GROUP BY account;"
28
+
29
+
# Recently modified notes (last 7 days)
30
+
obk db applenotes "SELECT modified_at, folder, title FROM applenotes_notes WHERE modified_at >= datetime('now', '-7 days') ORDER BY modified_at DESC;"
Copy file name to clipboardExpand all lines: skills/applenotes-read/SKILL.md
+2-30Lines changed: 2 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,34 +4,6 @@ description: Search Apple Notes, find notes by title or content, browse notes by
4
4
allowed-tools: Bash(obk *)
5
5
---
6
6
7
-
## Schema
7
+
Query synced Apple Notes from `~/.obk/applenotes/data.db`.
8
8
9
-
Full database schema: see schema.sql in this skill directory.
10
-
11
-
## Query patterns
12
-
13
-
```bash
14
-
# Recent notes
15
-
obk db applenotes "SELECT modified_at, folder, title FROM applenotes_notes ORDER BY modified_at DESC LIMIT 20;"
16
-
17
-
# Search by title
18
-
obk db applenotes "SELECT modified_at, folder, title FROM applenotes_notes WHERE LOWER(title) LIKE '%keyword%' ORDER BY modified_at DESC LIMIT 20;"
19
-
20
-
# Full text search across title and body
21
-
obk db applenotes "SELECT modified_at, folder, title, substr(body, 1, 200) FROM applenotes_notes WHERE LOWER(title) LIKE '%term%' OR LOWER(body) LIKE '%term%' ORDER BY modified_at DESC LIMIT 10;"
22
-
23
-
# Read full note
24
-
obk db applenotes "SELECT title, folder, account, created_at, modified_at, body FROM applenotes_notes WHERE id = <id>;"
25
-
26
-
# Notes in a specific folder
27
-
obk db applenotes "SELECT modified_at, title FROM applenotes_notes WHERE LOWER(folder) = 'notes' ORDER BY modified_at DESC LIMIT 20;"
28
-
29
-
# List all folders
30
-
obk db applenotes "SELECT name, account, (SELECT COUNT(*) FROM applenotes_notes WHERE folder_id = f.apple_id) as note_count FROM applenotes_folders f ORDER BY name;"
31
-
32
-
# Notes by account
33
-
obk db applenotes "SELECT account, COUNT(*) FROM applenotes_notes GROUP BY account;"
34
-
35
-
# Recently modified notes (last 7 days)
36
-
obk db applenotes "SELECT modified_at, folder, title FROM applenotes_notes WHERE modified_at >= datetime('now', '-7 days') ORDER BY modified_at DESC;"
37
-
```
9
+
Read the REFERENCE.md in this skill's directory for the full schema and query patterns.
Full database schema: see schema.sql in this skill directory.
4
+
5
+
## Query patterns
6
+
7
+
```bash
8
+
# Recent emails
9
+
obk db gmail "SELECT date, from_addr, subject FROM gmail_emails ORDER BY date DESC LIMIT 20;"
10
+
11
+
# Search by subject
12
+
obk db gmail "SELECT date, from_addr, subject FROM gmail_emails WHERE LOWER(subject) LIKE '%keyword%' ORDER BY date DESC LIMIT 20;"
13
+
14
+
# Search by sender
15
+
obk db gmail "SELECT date, from_addr, subject FROM gmail_emails WHERE LOWER(from_addr) LIKE '%name%' ORDER BY date DESC LIMIT 20;"
16
+
17
+
# Full text search across subject and body
18
+
obk db gmail "SELECT date, from_addr, subject, substr(body, 1, 200) FROM gmail_emails WHERE LOWER(subject) LIKE '%term%' OR LOWER(body) LIKE '%term%' ORDER BY date DESC LIMIT 10;"
19
+
20
+
# Read full email
21
+
obk db gmail "SELECT from_addr, to_addr, subject, date, body FROM gmail_emails WHERE id = <id>;"
22
+
23
+
# Emails with attachments
24
+
obk db gmail "SELECT e.date, e.from_addr, e.subject, a.filename, a.mime_type FROM gmail_emails e JOIN gmail_attachments a ON a.email_id = e.id ORDER BY e.date DESC LIMIT 20;"
25
+
26
+
# Count by account
27
+
obk db gmail "SELECT account, COUNT(*) FROM gmail_emails GROUP BY account;"
Query synced Gmail emails from `~/.obk/gmail/data.db`.
8
8
9
-
Full database schema: see schema.sql in this skill directory.
10
-
11
-
## Query patterns
12
-
13
-
```bash
14
-
# Recent emails
15
-
obk db gmail "SELECT date, from_addr, subject FROM gmail_emails ORDER BY date DESC LIMIT 20;"
16
-
17
-
# Search by subject
18
-
obk db gmail "SELECT date, from_addr, subject FROM gmail_emails WHERE LOWER(subject) LIKE '%keyword%' ORDER BY date DESC LIMIT 20;"
19
-
20
-
# Search by sender
21
-
obk db gmail "SELECT date, from_addr, subject FROM gmail_emails WHERE LOWER(from_addr) LIKE '%name%' ORDER BY date DESC LIMIT 20;"
22
-
23
-
# Full text search across subject and body
24
-
obk db gmail "SELECT date, from_addr, subject, substr(body, 1, 200) FROM gmail_emails WHERE LOWER(subject) LIKE '%term%' OR LOWER(body) LIKE '%term%' ORDER BY date DESC LIMIT 10;"
25
-
26
-
# Read full email
27
-
obk db gmail "SELECT from_addr, to_addr, subject, date, body FROM gmail_emails WHERE id = <id>;"
28
-
29
-
# Emails with attachments
30
-
obk db gmail "SELECT e.date, e.from_addr, e.subject, a.filename, a.mime_type FROM gmail_emails e JOIN gmail_attachments a ON a.email_id = e.id ORDER BY e.date DESC LIMIT 20;"
31
-
32
-
# Count by account
33
-
obk db gmail "SELECT account, COUNT(*) FROM gmail_emails GROUP BY account;"
34
-
```
9
+
Read the REFERENCE.md in this skill's directory for the full schema and query patterns.
0 commit comments