rust-cli

使用 Cargo 和 clap 构建、测试、审查并发布 Rust 命令行应用程序,关注输出可靠性、正确的退出码、清晰的帮助文本,并包含集成测试。

仓库最近推送
GitHub Stars
313
Forks
42
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "rust-cli":https://skillpi.com/zh/skills/deepskill-acba70949268be9a1a29ca817c6d31254040f867ddb5165408377509103b5e02。安装前核对上游来源和版本:https://github.com/ChrisTitusTech/titus-ai。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

使用 Cargo 和 clap 构建、测试、审查并发布 Rust 命令行应用程序,关注输出可靠性、正确的退出码、清晰的帮助文本,并包含集成测试。

0 下载

介绍来源: third_party · ChrisTitusTech · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: rust-cli
description: Build, test, review, and release Rust command-line applications using Cargo and clap, with reliable output, exit codes, help text, and integration tests.

rust-cli

Workflow

  1. Gather Cargo workspace, command, flag, and test context.
  2. Determine user-facing CLI behavior and compatibility impact.
  3. Create rollback by keeping changes scoped and tests focused.
  4. Implement the smallest parser, command, or library change.
  5. Validate formatting, linting, tests, help text, and exit codes.

Diagnostics

cargo metadata --no-deps
cargo fmt --check
cargo clippy -- -D warnings
cargo test
cargo run -- --help
cargo run -- <command> --help

Safety Rules

  • Keep parsing, command execution, and reusable logic separated.
  • Print normal output to stdout and diagnostics to stderr.
  • Never change CLI output formats casually if scripts may depend on them.
  • Return non-zero exit codes for failed operations.
  • Follow existing crate and workspace conventions before adding abstractions.

Validation

  • cargo fmt --check passes.
  • cargo clippy -- -D warnings passes when feasible.
  • Unit and integration tests pass.
  • --help and command help are accurate.
  • Success and failure paths return expected exit codes.

当前收录版本

0.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 为Rust CLI开发者提供完整的构建、测试、审查、发布工作流
  • 涵盖从代码格式化到集成测试的全链路质量保障
触发精准90/100

亮点

  • 触发词精准覆盖Cargo和clap生态的核心操作场景
  • description位置正确且内容完整无截断
结构规范95/100

亮点

  • 五步工作流设计清晰,具备明确的阶段划分和出口条件
  • Diagnostics部分提供可直接执行的端到端命令示例
执行可靠90/100

亮点

  • 所有工具调用均基于Rust官方生态,来源可靠
  • Safety Rules有效预防CLI输出格式破坏性变更
证据可验 (前四项均值)90/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。