/fde-core:safe-changefrom fde-core
Implements changes in unfamiliar or high-stakes codebases with minimal diffs, green baselines, and rollback plans. Use for legacy code, money/data/auth systems, or when reviewed by an unfamiliar team.
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.
Implementation discipline for code you don't own.
An FDE writes code under two constraints an in-house engineer doesn't have: no intuition for what's fragile, and no credibility yet to spend on a mistake. Both push the same direction — smaller, more legible, more reversible changes than you'd otherwise make.
There's a second, less obvious constraint. Your diff is being read by people deciding whether you're safe to let near their system. A change that works but sprawls across unrelated files, reformats things, and introduces a library nobody asked for gets merged reluctantly and remembered. A tight, idiomatic diff that reads like the person who wrote the surrounding code buys latitude for the next one.
refactor-seams (fde-migration)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.
<workspace>/04-feasibility.md — you should know where the change lands before opening a file<workspace>/06-blast-radius-*.md — for anything beyond a local changecharacterization-tests first. Changing untested legacy code and verifying by inspection is the single highest-risk thing in this portfolio.Before touching anything, know the state you're starting from:
git status && git rev-parse --short HEAD
<build command> # from <workspace>/01-environment.md
<test command>
Record what passes and what already fails. Pre-existing failures are common in enterprise repositories, and discovering them after your change means an hour spent proving you didn't cause them.
If the baseline isn't green, decide explicitly: fix it first, or note it and proceed. Don't leave it ambiguous — and never let a pre-existing failure quietly become attributed to your change.
Branch off before you start:
git switch -c <ticket>-<short-slug>
Match the repository's branch naming convention. It's visible, trivial to get right, and getting it wrong is a small unforced signal that you didn't look.
Before writing, read two or three files adjacent to your change site. Not for behavior — for idiom. You're establishing:
Optional, nullable, sentinel valuesMatch what's there, even where you'd do it differently. A codebase with one file in a different style is worse than a codebase consistently in a style you dislike, and the FDE who imports their own conventions is a recognizable and unwelcome type. If a convention is genuinely harmful, raise it separately as an ADR — don't litigate it inside an unrelated diff.
State, to yourself or in the task notes, the smallest set of changes satisfying the acceptance criteria:
## Planned diff
- RefundService.java:88 add currency resolution ← behavior
- RefundRequest.java:14 add field ← ripple
- RefundResponse.java:22 add field (published contract) ← needs versioning
- V219__refund_currency.sql new migration
- RefundServiceTest.java 3 new cases
If the list is longer than you expected from feasibility-probe, stop and work out why. Either the feasibility work missed something — worth recording — or scope is creeping.
Concretely:
If a change needs restructuring first, make it two commits, or better, two pull requests:
commit 1: refactor: extract currency resolution from RefundService [no behavior change]
commit 2: feat: resolve refund currency from the original order
This is worth real effort. A reviewer can verify a pure refactor by reading, and a behavior change by testing — but a diff mixing both requires them to do the hardest kind of review, and they will either miss something or take a week. It also keeps git bisect useful, which matters to whoever debugs this in a year.
Never reformat files you're editing. A formatting change buried in a functional diff destroys blame history and makes the real change invisible. If the repository has a formatter that wants to run on save, configure your editor not to reformat untouched regions.
Flag it when any of these hold:
Don't flag when the change is genuinely local and well covered — flags carry their own cost: two code paths, two test paths, and a cleanup task that in practice never happens. Where you do add one, write down who removes it and when, in 06b-change-log.md.
Use whatever flag mechanism the repository already has. Introducing a flag framework as a side effect of a feature change is its own, larger change.
Before merging, write down how this gets undone. Not as an appendix — as a precondition.
The one-way doors are the point of this step: a destructive migration, a consumed message, a sent notification, a published event. Find them before merging, because after that you're negotiating with reality instead of a plan.
Where the rollback is anything more than "revert and redeploy," it belongs in deploy-runbook.
Not "the tests pass" — walk each criterion from 03-requirements.md and state how it's satisfied:
- AC-1 ✅ RefundServiceTest#eurRefundStoresCurrency
- AC-2 ✅ RefundServiceTest#unsupportedCurrencyRejected
- AC-3 ⚠️ manual — needs a staging order predating the migration
Anything not automatically verified goes into 07-verification.md as a gap. Don't quietly count it as done.
Then confirm you didn't break the baseline: full suite, and specifically the callers identified in the blast-radius work.
Read your own diff top to bottom as a reviewer would:
Follow ../_shared/change-review.md: verify the actual target branch, review branch commits and staged, unstaged, and untracked changes, and sanitize findings before displaying sensitive content. A branch-only diff does not include work you have not committed.
Look for: debug output, commented-out code, TODOs you meant to resolve, stray formatting, files you didn't intend to touch, secrets or real data in fixtures, and anything that would make a reviewer ask "why is this here?"
That last question is the test. Every hunk should have an obvious reason for existing. Any that doesn't either needs a comment in the PR description or shouldn't be there.
Then write a PR description that answers what changed, why, how it was verified, what the blast radius is, and how to roll it back. In a team that doesn't know you, the description is doing as much work as the code.
The change itself, plus an entry in <workspace>/06b-change-log.md. Create the file with the standard header if missing:
## <date> — <change>
**Requirement:** R2 · **Branch:** `<branch>` · **PR:** <link>
**Baseline:** <n> tests passing, <n> pre-existing failures
**Files:** <count> — core: <n>, ripple: <n>, contract: <n>
**Flag:** `refund-currency` — remove by <date>, owner <name>
**Rollback:** revert PR; migration is additive and safe to leave `[confirmed: V219 adds a nullable column]`
**Verification:** AC-1 ✅ AC-2 ✅ AC-3 ⚠️ manual — see `07-verification.md`
**One-way doors:** none
**Notes:** <anything the next person needs>
Drive-by fixes. You'll see genuine bugs while working. Fixing them here dilutes review, breaks bisect, and makes your diff hard to reason about. Note them, raise them separately. Fix them in the same PR only if your change would otherwise be broken by them.
Reformatting. Destroys blame, hides the real change, and reads as carelessness.
Importing your own conventions. The most reliable way to be perceived as a visitor rather than a colleague.
Adding a dependency casually. In an enterprise repo that's a licence review, a security scan, and possibly a registry mirroring request — all invisible from inside the diff.
Skipping the baseline. Then spending an hour proving a pre-existing failure isn't yours.
Mixing refactor and behavior. Forces the reviewer into the hardest kind of review. They'll either miss something or stall.
Treating rollback as an afterthought. Discover the one-way door before merging, not during the incident.
"The tests pass" as verification. The tests verify what they were written to verify. Walk the acceptance criteria explicitly.
A flag with no removal owner. It will be there in three years, and by then nobody will know whether it's safe to delete.
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./change-control-navigationFind and work with the organization's change process before it blocks you - which gates apply, what evidence each requires, submission deadlines, freeze periods, release calendars, and segregation of duties - then work backwards from the release window. Use early in any engagement that will reach production, when a CAB or stage gate exists, when a release calendar or freeze period constrains the plan, or when work is technically complete and cannot ship. Discovering the process at go-live is a self-inflicted slip./characterization-testsPin the current behavior of untested legacy code before changing it - including behavior that looks like a bug, because something downstream may depend on it - using golden master and approval test patterns so a refactor or fix can be verified as behavior-preserving. Use before modifying code with thin or no test coverage, before any refactor of legacy code, when a change site has no tests and you need a safety net, or when someone says "we can't change that, nobody knows what it does". This is what makes legacy change safe rather than brave./context-strategyWork effectively in a codebase far larger than any context window, across an engagement that spans many sessions. Decide what to read versus search versus script versus delegate, maintain a durable working guide so each session does not re-derive the same map, define a working set, and hand off cleanly when context runs low. Use when a repository is too large to explore file-by-file, when context is filling up mid-task, when starting a multi-session engagement, when you catch yourself re-discovering something you already worked out, or when someone says "this repo is huge". Run before repo-recon when the tree is large; this sets the budget, it does not replace the system map.Other plugins' skills for the same job