Index Generation Skill
This skill scans the content directory and generates a dashboard-style index.md if one is missing. It groups top-level folders and lists recent files.
Usage
bash
# Run via script node scripts/generate-index.mjs <vault-path>
Implementation
The script scripts/generate-index.mjs should:
- •Check if
index.mdexists in the target vault. - •If missing, scan for top-level directories.
- •Scan for recent markdown files.
- •Generate a markdown dashboard with:
- •Welcome message.
- •"Spaces" section (top-level folders).
- •"Recent Notes" section.
- •Write the file to
index.md.