360 Secure SkillHub
360 安全技能中心

rust-build-check

在 agent-browser 项目根目录运行 cargo check,快速发现 CLI 的编译错误和警告;报告文件行号、消息,并在明显时给出修复建议,不执行构建或格式化。

eohmig
eohmig
热度 14.83
最近更新 2026-09-20 04:22:29
分类:开发依赖:代码执行应用场景:调试排错 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add rust-build-check
Metadata
name
rust-build-check
description
Run cargo check on the agent-browser CLI to catch compile errors and warnings before committing
disable-model-invocation
true

rust-build-check

Run a fast compile check on the agent-browser Rust CLI without building binaries.

Steps

  1. Change to the agent-browser project root:

    cd C:/Users/eohmig/agent-browser
    
  2. Run the check:

    cargo check --manifest-path cli/Cargo.toml
    
  3. If there are errors or warnings, report them to the user with:

    • The file and line number
    • The error/warning message
    • A suggested fix if obvious
  4. If the check passes cleanly, confirm with:

    ✓ cli/ compiles cleanly — no errors or warnings.
    

Notes

  • This only runs cargo check, not cargo build (much faster).
  • Do NOT run cargo fmt here — that's a separate concern.
  • If cargo is not in PATH, tell the user to install Rust via rustup.