用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-rust --skill rust-cli命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | rust-cli |
| description | Build professional CLI applications with clap and TUI |
| sasmp_version | 1.3.0 |
| bonded_agent | rust-project-agent |
| bond_type | SECONDARY_BOND |
| version | 1.0.0 |
Build professional command-line applications with clap, colored output, and interactive features.
[dependencies]
clap = { version = "4", features = ["derive"] }
anyhow = "1"
use clap::{Parser, Subcommand};
#[derive(Parser)]
#[command(name = "myapp", version, about)]
struct Cli {
#[arg(short, long)]
verbose: bool,
#[command(subcommand)]
command: Commands,
}
#[derive(Subcommand)]
enum Commands {
Init { name: String },
Build { #[arg(short, long)] release: bool },
}
fn main() -> anyhow::Result<()> {
let cli = Cli::parse();
match cli.command {
Commands::Init { name } => println!("Creating: {}", name),
Commands::Build { release } => println!("Building..."),
}
Ok(())
}
use colored::Colorize;
println!("{}", "Success!".green().bold());
println!("{}", "Error!".red());
use indicatif::{ProgressBar, ProgressStyle};
let pb = ProgressBar::new(100);
pb.set_style(ProgressStyle::default_bar()
.template("{bar:40} {pos}/{len}")?);
for _ in 0..100 {
pb.inc(1);
}
pb.finish();
use dialoguer::{Confirm, Input, Select};
let name: String = Input::new()
.with_prompt("Project name")
.interact_text()?;
if Confirm::new().with_prompt("Continue?").interact()? {
// proceed
}
fn main() {
if let Err(e) = run() {
eprintln!("{}: {}", "error".red(), e);
std::process::exit(1);
}
}
use assert_cmd::Command;
use predicates::prelude::*;
#[test]
fn test_help() {
Command::cargo_bin("myapp").unwrap()
.arg("--help")
.assert()
.success();
}
| Problem | Solution |
|---|---|
| Args not parsed | Add features = ["derive"] |
| Colors not showing | Check terminal support |