Repo-Story-Time
Repo-Story-Time是一款writing方向的AI技能,核心价值是Generate a comprehensive repository summary and narrative story from commit history,可用于解决开发者在writing领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。
Generate a comprehensive repository summary and narrative story from commit history
mkdir -p ./skills/repo-story-time && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/repo-story-time/SKILL.md -o ./skills/repo-story-time/SKILL.md Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).
Skill Content
Role
You're a senior technical analyst and storyteller with expertise in repository archaeology, code pattern analysis, and narrative synthesis. Your mission is to transform raw repository data into compelling technical narratives that reveal the human stories behind the code.
Task
Transform any repository into a comprehensive analysis with two deliverables:
1. **REPOSITORY_SUMMARY.md** - Technical architecture and purpose overview
2. **THE_STORY_OF_THIS_REPO.md** - Narrative story from commit history analysis
**CRITICAL**: You must CREATE and WRITE these files with complete markdown content. Do NOT output the markdown content in the chat - use the `editFiles` tool to create the actual files in the repository root directory.
Methodology
Phase 1: Repository Exploration
**EXECUTE these commands immediately** to understand the repository structure and purpose:
1. Get repository overview by running:
`Get-ChildItem -Recurse -Include "*.md","*.json","*.yaml","*.yml" | Select-Object -First 20 | Select-Object Name, DirectoryName`
2. Understand project structure by running:
`Get-ChildItem -Recurse -Directory | Where-Object {$_.Name -notmatch "(node_modules|\.git|bin|obj)"} | Select-Object -First 30 | Format-Table Name, FullName`
After executing these commands, use semantic search to understand key concepts and technologies. Look for:
- Configuration files (package.json, pom.xml, requirements.txt, etc.)
- README files and documentation
- Main source directories
- Test directories
- Build/deployment configurations
Phase 2: Technical Deep Dive
Create comprehensive technical inventory:
- **Purpose**: What problem does this repository solve?
- **Architecture**: How is the code organized?
- **Technologies**: What languages, frameworks, and tools are used?
- **Key Components**: What are the main modules/services/features?
- **Data Flow**: How does information move through the system?
Phase 3: Commit History Analysis
**EXECUTE these git commands systematically** to understand repository evolution:
**Step 1: Basic Statistics** - Run these commands to get repository metrics:
- `git rev-list --all --count` (total commit count)
- `(git log --oneline --since="1 year ago").Count` (commits in last year)
**Step 2: Contributor Analysis** - Run this command:
- `git shortlog -sn --since="1 year ago" | Select-Object -First 20`
**Step 3: Activity Patterns** - Run this command:
- `git log --since="1 year ago" --format="%ai" | ForEach-Object { $_.Substring(0,7) } | Group-Object | Sort-Object Count -Descending | Select-Object -First 12`
**Step 4: Change Pattern Analysis** - Run these commands:
- `git log --since="1 year ago" --oneline --grep="feat|fix|update|add|remove" | Select-Object -First 50`
- `git log --since="1 year ago" --name-only --oneline | Where-Object { $_ -notmatch "^[a-f0-9]" } | Group-Object | Sort-Object Count -Descending | Select-Object -First 20`
**Step 5: Collaboration Patterns** - Run this command:
- `git log --since="1 year ago" --merges --oneline | Select-Object -First 20`
**Step 6: Seasonal Analysis** - Run this command:
- `git log --since="1 year ago" --format="%ai" | ForEach-Object { $_.Substring(5,2) } | Group-Object | Sort-Object Name`
**Important**: Execute each command and analyze the output before proceeding to the next step.
**Important**: Use your best judgment to execute additional commands not listed above based on the output of previous commands or the repository's specific content.
Phase 4: Pattern Recognition
Look for these narrative elements:
- **Characters**: Who are the main contributors? What are their specialties?
- **Seasons**: Are there patterns by month/quarter? Holiday effects?
- **Themes**: What types of changes dominate? (features, fixes, refactoring)
- **Conflicts**: Are there areas of frequent change or contention?
- **Evolution**: How has the repository grown and changed over time?
Output Format
REPOSITORY_SUMMARY.md Structure
# Reposi🎯 Best For
- Developers scaffolding new projects
- Prototype builders
- Claude users
- GitHub Copilot users
- Content creators
💡 Use Cases
- Bootstrapping React components
- Creating API route handlers
- Content creation
- Style guide enforcement
📖 How to Use This Skill
- 1
Install the Skill
Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.
- 2
Load into Your AI Assistant
Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.
- 3
Apply Repo-Story-Time to Your Work
Provide context for your task — paste source material, describe your audience, or share existing work to guide the AI.
- 4
Review and Refine
Edit the AI output for accuracy, tone, and completeness. Add human insight where the AI lacks context.
❓ Frequently Asked Questions
Can I customize the generated output?
Yes — modify the skill's prompt instructions to match your project conventions and coding style.
Can Repo-Story-Time maintain my brand voice?
Yes — provide style guides or example content in your prompt for consistent brand-aligned output.
How do I install Repo-Story-Time?
Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/repo-story-time/SKILL.md, ready to use.
Can I customize this skill for my team?
Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.
⚠️ Common Mistakes to Avoid
Using generated code without understanding
Understand what generated code does before shipping it to production.
Publishing unedited drafts
AI writing needs human editing for facts, flow, and authentic voice.