Generates metadata for research documents and specifications including date/time, git commit, branch, and repository info. Use when creating research documents, handoffs, or any documentation that needs timestamp and git metadata.
Limited to specific tools
Additional assets for this skill
This skill is limited to using the following tools:
This skill generates metadata for documentation files including research documents, handoffs, and specifications.
Activate this skill when:
thoughts/shared/research/thoughts/shared/handoffs/Run the following commands to gather all necessary metadata:
For git users:
# Current date/time with timezone
date '+%Y-%m-%d %H:%M:%S %Z'
# Timestamp for filename
date '+%Y-%m-%d_%H-%M-%S'
# Git information
git rev-parse --show-toplevel # Repo root
basename "$(git rev-parse --show-toplevel)" # Repo name
git branch --show-current # Current branch
git rev-parse HEAD # Current commit hash
For jj users:
# Current date/time with timezone
date '+%Y-%m-%d %H:%M:%S %Z'
# Timestamp for filename
date '+%Y-%m-%d_%H-%M-%S'
# Jujutsu information
jj workspace root # Repo root (or use pwd if in repo)
basename "$(pwd)" # Repo name
jj log -r @ --no-graph -T 'bookmarks' # Current bookmark(s)
jj log -r @ --no-graph -T 'commit_id.short()' # Current commit hash
Present the metadata to the user in this format:
Current Date/Time (TZ): [date with timezone]
Current Git Commit Hash: [commit hash]
Current Branch Name: [branch name]
Repository Name: [repo name]
Timestamp For Filename: [filename timestamp]
This metadata should be used in YAML frontmatter:
---
date: [Current date and time with timezone in ISO format]
git_commit: [Current commit hash]
branch: [Current branch name]
repository: [Repository name]
last_updated: [Current date in YYYY-MM-DD format]
---
2025-01-08_13-55-22)