Created
February 14, 2025 14:00
-
-
Save dsebastien/70cacc30dc0399e885022e106298c508 to your computer and use it in GitHub Desktop.
Simple script that uses code2prompt to convert specific folders in my Obsidian vault to a LLM prompts (saved in specific files) that I can then upload to NotebookLM and similar tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Requires code2prompt to be installed: https://github.com/mufeedvh/code2prompt | |
echo "Updating prompts" | |
echo "Create output directory if it doesn't exist" | |
mkdir -p "./50 Resources/57 Prompts/" | |
echo "Generate mega prompt from literature notes" | |
code2prompt "./30 Areas/32 Literature notes" --include "*.md" --tokens --output="./50 Resources/57 Prompts/Literature notes.md" | |
echo "Generate mega prompt from permanent notes" | |
code2prompt "./30 Areas/33 Permanent notes" --include "*.md" --tokens --output="./50 Resources/57 Prompts/Permanent notes.md" | |
echo "Generate Projects mega prompt from project notes" | |
code2prompt "./20 Projects" --include "*.md" --tokens --output="./50 Resources/57 Prompts/Projects.md" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment