Dies ist die deutsche MFDoctor-Dokumentation. Technische Bezeichner, CLI-Flags, Regel-IDs und Codebeispiele bleiben unverändert, damit die Inhalte zwischen den Sprachen vollständig kompatibel bleiben. Verwenden Sie den Sprachumschalter für die kanonische englische Fassung.
Agenten-Schleife
Agents often treat a clean mfdoctor check as a full green bill of health. That
is wrong. Offline check is tier 1 (config / static). Tier 2 is plugin
emit on a real build plus the workspace gate. Claim green only after both tiers
pass, and never treat incomplete analysis as a pass.
Zwei Stufen
Hard rule: do not claim green from mfdoctor check alone.
Vorgesehene Schleife
-
Discover the versioned CLI contract (no project config, no network):
-
Run tier 1 and keep machine-readable artifacts (do not scrape ANSI terminal output):
-
Load structured fix guidance when needed:
-
Apply a narrow fix for that finding. Rebuild with a MFDoctor adapter so emit evidence exists, then re-run tier 1 as needed.
-
Before claiming green, finish tier 2:
Quiet success prints nothing. Exit codes: 0 policy passed, 1 policy failed,
2 analysis incomplete.
doctor/partial-analysis ist kein Grün
doctor/partial-analysis means MFDoctor
lacked facts it needed — missing MF options, unresolved dynamic imports, unread
sources, budget-limited projects, omitted workspace projects, or missing emit
capabilities (for example Vite without manifest: true).
Treat it as incomplete analysis, not a soft warning you can ignore:
- Do not claim green while a non-suppressed
doctor/partial-analysisremains. - Exit code
2means analysis incomplete — same rule: not a pass. - Prefer restoring evidence (pass
moduleFederation, enable emit/manifests, fix source reads, raise budgets, or use an opt-in runtime trace) over muting the rule. Suppress only when the user asked for intentional governance.
Rules that depend on absent evidence stay honest: for example unresolved
package-capable dynamics suppress false shared/unused certainty in favor of
partial analysis. See the
capability matrix.
Wen das unterstützt
Außerhalb des Umfangs (nicht erfinden)
MFDoctor does not ship, and agents must not invent:
- HTML UI /
--uidashboard - In-browser doctor or runtime agent injection
- A general
--fixthat mutates the project without a finding-driven change - MCP servers, VS Code problem matchers, or
check --watch(tracked separately)
For Module Federation concepts (shared, remotes, Bridge, observability), use the
upstream mf skill. For MFDoctor commands, formats, and exit codes, see the
CLI reference and Get started.