/fde-core:git-archaeologyfrom fde-core
Recovers intent from git history when code looks wrong. Traces blame to commit, PR, and linked ticket to understand why code exists before modifying or deleting it. Prevents removing incident fixes or regulatory requirements.
Ships in fde-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Finding out why, before you change it.
An FDE reads a lot of code that looks wrong. Some of it is. Much of it is an incident fix, a regulatory requirement, a workaround for a downstream system's bug, or a special case for one customer worth more than the rest combined.
The odd-looking code is odd because something happened. Removing it re-creates whatever it was preventing — usually silently, usually in production, and usually with your name on the commit.
You are the person least equipped to tell the difference. The permanent team carries the scar tissue; you don't. History is how you acquire it in three minutes instead of three years.
[confirmed] claim you want to upgrade with the reasoning behind ittrace-the-flow[unverified]Resolve <workspace> before reading or writing artifacts: read ../_shared/workspace-conventions.md and follow its location and header rules. All artifact paths below use that resolved workspace. Preserve existing sections when appending.
Git history you can read. If git rev-parse --is-shallow-repository is true, stop and tag any intent claim [unverified].
git blame -L 88,120 path/to/File.java
# Follow through moves and reformatting, which otherwise hide the real author
git blame -w -C -C -L 88,120 path/to/File.java
-w ignores whitespace changes, -C -C follows code moved between files. Without them, blame frequently points at whoever last reformatted the file, which tells you nothing and wastes the step.
git show <sha>
git show <sha> --stat
The commit message may be useless, but the other files in the same commit are informative. A one-line change to a retry constant, committed alongside a monitoring alert threshold and a runbook edit, is visibly an incident response even when the message says "fix".
Squash-merge repos often have no merge commit. Try, in order:
# Message often carries "(#1234)" or a ticket key even when history was squashed
git log -1 --format="%s%n%b" <sha>
git log --format="%h %s" -- path/to/File | grep -oE "#[0-9]+|[A-Z]+-[0-9]+" | sort -u
# Host CLIs, if present
gh pr list --search "<sha>" --state merged 2>/dev/null
glab api "projects/:id/repository/commits/<sha>/merge_requests" 2>/dev/null
Where a PR number exists, the discussion is usually where the real reasoning lives:
gh pr view <n> --comments 2>/dev/null
Where it isn't, the ticket ID is still valuable: someone with access can look it up in a minute, and it's a good question for knowledge-interview.
The strongest possible signal that something is load-bearing.
git log --all --oneline --grep="revert" -i -- path/to/File.java
git log --all --oneline --grep="hotfix\|incident\|INC-\|P1\|urgent" -i -- path/to/File.java
Code that was removed and then put back means someone already tried your idea. Find out what happened to them. This single check has the best effort-to-value ratio in the skill.
Commits authored at 3am, on a weekend, or in a burst of several within an hour are almost always incident response. That context changes how you read the code entirely — it was written to stop something, fast, and the ugliness is a symptom of urgency rather than of poor judgment.
git log --format="%h %ad %an %s" --date=format:'%Y-%m-%d %H:%M %a' -- path/to/File.java | head -20
Four outcomes, and they lead to different actions:
| Verdict | What to do |
|---|---|
| Load-bearing, reason found | Leave it. Add a comment explaining why, citing the commit — that's a real contribution. |
| Load-bearing, reason not found | Leave it. Record it as [unverified] and as a question for someone who was there. |
| Genuinely obsolete | Removable — cite the evidence that made it obsolete, in the PR description. |
| No history | Pre-dates the repository, or was squashed away. Treat as load-bearing until someone confirms otherwise. |
When in doubt, it stays. The cost of leaving odd code in place is a little ugliness. The cost of removing an incident fix is the incident.
Where you find the reason, write it down in the code as a comment with the commit reference. That comment is often worth more than any change you were planning, and it means the next person doesn't repeat this investigation.
Always write <workspace>/traces/why-<symbol>.md so the finding survives the session. Also add a comment in the code when you found the reason, and a pointer from whichever artifact prompted the question.
# Why `MAX_RETRIES = 3` (RefundClient:47)
**Engagement:** <name> · **Author:** FDE · **Date:** <YYYY-MM-DD>
**Status:** draft
**Source revision:** <repo>@<short SHA>
**Confidence:** history read vs. inferred from accompanying files
### Why `MAX_RETRIES = 3` (RefundClient:47)
**Verdict:** load-bearing
**Evidence:** commit `8b21f0`, 2021-11-04 02:41 Sat, alongside an alert threshold change
and a runbook edit — incident response `[confirmed]`. Ticket INC-4471 referenced.
**Meaning:** the downstream provider was flapping; 3 was empirical, not principled.
**Implication:** safe to change only with evidence about current downstream behavior.
Not a cleanup candidate.
Blame without -w -C -C. Points at whoever reformatted the file. Tells you nothing.
Reading the message, not the commit. Messages are often useless; the accompanying files are not.
Not checking for reverts. The single highest-value check, and the fastest.
Assuming no explanation means no reason. It usually means the reason was obvious to someone who is no longer here.
Removing it because the author left. Their departure is why nobody can defend the code, not evidence it's wrong.
Finding the reason and not writing it down. The next person repeats the whole investigation, and the one after that.
Treating a squashed or migrated history as an absence of history. Repositories migrated between VCS systems often lose everything before the migration date. Check whether the earliest commit is suspiciously large and recent.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rpraharaj/forward-deployed-engineer --plugin fde-core34 skills in this plugin
/access-and-onboardingTurn getting access into a tracked critical path instead of a passive wait. Enumerate every credential, permission, environment, and account the engagement needs, identify who approves each and its lead time, request long-lead items first, find workarounds for what is blocked, and keep a queue of useful work that does not depend on the blocker. Use in the first days at a new organization, whenever you are blocked on permissions, VPN, repository access, database grants, pipeline rights, or environment credentials, or when someone says "I'm still waiting for access". Use for access and permissions, not a failing login in application code and not a CAB that will not approve a deploy./adoption-planPlan and assess how intended end users move to a new business workflow, including barriers, process ownership, a bounded pilot, support, fallback, and successful-use measures. Use when a live solution is underused, users keep an old workaround, or rollout needs changes to daily work. Training the receiving technical team to operate the system is enablement-handoff; deploying code is deploy-runbook./blast-radiusMap everything a proposed change could break before making it - direct callers, cross-repository consumers, published contracts, event subscribers, feature flags, shared database objects, and config coupling - ending with a risk rating and the specific things to verify. Use before any non-trivial change, when asked "what breaks if we touch this", before modifying anything shared or published, or before a schema change. Do not use for a release go/no-go - that is release-readiness; this skill supplies the consumer list.Other plugins' skills for the same job