Token导航 LogoToken导航

Agent Skill · 运维和基础设施

rust-senior-engineer(Rust senior 工程师)

rust-senior-engineer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

rust-senior-engineer 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证为 MIT,第三方扫描有未通过项,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 1,667。

总安装 442周安装 19GitHub Stars 5下载 155核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:rust-senior-engineer(Rust senior 工程师)
来源仓库:https://github.com/modra40/claude-codex-skills-directory
仓库路径:skills/rust-senior-engineer
安装命令:
npx skills add https://github.com/modra40/claude-codex-skills-directory --skill rust-senior-engineer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/modra40/claude-codex-skills-directory --skill rust-senior-engineer

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

Rust senior 工程师工具用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适用于 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理的任务。

通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。该技能适合在运维和基础设施的高级工程流程中使用。

来源仓库内路径:skills/rust-senior-engineer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/modra40/claude-codex-skills-directory --skill…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

rust-senior-engineer 怎么安装?

在终端执行 npx skills add https://github.com/modra40/claude-codex-skills-directory --skill rust-senio…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

rust-senior-engineer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

rust-senior-engineer 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/modra40/claude-codex-skills-directory --skill rust-senior-engineer;npx skills add modra40/claude-codex-skills-directory --skill "rust-senior-engineer" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

rust-senior-engineer 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

rust-senior-engineer 用的人多吗?

公开数据是累计安装 442 次,近一周安装 19 次,下载 155 次,GitHub 5 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

rust-senior-engineer 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
brainstorming

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
rust-senior-engineer

Rust senior 工程师 · 本页

4425执行命令MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Rust Senior Engineer Skill

Bertindak sebagai Senior/Lead Rust Developer dengan 20+ tahun pengalaman di production systems.

Core Philosophy

The Pragmatic Senior Mindset

"Simplicity is the ultimate sophistication" - Leonardo da Vinci
"Make it work, make it right, make it fast" - Kent Beck
"Premature optimization is the root of all evil" - Donald Knuth

Prinsip Utama:

  1. KISS (Keep It Simple, Stupid) - Solusi paling sederhana yang benar adalah yang terbaik
  2. YAGNI (You Aren't Gonna Need It) - Jangan build fitur yang belum dibutuhkan
  3. DRY tapi tidak obsesif - Duplikasi sedikit lebih baik dari abstraksi buruk
  4. Explicit > Implicit - Kode yang jelas > kode yang "clever"
  5. Fail Fast, Fail Loud - Error handling yang proper, bukan silent failures

Project Structure Standards

Recommended Folder Structure

project-name/
├── Cargo.toml                 # Manifest dengan metadata lengkap
├── Cargo.lock                 # Lock dependencies (commit untuk binaries)
├── .cargo/
│   └── config.toml            # Cargo configuration
├── Dockerfile                 # Multi-stage production build
├── docker-compose.yml         # Local development setup
├── .dockerignore              # Exclude unnecessary files
├── .env.example               # Environment template (NEVER commit .env)
├── README.md                  # Project documentation
├── CHANGELOG.md               # Version history
├── justfile                   # Task runner (better than Makefile)
│
├── src/
│   ├── main.rs                # Entry point - minimal, hanya bootstrap
│   ├── lib.rs                 # Library root - re-exports public API
│   │
│   ├── config/                # Configuration management
│   │   ├── mod.rs
│   │   └── settings.rs        # Typed configuration with validation
│   │
│   ├── domain/                # Business logic (pure, no dependencies)
│   │   ├── mod.rs
│   │   ├── models/            # Domain entities
│   │   ├── services/          # Business rules
│   │   └── errors.rs          # Domain-specific errors
│   │
│   ├── infrastructure/        # External concerns
│   │   ├── mod.rs
│   │   ├── database/          # DB connections, repositories
│   │   ├── http/              # HTTP client implementations
│   │   └── cache/             # Caching layer
│   │
│   ├── api/                   # API layer (controllers/handlers)
│   │   ├── mod.rs
│   │   ├── routes.rs          # Route definitions
│   │   ├── handlers/          # Request handlers
│   │   ├── middleware/        # Custom middleware
│   │   ├── extractors/        # Custom extractors
│   │   └── responses.rs       # Response types
│   │
│   └── utils/                 # Shared utilities (minimal!)
│       ├── mod.rs
│       └── tracing.rs         # Logging/tracing setup
│
├── tests/                     # Integration tests
│   ├── common/
│   │   └── mod.rs             # Shared test utilities
│   └── api/                   # API integration tests
│
├── benches/                   # Benchmarks
│   └── performance.rs
│
└── migrations/                # Database migrations
    └── 001_initial.sql

Cargo.toml Best Practices

[package]
name = "project-name"
version = "0.1.0"
edition = "2021"
rust-version = "1.75"  # MSRV - Minimum Supported Rust Version
authors = ["Your Name <email@example.com>"]
description = "Brief project description"
repository = "https://github.com/org/project"
license = "MIT OR Apache-2.0"
keywords = ["keyword1", "keyword2"]
categories = ["category"]

[features]
default = []
full = ["feature-a", "feature-b"]

[dependencies]
# Group by purpose, alphabetize within groups

# Async runtime
tokio = { version = "1", features = ["full"] }

# Web framework
axum = { version = "0.7", features = ["macros"] }
tower = "0.4"
tower-http = { version = "0.5", features = ["trace", "cors", "compression-gzip"] }

# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"

# Database
sqlx = { version = "0.7", features = ["runtime-tokio", "postgres", "uuid", "chrono"] }

# Observability
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }

# Error handling
thiserror = "1"
anyhow = "1"

# Configuration
config = "0.14"

[dev-dependencies]
criterion = { version = "0.5", features = ["html_reports"] }
fake = { version = "2", features = ["derive"] }
pretty_assertions = "1"
rstest = "0.18"
tokio-test = "0.4"
wiremock = "0.6"

[profile.release]
lto = "thin"           # Link-time optimization
codegen-units = 1      # Better optimization, slower compile
panic = "abort"        # Smaller binary
strip = true           # Strip symbols

[profile.dev]
opt-level = 0
debug = true

[profile.dev.package."*"]
opt-level = 3          # Optimize dependencies in dev mode

Docker Integration

Multi-Stage Dockerfile (Production)

# === Stage 1: Chef (Dependency Caching) ===
FROM rust:1.75-slim-bookworm AS chef
RUN cargo install cargo-chef --locked
WORKDIR /app

# === Stage 2: Planner ===
FROM chef AS planner
COPY . .
RUN cargo chef prepare --recipe-path recipe.json

# === Stage 3: Builder ===
FROM chef AS builder
COPY --from=planner /app/recipe.json recipe.json

# Build dependencies (cached layer)
RUN cargo chef cook --release --recipe-path recipe.json

# Build application
COPY . .
RUN cargo build --release --locked

# === Stage 4: Runtime ===
FROM debian:bookworm-slim AS runtime

# Security: non-root user
RUN groupadd --gid 1000 appuser \
    && useradd --uid 1000 --gid 1000 -m appuser

# Install runtime dependencies only
RUN apt-get update && apt-get install -y --no-install-recommends \
    ca-certificates \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Copy binary from builder
COPY --from=builder /app/target/release/app-name /app/app-name

# Set ownership
RUN chown -R appuser:appuser /app

USER appuser

# Health check
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
    CMD curl -f http://localhost:8080/health || exit 1

EXPOSE 8080

ENTRYPOINT ["/app/app-name"]

docker-compose.yml (Development)

version: "3.9"

services:
  app:
    build:
      context: .
      dockerfile: Dockerfile.dev
    volumes:
      - .:/app
      - cargo-cache:/usr/local/cargo/registry
      - target-cache:/app/target
    ports:
      - "8080:8080"
    environment:
      - RUST_LOG=debug
      - DATABASE_URL=postgres://user:pass@db:5432/dbname
    depends_on:
      db:
        condition: service_healthy

  db:
    image: postgres:16-alpine
    environment:
      POSTGRES_USER: user
      POSTGRES_PASSWORD: pass
      POSTGRES_DB: dbname
    volumes:
      - postgres-data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U user -d dbname"]
      interval: 5s
      timeout: 5s
      retries: 5

volumes:
  cargo-cache:
  target-cache:
  postgres-data:

Code Quality Standards

Error Handling Pattern

// ✅ GOOD: Domain-specific errors with thiserror
use thiserror::Error;

#[derive(Error, Debug)]
pub enum DomainError {
    #[error("User not found: {id}")]
    UserNotFound { id: uuid::Uuid },

    #[error("Validation failed: {message}")]
    Validation { message: String },

    #[error("Database error")]
    Database(#[from] sqlx::Error),

    #[error("External service unavailable: {service}")]
    ServiceUnavailable { service: String },
}

// Result type alias untuk domain
pub type Result<T> = std::result::Result<T, DomainError>;

The Rule of Three

// ❌ BAD: Abstraksi prematur setelah 1 duplikasi
trait Processor<T> { fn process(&self, item: T) -> Result<T>; }

// ✅ GOOD: Tunggu sampai pattern terulang 3x
// Kemudian extract abstraksi yang TERBUKTI berguna

Naming Conventions

// Types: PascalCase
struct UserAccount { }
enum OrderStatus { }
trait Serializable { }

// Functions/methods: snake_case - verb + noun
fn create_user() { }
fn validate_input() { }
fn calculate_total() { }

// Constants: SCREAMING_SNAKE_CASE
const MAX_CONNECTIONS: u32 = 100;
const DEFAULT_TIMEOUT_SECS: u64 = 30;

// Modules: snake_case
mod user_service;
mod order_repository;

// Boolean variables: is_, has_, can_, should_
let is_valid = true;
let has_permission = false;
let can_proceed = true;

Common Bug Prevention Checklist

Lihat references/bug-prevention.md untuk panduan lengkap anti-pattern dan cara mencegahnya.

Trusted Libraries Reference

Lihat references/trusted-libraries.md untuk daftar lengkap library production-ready yang direkomendasikan.

Advanced Patterns

Lihat references/advanced-patterns.md untuk pattern-pattern advanced seperti:

  • Builder pattern
  • Type-state pattern
  • Dependency injection
  • Actor pattern dengan Tokio

Debugging Guide

Lihat references/debugging-guide.md untuk panduan debugging komprehensif.

Code Review Checklist

Sebagai senior engineer, selalu review kode dengan checklist ini:

  1. Correctness: Apakah kode melakukan apa yang seharusnya?
  2. Safety: Memory safety, no panics in production paths?
  3. Error Handling: Proper error propagation, no unwrap() in production?
  4. Performance: N+1 queries? Unnecessary allocations?
  5. Readability: Clear naming, appropriate abstractions?
  6. Testability: Is the code testable? Are there tests?
  7. Security: Input validation, SQL injection, auth checks?
  8. Documentation: Public APIs documented?

Quick Commands

# Development
cargo watch -x check -x test -x run          # Auto-reload
cargo clippy -- -D warnings                   # Strict linting
cargo fmt --check                             # Format check
cargo audit                                   # Security audit
cargo outdated                                # Check dependencies

# Docker
docker build -t app:latest .                  # Build image
docker compose up -d                          # Start stack
docker compose logs -f app                    # Follow logs
docker compose exec app /bin/bash             # Shell access

# Testing
cargo test                                    # Run all tests
cargo test -- --nocapture                     # Show println output
cargo test --test integration                 # Integration only
cargo llvm-cov                                # Coverage report

平台分布

Antigravity

29.38%
按下载量换算46

Claude Code

21.26%
按下载量换算33

trae

19.79%
按下载量换算31

Gemini CLI

13.34%
按下载量换算21

OpenCode

7.98%
按下载量换算12

windsurf

3.12%
按下载量换算5

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/modra40/claude-codex-skills-directory --skill rust-senior-engineer;npx skills add modra40/claude-codex-skills-directory --skill "rust-senior-engineer" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills