Search my Obsidian vault ( `/Users/eleanor/Documents/slipbox/` )for files containing various bad patterns. Create script in the root folder to automatically convert them to my desired format for Obsidian properties links and YAML, as outlined below. Save it to the `'/Users/eleanor/Documents/slipbox/ancillary/programming'` folder as `YAML cleanup {TIMESTAMP}` (update the timestamp variable to the actual timestamp, including h:m:s not just the date) Essentially, I want to use local filesystem MCP tools to look at the roughly 148 files in `/information/annotated` folder and change the into proper Obsidian properties style YAML metadata. Please actually use the filesystem MCP to iterate through my files, see what they look like, match the patterns, and fix the files. ## NEW YAML ## Nonfiction Folder [[01T Nonfiction Properties]] ``` --- alias: post_id: title: subtitle: source: type: purpose: last_updated: post_date: live_url: featured_img: related: --- ``` Note: Not every file will have something for every YAML property. Leave blank any that are not obvious from context. These should be the ONLY possible `type` options for this annotated files: thoughts, nerdiness, reviews, personal, overview, roundup, fiction Here is a sample of what correct YAML would look like: ``` --- alias: post_id: 144449269.modern-folklore title: "Folklore Ancient & Modern" subtitle: "Gremlins & road gators" type: nerdiness purpose: "It's silly to overindex on the existance of old stories, putting them in the context of our modern stories is useful." last_updated: 2025-05-25 post_date: 2016-09-27 live_url: https://www.eleanorkonik.com/modern-folklore featured_img: "[[253b6d2a-4f6d-4c96-a978-8f0ec6814db7_500x458.jpeg|Gremlins, a modern myth... and children's book by Roald Dahl]]" related: "[[2021.11.24a When everything is ritual is anything ritual]]" --- ``` Note that `post_id: 144449269.modern-folklore` implies the `live_url` field: `https://www.eleanorkonik.com/modern-folklore` Note that all related and featured image `[[links]]` must be in quotation marks, for Obsidian property links to work _as_ links in the vault. If there are multiple links for the property, they must be formatted with `-` bullets. So please format them like so: ``` featured_img: "[[Substack/Attachments/pexels-lukas-952357.jpg]]" related: - "[[Verraine]]" - "[[Padima]]" ``` --- ## OLD METADATA ### Vault Articles ``` - [<] Status Log - created:: {{date}} - status-updated:: - status:: seedling - type:: thoughts article review overview - [S] Marketing - purpose:: - desc:: - connections: - [b] References ``` * "connections" should become "related" in the new YAML. * "desc" should become the subtitle. * Status-updated should become "draft_updated." * All bullet points listed under "references" should also get linked from "related" ### Vault Overviews ``` --- alias: Birdkeeping Newsletter subj: "📗 EMAIL" excerpt: "3 THINGS" desc: "Quick facts about historical SOMETHING from around the world. From SOMETHING to SOMETHING." --- ``` * `subj` should become `title`. * `desc` should become `subtitle`. * `type` should become `overview` ### Vault Articles Old ``` --- tag: "articleseed" type: "thesis" current-status: "seed" status—updated: "2021-06-05" --- ``` * `status-updated` should become `last_updated` * `tag: articleseed` is redundant and should be removed. ### Substack Imports Substack articles come in naturally with this style, so let's keep it as much as possible, since more will be added with this style in the future. ``` --- post_id: 138196697.cognitive-catalysts-lists-learning title: "\U0001F4DA Cognitive Catalysts: Lists, Learning, & Leverage" subtitle: "Micro reviews of nonfiction I read recently. On ancient memes, Ghana's legacy, ambitious goals, better search engines & improved smartphone habits." post_date: '2023-11-11' --- ``` * Make sure the subtitle is in quotation marks. * the beginning character string of some of hte titles is a unicode emoji, which typically gives an indication of the post-type, for example: * 🌲 = thoughts * `\U0001F4DA` = 📚 = reviews. * 🏵️ = reviews * 📗 = reviews * 💰 = reviews * 🎓 = nerdiness * 🎂 = personal ### Substack Edits ``` - [i] Metadata * [[filename|Featured Image]] - description ``` * should become the following YAML entry: `featured_img: "[[filename|description]]" ` Links like: ``` ``` * should also get put into the following YAML entry format: `featured_image: "[[filename|description]]"` -- so for example `featured_img: "[[d6e561bf-086d-4a50-b1c1-bfba19d495fc_1500x2646.jpeg|Battle of Kurukshetra from the Bhagavad Gita]]" Links like `[history becoming myth](https://eleanorkonik.com/exaggeration-history-becomes-myth/)` are fine, but any that are formatted with `obsidian-roundup.ghost.io` in the URL should be changed to instead redirect to the same link but on domain `eleanorkonik.com`