Add or update datetime timestamps in documentation files
Created: 2026-02-02-12-00 Last Updated: 2026-02-11-20-00
All documentation must include creation and last updated timestamps. This command helps manage those timestamps.
Always use this format:
date +"%Y-%m-%d-%H-%M"
When creating a new doc, include at the top:
# Document Title
**Created:** $(date +"%Y-%m-%d-%H-%M")
**Last Updated:** $(date +"%Y-%m-%d-%H-%M")
[rest of content]
When editing any doc:
**Last Updated:** 2026-01-30-16-27
To find docs missing timestamps:
# Find markdown files without "Created:" or "Last Updated:"
find . -name "*.md" -type f -exec grep -L "Created:" {} \; 2>/dev/null
find . -name "*.md" -type f -exec grep -L "Last Updated:" {} \; 2>/dev/null
Before submitting any PR, verify:
All modified docs have updated timestamps
# Get list of modified markdown files in current branch
git diff --name-only main...HEAD | grep "\.md$"
For each modified doc:
Check for stale docs
# Authentication System Documentation
**Created:** 2026-01-15-14-30
**Last Updated:** 2026-01-30-16-27
This document describes the authentication flow for the application.
## Overview
[content]
The pre-commit hook already warns about stale timestamps on modified .md files. No manual checking needed.