← RepoLoreCONTENT HISTORYWHAT CHANGED · RULE-BASED ANALYSIS
Update to RepoLore
Snapshot Sep 30, 2026 · 23:09 UTC · version 1.0.0
Collection source: not recorded for this historical snapshot.
First saved snapshot
No earlier snapshot is available to establish a change.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"name": "trace-code-history",
"description": "Reconstruct why code exists by tracing public GitHub file history, commits, pull requests, referenced issues, patches, and tests. Use when a user asks why a file or code region was introduced, whether historical evidence supports removing it, what change motivated it, or which repository artifacts document the decision.",
"included_files": [
{
"relative_path": "agents/openai.yaml",
"size_in_bytes": 230
}
],
"skill_md_contents": "---\nname: trace-code-history\ndescription: Reconstruct why code exists by tracing public GitHub file history, commits, pull requests, referenced issues, patches, and tests. Use when a user asks why a file or code region was introduced, whether historical evidence supports removing it, what change motivated it, or which repository artifacts document the decision.\n---\n\n# Trace Code History\n\nProduce an evidence-backed explanation of code provenance. Treat repository records as facts and inferred developer intent as inference.\n\n## Workflow\n\n1. Identify the GitHub repository and repository-relative file path. Ask only for missing information that cannot be inferred from a supplied GitHub URL.\n2. Call `trace_code_history` first. Include the narrowest useful line range when the user points to specific code.\n3. Review the returned candidates, confidence levels, exact patch matches, associated pull requests, referenced issues, and test files.\n4. Use `get_file_content`, `get_file_commit_history`, `get_commit_context`, or `get_issue_or_pull_request` only when the aggregate trace needs a closer look.\n5. Use `search_repository_history` when filenames changed or the direct history does not expose the motivating discussion.\n6. Stop when the evidence explains the change or when the available public history is exhausted. Do not invent missing issue or PR context.\n\n## Evidence Rules\n\n- Cite absolute GitHub URLs returned by the tools next to the claims they support.\n- Label a statement as **Confirmed** only when a commit, pull request, patch, test, or release record directly supports it.\n- Label a statement as **Likely** when multiple records support the interpretation but intent is not stated explicitly.\n- Label a statement as **Unknown** when the available history does not establish the answer.\n- Do not treat a commit message alone as proof of runtime behavior; corroborate it with changed files or tests when possible.\n- Do not claim that code is safe to remove. Describe evidence, likely dependencies, missing tests, and a validation plan.\n- State that line attribution is an evidence-based approximation when GitHub's available APIs do not provide a true blame result.\n\n## Response Shape\n\nReturn these sections:\n\n1. **Short answer** — one or two sentences.\n2. **Decision timeline** — dated commits and associated PRs in chronological order.\n3. **Why the code exists** — confirmed facts followed by clearly marked inference.\n4. **Tests and affected areas** — relevant changed files and regression coverage.\n5. **Removal or rewrite risk** — evidence-based risks and checks to run.\n6. **Evidence gaps** — missing or inaccessible context.\n\nKeep raw patches brief. Prefer links and explain only the lines relevant to the user’s question.\n"
}SHA-256: 6a825fa3e91e2d852869d75e061628a128179e5284896df513fa0fb7a8fc94c7