mf
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMF — Module Federation All-in-One Skill
MF —— Module Federation 一站式技能
Step 1: Identify the sub-skill
步骤1:识别子技能
Parse and map to a reference file in the directory (same directory as this file):
$ARGUMENTSreference/| Sub-command (case-insensitive) | Aliases | Reference file |
|---|---|---|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
If no explicit sub-command is found, detect intent from the full input:
| Signal in input | Reference file |
|---|---|
| Question about MF concepts, API, configuration options | |
| "integrate", "add MF", "setup", "scaffold", "new project" | |
| "type error", "TS error", "@mf-types", "dts", "typescript" | |
| "shared", "singleton", "duplicate", "antd", "transformImport" | |
| "slow", "HMR", "performance", "build speed", "ts-go" | |
| "plugin", "asyncStartup", "exposes key", "config" | |
| "bridge", "sub-app", "export-app", "createRemoteAppComponent" | |
| "RUNTIME-001", "RUNTIME-008", "runtime error code", "remote entry load failed", "ScriptNetworkError", "ScriptExecutionError", "container missing", "window[remoteEntryKey]" | |
| "manifest", "remoteEntry URL", "module info", "publicPath" | |
| "context", "what is configured", "MF role", "bundler" | |
If still ambiguous, show the user the sub-command table above and ask them to pick.
解析并映射到目录下的参考文件(与本文件同目录):
$ARGUMENTSreference/| 子命令(大小写不敏感) | 别名 | 参考文件 |
|---|---|---|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
如果未找到明确的子命令,则从完整输入中检测意图:
| 输入中的信号 | 参考文件 |
|---|---|
| 关于MF概念、API、配置选项的问题 | |
| "integrate"、"add MF"、"setup"、"scaffold"、"new project" | |
| "type error"、"TS error"、"@mf-types"、"dts"、"typescript" | |
| "shared"、"singleton"、"duplicate"、"antd"、"transformImport" | |
| "slow"、"HMR"、"performance"、"build speed"、"ts-go" | |
| "plugin"、"asyncStartup"、"exposes key"、"config" | |
| "bridge"、"sub-app"、"export-app"、"createRemoteAppComponent" | |
| "RUNTIME-001"、"RUNTIME-008"、"runtime error code"、"remote entry load failed"、"ScriptNetworkError"、"ScriptExecutionError"、"container missing"、"window[remoteEntryKey]" | |
| "manifest"、"remoteEntry URL"、"module info"、"publicPath" | |
| "context"、"what is configured"、"MF role"、"bundler" | |
如果仍然无法明确,向用户展示上述子命令表格并请他们选择。
Step 2: Load and execute the reference
步骤2:加载并执行参考文件
Read the matched file from the directory (same directory as this SKILL.md).
reference/Execute all instructions in that file, passing the remaining arguments (everything after the sub-command token, or the full if intent-detected) as .
$ARGUMENTSARGS从目录(与本SKILL.md文件同目录)读取匹配的文件。
reference/执行该文件中的所有指令,将剩余参数(子命令标记后的所有内容,或如果是通过意图检测的则为完整的)作为传入。
$ARGUMENTSARGS