agentic-readiness
Audit and improve repositories for reliable agentic work across Codex and Codex App, Claude Code, and OpenCode. Use when…
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
$ npx -y skills add CodeAlive-AI/ai-driven-development --skill investigating-repository-history --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/investigating-repository-historyContext preview
The summary Claude sees to decide when to auto-load this skill.
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
name: investigating-repository-history description: 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. license: MIT compatibility: Designed for Claude Code, Codex, and similar coding agents. Requires a local git clone; bundled scripts require Python 3.9+, git, and authenticated GitHub CLI `gh` for GitHub PR evidence. allowed-tools: Bash(git:*) Bash(gh:*) Bash(python3:*) Read Grep metadata: version: "1.0.0" methodology: "Provenance Mesh"
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.
Use this skill when the user asks any of these:
Do not use this skill for trivial new code with no dependency on existing behavior.
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 intent? 4. What constraints, risks, rejected approaches, or tests were found? 5. Is the evidence strong, weak, contradictory, stale, truncated, or unknown? 6. How should the implementation plan change?
If the evidence is weak, say `UNKNOWN` and lower confidence. Never invent intent from a semantic match alone.
From the repository working tree, run the collector first. If the skill directory is not the current directory, prefix the script path with the installed skill path and pass `--repo-dir /path/to/repo`.
python3 scripts/history_context.py inspect \ --repo-dir /path/to/repo \ --path path/to/file.ext \ --start 120 --end 160 \ --question "Can I remove this constraint?" \ --format markdown
For symbol-level questions without exact lines:
python3 scripts/history_context.py inspect \ --repo-dir /path/to/repo \ --path path/to/file.ext \ --symbol SymbolOrFunctionName \ --question "Why does this behavior exist?" \ --format markdown
For JSON suitable for deeper agent reasoning:
python3 scripts/history_context.py inspect \ --repo-dir /path/to/repo \ --path path/to/file.ext \ --start 120 --end 160 \ --symbol SymbolOrFunctionName \ --question "What PR introduced this behavior?" \ --format json \ --output history-context.json
Then read only the relevant sections of the output. Do not paste huge raw PR/comment dumps into the final answer.
Load these files only when needed:
1. **Define scope.** Identify paths, line ranges, symbols, tests, error strings, feature flags, and any proposed diff. 2. **Collect local history.** Use the script or manual `git blame -w -M -C -C -C`, `git log --follow`, `git log -S`, and `git log -G`. 3. **Map commits to PRs.** Prefer exact GitHub commit→PR association. Treat it as one signal, not the entire answer. 4. **Fetch PR evidence.** For candidate PRs, inspect PR body, files, commits, reviews, inline review comments, and issue comments. 5. **Resolve anomalies.** If mapping is weak, apply the Provenance Mesh: commit association + patch equivalence + content/symbol lineage. 6. **Extract decision atoms.** Convert evidence into explicit claims: constraints, compatibility requirements, security invariants, performance constraints, rejected approaches, test requirements. 7. **Assess risk.** Downgrade confidence for semantic-only matches, path-only matches, reverted PRs, API truncation, large PRs, generated files, or missing PRs. 8. **Produce a history note** before editing code.
High confidence:
Medium confidence:
Low confidence:
Never claim “this was decided” unless a commit, PR body, review, review comment, issue comment, or linked issue support
Practices, protocols, and skills for AI-driven software development. Skills and safety hooks for Claude Code, Codex, OpenCode, Cursor, Antigravity, and any agent supporting the Agent Skills standard.
Audit and improve repositories for reliable agentic work across Codex and Codex App, Claude Code, and OpenCode. Use when…
8-step disciplined bug-fix protocol that treats every production bug as two failures — the code defect itself and the testing…
Copy text to clipboard with optional rich formatting. Triggers on "copy to clipboard", "copy that", "pbcopy", "copy formatted",…
Software-engineering heuristics based on Mark Seemann's Code That Fits in Your Head (2021), updated for agent-driven development.…
Fetch a web page (URL) and return clean Markdown via local trafilatura, with Exa MCP as a fallback for JS-rendered or anti-bot…
Use First Principles Framework (FPF) to decompose problems, architect systems, evaluate alternatives, define quality, qualify and…