agentleFS
zhihong1469zhihong1469/plumb-link/skills/platform/linux-build/SKILL.md

linux-build

Skill0 starsChanged 6 months agoMITView on GitHub

用户输入包含以下关键词时触发: - "构建 Linux" - "编译内核" - "Linux build"

The file

Files
SKILL.md

PL001 - Linux 构建技能

技能信息

项目内容
技能IDPL001
技能名称linux-build
触发关键词linux,build,构建,编译内核
平台支持Linux
状态待设计

触发条件

用户输入包含以下关键词时触发:

  • "构建 Linux"
  • "编译内核"
  • "Linux build"

执行步骤

  1. 参数解析:解析内核配置、目标平台、编译选项
  2. 依赖检查:检查 gcc、make、bison、flex 等工具
  3. 配置内核:执行 make menuconfig 或加载配置文件
  4. 执行编译:执行 make 命令
  5. 打包镜像:生成 boot.img 或 zImage
  6. 返回结果:返回编译状态和输出文件路径

输出格式

{
    "status": "success",
    "summary": "Linux 内核编译完成",
    "evidence": [
        {
            "type": "file",
            "path": "/path/to/zImage",
            "title": "内核镜像"
        },
        {
            "type": "file",
            "path": "/path/to/arch/arm/boot/dts/rk3562.dtb",
            "title": "设备树"
        }
    ],
    "output_files": ["/path/to/zImage", "/path/to/rk3562.dtb"]
}

依赖工具

工具名称用途最低版本检测方法
gcc编译器7.0+gcc --version
make构建工具4.0+make --version
bison语法分析器3.0+bison --version
flex词法分析器2.6+flex --version

安全注意事项

  • 内核编译需要大量磁盘空间(建议 > 20GB)
  • 编译时间较长,请耐心等待

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.