mf-type-check

Diagnose Module Federation type errors in producer generation, consumer pulling, and tsconfig configuration.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/brGuirra/funkonation --skill mf-type-check-brguirra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mf-type-check
Source: https://github.com/brGuirra/funkonation/tree/main/.agents/skills/mf-type-check
Command: npx skills add https://github.com/brGuirra/funkonation --skill mf-type-check-brguirra

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill diagnoses and helps resolve common issues related to Module Federation type checking, ensuring seamless integration and correct type inference across microfrontends.

Core Features & Use Cases

  • Producer Type File Generation Failures: Identifies and guides the user through fixing errors when type definition files (.d.ts) are not generated correctly by the producer.
  • Consumer Type Pulling Issues: Helps troubleshoot scenarios where the consumer application fails to download or locate the necessary type definition files from the producer.
  • TypeScript Configuration: Verifies and assists in configuring tsconfig.json to correctly consume remote module types.
  • Use Case: A developer encounters TypeScript errors after integrating a new remote module, indicating that types are not being recognized. This Skill can pinpoint whether the issue lies in type generation, type pulling, or the consumer's TypeScript configuration.

Quick Start

Use the mf-type-check skill to diagnose type issues in your project root.

Frequently Asked Questions about mf-type-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why does my Module Federation setup fail to generate remote type definition files?

Module Federation type generation fails when the producer's build configuration omits type emission or misconfigures output paths. This Skill analyzes your project structure and dependencies to pinpoint why `.d.ts` files are not generated and provides actionable fixes.

How do I fix TypeScript errors when my consumer app cannot pull remote types?

Consumer type pulling issues usually stem from incorrect remote URLs or network failures preventing `.d.ts` retrieval. This Skill diagnoses your project configuration to identify why the consumer fails to download or locate necessary producer type files and guides resolution.

What tsconfig settings are required for consuming remote types in a microfrontend?

Consuming remote types requires precise `tsconfig.json` paths and module resolution settings to recognize federated modules. This Skill verifies your TypeScript configuration structure and assists in correcting settings to properly consume remote module types.

How to diagnose incorrect TypeScript configuration for Module Federation remote modules?

Diagnosing incorrect TypeScript configuration involves analyzing `tsconfig.json` module resolution and path aliases against your microfrontend structure. This Skill evaluates your project dependencies and settings to identify configuration mismatches preventing correct type inference.

Does this Skill work with my existing Module Federation microservices setup?

Yes, this Skill works with existing Module Federation microservices setups by analyzing your project root, dependencies, and TypeScript configurations. It requires no additional dependencies to evaluate producer type generation, consumer pulling, and tsconfig setups.