Add recurring tasks into daily note

Thanks for your reply. I didn’t use Tasks plugin before. I am now trying to.

There are 3 ways I am working:

  1. Tasks Plugin: Practice more and get more understanding of its features about recurrence options.
  2. Tasks + Dataview: Try to consolidate this two plugins to manage recurring tasks and make it show in my daily notes.
  3. Templater Plugin: Study some Javascript, and add my user script with Templater Plugin, to make it happen that when I create daily note with template, my user script can automtically get the correct recurring tasks and add into daily note.

For 3, I have finished part of my user script, it can automatically get recurring tasks and add into daily note when creating, but without date and period conditions. I am now looking for the suitable Obsidian API to get the fronmatter of the md file, and calculate the correct date(start date, end date, period)

My user script as below

const files = this.app.vault.getMarkdownFiles();

async function main() {	
	let recurringTask = "";
	for (let i = 0; i < files.length; i++) {
		if (files[i].name.includes("🔁")) {
 	 		recurringTask = recurringTask + "- [ ] [[" +files[i].name +"]]\n";
		}
	}	
	return recurringTask;
}

module.exports = main;