So, what does your input draft look like? Are you writing a draft like:
# Title of the Post
This is the rest of the post...
And you want to write out a file that looks like:
# Title of Post
---
Title: "Title of Post"
Date: [??What Date Format??]
Categories:
Draft: True
---
This is the rest of the post...
And how do you want to name the file? Is that timestamp based, or based on the title?