mover-os 4.0.0

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.

Potentially problematic release.


This version of mover-os might be problematic. Click here for more details.

Files changed (149) hide show
  1. package/README.md +201 -0
  2. package/install.js +1424 -0
  3. package/package.json +35 -0
  4. package/src/hooks/context-staleness.sh +46 -0
  5. package/src/hooks/dirty-tree-guard.sh +33 -0
  6. package/src/hooks/engine-protection.sh +43 -0
  7. package/src/hooks/git-safety.sh +47 -0
  8. package/src/hooks/pre-compact-backup.sh +177 -0
  9. package/src/hooks/session-log-reminder.sh +64 -0
  10. package/src/skills/THIRD-PARTY-LICENSES.md +53 -0
  11. package/src/skills/agent-code-reviewer/SKILL.md +41 -0
  12. package/src/skills/agent-content-researcher/SKILL.md +59 -0
  13. package/src/skills/agent-research-analyst/SKILL.md +53 -0
  14. package/src/skills/agent-security-auditor/SKILL.md +42 -0
  15. package/src/skills/agent-strategy-analyst/SKILL.md +54 -0
  16. package/src/skills/defuddle/SKILL.md +41 -0
  17. package/src/skills/find-bugs/SKILL.md +75 -0
  18. package/src/skills/find-skills/SKILL.md +133 -0
  19. package/src/skills/frontend-design/LICENSE.txt +177 -0
  20. package/src/skills/frontend-design/SKILL.md +42 -0
  21. package/src/skills/human-writer/SKILL.md +185 -0
  22. package/src/skills/json-canvas/SKILL.md +656 -0
  23. package/src/skills/marketingskills/.claude-plugin/marketplace.json +45 -0
  24. package/src/skills/marketingskills/README.md +204 -0
  25. package/src/skills/marketingskills/skills/ab-test-setup/SKILL.md +508 -0
  26. package/src/skills/marketingskills/skills/analytics-tracking/SKILL.md +539 -0
  27. package/src/skills/marketingskills/skills/competitor-alternatives/SKILL.md +750 -0
  28. package/src/skills/marketingskills/skills/copy-editing/SKILL.md +439 -0
  29. package/src/skills/marketingskills/skills/copywriting/SKILL.md +455 -0
  30. package/src/skills/marketingskills/skills/email-sequence/SKILL.md +925 -0
  31. package/src/skills/marketingskills/skills/form-cro/SKILL.md +425 -0
  32. package/src/skills/marketingskills/skills/free-tool-strategy/SKILL.md +576 -0
  33. package/src/skills/marketingskills/skills/launch-strategy/SKILL.md +344 -0
  34. package/src/skills/marketingskills/skills/marketing-ideas/SKILL.md +565 -0
  35. package/src/skills/marketingskills/skills/marketing-psychology/SKILL.md +451 -0
  36. package/src/skills/marketingskills/skills/onboarding-cro/SKILL.md +433 -0
  37. package/src/skills/marketingskills/skills/page-cro/SKILL.md +334 -0
  38. package/src/skills/marketingskills/skills/paid-ads/SKILL.md +551 -0
  39. package/src/skills/marketingskills/skills/paywall-upgrade-cro/SKILL.md +570 -0
  40. package/src/skills/marketingskills/skills/popup-cro/SKILL.md +449 -0
  41. package/src/skills/marketingskills/skills/pricing-strategy/SKILL.md +710 -0
  42. package/src/skills/marketingskills/skills/programmatic-seo/SKILL.md +626 -0
  43. package/src/skills/marketingskills/skills/referral-program/SKILL.md +602 -0
  44. package/src/skills/marketingskills/skills/schema-markup/SKILL.md +596 -0
  45. package/src/skills/marketingskills/skills/seo-audit/SKILL.md +384 -0
  46. package/src/skills/marketingskills/skills/signup-flow-cro/SKILL.md +355 -0
  47. package/src/skills/marketingskills/skills/social-content/SKILL.md +807 -0
  48. package/src/skills/obsidian-bases/SKILL.md +651 -0
  49. package/src/skills/obsidian-cli/SKILL.md +103 -0
  50. package/src/skills/obsidian-markdown/SKILL.md +620 -0
  51. package/src/skills/react-best-practices/SKILL.md +136 -0
  52. package/src/skills/refactoring/SKILL.md +119 -0
  53. package/src/skills/seo-content-writer/SKILL.md +661 -0
  54. package/src/skills/seo-content-writer/references/content-structure-templates.md +875 -0
  55. package/src/skills/seo-content-writer/references/title-formulas.md +339 -0
  56. package/src/skills/skill-creator/LICENSE.txt +202 -0
  57. package/src/skills/skill-creator/SKILL.md +357 -0
  58. package/src/skills/skill-creator/references/output-patterns.md +82 -0
  59. package/src/skills/skill-creator/references/workflows.md +28 -0
  60. package/src/skills/skill-creator/scripts/init_skill.py +303 -0
  61. package/src/skills/skill-creator/scripts/package_skill.py +110 -0
  62. package/src/skills/skill-creator/scripts/quick_validate.py +103 -0
  63. package/src/skills/systematic-debugging/CREATION-LOG.md +119 -0
  64. package/src/skills/systematic-debugging/SKILL.md +296 -0
  65. package/src/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  66. package/src/skills/systematic-debugging/condition-based-waiting.md +115 -0
  67. package/src/skills/systematic-debugging/defense-in-depth.md +122 -0
  68. package/src/skills/systematic-debugging/find-polluter.sh +63 -0
  69. package/src/skills/systematic-debugging/root-cause-tracing.md +169 -0
  70. package/src/skills/systematic-debugging/test-academic.md +14 -0
  71. package/src/skills/systematic-debugging/test-pressure-1.md +58 -0
  72. package/src/skills/systematic-debugging/test-pressure-2.md +68 -0
  73. package/src/skills/systematic-debugging/test-pressure-3.md +69 -0
  74. package/src/skills/ui-ux-pro-max/SKILL.md +386 -0
  75. package/src/skills/webhook-handler-patterns/SKILL.md +81 -0
  76. package/src/skills/webhook-handler-patterns/references/error-handling.md +299 -0
  77. package/src/skills/webhook-handler-patterns/references/frameworks/express.md +295 -0
  78. package/src/skills/webhook-handler-patterns/references/frameworks/fastapi.md +415 -0
  79. package/src/skills/webhook-handler-patterns/references/frameworks/nextjs.md +331 -0
  80. package/src/skills/webhook-handler-patterns/references/handler-sequence.md +51 -0
  81. package/src/skills/webhook-handler-patterns/references/idempotency.md +227 -0
  82. package/src/skills/webhook-handler-patterns/references/retry-logic.md +261 -0
  83. package/src/structure/00_Inbox/.gitkeep +0 -0
  84. package/src/structure/00_Inbox/Quick_Capture.md +5 -0
  85. package/src/structure/01_Projects/.gitkeep +0 -0
  86. package/src/structure/01_Projects/_Template Project/plan.md +55 -0
  87. package/src/structure/01_Projects/_Template Project/project_brief.md +45 -0
  88. package/src/structure/01_Projects/_Template Project/project_state.md +19 -0
  89. package/src/structure/02_Areas/Engine/Active_Context.md +126 -0
  90. package/src/structure/02_Areas/Engine/Auto_Learnings.md +36 -0
  91. package/src/structure/02_Areas/Engine/Dailies/.gitkeep +0 -0
  92. package/src/structure/02_Areas/Engine/Daily_Template.md +130 -0
  93. package/src/structure/02_Areas/Engine/Goals.md +65 -0
  94. package/src/structure/02_Areas/Engine/Identity_Prime_template.md +86 -0
  95. package/src/structure/02_Areas/Engine/Metrics_Log.md +45 -0
  96. package/src/structure/02_Areas/Engine/Monthly Reviews/.gitkeep +0 -0
  97. package/src/structure/02_Areas/Engine/Mover_Dossier.md +120 -0
  98. package/src/structure/02_Areas/Engine/Quarterly Reviews/.gitkeep +0 -0
  99. package/src/structure/02_Areas/Engine/Someday_Maybe.md +51 -0
  100. package/src/structure/02_Areas/Engine/Strategy_template.md +65 -0
  101. package/src/structure/02_Areas/Engine/Weekly Reviews/.gitkeep +0 -0
  102. package/src/structure/03_Library/Cheatsheets/.gitkeep +0 -0
  103. package/src/structure/03_Library/Entities/Decisions/_TEMPLATE.md +38 -0
  104. package/src/structure/03_Library/Entities/Entities MOC.md +49 -0
  105. package/src/structure/03_Library/Entities/Organizations/_TEMPLATE.md +28 -0
  106. package/src/structure/03_Library/Entities/People/_TEMPLATE.md +31 -0
  107. package/src/structure/03_Library/Entities/Places/_TEMPLATE.md +26 -0
  108. package/src/structure/03_Library/Inputs/.gitkeep +0 -0
  109. package/src/structure/03_Library/Inputs/Archive/.gitkeep +0 -0
  110. package/src/structure/03_Library/Inputs/Articles/.gitkeep +0 -0
  111. package/src/structure/03_Library/Inputs/Articles/_TEMPLATE.md +29 -0
  112. package/src/structure/03_Library/Inputs/Books/.gitkeep +0 -0
  113. package/src/structure/03_Library/Inputs/Books/_TEMPLATE.md +41 -0
  114. package/src/structure/03_Library/Inputs/Inputs MOC.md +40 -0
  115. package/src/structure/03_Library/Inputs/Videos/.gitkeep +0 -0
  116. package/src/structure/03_Library/Inputs/Videos/_TEMPLATE.md +29 -0
  117. package/src/structure/03_Library/MOCs/.gitkeep +0 -0
  118. package/src/structure/03_Library/Misc/.gitkeep +0 -0
  119. package/src/structure/03_Library/Principles/.gitkeep +0 -0
  120. package/src/structure/03_Library/Principles/Naval_Leverage.md +65 -0
  121. package/src/structure/03_Library/SOPs/Mover_OS_Architecture.md +74 -0
  122. package/src/structure/03_Library/SOPs/Tech_Doctrine.md +123 -0
  123. package/src/structure/03_Library/SOPs/Tech_Stack.md +55 -0
  124. package/src/structure/03_Library/SOPs/Zone_Operating.md +58 -0
  125. package/src/structure/04_Archives/.gitkeep +0 -0
  126. package/src/system/AI_INSTALL_MANIFEST.md +219 -0
  127. package/src/system/Mover_Global_Rules.md +646 -0
  128. package/src/system/V4_CONTEXT.md +223 -0
  129. package/src/workflows/analyse-day.md +376 -0
  130. package/src/workflows/context.md +24 -0
  131. package/src/workflows/debrief.md +199 -0
  132. package/src/workflows/debug-resistance.md +181 -0
  133. package/src/workflows/harvest.md +240 -0
  134. package/src/workflows/history.md +247 -0
  135. package/src/workflows/ignite.md +696 -0
  136. package/src/workflows/init-plan.md +16 -0
  137. package/src/workflows/log.md +314 -0
  138. package/src/workflows/morning.md +209 -0
  139. package/src/workflows/overview.md +203 -0
  140. package/src/workflows/pivot-strategy.md +218 -0
  141. package/src/workflows/plan-tomorrow.md +286 -0
  142. package/src/workflows/primer.md +209 -0
  143. package/src/workflows/project-notes.md +17 -0
  144. package/src/workflows/reboot.md +201 -0
  145. package/src/workflows/refactor-plan.md +135 -0
  146. package/src/workflows/review-week.md +537 -0
  147. package/src/workflows/setup.md +387 -0
  148. package/src/workflows/update.md +411 -0
  149. package/src/workflows/walkthrough.md +259 -0
@@ -0,0 +1,651 @@
1
+ ---
2
+ name: obsidian-bases
3
+ description: Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
4
+ ---
5
+
6
+ # Obsidian Bases Skill
7
+
8
+ This skill enables skills-compatible agents to create and edit valid Obsidian Bases (`.base` files) including views, filters, formulas, and all related configurations.
9
+
10
+ ## Overview
11
+
12
+ Obsidian Bases are YAML-based files that define dynamic views of notes in an Obsidian vault. A Base file can contain multiple views, global filters, formulas, property configurations, and custom summaries.
13
+
14
+ ## File Format
15
+
16
+ Base files use the `.base` extension and contain valid YAML. They can also be embedded in Markdown code blocks.
17
+
18
+ ## Complete Schema
19
+
20
+ ```yaml
21
+ # Global filters apply to ALL views in the base
22
+ filters:
23
+ # Can be a single filter string
24
+ # OR a recursive filter object with and/or/not
25
+ and: []
26
+ or: []
27
+ not: []
28
+
29
+ # Define formula properties that can be used across all views
30
+ formulas:
31
+ formula_name: 'expression'
32
+
33
+ # Configure display names and settings for properties
34
+ properties:
35
+ property_name:
36
+ displayName: "Display Name"
37
+ formula.formula_name:
38
+ displayName: "Formula Display Name"
39
+ file.ext:
40
+ displayName: "Extension"
41
+
42
+ # Define custom summary formulas
43
+ summaries:
44
+ custom_summary_name: 'values.mean().round(3)'
45
+
46
+ # Define one or more views
47
+ views:
48
+ - type: table | cards | list | map
49
+ name: "View Name"
50
+ limit: 10 # Optional: limit results
51
+ groupBy: # Optional: group results
52
+ property: property_name
53
+ direction: ASC | DESC
54
+ filters: # View-specific filters
55
+ and: []
56
+ order: # Properties to display in order
57
+ - file.name
58
+ - property_name
59
+ - formula.formula_name
60
+ summaries: # Map properties to summary formulas
61
+ property_name: Average
62
+ ```
63
+
64
+ ## Filter Syntax
65
+
66
+ Filters narrow down results. They can be applied globally or per-view.
67
+
68
+ ### Filter Structure
69
+
70
+ ```yaml
71
+ # Single filter
72
+ filters: 'status == "done"'
73
+
74
+ # AND - all conditions must be true
75
+ filters:
76
+ and:
77
+ - 'status == "done"'
78
+ - 'priority > 3'
79
+
80
+ # OR - any condition can be true
81
+ filters:
82
+ or:
83
+ - 'file.hasTag("book")'
84
+ - 'file.hasTag("article")'
85
+
86
+ # NOT - exclude matching items
87
+ filters:
88
+ not:
89
+ - 'file.hasTag("archived")'
90
+
91
+ # Nested filters
92
+ filters:
93
+ or:
94
+ - file.hasTag("tag")
95
+ - and:
96
+ - file.hasTag("book")
97
+ - file.hasLink("Textbook")
98
+ - not:
99
+ - file.hasTag("book")
100
+ - file.inFolder("Required Reading")
101
+ ```
102
+
103
+ ### Filter Operators
104
+
105
+ | Operator | Description |
106
+ |----------|-------------|
107
+ | `==` | equals |
108
+ | `!=` | not equal |
109
+ | `>` | greater than |
110
+ | `<` | less than |
111
+ | `>=` | greater than or equal |
112
+ | `<=` | less than or equal |
113
+ | `&&` | logical and |
114
+ | `\|\|` | logical or |
115
+ | <code>!</code> | logical not |
116
+
117
+ ## Properties
118
+
119
+ ### Three Types of Properties
120
+
121
+ 1. **Note properties** - From frontmatter: `note.author` or just `author`
122
+ 2. **File properties** - File metadata: `file.name`, `file.mtime`, etc.
123
+ 3. **Formula properties** - Computed values: `formula.my_formula`
124
+
125
+ ### File Properties Reference
126
+
127
+ | Property | Type | Description |
128
+ |----------|------|-------------|
129
+ | `file.name` | String | File name |
130
+ | `file.basename` | String | File name without extension |
131
+ | `file.path` | String | Full path to file |
132
+ | `file.folder` | String | Parent folder path |
133
+ | `file.ext` | String | File extension |
134
+ | `file.size` | Number | File size in bytes |
135
+ | `file.ctime` | Date | Created time |
136
+ | `file.mtime` | Date | Modified time |
137
+ | `file.tags` | List | All tags in file |
138
+ | `file.links` | List | Internal links in file |
139
+ | `file.backlinks` | List | Files linking to this file |
140
+ | `file.embeds` | List | Embeds in the note |
141
+ | `file.properties` | Object | All frontmatter properties |
142
+
143
+ ### The `this` Keyword
144
+
145
+ - In main content area: refers to the base file itself
146
+ - When embedded: refers to the embedding file
147
+ - In sidebar: refers to the active file in main content
148
+
149
+ ## Formula Syntax
150
+
151
+ Formulas compute values from properties. Defined in the `formulas` section.
152
+
153
+ ```yaml
154
+ formulas:
155
+ # Simple arithmetic
156
+ total: "price * quantity"
157
+
158
+ # Conditional logic
159
+ status_icon: 'if(done, "✅", "⏳")'
160
+
161
+ # String formatting
162
+ formatted_price: 'if(price, price.toFixed(2) + " dollars")'
163
+
164
+ # Date formatting
165
+ created: 'file.ctime.format("YYYY-MM-DD")'
166
+
167
+ # Calculate days since created (use .days for Duration)
168
+ days_old: '(now() - file.ctime).days'
169
+
170
+ # Calculate days until due date
171
+ days_until_due: 'if(due_date, (date(due_date) - today()).days, "")'
172
+ ```
173
+
174
+ ## Functions Reference
175
+
176
+ ### Global Functions
177
+
178
+ | Function | Signature | Description |
179
+ |----------|-----------|-------------|
180
+ | `date()` | `date(string): date` | Parse string to date. Format: `YYYY-MM-DD HH:mm:ss` |
181
+ | `duration()` | `duration(string): duration` | Parse duration string |
182
+ | `now()` | `now(): date` | Current date and time |
183
+ | `today()` | `today(): date` | Current date (time = 00:00:00) |
184
+ | `if()` | `if(condition, trueResult, falseResult?)` | Conditional |
185
+ | `min()` | `min(n1, n2, ...): number` | Smallest number |
186
+ | `max()` | `max(n1, n2, ...): number` | Largest number |
187
+ | `number()` | `number(any): number` | Convert to number |
188
+ | `link()` | `link(path, display?): Link` | Create a link |
189
+ | `list()` | `list(element): List` | Wrap in list if not already |
190
+ | `file()` | `file(path): file` | Get file object |
191
+ | `image()` | `image(path): image` | Create image for rendering |
192
+ | `icon()` | `icon(name): icon` | Lucide icon by name |
193
+ | `html()` | `html(string): html` | Render as HTML |
194
+ | `escapeHTML()` | `escapeHTML(string): string` | Escape HTML characters |
195
+
196
+ ### Any Type Functions
197
+
198
+ | Function | Signature | Description |
199
+ |----------|-----------|-------------|
200
+ | `isTruthy()` | `any.isTruthy(): boolean` | Coerce to boolean |
201
+ | `isType()` | `any.isType(type): boolean` | Check type |
202
+ | `toString()` | `any.toString(): string` | Convert to string |
203
+
204
+ ### Date Functions & Fields
205
+
206
+ **Fields:** `date.year`, `date.month`, `date.day`, `date.hour`, `date.minute`, `date.second`, `date.millisecond`
207
+
208
+ | Function | Signature | Description |
209
+ |----------|-----------|-------------|
210
+ | `date()` | `date.date(): date` | Remove time portion |
211
+ | `format()` | `date.format(string): string` | Format with Moment.js pattern |
212
+ | `time()` | `date.time(): string` | Get time as string |
213
+ | `relative()` | `date.relative(): string` | Human-readable relative time |
214
+ | `isEmpty()` | `date.isEmpty(): boolean` | Always false for dates |
215
+
216
+ ### Duration Type
217
+
218
+ When subtracting two dates, the result is a **Duration** type (not a number). Duration has its own properties and methods.
219
+
220
+ **Duration Fields:**
221
+ | Field | Type | Description |
222
+ |-------|------|-------------|
223
+ | `duration.days` | Number | Total days in duration |
224
+ | `duration.hours` | Number | Total hours in duration |
225
+ | `duration.minutes` | Number | Total minutes in duration |
226
+ | `duration.seconds` | Number | Total seconds in duration |
227
+ | `duration.milliseconds` | Number | Total milliseconds in duration |
228
+
229
+ **IMPORTANT:** Duration does NOT support `.round()`, `.floor()`, `.ceil()` directly. You must access a numeric field first (like `.days`), then apply number functions.
230
+
231
+ ```yaml
232
+ # CORRECT: Calculate days between dates
233
+ "(date(due_date) - today()).days" # Returns number of days
234
+ "(now() - file.ctime).days" # Days since created
235
+
236
+ # CORRECT: Round the numeric result if needed
237
+ "(date(due_date) - today()).days.round(0)" # Rounded days
238
+ "(now() - file.ctime).hours.round(0)" # Rounded hours
239
+
240
+ # WRONG - will cause error:
241
+ # "((date(due) - today()) / 86400000).round(0)" # Duration doesn't support division then round
242
+ ```
243
+
244
+ ### Date Arithmetic
245
+
246
+ ```yaml
247
+ # Duration units: y/year/years, M/month/months, d/day/days,
248
+ # w/week/weeks, h/hour/hours, m/minute/minutes, s/second/seconds
249
+
250
+ # Add/subtract durations
251
+ "date + \"1M\"" # Add 1 month
252
+ "date - \"2h\"" # Subtract 2 hours
253
+ "now() + \"1 day\"" # Tomorrow
254
+ "today() + \"7d\"" # A week from today
255
+
256
+ # Subtract dates returns Duration type
257
+ "now() - file.ctime" # Returns Duration
258
+ "(now() - file.ctime).days" # Get days as number
259
+ "(now() - file.ctime).hours" # Get hours as number
260
+
261
+ # Complex duration arithmetic
262
+ "now() + (duration('1d') * 2)"
263
+ ```
264
+
265
+ ### String Functions
266
+
267
+ **Field:** `string.length`
268
+
269
+ | Function | Signature | Description |
270
+ |----------|-----------|-------------|
271
+ | `contains()` | `string.contains(value): boolean` | Check substring |
272
+ | `containsAll()` | `string.containsAll(...values): boolean` | All substrings present |
273
+ | `containsAny()` | `string.containsAny(...values): boolean` | Any substring present |
274
+ | `startsWith()` | `string.startsWith(query): boolean` | Starts with query |
275
+ | `endsWith()` | `string.endsWith(query): boolean` | Ends with query |
276
+ | `isEmpty()` | `string.isEmpty(): boolean` | Empty or not present |
277
+ | `lower()` | `string.lower(): string` | To lowercase |
278
+ | `title()` | `string.title(): string` | To Title Case |
279
+ | `trim()` | `string.trim(): string` | Remove whitespace |
280
+ | `replace()` | `string.replace(pattern, replacement): string` | Replace pattern |
281
+ | `repeat()` | `string.repeat(count): string` | Repeat string |
282
+ | `reverse()` | `string.reverse(): string` | Reverse string |
283
+ | `slice()` | `string.slice(start, end?): string` | Substring |
284
+ | `split()` | `string.split(separator, n?): list` | Split to list |
285
+
286
+ ### Number Functions
287
+
288
+ | Function | Signature | Description |
289
+ |----------|-----------|-------------|
290
+ | `abs()` | `number.abs(): number` | Absolute value |
291
+ | `ceil()` | `number.ceil(): number` | Round up |
292
+ | `floor()` | `number.floor(): number` | Round down |
293
+ | `round()` | `number.round(digits?): number` | Round to digits |
294
+ | `toFixed()` | `number.toFixed(precision): string` | Fixed-point notation |
295
+ | `isEmpty()` | `number.isEmpty(): boolean` | Not present |
296
+
297
+ ### List Functions
298
+
299
+ **Field:** `list.length`
300
+
301
+ | Function | Signature | Description |
302
+ |----------|-----------|-------------|
303
+ | `contains()` | `list.contains(value): boolean` | Element exists |
304
+ | `containsAll()` | `list.containsAll(...values): boolean` | All elements exist |
305
+ | `containsAny()` | `list.containsAny(...values): boolean` | Any element exists |
306
+ | `filter()` | `list.filter(expression): list` | Filter by condition (uses `value`, `index`) |
307
+ | `map()` | `list.map(expression): list` | Transform elements (uses `value`, `index`) |
308
+ | `reduce()` | `list.reduce(expression, initial): any` | Reduce to single value (uses `value`, `index`, `acc`) |
309
+ | `flat()` | `list.flat(): list` | Flatten nested lists |
310
+ | `join()` | `list.join(separator): string` | Join to string |
311
+ | `reverse()` | `list.reverse(): list` | Reverse order |
312
+ | `slice()` | `list.slice(start, end?): list` | Sublist |
313
+ | `sort()` | `list.sort(): list` | Sort ascending |
314
+ | `unique()` | `list.unique(): list` | Remove duplicates |
315
+ | `isEmpty()` | `list.isEmpty(): boolean` | No elements |
316
+
317
+ ### File Functions
318
+
319
+ | Function | Signature | Description |
320
+ |----------|-----------|-------------|
321
+ | `asLink()` | `file.asLink(display?): Link` | Convert to link |
322
+ | `hasLink()` | `file.hasLink(otherFile): boolean` | Has link to file |
323
+ | `hasTag()` | `file.hasTag(...tags): boolean` | Has any of the tags |
324
+ | `hasProperty()` | `file.hasProperty(name): boolean` | Has property |
325
+ | `inFolder()` | `file.inFolder(folder): boolean` | In folder or subfolder |
326
+
327
+ ### Link Functions
328
+
329
+ | Function | Signature | Description |
330
+ |----------|-----------|-------------|
331
+ | `asFile()` | `link.asFile(): file` | Get file object |
332
+ | `linksTo()` | `link.linksTo(file): boolean` | Links to file |
333
+
334
+ ### Object Functions
335
+
336
+ | Function | Signature | Description |
337
+ |----------|-----------|-------------|
338
+ | `isEmpty()` | `object.isEmpty(): boolean` | No properties |
339
+ | `keys()` | `object.keys(): list` | List of keys |
340
+ | `values()` | `object.values(): list` | List of values |
341
+
342
+ ### Regular Expression Functions
343
+
344
+ | Function | Signature | Description |
345
+ |----------|-----------|-------------|
346
+ | `matches()` | `regexp.matches(string): boolean` | Test if matches |
347
+
348
+ ## View Types
349
+
350
+ ### Table View
351
+
352
+ ```yaml
353
+ views:
354
+ - type: table
355
+ name: "My Table"
356
+ order:
357
+ - file.name
358
+ - status
359
+ - due_date
360
+ summaries:
361
+ price: Sum
362
+ count: Average
363
+ ```
364
+
365
+ ### Cards View
366
+
367
+ ```yaml
368
+ views:
369
+ - type: cards
370
+ name: "Gallery"
371
+ order:
372
+ - file.name
373
+ - cover_image
374
+ - description
375
+ ```
376
+
377
+ ### List View
378
+
379
+ ```yaml
380
+ views:
381
+ - type: list
382
+ name: "Simple List"
383
+ order:
384
+ - file.name
385
+ - status
386
+ ```
387
+
388
+ ### Map View
389
+
390
+ Requires latitude/longitude properties and the Maps community plugin.
391
+
392
+ ```yaml
393
+ views:
394
+ - type: map
395
+ name: "Locations"
396
+ # Map-specific settings for lat/lng properties
397
+ ```
398
+
399
+ ## Default Summary Formulas
400
+
401
+ | Name | Input Type | Description |
402
+ |------|------------|-------------|
403
+ | `Average` | Number | Mathematical mean |
404
+ | `Min` | Number | Smallest number |
405
+ | `Max` | Number | Largest number |
406
+ | `Sum` | Number | Sum of all numbers |
407
+ | `Range` | Number | Max - Min |
408
+ | `Median` | Number | Mathematical median |
409
+ | `Stddev` | Number | Standard deviation |
410
+ | `Earliest` | Date | Earliest date |
411
+ | `Latest` | Date | Latest date |
412
+ | `Range` | Date | Latest - Earliest |
413
+ | `Checked` | Boolean | Count of true values |
414
+ | `Unchecked` | Boolean | Count of false values |
415
+ | `Empty` | Any | Count of empty values |
416
+ | `Filled` | Any | Count of non-empty values |
417
+ | `Unique` | Any | Count of unique values |
418
+
419
+ ## Complete Examples
420
+
421
+ ### Task Tracker Base
422
+
423
+ ```yaml
424
+ filters:
425
+ and:
426
+ - file.hasTag("task")
427
+ - 'file.ext == "md"'
428
+
429
+ formulas:
430
+ days_until_due: 'if(due, (date(due) - today()).days, "")'
431
+ is_overdue: 'if(due, date(due) < today() && status != "done", false)'
432
+ priority_label: 'if(priority == 1, "🔴 High", if(priority == 2, "🟡 Medium", "🟢 Low"))'
433
+
434
+ properties:
435
+ status:
436
+ displayName: Status
437
+ formula.days_until_due:
438
+ displayName: "Days Until Due"
439
+ formula.priority_label:
440
+ displayName: Priority
441
+
442
+ views:
443
+ - type: table
444
+ name: "Active Tasks"
445
+ filters:
446
+ and:
447
+ - 'status != "done"'
448
+ order:
449
+ - file.name
450
+ - status
451
+ - formula.priority_label
452
+ - due
453
+ - formula.days_until_due
454
+ groupBy:
455
+ property: status
456
+ direction: ASC
457
+ summaries:
458
+ formula.days_until_due: Average
459
+
460
+ - type: table
461
+ name: "Completed"
462
+ filters:
463
+ and:
464
+ - 'status == "done"'
465
+ order:
466
+ - file.name
467
+ - completed_date
468
+ ```
469
+
470
+ ### Reading List Base
471
+
472
+ ```yaml
473
+ filters:
474
+ or:
475
+ - file.hasTag("book")
476
+ - file.hasTag("article")
477
+
478
+ formulas:
479
+ reading_time: 'if(pages, (pages * 2).toString() + " min", "")'
480
+ status_icon: 'if(status == "reading", "📖", if(status == "done", "✅", "📚"))'
481
+ year_read: 'if(finished_date, date(finished_date).year, "")'
482
+
483
+ properties:
484
+ author:
485
+ displayName: Author
486
+ formula.status_icon:
487
+ displayName: ""
488
+ formula.reading_time:
489
+ displayName: "Est. Time"
490
+
491
+ views:
492
+ - type: cards
493
+ name: "Library"
494
+ order:
495
+ - cover
496
+ - file.name
497
+ - author
498
+ - formula.status_icon
499
+ filters:
500
+ not:
501
+ - 'status == "dropped"'
502
+
503
+ - type: table
504
+ name: "Reading List"
505
+ filters:
506
+ and:
507
+ - 'status == "to-read"'
508
+ order:
509
+ - file.name
510
+ - author
511
+ - pages
512
+ - formula.reading_time
513
+ ```
514
+
515
+ ### Project Notes Base
516
+
517
+ ```yaml
518
+ filters:
519
+ and:
520
+ - file.inFolder("Projects")
521
+ - 'file.ext == "md"'
522
+
523
+ formulas:
524
+ last_updated: 'file.mtime.relative()'
525
+ link_count: 'file.links.length'
526
+
527
+ summaries:
528
+ avgLinks: 'values.filter(value.isType("number")).mean().round(1)'
529
+
530
+ properties:
531
+ formula.last_updated:
532
+ displayName: "Updated"
533
+ formula.link_count:
534
+ displayName: "Links"
535
+
536
+ views:
537
+ - type: table
538
+ name: "All Projects"
539
+ order:
540
+ - file.name
541
+ - status
542
+ - formula.last_updated
543
+ - formula.link_count
544
+ summaries:
545
+ formula.link_count: avgLinks
546
+ groupBy:
547
+ property: status
548
+ direction: ASC
549
+
550
+ - type: list
551
+ name: "Quick List"
552
+ order:
553
+ - file.name
554
+ - status
555
+ ```
556
+
557
+ ### Daily Notes Index
558
+
559
+ ```yaml
560
+ filters:
561
+ and:
562
+ - file.inFolder("Daily Notes")
563
+ - '/^\d{4}-\d{2}-\d{2}$/.matches(file.basename)'
564
+
565
+ formulas:
566
+ word_estimate: '(file.size / 5).round(0)'
567
+ day_of_week: 'date(file.basename).format("dddd")'
568
+
569
+ properties:
570
+ formula.day_of_week:
571
+ displayName: "Day"
572
+ formula.word_estimate:
573
+ displayName: "~Words"
574
+
575
+ views:
576
+ - type: table
577
+ name: "Recent Notes"
578
+ limit: 30
579
+ order:
580
+ - file.name
581
+ - formula.day_of_week
582
+ - formula.word_estimate
583
+ - file.mtime
584
+ ```
585
+
586
+ ## Embedding Bases
587
+
588
+ Embed in Markdown files:
589
+
590
+ ```markdown
591
+ ![[MyBase.base]]
592
+
593
+ <!-- Specific view -->
594
+ ![[MyBase.base#View Name]]
595
+ ```
596
+
597
+ ## YAML Quoting Rules
598
+
599
+ - Use single quotes for formulas containing double quotes: `'if(done, "Yes", "No")'`
600
+ - Use double quotes for simple strings: `"My View Name"`
601
+ - Escape nested quotes properly in complex expressions
602
+
603
+ ## Common Patterns
604
+
605
+ ### Filter by Tag
606
+ ```yaml
607
+ filters:
608
+ and:
609
+ - file.hasTag("project")
610
+ ```
611
+
612
+ ### Filter by Folder
613
+ ```yaml
614
+ filters:
615
+ and:
616
+ - file.inFolder("Notes")
617
+ ```
618
+
619
+ ### Filter by Date Range
620
+ ```yaml
621
+ filters:
622
+ and:
623
+ - 'file.mtime > now() - "7d"'
624
+ ```
625
+
626
+ ### Filter by Property Value
627
+ ```yaml
628
+ filters:
629
+ and:
630
+ - 'status == "active"'
631
+ - 'priority >= 3'
632
+ ```
633
+
634
+ ### Combine Multiple Conditions
635
+ ```yaml
636
+ filters:
637
+ or:
638
+ - and:
639
+ - file.hasTag("important")
640
+ - 'status != "done"'
641
+ - and:
642
+ - 'priority == 1'
643
+ - 'due != ""'
644
+ ```
645
+
646
+ ## References
647
+
648
+ - [Bases Syntax](https://help.obsidian.md/bases/syntax)
649
+ - [Functions](https://help.obsidian.md/bases/functions)
650
+ - [Views](https://help.obsidian.md/bases/views)
651
+ - [Formulas](https://help.obsidian.md/formulas)