@duckmind/deepquark-darwin-arm64 0.9.83 → 0.9.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/.deepquark/skills/bundled/knowledge-graph/SKILL.md +385 -0
  2. package/.deepquark/skills/bundled/knowledge-graph/STANDARDS.md +461 -0
  3. package/.deepquark/skills/bundled/knowledge-graph/lib/cli.ts +588 -0
  4. package/.deepquark/skills/bundled/knowledge-graph/lib/config.ts +630 -0
  5. package/.deepquark/skills/bundled/knowledge-graph/lib/connection-profile.ts +629 -0
  6. package/.deepquark/skills/bundled/knowledge-graph/lib/container.ts +756 -0
  7. package/.deepquark/skills/bundled/knowledge-graph/lib/mcp-client.ts +1310 -0
  8. package/.deepquark/skills/bundled/knowledge-graph/lib/output-formatter.ts +997 -0
  9. package/.deepquark/skills/bundled/knowledge-graph/lib/token-metrics.ts +335 -0
  10. package/.deepquark/skills/bundled/knowledge-graph/lib/transformation-log.ts +137 -0
  11. package/.deepquark/skills/bundled/knowledge-graph/lib/wrapper-config.ts +113 -0
  12. package/.deepquark/skills/bundled/knowledge-graph/server/.env.example +129 -0
  13. package/.deepquark/skills/bundled/knowledge-graph/server/compare-embeddings.ts +175 -0
  14. package/.deepquark/skills/bundled/knowledge-graph/server/config-falkordb.yaml +108 -0
  15. package/.deepquark/skills/bundled/knowledge-graph/server/config-neo4j.yaml +111 -0
  16. package/.deepquark/skills/bundled/knowledge-graph/server/diagnose.ts +483 -0
  17. package/.deepquark/skills/bundled/knowledge-graph/server/docker-compose-falkordb-dev.yml +146 -0
  18. package/.deepquark/skills/bundled/knowledge-graph/server/docker-compose-falkordb.yml +151 -0
  19. package/.deepquark/skills/bundled/knowledge-graph/server/docker-compose-neo4j-dev-local.yml +161 -0
  20. package/.deepquark/skills/bundled/knowledge-graph/server/docker-compose-neo4j-dev.yml +161 -0
  21. package/.deepquark/skills/bundled/knowledge-graph/server/docker-compose-neo4j.yml +169 -0
  22. package/.deepquark/skills/bundled/knowledge-graph/server/docker-compose-production.yml +128 -0
  23. package/.deepquark/skills/bundled/knowledge-graph/server/docker-compose-test.yml +10 -0
  24. package/.deepquark/skills/bundled/knowledge-graph/server/docker-compose.yml +84 -0
  25. package/.deepquark/skills/bundled/knowledge-graph/server/entrypoint.sh +40 -0
  26. package/.deepquark/skills/bundled/knowledge-graph/server/install.ts +2054 -0
  27. package/.deepquark/skills/bundled/knowledge-graph/server/podman-compose-falkordb.yml +78 -0
  28. package/.deepquark/skills/bundled/knowledge-graph/server/podman-compose-neo4j.yml +88 -0
  29. package/.deepquark/skills/bundled/knowledge-graph/server/podman-compose.yml +83 -0
  30. package/.deepquark/skills/bundled/knowledge-graph/server/test-all-llms-mcp.ts +387 -0
  31. package/.deepquark/skills/bundled/knowledge-graph/server/test-embedding-models.ts +201 -0
  32. package/.deepquark/skills/bundled/knowledge-graph/server/test-embedding-providers.ts +641 -0
  33. package/.deepquark/skills/bundled/knowledge-graph/server/test-graphiti-model.ts +217 -0
  34. package/.deepquark/skills/bundled/knowledge-graph/server/test-grok-correct.ts +141 -0
  35. package/.deepquark/skills/bundled/knowledge-graph/server/test-grok-llms-mcp.ts +386 -0
  36. package/.deepquark/skills/bundled/knowledge-graph/server/test-grok-models.ts +173 -0
  37. package/.deepquark/skills/bundled/knowledge-graph/server/test-llama-extraction.ts +188 -0
  38. package/.deepquark/skills/bundled/knowledge-graph/server/test-mcp-final.ts +240 -0
  39. package/.deepquark/skills/bundled/knowledge-graph/server/test-mcp-live.ts +187 -0
  40. package/.deepquark/skills/bundled/knowledge-graph/server/test-mcp-session.ts +127 -0
  41. package/.deepquark/skills/bundled/knowledge-graph/server/test-model-combinations.ts +316 -0
  42. package/.deepquark/skills/bundled/knowledge-graph/server/test-ollama-models.ts +228 -0
  43. package/.deepquark/skills/bundled/knowledge-graph/server/test-openrouter-models.ts +460 -0
  44. package/.deepquark/skills/bundled/knowledge-graph/server/test-real-life-mcp.ts +311 -0
  45. package/.deepquark/skills/bundled/knowledge-graph/server/test-search-debug.ts +199 -0
  46. package/.deepquark/skills/bundled/knowledge-graph/tools/Install.md +104 -0
  47. package/.deepquark/skills/bundled/knowledge-graph/tools/README.md +120 -0
  48. package/.deepquark/skills/bundled/knowledge-graph/tools/knowledge-cli.ts +996 -0
  49. package/.deepquark/skills/bundled/knowledge-graph/tools/server-cli.ts +531 -0
  50. package/.deepquark/skills/bundled/knowledge-graph/workflows/BulkImport.md +514 -0
  51. package/.deepquark/skills/bundled/knowledge-graph/workflows/CaptureEpisode.md +242 -0
  52. package/.deepquark/skills/bundled/knowledge-graph/workflows/ClearGraph.md +392 -0
  53. package/.deepquark/skills/bundled/knowledge-graph/workflows/GetRecent.md +352 -0
  54. package/.deepquark/skills/bundled/knowledge-graph/workflows/GetStatus.md +373 -0
  55. package/.deepquark/skills/bundled/knowledge-graph/workflows/HealthReport.md +212 -0
  56. package/.deepquark/skills/bundled/knowledge-graph/workflows/InvestigateEntity.md +142 -0
  57. package/.deepquark/skills/bundled/knowledge-graph/workflows/OntologyManagement.md +201 -0
  58. package/.deepquark/skills/bundled/knowledge-graph/workflows/RunMaintenance.md +302 -0
  59. package/.deepquark/skills/bundled/knowledge-graph/workflows/SearchByDate.md +255 -0
  60. package/.deepquark/skills/bundled/knowledge-graph/workflows/SearchFacts.md +382 -0
  61. package/.deepquark/skills/bundled/knowledge-graph/workflows/SearchKnowledge.md +374 -0
  62. package/.deepquark/skills/bundled/knowledge-graph/workflows/StixImport.md +212 -0
  63. package/bin/deepquark +0 -0
  64. package/package.json +1 -1
  65. package/.deepquark/skills/bundled/ge-payroll/SKILL.md +0 -153
  66. package/.deepquark/skills/bundled/ge-payroll/evals/evals.json +0 -23
  67. package/.deepquark/skills/bundled/ge-payroll/references/pain-points-improvements.md +0 -106
  68. package/.deepquark/skills/bundled/ge-payroll/references/process-detail.md +0 -217
  69. package/.deepquark/skills/bundled/ge-payroll/references/raci-stakeholders.md +0 -85
  70. package/.deepquark/skills/bundled/ge-payroll/references/timeline-mandays.md +0 -64
@@ -0,0 +1,302 @@
1
+ # Run Maintenance Workflow
2
+
3
+ **Objective:** Trigger maintenance cycle to recalculate decay scores, transition lifecycle states, and clean up soft-deleted memories.
4
+
5
+ ---
6
+
7
+ ## Step 1: Announce Workflow
8
+
9
+ ```bash
10
+ ~/.claude/Tools/SkillWorkflowNotification RunMaintenance MadeinozKnowledgeSystem
11
+ ```
12
+
13
+ **Output to user:**
14
+ ```
15
+ Running the **RunMaintenance** workflow from the **MadeinozKnowledgeSystem** skill...
16
+ ```
17
+
18
+ ---
19
+
20
+ ## Step 2: Verify Pre-Conditions
21
+
22
+ **Check server is running:**
23
+
24
+ ```bash
25
+ bun run tools/knowledge-cli.ts health
26
+ ```
27
+
28
+ **Expected response:**
29
+ ```
30
+ ✓ Server healthy
31
+ ```
32
+
33
+ **If server is not healthy:**
34
+ - Stop and troubleshoot (see GetStatus workflow)
35
+ - Do not run maintenance on unhealthy system
36
+
37
+ ---
38
+
39
+ ## Step 3: Run Maintenance Cycle
40
+
41
+ **Use CLI (primary) to trigger maintenance:**
42
+
43
+ ```bash
44
+ # Run full maintenance cycle
45
+ bun run tools/knowledge-cli.ts run_maintenance
46
+
47
+ # Dry run to preview changes
48
+ bun run tools/knowledge-cli.ts run_maintenance --dry-run
49
+ ```
50
+
51
+ **Or use MCP tool (fallback only if CLI fails):**
52
+
53
+ ```typescript
54
+ // Run full maintenance cycle
55
+ run_decay_maintenance({})
56
+ ```
57
+
58
+ **Maintenance performs (in order):**
59
+ 1. **Step 0:** Classify unclassified nodes (assign importance/stability)
60
+ 2. **Step 1:** Recalculate decay scores for all memories
61
+ 3. **Step 2:** Transition lifecycle states based on thresholds
62
+ 4. **Step 3:** Soft-delete expired memories
63
+ 5. **Step 4:** Purge soft-deleted memories past 90-day retention
64
+
65
+ **Expected completion time:** Under 10 minutes for graphs up to 10k memories
66
+
67
+ ---
68
+
69
+ ## Step 4: Present Maintenance Results
70
+
71
+ **Format maintenance results for user:**
72
+
73
+ ```markdown
74
+ 🔧 **Knowledge Graph Maintenance Complete**
75
+
76
+ ---
77
+
78
+ **⏱️ Execution Summary**
79
+
80
+ - **Status:** [Success / Failed]
81
+ - **Duration:** [X.XX] seconds
82
+ - **Completed At:** [date/time]
83
+ - **Error:** [error message if failed]
84
+
85
+ ---
86
+
87
+ **📊 Processing Statistics**
88
+
89
+ - **Total Memories Processed:** [N]
90
+ - **Nodes Classified:** [N]
91
+ - Using LLM: [Yes/No]
92
+ - Classified: [N]
93
+ - Failed: [N]
94
+
95
+ ---
96
+
97
+ **🔄 Decay Scores Updated**
98
+
99
+ - **Decay Scores Recalculated:** [N]
100
+
101
+ **Impact:**
102
+ - Memories with increased decay: [N]
103
+ - Memories with decreased decay: [N]
104
+ - Memories unchanged: [N]
105
+
106
+ ---
107
+
108
+ **📋 Lifecycle State Transitions**
109
+
110
+ | Transition | Count | Details |
111
+ |------------|-------|---------|
112
+ | ACTIVE → DORMANT | [N] | 30+ days inactive |
113
+ | DORMANT → ARCHIVED | [N] | 90+ days inactive |
114
+ | ARCHIVED → EXPIRED | [N] | 180+ days, low importance |
115
+ | EXPIRED → SOFT_DELETED | [N] | Soft-delete retention started |
116
+ | DORMANT/ARCHIVED → ACTIVE | [N] | Reactivated on access |
117
+
118
+ **Net State Changes:**
119
+ - Active memories: [delta]
120
+ - Dormant memories: [delta]
121
+ - Archived memories: [delta]
122
+ - Expired memories: [delta]
123
+ - Soft-deleted memories: [delta]
124
+
125
+ ---
126
+
127
+ **🗑️ Cleanup Operations**
128
+
129
+ - **Soft-Deleted Memories Purged:** [N]
130
+ - Retention window expired (> 90 days)
131
+ - Permanently removed from graph
132
+
133
+ **Soft-Deleted Retained:** [N]
134
+ - Still within 90-day recovery window
135
+ - Can be recovered if needed
136
+
137
+ ---
138
+
139
+ **✅ Maintenance Summary**
140
+
141
+ Overall Result: [🟢 Success / 🟡 Warnings / 🔴 Failed]
142
+
143
+ **Next Scheduled Maintenance:** [recommendation based on completion time]
144
+ ```
145
+
146
+ ---
147
+
148
+ ## Maintenance Parameters
149
+
150
+ **Default Configuration:**
151
+
152
+ ```yaml
153
+ # config/decay-config.yaml
154
+ decay:
155
+ base_half_life_days: 30
156
+ retention:
157
+ soft_delete_days: 90
158
+ thresholds:
159
+ dormant:
160
+ days: 30
161
+ decay_score: 0.3
162
+ archived:
163
+ days: 90
164
+ decay_score: 0.5
165
+ expired:
166
+ days: 180
167
+ decay_score: 0.7
168
+ max_importance: 2
169
+
170
+ maintenance:
171
+ batch_size: 500
172
+ max_duration_seconds: 600 # 10 minutes
173
+ ```
174
+
175
+ **Custom parameters (if needed):**
176
+
177
+ ```typescript
178
+ // Run with custom parameters
179
+ run_decay_maintenance({
180
+ batch_size: 1000, // Larger batches for faster processing
181
+ max_duration_seconds: 300 // 5-minute timeout
182
+ })
183
+ ```
184
+
185
+ ---
186
+
187
+ ## Maintenance Frequency Recommendations
188
+
189
+ **Recommended Schedule:**
190
+
191
+ | Graph Size | Recommended Frequency |
192
+ |------------|----------------------|
193
+ | < 1,000 memories | Monthly |
194
+ | 1,000 - 10,000 memories | Weekly |
195
+ | 10,000 - 100,000 memories | Daily or Weekly |
196
+ | > 100,000 memories | Daily |
197
+
198
+ **Signs Maintenance is Needed:**
199
+
200
+ - Average decay scores seem stale (based on health report)
201
+ - New memories added but not classified
202
+ - Lifecycle states haven't changed recently
203
+ - Soft-deleted memories accumulating
204
+
205
+ ---
206
+
207
+ ## Maintenance Timeout Handling
208
+
209
+ **If maintenance exceeds 10-minute timeout:**
210
+
211
+ 1. **Graceful Completion:** Maintenance stops at current batch
212
+ 2. **Partial Results:** Returns progress up to timeout point
213
+ 3. **Next Run:** Continues from where it left off
214
+
215
+ **To handle large graphs:**
216
+
217
+ ```bash
218
+ # Run maintenance in multiple smaller batches
219
+ run_decay_maintenance({ batch_size: 100 })
220
+ # Repeat until all memories processed
221
+ ```
222
+
223
+ ---
224
+
225
+ ## Troubleshooting
226
+
227
+ **Maintenance Fails:**
228
+
229
+ 1. Check server health:
230
+ ```bash
231
+ bun run tools/knowledge-cli.ts health
232
+ ```
233
+
234
+ 2. Check database connectivity:
235
+ ```bash
236
+ # Neo4j
237
+ curl http://localhost:7474
238
+
239
+ # FalkorDB
240
+ redis-cli -h localhost -p 6379 ping
241
+ ```
242
+
243
+ 3. Check container logs:
244
+ ```bash
245
+ bun run tools/logs.ts --mcp | tail -100
246
+ ```
247
+
248
+ **Slow Maintenance:**
249
+
250
+ 1. Run during off-peak hours
251
+ 2. Check database performance
252
+ 3. Review config/decay-config.yaml for batch_size settings (requires server restart)
253
+
254
+ **Classification Failures:**
255
+
256
+ - LLM unavailable: Falls back to defaults (importance=3, stability=3)
257
+ - Check LLM API key and quota
258
+ - Review logs for classification errors
259
+
260
+ ---
261
+
262
+ ## Post-Maintenance Actions
263
+
264
+ **After Successful Maintenance:**
265
+
266
+ 1. **Review Health Report:**
267
+ ```bash
268
+ bun run tools/knowledge-cli.ts health_metrics
269
+ ```
270
+
271
+ 2. **Check for Unexpected Transitions:**
272
+ - Many memories moved to DORMANT/ARCHIVED?
273
+ - Permanent memories incorrectly transitioned? (should not happen)
274
+ - High number of expired memories?
275
+
276
+ 3. **Search by Lifecycle State:**
277
+ ```bash
278
+ # Find archived memories that might need recovery
279
+ bun run tools/knowledge-cli.ts search_nodes "[topic]" --since 30d
280
+ ```
281
+
282
+ 4. **Recover Important Memories (if needed):**
283
+ ```bash
284
+ bun run tools/knowledge-cli.ts recover_memory "[uuid]"
285
+ ```
286
+
287
+ ---
288
+
289
+ ## Integration with Other Workflows
290
+
291
+ **Before:**
292
+ - GetStatus - Ensure server is healthy
293
+ - HealthReport - Get baseline metrics before maintenance
294
+
295
+ **After:**
296
+ - HealthReport - Compare post-maintenance metrics: `bun run tools/knowledge-cli.ts health_metrics`
297
+ - SearchKnowledge - Find memories in specific states
298
+
299
+ **Related Workflows:**
300
+ - `HealthReport.md` - View detailed decay and lifecycle metrics
301
+ - `GetStatus.md` - Check server operational health
302
+ - `SearchKnowledge.md` - Find and review memories by lifecycle state
@@ -0,0 +1,255 @@
1
+ # Search By Date Workflow
2
+
3
+ **Objective:** Retrieve knowledge from the Graphiti knowledge graph filtered by date/time, enabling temporal queries like "what did I learn today" or "show knowledge from last week."
4
+
5
+ ---
6
+
7
+ ## Step 1: Announce Workflow
8
+
9
+ ```bash
10
+ ~/.claude/Tools/SkillWorkflowNotification SearchByDate MadeinozKnowledgeSystem
11
+ ```
12
+
13
+ **Output to user:**
14
+ ```
15
+ Running the **SearchByDate** workflow from the **MadeinozKnowledgeSystem** skill...
16
+ ```
17
+
18
+ ---
19
+
20
+ ## Step 2: Parse Temporal Request
21
+
22
+ **Extract temporal intent from user request:**
23
+
24
+ **Common Patterns:**
25
+ - "What did I learn today?"
26
+ - "Show knowledge from yesterday"
27
+ - "What have I added this week?"
28
+ - "Find facts from January"
29
+ - "Knowledge from the last 7 days"
30
+ - "Show me what I captured last month"
31
+
32
+ **Extract key components:**
33
+ 1. **Time reference:** today, yesterday, last week, specific date, date range
34
+ 2. **Search topic:** Optional filter for specific subjects
35
+ 3. **Result type:** Nodes (entities) or facts (relationships)
36
+
37
+ ---
38
+
39
+ ## Step 3: Build Temporal Query
40
+
41
+ **Map user's temporal language to date filters:**
42
+
43
+ | User Says | --since | --until |
44
+ |-----------|---------|---------|
45
+ | "today" | today | (none) |
46
+ | "yesterday" | yesterday | today |
47
+ | "this week" | 7d | (none) |
48
+ | "last week" | 14d | 7d |
49
+ | "last month" | 1m | (none) |
50
+ | "January 2026" | 2026-01-01 | 2026-01-31 |
51
+ | "last 3 days" | 3d | (none) |
52
+
53
+ **Date Format Reference:**
54
+ - **ISO 8601:** `2026-01-26`, `2026-01-26T00:00:00Z`
55
+ - **Relative:** `today`, `yesterday`, `now`
56
+ - **Duration:** `7d`, `7 days`, `1w`, `1 week`, `1m`, `1 month`
57
+
58
+ ---
59
+
60
+ ## Step 4: Execute Temporal Search (CLI-First)
61
+
62
+ ### Primary: Knowledge CLI (via Bash)
63
+
64
+ **ALWAYS try CLI first - it's more reliable and token-efficient:**
65
+
66
+ ```bash
67
+ # Search nodes from today
68
+ bun run ~/.claude/skills/Knowledge/tools/knowledge-cli.ts search_nodes "query" --since today
69
+
70
+ # Search facts from last 7 days
71
+ bun run ~/.claude/skills/Knowledge/tools/knowledge-cli.ts search_facts "query" --since 7d
72
+
73
+ # Search within a date range
74
+ bun run ~/.claude/skills/Knowledge/tools/knowledge-cli.ts search_nodes "query" --since 2026-01-01 --until 2026-01-15
75
+
76
+ # Yesterday's knowledge
77
+ bun run ~/.claude/skills/Knowledge/tools/knowledge-cli.ts search_nodes "query" --since yesterday --until today
78
+
79
+ # Last month
80
+ bun run ~/.claude/skills/Knowledge/tools/knowledge-cli.ts search_facts "query" --since 1m
81
+ ```
82
+
83
+ **Parameters:**
84
+ - First argument (required) - Natural language search query (use "*" for all topics)
85
+ - Second argument (optional) - Number of results (default: 5)
86
+ - `--since <date>` - Filter results created after this date
87
+ - `--until <date>` - Filter results created before this date
88
+
89
+ ### Fallback: MCP Tool (Only if CLI fails)
90
+
91
+ **Only use MCP if CLI returns connection/execution errors.**
92
+
93
+ ```typescript
94
+ search_nodes({
95
+ query: "search terms",
96
+ created_after: "today", // ISO or relative date
97
+ created_before: "now", // Optional upper bound
98
+ max_nodes: 10
99
+ })
100
+
101
+ search_memory_facts({
102
+ query: "search terms",
103
+ created_after: "7d", // Last 7 days
104
+ max_facts: 10
105
+ })
106
+ ```
107
+
108
+ ---
109
+
110
+ ## Step 5: Present Results
111
+
112
+ **Format temporal results for user:**
113
+
114
+ ```markdown
115
+ 📅 **Knowledge from [Time Period]**
116
+
117
+ Based on your knowledge graph, here's what was captured [today/this week/etc.]:
118
+
119
+ **Entities Added:**
120
+ 1. **[Entity Name]** ([Type]) - Created [date]
121
+ - Summary: [Brief description]
122
+
123
+ 2. **[Entity Name]** ([Type]) - Created [date]
124
+ - Summary: [Brief description]
125
+
126
+ **Facts Established:**
127
+ - [Entity A] → [relationship] → [Entity B] (Created [date])
128
+ - [Entity C] → [relationship] → [Entity D] (Created [date])
129
+
130
+ 📊 **Summary:**
131
+ - [X] entities added
132
+ - [Y] relationships established
133
+ - Most active topics: [list of topics]
134
+ ```
135
+
136
+ **If no results found:**
137
+ ```markdown
138
+ ❌ **No Knowledge Found for [Time Period]**
139
+
140
+ I couldn't find any information captured [during this time period].
141
+
142
+ This could mean:
143
+ 1. No knowledge was captured during this time
144
+ 2. Try a broader date range
145
+ 3. The search query may be too specific
146
+
147
+ Suggestions:
148
+ - Use a broader search query
149
+ - Extend the date range with --since
150
+ - Check GetRecent for the latest additions
151
+ ```
152
+
153
+ ---
154
+
155
+ ## Examples
156
+
157
+ ### Example 1: Today's Learning
158
+
159
+ **User:** "What did I learn today?"
160
+
161
+ ```bash
162
+ bun run ~/.claude/skills/Knowledge/tools/knowledge-cli.ts search_nodes "*" 10 --since today
163
+ ```
164
+
165
+ ### Example 2: Last Week's Decisions
166
+
167
+ **User:** "Show me decisions from last week"
168
+
169
+ ```bash
170
+ bun run ~/.claude/skills/Knowledge/tools/knowledge-cli.ts search_facts "decision" 10 --since 7d
171
+ ```
172
+
173
+ ### Example 3: Specific Date Range
174
+
175
+ **User:** "Knowledge from January 15-20"
176
+
177
+ ```bash
178
+ bun run ~/.claude/skills/Knowledge/tools/knowledge-cli.ts search_nodes "*" 20 --since 2026-01-15 --until 2026-01-20
179
+ ```
180
+
181
+ ### Example 4: Yesterday's Research
182
+
183
+ **User:** "What did we research yesterday?"
184
+
185
+ ```bash
186
+ bun run ~/.claude/skills/Knowledge/tools/knowledge-cli.ts search_nodes "research" --since yesterday --until today
187
+ ```
188
+
189
+ ### Example 5: Last Month Overview
190
+
191
+ **User:** "Give me an overview of last month's knowledge"
192
+
193
+ ```bash
194
+ bun run ~/.claude/skills/Knowledge/tools/knowledge-cli.ts search_nodes "*" 20 --since 1m
195
+ bun run ~/.claude/skills/Knowledge/tools/knowledge-cli.ts search_facts "*" 20 --since 1m
196
+ ```
197
+
198
+ ---
199
+
200
+ ## Trigger Patterns
201
+
202
+ This workflow is triggered by:
203
+
204
+ **Explicit Temporal Queries:**
205
+ - "what did I learn today"
206
+ - "knowledge from last week"
207
+ - "show January entries"
208
+ - "what was captured yesterday"
209
+ - "recent knowledge additions"
210
+
211
+ **Time-Based Questions:**
212
+ - "what's new in my knowledge base"
213
+ - "latest knowledge entries"
214
+ - "what have I added recently"
215
+
216
+ ---
217
+
218
+ ## Best Practices
219
+
220
+ **Date Selection:**
221
+ - Start with broader ranges, narrow down if needed
222
+ - Use relative dates (7d, 1w, 1m) for convenience
223
+ - Use ISO dates for precise boundaries
224
+
225
+ **Query Construction:**
226
+ - Use "*" or very broad query for "show me everything from [time]"
227
+ - Combine topic + temporal for focused results
228
+ - Request more results when filtering by time (knowledge may be sparse)
229
+
230
+ **Result Interpretation:**
231
+ - Pay attention to created_at timestamps
232
+ - Look for patterns in what was learned over time
233
+ - Consider combining with topic-based search for depth
234
+
235
+ ---
236
+
237
+ ## Integration with Other Workflows
238
+
239
+ **Complements:**
240
+ - `SearchKnowledge.md` - Add temporal filters to topic searches
241
+ - `SearchFacts.md` - Find relationships from specific time periods
242
+ - `GetRecent.md` - For quick "what's new" without date math
243
+
244
+ **Workflow Chaining:**
245
+ 1. SearchByDate to find when something was learned
246
+ 2. SearchKnowledge to find related topics
247
+ 3. SearchFacts to explore relationships
248
+
249
+ ---
250
+
251
+ **Related Workflows:**
252
+ - `SearchKnowledge.md` - Topic-based entity search
253
+ - `SearchFacts.md` - Relationship search
254
+ - `GetRecent.md` - Recent episodes without filters
255
+ - `CaptureEpisode.md` - Add new knowledge