Skip to content

Commit e814f20

Browse files
committed
docs(skills): improve daily-recap with obsidian cli expansion and injected context
- expand allowed-tools with obsidian file/folder/search/outline/tags/properties commands - remove obsolete find permission from daily-recap - add injected context section with dynamic bash commands for existing notes and dia files - simplify step 2h (dia browser instructions) to reference injected context - clarify step 3 (daily note creation) with explicit file existence checks
1 parent ce9bf64 commit e814f20

File tree

1 file changed

+20
-19
lines changed
  • ai-stuff/claude/skills/daily-recap

1 file changed

+20
-19
lines changed

ai-stuff/claude/skills/daily-recap/SKILL.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ allowed-tools:
1111
- Bash(obsidian append:*)
1212
- Bash(obsidian templates:*)
1313
- Bash(obsidian create:*)
14+
- Bash(obsidian file:*)
15+
- Bash(obsidian files:*)
16+
- Bash(obsidian folder:*)
17+
- Bash(obsidian folders:*)
18+
- Bash(obsidian search:*)
19+
- Bash(obsidian outline:*)
20+
- Bash(obsidian tags:*)
21+
- Bash(obsidian properties:*)
1422
- Bash(obsidian help:*)
1523
- Bash(sleep:*)
1624
- Bash(ls:*)
17-
- Bash(find:*)
1825
# Slack (read-only)
1926
- mcp__claude_ai_Slack__slack_search_public_and_private
2027
- mcp__claude_ai_Slack__slack_search_public
@@ -40,6 +47,11 @@ allowed-tools:
4047

4148
Fetch today's activity from Slack, Gmail, and Google Calendar. Synthesize into a daily recap and update the vault's daily note.
4249

50+
## Injected context
51+
52+
- Existing daily notes: !`ls "/Users/denizgokcin/Library/Mobile Documents/iCloud~md~obsidian/Documents/vault/work/daily notes/" 2>/dev/null`
53+
- Dia context files: !`find "$HOME/Library/Application Support/Dia/User Data/Profile 1/AgentServer/contexts" -name "index.html" -exec ls -la {} \; 2>/dev/null`
54+
4355
## Constants
4456

4557
- **Vault**: `vault`
@@ -171,13 +183,9 @@ Look for:
171183

172184
Dia is a browser that generates its own daily activity summaries as HTML artifacts. These often capture work context that Slack/Gmail misses (browsing activity, GitLab MR reviews done in the browser, etc.).
173185

174-
**Find and read in one step:**
175-
176-
```bash
177-
find "$HOME/Library/Application Support/Dia/User Data/Profile 1/AgentServer/contexts" -name "index.html" -print0 | xargs -0 ls -t 2>/dev/null | head -1
178-
```
186+
**The Dia context files are injected in the "Injected context" section above.** Pick the one with the most recent date and read it using the Read tool.
179187

180-
This returns the path to the most recently modified `index.html` across all contexts. **Read that file** using the Read tool.
188+
**If no output is returned**, skip this step silently.
181189

182190
**Parse the HTML content** — look for these sections (the structure is consistent):
183191
- `.section` with section-label **"Completed"**`.item h3` (title) + `.item p` (description) + `.tag` spans
@@ -211,23 +219,16 @@ When synthesizing Slack data, apply these filters:
211219

212220
### Step 3: Ensure daily note exists
213221

214-
**Note**: This vault uses the Periodic Notes community plugin, NOT the core Daily Notes plugin. The `obsidian daily:*` commands will NOT work. Always use `obsidian read` with explicit path instead.
222+
**Note**: This vault uses the Periodic Notes community plugin, NOT the core Daily Notes plugin. The `obsidian daily:*` commands will NOT work.
215223

216-
Try to read today's daily note:
224+
Check the injected **"Existing daily notes"** list above:
217225

218-
```bash
219-
obsidian read path="work/daily notes/YYYY-MM-DD.md"
220-
```
221-
222-
- **If it exists**: great, we have the content
223-
- **If it does NOT exist**: create it using the Obsidian CLI from the daily template:
226+
- **If `YYYY-MM-DD.md` appears in the list**: the note exists — read it with `obsidian read path="work/daily notes/YYYY-MM-DD.md"`
227+
- **If it does NOT appear**: create it from template:
224228
```bash
225229
obsidian create name="YYYY-MM-DD" path="work/daily notes" template="daily-template" silent
226230
```
227-
Wait a few seconds (`sleep 3`) for Templater to process, then read it:
228-
```bash
229-
obsidian read path="work/daily notes/YYYY-MM-DD.md"
230-
```
231+
Wait (`sleep 3`) for Templater to process, then read it.
231232

232233
### Step 4: Synthesize into three buckets
233234

0 commit comments

Comments
 (0)