You should ask claude code to write a bash script that does this for you. Then run that as a Cronjob every night. You might not need any inference at all to create the flash cards so it would be free.
> ...useful flashcards...
How would the script do that without inference from free format md files?
> ...useful flashcards...
How would the script do that without inference from free format md files?