Skill站外收录 @skilllib/skill-2117939930272414383
github-activity-analyzer
深度分析用户在 GitHub 上任意时间段的开发活动,涵盖代码提交、Pull Request、代码评审等各类事件,自动识别技术主题与贡献重点,支持自然语言描述的时间范围解析,并根据周期长短动态调整分析粒度与数据源策略。
商业与营销 AI 技能
Skills.MD
# GitHub Activity Analyzer Skill
Analyzes comprehensive GitHub activity for any specified time period with deep technical insights. Supports arbitrary time frames from days to full years.
## When to Use This Skill
Use this skill when the user:
- Asks "what have I been working on?"
- Requests a summary of recent contributions (any time period)
- Wants to review their GitHub activity
- Needs to prepare a status update or report
- Says "show me my recent work" or "what did I do last week/month/year"
- Asks about contribution statistics for a specific period
- Wants insights into their coding patterns over time
- Requests activity analysis with various time formats:
- Relative: "last 7 days", "past month", "last year"
- Full years: "2025", "year 2024", "all of 2023"
- Date ranges: "2024-10-01 to 2024-12-31", "Q4 2024", "October 2024"
- From date: "since 2024-10-01", "from October"
## Capabilities
1. **Event Analysis**: Fetches and categorizes all GitHub events (pushes, PRs, reviews, comments, releases)
2. **Content Deep Dive**: Extracts PR titles, descriptions, commit messages, and review comments
3. **Theme Identification**: Groups contributions by technical domain (e.g., performance, infrastructure, features)
4. **Impact Assessment**: Highlights most significant contributions and their business value
5. **Statistics**: Provides counts and trends across repositories
## How It Works
### Time Period Parsing
Extract and parse time period from user's request in multiple formats:
**A. Relative time (days back from today):**
- "last week", "7 days", "1w" → 7 days
- "last 2 weeks", "14 days", "2w" → 14 days (default if not specified)
- "last month", "30 days", "1m" → 30 days
- "last 6 months" → 180 days
- "last year", "365 days", "1y" → 365 days
- Custom: "45 days" → 45 days
**B. Full year:**
- "2025", "year 2025", "all of 2024" → Date range: YYYY-01-01 to YYYY-12-31
- Parse the year and set as full calendar year
**C. Specific date range:**
- "2024-10-01 to 2024-12-31" → Exact date range
- "from October 1st to December 31st 2024" → Parse natural language to YYYY-MM-DD
- "Q4 2024" → 2024-10-01 to 2024-12-31
- "October 2024" → 2024-10-01 to 2024-10-31
- "Q1 2025" → 2025-01-01 to 2025-03-31
**D. From date to today:**
- "since 2024-10-01" → From that date to today
- "from October 2024" → From 2024-10-01 to today
Default to 14 days (2 weeks) if no time period mentioned
### Data Collection
- Uses `gh api users/{username}/events` to fetch activity
- For relative time: Dynamically calculates date N days ago from today
- For date ranges: Uses the parsed start and end dates directly
- Filters events within the date range (inclusive)
- Fetches detailed PR information for opened/merged PRs
- Retrieves commit messages from most active repositories
- Samples code review comments to understand review style
**Important Note**: GitHub's events API only returns the last 90 days of events. For time periods beyond 90 days:
- Use GitHub Search API for issues and PRs: `gh api search/issues`
- Query specific repository commits: `gh api repos/{owner}/{repo}/commits`
- Fetch data from multiple endpoints and aggregate
- Focus on major contributions and highlights for longer periods
### Analysis
- Groups work by repository and technical theme
- Identifies patterns (e.g., VAT integration, performance optimization)
- Extracts technical details (formulas, benchmarks, metrics)
- Summarizes code review leadership
### Output Format
- Executive summary
- Activity breakdown by theme
- Technical highlights with specifics
- Statistics table
- Impact assessment
## Technical Requirements
- GitHub CLI (`gh`) must be installed and authenticated
- Access to user's GitHub events via API
- Ability to fetch PR and commit details from repositories
## Implementation Guidelines
- **Time Period Handling**:
- Always parse the user's requested time period from natural language
- Support all formats: relative days, full years, specific ranges, from-date-to-today
- Default to 14 days (2 weeks) if no period specified
- Calculate dates dynamically from today's date for relative periods
- Be flexible: "last week", "7 days", "1w" should all work the same
- Convert natural language dates: "October 2024" → "2024-10-01 to 2024-10-31"
- Handle quarters: "Q1 2025" → "2025-01-01 to 2025-03-31"
- For periods >90 days, acknowledge API limitations and use alternative approaches
- **API Strategy for Different Time Periods**:
- **0-90 days**: Use events API directly (`gh api users/{username}/events`)
- **>90 days or specific old dates**: Combine multiple approaches:
- Search API: `gh api search/issues?q=author:{username}+created:>=YYYY-MM-DD`
- Search API for PRs: `gh api search/issues?q=is:pr+author:{username}+created:>=YYYY-MM-DD`
- Repo commits: Identify active repos and query commits
- Focus on major milestones and highlights
- **Content Adaptation by Period Length**:
- **<30 days**: Full detailed analysis with all PRs, commits, reviews
- **30-90 days**: Detailed with slight summarization of minor items
- **3-6 months**: Focus on major contributions, monthly themes
- **Full year**: Quarterly breakdown, key highlights, statistics, major impact
- **Technical Details**:
- Include ticket numbers (e.g., RMC-XXX, YIELD-XXXX) when present in commits/PRs
- Provide specific technical details with formulas, benchmarks, and metrics - not generic summaries
- Balance breadth (number of repos) with depth (technical implementation details)
- Preserve context like performance gains, schema changes, integration specifics
- **Performance**:
- Use parallel API calls where possible for better performance
- For very long periods, paginate and aggregate strategically
- Cache intermediate results if processing multiple endpoints
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「github-activity-analyzer」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次