gather-project-metadata
Use when creating research or plan documents to gather git commit, branch, repository info.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when creating research or plan documents to gather git commit, branch, repository info.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Generic migration orchestrator that reads CHANGELOG.md to understand and execute version-specific migrations
Determine feature slug interactively by auto-detecting next number and prompting user for description
Share personal documents to the shared namespace with atomic git commit and push
Use when creating implementation plans to generate properly structured plans with phases, success criteria, and project references.
Use when documenting research findings to create properly structured research documents with frontmatter, sections, and file references.
ALWAYS check this skill before using grep, glob, Task tool, or doing any codebase exploration. Guides you to use specialized agents that are more efficient than basic tools.
| name | gather-project-metadata |
| description | Use when creating research or plan documents to gather git commit, branch, repository info. |
Collect metadata for documentation frontmatter.
Run the metadata collection script:
~/.claude/scripts/collect-metadata.sh
Or gather manually:
# Timestamp
date -u +"%Y-%m-%dT%H:%M:%SZ"
# Git info
git rev-parse HEAD
git rev-parse --abbrev-ref HEAD
git remote get-url origin | sed 's/.*[:/]\(.*\)\.git/\1/'
# Project name
basename $(pwd)
# Feature slug (if applicable)
FEATURE_DIR=$(pwd | grep -oE 'thoughts/[0-9]{4}-[^/]+' || echo "")
if [ -n "$FEATURE_DIR" ]; then
basename "$FEATURE_DIR"
fi
Insert gathered metadata into frontmatter:
---
date: 2025-12-23T10:30:00Z
git_commit: abc123...
branch: main
repository: github.com/eveld/claude
---
When using templates, replace these placeholders:
{ISO_TIMESTAMP} - ISO 8601 timestamp{GIT_COMMIT} - Full commit hash{BRANCH_NAME} - Current branch{REPOSITORY} - Repository path{PROJECT_NAME} - Project name{DATE} - Simple date (YYYY-MM-DD){FEATURE_SLUG} - Feature slug (e.g., "0005-authentication")