بنقرة واحدة
pr-authorship-analysis
// Analyze PR authorship from the prior calendar month, identifying real human authors behind bot-created PRs. Use when users want monthly PR analysis, contributor statistics, or team productivity reports.
// Analyze PR authorship from the prior calendar month, identifying real human authors behind bot-created PRs. Use when users want monthly PR analysis, contributor statistics, or team productivity reports.
Create a LinkedIn carousel from a blog post or written content, and export it as a downloadable PDF. Use this skill whenever the user wants to turn an article, blog post, or piece of writing into a LinkedIn carousel, slide deck for social media, or multi-slide visual post. Trigger when the user says things like "turn this into a carousel", "make slides from this", "LinkedIn carousel", "social media slides", or pastes content and asks for a visual post. Also trigger when the user wants to repurpose written content for LinkedIn, or asks to export or download a carousel as a PDF.
Create visually appealing shipping calendars in Kilo branding from lists of features, releases, or shipped items. Use whenever users want to visualize product releases, feature launches, development milestones, sprint deliverables, or any time-based shipping data in calendar format. Also trigger when users mention "calendar", "shipped", "releases", "timeline", "product roadmap", or want to show what was delivered in a specific time period.
Use when fixing any UI, CSS, or layout bug and producing a PR with visual evidence. Triggers when the user reports something looks broken on mobile or desktop (often with a screenshot), when you need before/after screenshots for a PR, when fixing Tailwind responsive issues, or when a layout overflows on certain viewports. Also use when the user says things like "fix this on mobile", "the layout is broken", "take a screenshot to verify", or "create a PR with screenshots". Covers diagnosis, fix, Playwright screenshot capture at mobile + desktop, image upload to GitHub without committing, and draft PR creation.
| name | pr-authorship-analysis |
| description | Analyze PR authorship from the prior calendar month, identifying real human authors behind bot-created PRs. Use when users want monthly PR analysis, contributor statistics, or team productivity reports. |
This skill provides comprehensive analysis of all pull requests merged in the prior calendar month, with special focus on identifying the real human contributors behind bot-created PRs by examining commit histories.
Use this skill when users ask about:
Automatic Date Range:
# Calculate prior month start and end dates
CURRENT_DATE=$(date +%Y-%m-%d)
PRIOR_MONTH_START=$(date -d "$(date +%Y-%m-01) -1 month" +%Y-%m-01)
PRIOR_MONTH_END=$(date -d "$(date +%Y-%m-01) -1 day" +%Y-%m-%d)
echo "Analyzing PRs from: $PRIOR_MONTH_START to $PRIOR_MONTH_END"
Complete Data Collection:
# Get accurate total count first
gh pr list --state merged --search "merged:>=$PRIOR_MONTH_START merged:<=$PRIOR_MONTH_END" --json number --limit 1000 | jq 'length'
# Get complete PR dataset for prior month
gh pr list --state merged --search "merged:>=$PRIOR_MONTH_START merged:<=$PRIOR_MONTH_END" --json number,title,author,mergedAt,body --limit 1000
Important: Always verify the actual count vs requested limit. Round numbers (like 100, 500) often indicate you hit the limit rather than the true count.
Look for PRs authored by common bot accounts:
app/kilo-code-botkilo-code-bot[bot]kiloconnect[bot][bot] suffixFor each bot PR, analyze commit history:
gh pr view [PR_NUMBER] --json commits
Commit Analysis Pattern:
authors array from each commit@users.noreply.github.com patterns for bots)[bot] suffixes)Attribution Rules:
Author Mapping:
Key Metrics to Track:
For small datasets (< 50 bot PRs):
For large datasets (> 50 bot PRs):
.reports/ directory# Calculate prior month date range
PRIOR_MONTH_START=$(date -d "$(date +%Y-%m-01) -1 month" +%Y-%m-01)
PRIOR_MONTH_END=$(date -d "$(date +%Y-%m-01) -1 day" +%Y-%m-%d)
echo "Analyzing prior month: $PRIOR_MONTH_START to $PRIOR_MONTH_END"
# Always check count first
TOTAL_PRS=$(gh pr list --state merged --search "merged:>=$PRIOR_MONTH_START merged:<=$PRIOR_MONTH_END" --json number --limit 1000 | jq 'length')
echo "Total PRs in prior month: $TOTAL_PRS"
# If count equals limit, increase limit or use pagination
if [ $TOTAL_PRS -eq 1000 ]; then
echo "Warning: May have hit limit, consider pagination"
fi
# Get full dataset for prior month
gh pr list --state merged --search "merged:>=$PRIOR_MONTH_START merged:<=$PRIOR_MONTH_END" --json number,title,author,mergedAt,body --limit 1500
# For each bot PR
for pr_num in $bot_pr_numbers; do
echo "Analyzing PR #$pr_num"
gh pr view $pr_num --json commits
# Process commit authors...
done
# Create reports directory if it doesn't exist
mkdir -p .reports
# Generate report filename with prior month and year
REPORT_DATE=$(date -d "$(date +%Y-%m-01) -1 month" +%Y-%m)
REPORT_FILE=".reports/pr-analysis-${REPORT_DATE}.md"
# Save comprehensive results
cat > $REPORT_FILE <<EOF
# PR Analysis Report: $REPORT_DATE
## Summary
- **Analysis Date**: $(date +%Y-%m-%d)
- **Period**: $PRIOR_MONTH_START to $PRIOR_MONTH_END
- **Total PRs**: $TOTAL_PRS
- **Bot PRs**: $BOT_PR_COUNT
- **Human-contributed Bot PRs**: $HUMAN_BOT_PR_COUNT
## Top Contributors
[Generated contributor rankings with direct + bot PR counts]
## Analysis Details
[Detailed breakdown of findings]
EOF
echo "Report saved to: $REPORT_FILE"
[number]+[botname][bot]@users.noreply.github.comkilo@example.com, generic test accounts/pr-authorship-analysis "Analyze all PRs from last month"
/pr-authorship-analysis "Find real authors behind bot PRs from the prior calendar month"
/pr-authorship-analysis "Generate monthly contributor report for the completed month"
/pr-authorship-analysis "Show me March 2026 PR statistics with real authors"
This skill will provide monthly reports with:
The analysis typically reveals that 50-80% of "bot" PRs actually contain significant human contributions, providing accurate monthly team performance data and proper attribution to developers using advanced AI-assisted workflows.
Report Location:
Results are automatically saved to .reports/pr-analysis-YYYY-MM.md where YYYY-MM represents the analyzed month.
Example Report Path:
.reports/pr-analysis-2026-03.md.reports/pr-analysis-2026-02.mdReport Structure:
# PR Analysis Report: 2026-03
## Executive Summary
- **Analysis Date**: 2026-04-01
- **Period**: 2026-03-01 to 2026-03-31
- **Total PRs**: 739
- **Bot PRs**: 141 (19.1%)
- **Human-contributed Bot PRs**: 70 (50% of bot PRs)
## Top Contributors
1. **Christiaan Arnoldus**: 142 PRs (99 direct + 43 bot collaborations)
2. **eshurakov**: 82 PRs (78 direct + 4 bot collaborations)
3. **jrf0110**: 71 PRs (all direct)
## Bot Analysis Details
- Pure automation: 71 PRs
- Human collaboration: 70 PRs
- Most active bot collaborator: Christiaan Arnoldus (43 PRs)
## Team Insights
- Team velocity: 23.6 PRs per day
- Bot adoption: 19.1% of PRs use bot workflows
- Human-AI collaboration: 50% of bot PRs involve human work
The reports directory (.reports/) is automatically created and can be: