investigating-repository-history

Featured

Investigate GitHub repository history before risky code changes using git blame/log, GitHub PRs, review comments, squash/rebase/cherry-pick/rename heuristics, and cited evidence. Use when asking why code exists, whether a change is safe, what PR introduced behavior, or before editing API, compatibility, security, concurrency, persistence, migration, or performance-sensitive code.

Code & Development 74 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
62
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Repository History Investigator Use this skill to reconstruct the historical intent behind code before changing it. The goal is not merely “find the blame commit”; the goal is to return a compact, cited history note explaining relevant PRs, review comments, constraints, rejected approaches, and anomalies. ## Contents - [Trigger conditions](#trigger-conditions) - [Core rule](#core-rule) - [Fast path](#fast-path) - [Progressive disclosure](#progressive-disclosure) - [Investigation workflow](#investigation-workflow) - [Evidence confidence rules](#evidence-confidence-rules) - [Output template](#output-template) - [Gotchas](#gotchas) - [Available scripts](#available-scripts) ## Trigger conditions Use this skill when the user asks any of these: - “Why is this code written this way?” - “Can I remove/simplify/change this check, constraint, branch, migration, public API, or feature flag?” - “Which PR introduced this behavior or regression?” - “Find the relevant PR/review discussion/history for this code.” - Before editing code that touches API compatibility, security, concurrency, persistence, migrations, performance, generated interfaces, feature flags, or unclear legacy/workaround logic. Do not use this skill for trivial new code with no dependency on existing behavior. ## Core rule Before making a risky edit, produce a **history note** answering: 1. What code scope was inspected? 2. Which commits and PRs are relevant? 3. Which review comments or PR discussions explain i...

Details

Author
CodeAlive-AI
Repository
CodeAlive-AI/ai-driven-development
Created
4 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Related Skills

Code & Development Featured

code-reviewer

Analyzes code diffs and files to identify bugs, security vulnerabilities (SQL injection, XSS, insecure deserialization), code smells, N+1 queries, naming issues, and architectural concerns, then produces a structured review report with prioritized, actionable feedback. Use when reviewing pull requests, conducting code quality audits, identifying refactoring opportunities, or checking for security issues. Invoke for PR reviews, code quality checks, refactoring suggestions, review code, code quality. Complements specialized skills (security-reviewer, test-master) by providing broad-scope review across correctness, performance, maintainability, and test coverage in a single pass.

9,342 Updated 5 days ago
Jeffallan
Code & Development Featured

security-reviewer

Identifies security vulnerabilities, generates structured audit reports with severity ratings, and provides actionable remediation guidance. Use when conducting security audits, reviewing code for vulnerabilities, or analyzing infrastructure security. Invoke for SAST scans, penetration testing, DevSecOps practices, cloud security reviews, dependency audits, secrets scanning, or compliance checks. Produces vulnerability reports, prioritized recommendations, and compliance checklists.

9,342 Updated 5 days ago
Jeffallan
Code & Development Featured

parallel-investigation

Coordinates parallel investigation threads to simultaneously explore multiple hypotheses or root causes across different system areas. Use when debugging production incidents, slow API performance, multi-system integration failures, or complex bugs where the root cause is unclear and multiple plausible theories exist; when serial troubleshooting is too slow; or when multiple investigators can divide root-cause analysis work. Provides structured phases for problem decomposition, thread assignment, sync points with Continue/Pivot/Converge decisions, and final report synthesis.

745 Updated 1 months ago
rohitg00