360 Secure SkillHub
360 安全技能中心

rust-build-check

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

分类:开发
eohmig
eohmig
热度 11.18
最近更新 2026-09-20 04:22:29

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add eohmig/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.