Cargo依赖审计与精简
test-dependency-audit
审计每个 crate 的 Cargo.toml 中未使用、重复或放置不当的依赖项,将共享依赖移至工作区,并在合理处进行特性门控。在被要求审计或精简依赖时使用。
- License 许可
- Apache-2.0
- 所属仓库
- mrchantey/beet
- 最近更新
- 2026-11-14
- Stars
- ★ 134
- Forks
- 8
01 前言 Front Matter
- name
- test-dependency-audit
- description
- Audit every crate's Cargo.toml for unused, duplicate or misplaced dependencies, moving shared deps to the workspace and feature-gating where sensible. Use when asked to audit or slim dependencies.
02 资源文件 1
- 参考文档references/advanced-aws-pentesting.md12.5 KB
03 SKILL.md 正文
Dependency Audit
perform a dependency audit on each crates Cargo.toml.
- ie
beet_netshould have very few required dependencies. http is one of many transports and should not be a hard requirement. - remove unused/duplicate deps.
- dependencies that are shared amongst crates belong in the workspace Cargo.toml
- dependencies that are used by only one crate belong in that crates Cargo.toml
- if a dep would be a better fit in an upstream or downstream crate in the workspace, move it over.
- feature gate where possible, but avoid feature spaghettification
Verification
- verify individual crates after making changes, including with/without the changed features.
- aggressively use tail for all tests to preserve context
04 同仓库更多 Skills
Git Worktree 上游分支同步
worktree-sync-upstream
双向同步主仓库中处于 detached-HEAD 状态的 worktree 与其上游分支:仅对由自己创建的提交进行变基(rebase),对上游分支执行快进(fast-forward);并提供历史记录混乱时的恢复步骤,以及处理 prose 和 secrets.toml 冲突的辅助工具。需在 worktree 内部使用。
Git 工作树批量同步
worktree-sync-all
将 main 分支与每一个 worktree 进行双向同步,依次对每个 worktree 应用 worktree-sync-upstream 技能,然后将它们拉齐对齐。当被要求同步所有 worktree 时使用。
项目全量测试验证
test-the-works
最大化的项目健康巡检。依次运行核心测试、全部测试、示例冒烟测试集、rsx_site 验证以及每一个下游仓库,并修复过程中出现的每一个失败和警告。当被要求运行全套检查(the works)或完整验证项目时使用。
测试套件运行与修复
test-run
运行核心测试套件(just test-core),直至干净、无警告地通过,并提供处理挂起测试和 mold 链接器偶发问题的方案。当被要求运行或修复测试套件时使用。
示例冒烟测试运行
test-examples
运行工作区示例冒烟测试集,以捕捉单元测试遗漏的回归问题,覆盖每一种功能开关组合,使用可自动终止的示例和经 curl 探测的服务器。当被要求运行或验证示例时使用。
内部推理独白
inner-monologue
暂无简介