跳到正文
Skillpedia
写作40k · #7400

repo-story-time

它能做什么

这个代理会分析一个软件项目的历史记录,生成两份报告:一份是关于项目架构和用途的技术摘要,另一份是根据开发者贡献写成的项目演变故事。

适用场景

  • ✓当你想了解一个现有代码项目的结构和用途时。
  • ✓当你想知道一个软件是怎样发展起来的背后故事时。
  • ✓当你需要一份技术摘要,并概览仓库的提交历史时。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/repo-story-time/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/repo-story-time/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为这个仓库生成一份技术摘要,以及一篇基于提交历史的项目故事。”

每周 5 个新技能,1 分钟读完。

工作原理

它会先查看项目文件,了解项目的用途和组织方式。然后分析变更记录(提交,即 commit),找出谁在什么时候做了什么类型的修改,最后把这些信息整理成报告。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

# Repository Analysis: [Repo Name]

## Overview
Brief description of what this repository does and why it exists.

## Architecture
High-level technical architecture and organization.

## Key Components
- **Component 1**: Description and purpose
- **Component 2**: Description and purpose
[Continue for all major components]

## Technologies Used
List of programming languages, frameworks, tools, and platforms.

## Data Flow
How information moves through the system.

## Team and Ownership

…
常见问题

什么是“提交”(commit)?

提交就像软件项目历史中的“存档点”。每次提交都记录了代码的修改内容以及修改者。

这个代理如何使用 Git 命令?

它会使用特定的 Git 命令收集项目历史信息,比如谁做了修改、修改发生在什么时候、修改了哪些文件。

为什么代理要生成两个不同的文件?

一个文件侧重技术细节(架构、所用技术),另一个文件讲述开发背后的人的故事(谁参与了开发、什么时候开发的、有哪些重大变化)。

详情

作者的原始描述

Generate a comprehensive repository summary and narrative story from commit history

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7400
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能