/fde-core:repo-reconfrom fde-core
Builds a breadth-first map of an unfamiliar codebase: entry points, module boundaries, persistence surface, churn hotspots, test topology, config surface, and landmines. Writes results as a durable system map and working guide. Use when dropped into a new repo, inheriting a system, or before estimating changes.
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.
Read when SKILL.md points to them.
The first structured pass over an unfamiliar system.
Dropped into a large codebase, the instinct is to start reading. After two hours you know one component and cannot answer the questions people are about to ask. This skill trades depth for coverage: where things are and what you'd be scared to touch. Depth is trace-the-flow, later, only where the work lands. A map that exists only in this session is worthless in week three.
trace-the-flowResolve <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.
00-engagement.md — scopes what you're looking for00c-context.md / 01-environment.md (optional) — budget and whether it builds../_shared/stack-detection.md before step 2, including Searching after detectioncontext-strategy first and set a budgetOrdered cheapest to most expensive. Each step should sharpen where the next one looks. Read the stopping test in step 10 before you start — it's what stops this becoming a week.
git ls-files | wc -l
git ls-files | sed 's/.*\.//' | tr '[:upper:]' '[:lower:]' | sort | uniq -c | sort -rn | head -20
ls -a
find . -maxdepth 2 -type d -not -path "*/.git*" -not -path "*/node_modules*" | sort
git log -1 --format="%ad %an" --date=short
git log --oneline --since="6 months ago" | wc -l
You're establishing: how big, what languages, is it alive, is it one system or several. A repository with three commits in six months and a top language you didn't expect is telling you something before you read a line.
Follow ../_shared/stack-detection.md. Record every stack present with its root, and state which one you're scoping to. In enterprise repositories, several is the norm, not the exception.
Read the CI configuration properly at this point. It is the single most informative file for an arriving engineer: the real build and test commands, the pinned versions, the service dependencies, and the deploy path.
How does anything get into this system? Everything else hangs off the answer.
Read references/entry-points-by-stack.md before searching. Three checks in that reference come before any language-specific pattern, and skipping any of them produces a confidently wrong map:
setup.py and thousands of .py files can be openapi-generator output. If .openapi-generator/ exists or most sources say "do not edit" / "generated by", split authored vs generated before mapping. The spec and the handwritten remainder are the system.Then use the section matching what step 2 detected. Do not run patterns for a stack you didn't detect — "few hits" reads as "few entry points" rather than "wrong search," and that failure is silent.
Before searching, establish the deployment shape — service, CLI, library, batch, event consumer, serverless. Entry points differ more by shape than by language, and most real systems are two or three shapes at once. A CLI tool has no HTTP routes, and concluding it has no entry points because you searched for routes is a mistake you won't notice.
Then run the stack-independent sweep from the same reference. Non-obvious entry points are where surprises live. If a 1,300-file codebase appears to have two entry points, you searched wrong — say so and re-search.
Which modules exist, and which direction do dependencies run?
# Top-level packages — do not assume a src/ directory
find . -maxdepth 3 -type d -not -path "*/.git*" -not -path "*/node_modules*" -not -path "*/vendor*" | sort
Do not grep ^(import |using |from ). That is three languages' syntax. On Elixir it returns 0 while alias/use/import appear hundreds of times, indented. Use the module-reference form in references/entry-points-by-stack.md for the detected stack, or skip the count and map directories by name. A "domain" package depending on "web" is the finding — the import keyword is just a means.
You're looking for the intended architecture and where reality departs from it.
What does this system store, and what does it talk to? This is the highest-value step for blast-radius work later.
# Schema-like files. SQL is one dialect — also .ddl, IMS DBD, CSD. Then the
# record form in entry-points-by-stack.md (copybook 01, DEFINE FILE, CREATE TABLE).
find . \( -path "*migration*" -o -iname "*schema*" -o -iname "*.sql" -o -iname "*.ddl" \
-o -iname "*.dbd" -o -iname "*.csd" \) | head -30
# Outbound calls and external hosts
grep -rnE "https?://[a-zA-Z0-9.-]+" --include="*.yml" --include="*.yaml" --include="*.properties" --include="*.json" . \
| grep -v "schema\|xmlns\|w3.org\|localhost" | head -30
# Messaging — names, not one framework's listener annotation
grep -rn "topic\|queue\|exchange\|SQS\|ServiceBus\|pubsub" --include="*.yml" --include="*.$EXT" . | head -30
docker-compose.yml, if present, usually names every database, cache, broker, and stubbed downstream in one file. Read it — it's often the fastest dependency map available.
git log --format= --name-only --no-renames --since="12 months ago" 2>/dev/null \
| grep -v '^$' \
| grep -vE "(^|/)(CHANGELOG|Cargo\.lock|package-lock\.json|pnpm-lock\.yaml|yarn\.lock|go\.sum|poetry\.lock|Gemfile\.lock)" \
| grep -vE "(^|/)(Cargo|pom|package|build\.gradle)" \
| sort | uniq -c | sort -rn | head -25
Filter the noise or the signal disappears. Manifests, lockfiles, changelogs, and generated trees (once step 3 identified them) top the list in almost every repository. --no-renames avoids a stall on large histories. If the clone is shallow, skip churn and tag it [unverified].
High-churn files are where the business is changing. The inverse — untouched for years — is either stable or load-bearing and forgotten. Both matter.
Filenames first, then syntax. Assertion greps (def test_, func Test, #[test]) are language-specific and return 0 on ExUnit (test "…" do in *_test.exs).
# Filename convention — portable
git ls-files | grep -cE '(^|/)(test|spec)s?/'
git ls-files | grep -cE '_test\.|_spec\.|/test_|^test/'
# Directory listing — watch fixture dirs dominating the count
find . -path "*test*" -name "*.*" -not -path "*/node_modules/*" -not -path "./.git/*" \
| sed 's|/[^/]*$||' | sort | uniq -c | sort -rn | head -15
Only then, if the stack's assertion form is listed in entry-points-by-stack.md, grep for it. Do not run every language's pattern "to be safe."
Watch for fixture directories masquerading as tests. Snapshot, golden-file, and input-corpus directories can hold hundreds of files and will dominate a file count while containing no test logic at all. A "top test location" with 216 files named snapshots/ is data, not tests.
Establish where tests live, what kinds exist, roughly how many, and whether CI gates the merge. The question that matters: is the code you'll change covered? If not, characterization-tests comes before any change.
find . -name "*.properties" -o -name "application*.y*ml" -o -name "appsettings*.json" -o -name ".env*" -o -path "*/config/*" | head -25
Node/Python process.env / os.getenv greps miss System.get_env, Application.get_env, os.Getenv, and std::env. After detection, search that stack's env accessor, or list config/ and .env* and stop there. Never record values — locations only. See ../_shared/workspace-conventions.md.
The section people actually read.
grep -rni "TODO\|FIXME\|HACK\|XXX\|WORKAROUND\|DO NOT" --include="*.$EXT" . | wc -l
# Generated-header density — a large number is a generation finding, not a todo list
grep -rl -i "generated by\|do not edit" --include="*.$EXT" . | wc -l
grep -rni "HACK\|DO NOT\|CAREFUL\|WARNING" --include="*.$EXT" . | head -25
Look for: comments warning future readers, generated files that must not be hand-edited, deprecated paths still in use, commented-out blocks near active code, retry and timeout constants that look arbitrary, anything named legacy, old, v1, or temp still on a live path. If the generated-header count is most of $EXT, go back to step 3 — you are standing in a build product.
Where a landmine looks deliberate, git-archaeology will usually tell you why in two minutes. The ugly branch is frequently an incident fix, and removing it re-opens the incident.
You have enough when you can answer these five without looking anything up:
If you can answer all five, stop and write it up. Continuing is depth, and depth belongs to a skill with a specific question.
If you can't answer one after a reasonable pass, that gap is itself the finding — record it as [unverified] with what would resolve it. An honest map with a labelled hole beats a confident one that quietly omits a third of the system.
02-system-map.md is the engagement record. The working guide carries reusable commands, conventions, and landmines across sessions. Follow ../_shared/agent-context.md: preserve existing project instructions; otherwise use <workspace>/repo-guide.md. Record the chosen path and do not assume automatic loading. See context-strategy step 6 for what belongs in each.
Write to <workspace>/02-system-map.md:
# System map — <system>
**Engagement:** <name>
**Author:** FDE
**Date:** <YYYY-MM-DD>
**Status:** draft
**Source revision:** <repo>@<short SHA>
**Confidence:** <coverage, and what you couldn't reach>
## Scope
<What this map covers, and explicitly what it doesn't. Required in a monorepo.>
## At a glance
- **Purpose:** <what it does, one sentence, in business terms>
- **Size:** <n> files, ~<n> LOC
- **Stack:** <detected, with citation>
- **Activity:** <n> commits in 6 months; last commit <date>
- **Health:** <does it build, do tests pass, is CI green>
## Entry points
| Type | Entry | Handler | Notes |
|---|---|---|---|
| HTTP | `POST /api/orders` | `OrderController:44` | |
| Scheduled | nightly 02:00 | `ReconJob:19` | `[inferred: cron in config]` |
| Event | topic `payments.settled` | `SettlementListener:31` | |
## Module map
| Module | Responsibility | Depends on | Notes |
|---|---|---|---|
## Data
| Store | What lives there | Accessed via | Shared with |
|---|---|---|---|
## Integrations
| System | Direction | Protocol | Where configured | Owner |
|---|---|---|---|---|
## Test topology
- **Location:** · **Kinds:** · **Count:** · **Runtime:** · **Gates merge:** yes/no
- **Coverage of the area we're changing:** <the answer that matters>
## Config and environments
| Environment | Config source | Notes |
|---|---|---|
## Churn hotspots
| File | Commits (12mo) | Why it matters |
|---|---|---|
## Landmines
| What | Where | Why it matters | Confidence |
|---|---|---|---|
## The five questions
Answer the five from step 10 here, cited.
## Gaps
<What you could not establish, and what would resolve it.>
Depth-first drift. You open one interesting file and lose an hour. Note it as worth revisiting and move on — the map is the deliverable.
Mapping the whole monorepo. Above ~50,000 files, "I mapped the repo" isn't credible. Scope to a subtree and say so in the Scope section.
Trusting the README. It records what was true when someone last cared. CI config is ground truth; the README is a hypothesis.
Recording structure instead of meaning. "There is a services package containing 14 services" is a directory listing. Which ones matter, and why, is a map.
Confident silence about gaps. Omission reads as absence. A section you couldn't investigate must appear, labelled.
Skipping non-HTTP entry points. Batch jobs, queue consumers, and schedulers are where the surprises are.
What SKILL.md sets; muted values are Claude Code's defaults
34 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.npx claudepluginhub rpraharaj/forward-deployed-engineer --plugin fde-coreOther plugins' skills for the same job