SuperAPI AI 工具集

mf

编程与开发

查看项目

更新于 10-16 06:48

技能介绍

用途:这是 Module Federation(MF)的一体化技能,当用户提出任何与 MF 相关的问题时使用,涵盖概念、配置、运行时 API、共享依赖、类型错误、运行时错误等。

主要能力:技能先解析 $ARGUMENTS,将其映射到 reference/ 目录下的参考文件,再读取并执行该文件中的指令。支持的子命令(不区分大小写)及别名包括:docs(doc、help、?)、context(ctx、info、status)、module-info(module、remote、manifest)、integrate(init、setup、add)、type-check(types、ts、dts)、shared-deps(shared、deps、singleton)、perf(performance、hmr、speed)、config-check(config、plugin、exposes)、bridge-check(bridge、sub-app)、runtime-error(runtime-code、runtime-008、runtime-001、remote-entry)。

使用方式:若未给出明确子命令,则根据完整输入中的信号词判断意图并匹配参考文件,例如涉及 MF 概念/API/配置选项对应 docs,涉及 integrate/add MF/setup/scaffold/new project 对应 integrate,涉及 type error/TS error/@mf-types/dts/typescript 对应 type-check,涉及 shared/singleton/duplicate/antd/transformImport 对应 shared-deps,涉及 slow/HMR/performance/build speed/ts-go 对应 perf,涉及 plugin/asyncStartup/exposes key/config 对应 config-check,涉及 bridge/sub-app/export-app/createRemoteAppComponent 对应 bridge-check,涉及 RUNTIME-001、RUNTIME-008、runtime error code、remote entry load failed、ScriptNetworkError、ScriptExecutionError、container missing、window[remoteEntryKey] 对应 runtime-error,涉及 manifest/remoteEntry URL/module info/publicPath 对应 module-info,涉及 context/what is configured/MF role/bundler 对应 context。若仍无法判断,则向用户展示子命令表并请其选择。

执行流程:读取与 SKILL.md 同目录的 reference/ 下匹配文件,执行其中全部指令,并将剩余参数(子命令之后的全部内容,或意图识别时的完整 $ARGUMENTS)作为 ARGS 传入。

限制:资料未提供具体参考文件内容、支持平台、收费方式或效果说明,暂未提供。