Loading repository data…
Loading repository data…
MikeWuPing / repository
本技能可以为 Claude Code 提供 UEFI Shell 应用程序开发的完整知识库,涵盖从环境搭建到调试部署的全流程. This skill provides Claude Code with complete knowledge for UEFI Shell application development, covering the entire workflow from environment setup to debugging and deployment.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
基于 EmulatorPkg 的 UEFI Shell 应用程序开发技能,为 Claude Code 提供完整的开发指南。
English | 简体中文
本技能为 Claude Code 提供 UEFI Shell 应用程序开发的完整知识库,涵盖从环境搭建到调试部署的全流程。支持 Windows(Visual Studio 2019)和 Linux(GCC)双平台开发环境。
将 SKILL.md 复制到 Claude Code 技能目录:
# Windows
copy SKILL.md %USERPROFILE%\.claude\skills\emulator-uefi-shell-app\
# Linux/macOS
mkdir -p ~/.claude/skills/emulator-uefi-shell-app
cp SKILL.md ~/.claude/skills/emulator-uefi-shell-app/
git clone https://github.com/your-username/emulator-uefi-shell-app-skill.git
cd emulator-uefi-shell-app-skill
# Windows
xcopy /E /I skills\emulator-uefi-shell-app %USERPROFILE%\.claude\skills\emulator-uefi-shell-app
# Linux/macOS
cp -r skills/emulator-uefi-shell-app ~/.claude/skills/
安装后,在 Claude Code 中直接提问即可触发技能:
如何创建一个 UEFI Shell 应用程序?
如何在 EmulatorPkg 中使用 GOP 进行图形渲染?
编译时出现 C4819 中文编码错误怎么解决?
如何在模拟器中调试 Shell 应用?
| 章节 | 内容 |
|---|---|
| 环境搭建 | VS2019/GCC 环境配置、EDK2 源码获取 |
| 编译运行模拟器 | target.txt 配置、build 命令、WinHost/Host 运行 |
| 创建 Shell 应用 | 目录结构、INF 模板、代码模板、GOP 图形模板 |
| 部署到模拟器 | DSC/FDF 文件修改、编译部署流程 |
| 编译错误处理 | 中文编码错误解决方案、警告抑制 |
| 模拟器调试 | Print 调试、DebugLib、VS2019 调试器 |
| 常用协议与库 | GOP 图形协议、SimpleTextIn 输入、内存分配 |
当用户提问涉及以下内容时自动触发:
| 协议 | 头文件 | 用途 |
|---|---|---|
| GOP | Protocol/GraphicsOutput.h | 图形渲染、帧缓冲操作 |
| SimpleTextIn | Protocol/SimpleTextIn.h | 键盘输入 |
| 库 | 头文件 | 用途 |
|---|---|---|
| UefiLib | Library/UefiLib.h | Print 函数、基础 UEFI 功能 |
| BaseMemoryLib | Library/BaseMemoryLib.h | 内存复制、设置、比较 |
| MemoryAllocationLib | Library/MemoryAllocationLib.h | AllocatePool、AllocatePages |
| DebugLib | Library/DebugLib.h | DEBUG 宏、断言 |
| 任务 | 命令 |
|---|---|
| 初始化环境 | edksetup.bat (Windows) / source edksetup.sh (Linux) |
| 编译模拟器 | build -p EmulatorPkg\EmulatorPkg.dsc -a X64 -t VS2019 -b DEBUG |
| 运行模拟器 | Build\Emulator\DEBUG_VS2019\X64\WinHost.exe |
| 清理重编 | build clean && build |
欢迎提交 Issue 和 Pull Request!
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)本项目采用 MIT 许可证。
注意:本技能需要配合 Claude Code 使用。