- Core structure with README, LICENSE, and .gitignore - Complete vault template with Goals, Daily Notes, Projects, and Templates - Cascading goal system (3-year → yearly → monthly → weekly) - Claude Code integration with custom slash commands - GitHub Actions workflow for mobile integration - Comprehensive documentation (setup, customization, workflows, troubleshooting) - Automation scripts for setup (Unix/Mac and Windows) - Example content showing system usage - Self-documenting templates with inline instructions Ready for users to clone and customize for their personal knowledge management needs.
2.8 KiB
2.8 KiB
Daily Note Creator Command
Creates today's daily note from the template, or opens it if it already exists.
Installation
Copy this file to .claude/commands/daily.md in your vault root.
Usage
claude code /daily
Configuration
Customize these paths to match your vault structure:
// Path Configuration (customize these)
const DAILY_NOTES_FOLDER = "Daily Notes";
const TEMPLATE_PATH = "Templates/Daily Template.md";
const DATE_FORMAT = "YYYY-MM-DD"; // Change if you prefer different format
What This Command Does
-
Checks if today's note exists
- If yes: Opens the existing note
- If no: Creates new note from template
-
Template Processing
- Replaces
{{date}}with today's date - Replaces
{{date:format}}with formatted dates - Handles date arithmetic (e.g.,
{{date-1}}for yesterday)
- Replaces
-
Automatic Organization
- Places note in correct folder
- Names file with today's date
- Preserves your template structure
Template Variables
Your daily template can use these variables:
{{date}}- Today's date in default format{{date:dddd}}- Day name (e.g., Monday){{date:MMMM DD, YYYY}}- Formatted date{{date-1:YYYY-MM-DD}}- Yesterday's date{{date+1:YYYY-MM-DD}}- Tomorrow's date{{time}}- Current time
Example Workflow
-
Morning routine:
claude code /dailyCreates today's note with your template
-
Review yesterday: The template automatically links to yesterday's note
-
Plan tomorrow: End of day, set tomorrow's priority in the reflection
Customization Ideas
Different Date Formats
Change DATE_FORMAT to:
"YYYY-MM-DD"- Standard ISO format (recommended)"MM-DD-YYYY"- US format"DD-MM-YYYY"- European format"YYYY-MM-DD-ddd"- Include day abbreviation
Folder Organization
Organize by month/year:
const year = new Date().getFullYear();
const month = String(new Date().getMonth() + 1).padStart(2, '0');
const DAILY_NOTES_FOLDER = `Daily Notes/${year}/${month}`;
Multiple Templates
For different day types:
const dayOfWeek = new Date().getDay();
const TEMPLATE_PATH = dayOfWeek === 1
? "Templates/Monday Template.md" // Special Monday template
: "Templates/Daily Template.md"; // Regular template
Troubleshooting
Note not created?
- Check template path exists
- Verify folder permissions
- Ensure template file is readable
Wrong date format?
- Adjust
DATE_FORMATconstant - Check system date settings
Links not working?
- Verify date format matches
- Check file naming convention
Related Commands
/weekly- Create weekly review/push- Save changes to Git/onboard- Load context
Command Version: 1.0 Compatible with: Claude Code CLI
Pro Tip: Run this as part of your morning routine for consistency!