Skip to content

DennySORA/Ops-Tools

Repository files navigation

Ops-Tools

A robust Rust-based CLI toolset designed for efficient DevOps workflows.

繁體中文 | 简体中文 | 日本語

Screenshot

Quick Overview

Category Feature Description
Upgrade System Updater Cross-platform system maintenance (Linux APT / macOS Homebrew + tooling)
Upgrade AI Tool Upgrader Batch update Claude Code, Codex, Gemini CLI
Upgrade Rust Upgrader Upgrade Rust toolchain + cargo tools
Upgrade Package Manager Install/update nvm, pnpm, Rust, Go, kubectl, k9s, tmux, etc.
Build Rust Builder Cross-platform Rust binaries (cargo/cross, 30+ targets)
Build Container Builder Docker/Buildah multi-arch builds (x86, arm64, armv7, Jetson)
Build CUDA ML Builder Source-build ML packages (PyTorch, Flash Attention, xFormers)
AI MCP Manager Manage MCP servers for Claude/Codex/Gemini
AI Skill Installer Install AI CLI extensions (Claude/Codex/Gemini)
AI Prompt Generator 4-step LLM workflow with progress tracking
Infra Terraform Cleaner Remove .terraform, .terragrunt-cache and lock files
Infra Kubeconfig Manager tmux window-isolated kubeconfig
Security Security Scanner Run gitleaks, trufflehog, git-secrets, trivy, semgrep

Menu Structure

The interactive menu groups features into 5 categories with smart ordering based on usage frequency:

Common (sorted by usage)
  System Updater, AI Tool Upgrader, ...

Categories
  Build       — Rust Builder, Container Builder, CUDA ML Builder
  AI          — MCP Manager, Skill Installer, Prompt Generator
  Upgrade     — System Updater, AI Tool Upgrader, Rust Upgrader, Package Manager
  Infra       — Terraform Cleaner, Kubeconfig Manager
  Security    — Security Scanner

Settings    — Language, Common actions count, Pin management

Pinned items appear at the top. Common actions are auto-sorted by how often you use them.

Features

System Updater

Cross-platform system maintenance with platform-aware workflows:

  • Modes: Full update, Scan only, Cleanup, Verify, Backup
  • Profiles: Default (full), Safe (no reboot, conservative), Aggressive (deep cleanup)
  • Linux workflow: APT upgrade, DGX kernel/driver, Snap/Flatpak/Docker, tool updates (nvm, bun, deno, pipx, conda, pnpm, Rust, uv), cache cleanup, verification, reboot decision
  • macOS workflow: Homebrew update/upgrade, conservative softwareupdate, tool updates, cache cleanup, verification, backup snapshots
  • DGX auto-detection: CUDA version, GPU arch, driver/kernel packages detected at runtime from nvcc, nvidia-smi, dpkg
  • Platform detection: auto-detects Linux vs macOS at runtime and skips unsupported steps cleanly
  • Config: update.toml or ~/.config/update/config.toml (see update.example.toml)
  • Dry-run mode for previewing changes

AI Tool Upgrader

Batch upgrades for AI code assistants:

  • Claude Code (@anthropic-ai/claude-code)
  • OpenAI Codex (@openai/codex) — supports source build from local repo
  • Google Gemini CLI (@google/gemini-cli)

Package Manager (macOS / Linux)

Install, remove, and update common tools with an interactive checklist:

  • nvm (installs latest Node.js), pnpm, Rust (via rustup), Go (latest official archive)
  • Terraform, kubectl, kubectx, k9s, git, uv (installs latest Python)
  • tmux (includes TPM + tmux.conf setup), vim (includes vim-plug + molokai config)
  • ffmpeg (build script on Linux, Homebrew on macOS)

Rust Upgrader

Upgrade Rust toolchain and cargo tools:

  • Checks rustc, cargo, rustup versions
  • Installs missing cargo tools (cargo-edit, cargo-update, cargo-outdated, cargo-audit)
  • 6-step upgrade: rustup self-update, rustup update, cargo install-update, cargo upgrade, cargo outdated, cargo audit

CUDA ML Builder

Source-build CUDA-accelerated ML packages for your exact GPU:

  • Packages: PyTorch, TorchVision, TorchAudio, Flash Attention, xFormers, FlashInfer, BitsAndBytes, ExLlamaV2, AutoGPTQ, AutoAWQ, llama-cpp-python, CTranslate2, TensorRT, Transformer Engine, DeepSpeed, vLLM, CuPy, Unsloth
  • Modes: Build from source, Install from cache, Status, Clean
  • Auto-detects CUDA version, GPU architecture, and build optimizations (ccache, Ninja, clang, mold)
  • Isolated build venv at ~/.ml-packages/

MCP Manager

Manages MCP servers for Claude, Codex, and Gemini CLI:

MCP Tool Description
sequential-thinking Sequential Thinking
context7 Documentation Query
chrome-devtools Chrome DevTools
kubernetes K8s Management
tailwindcss Tailwind CSS
arxiv-mcp-server arXiv Paper Search & Download
github GitHub Integration
cloudflare-* Cloudflare MCP Servers

Optional MCP Credentials (build-time via .env):

  1. cp .env.example .env
  2. Fill in the values you need
  3. Build with cargo build --release

Available options:

  • Context7: set CONTEXT7_API_KEY
  • GitHub: set GITHUB_PERSONAL_ACCESS_TOKEN (required), optional GITHUB_MCP_MODE, GITHUB_HOST, GITHUB_TOOLSETS
  • Cloudflare: set enable_cloudflare_mcp=true (OAuth during install)
  • arXiv: set ARXIV_STORAGE_PATH (default ~/.arxiv-papers)

Skill Installer

Install extensions for AI CLI tools:

CLI Extension Format Install Path
Claude Code Plugins + Skills ~/.claude/plugins/, ~/.claude/skills/
OpenAI Codex Skills (SKILL.md) ~/.codex/skills/
Google Gemini Extensions (TOML) ~/.gemini/extensions/

Available extensions: ralph-wiggum, security-guidance, frontend-design, code-review, pr-review-toolkit, commit-commands, writing-rules, claude-mem, loop-runner, and more.

See docs/SKILL_INSTALLER.md for development guide.

LLM Prompt Generator

Generate and execute 4-step prompts for LLM workflows:

  • Commands: Generate, Run, Status, Validate, YAML Prompt
  • 4-step workflow: P1 (implement & deploy), P2 (E2E validation), P3 (refactor & optimize), P4 (regression test)
  • Progress tracking with resumable execution

Rust Builder

Build cross-platform Rust binaries:

  • Engines: cargo (native) or cross (containerized cross-compilation)
  • 30+ targets: x86_64-gnu, x86_64-musl, aarch64, i686, powerpc64le, wasm32, and more
  • Auto-installs missing rustup targets

Container Builder

Build multi-architecture container images:

  • Engines: Docker (buildx) or Buildah (daemonless)
  • Architectures: x86_64, arm64, armv7, Jetson Nano
  • Auto-detects Dockerfile/Containerfile variants
  • Registry push with saved preferences

Terraform Cleaner

Intelligently cleans Terraform/Terragrunt cache:

  • .terragrunt-cache, .terraform, .terraform.lock.hcl
  • Deduplicates overlapping paths to avoid redundant deletions

Kubeconfig Manager

tmux window-isolated kubeconfig for safe parallel cluster work:

  • Setup, Cleanup, List, Cleanup All
  • Prevents accidental cross-cluster context switching

Security Scanner

Installs and runs strict security scans against the current Git repo:

  • gitleaks, trufflehog, git-secrets (history + working tree)
  • trivy (SCA + misconfig), semgrep (SAST)
  • Auto-install via package managers or GitHub releases
  • Scans only git-tracked files, respects .gitignore

Installation

Install Script (Linux / macOS)

curl -fsSL https://raw.githubusercontent.com/DennySORA/Ops-Tools/main/install.sh | bash

Manual Download

Download pre-built binaries from the Releases page:

  • Linux x86_64
  • macOS x86_64 / arm64 (Apple Silicon)
  • Windows x86_64

Build from Source

cargo build --release
./target/release/tools

# Optional: configure MCP credentials
cp .env.example .env
# Edit .env, then rebuild

Internationalization

4 languages supported — selected at first launch, changeable from Settings:

  • English
  • 繁體中文 (Traditional Chinese)
  • 简体中文 (Simplified Chinese)
  • 日本語 (Japanese)

Language preference is saved to:

  • Linux: ~/.config/ops-tools/config.toml
  • macOS: ~/Library/Application Support/ops-tools/config.toml
  • Windows: %APPDATA%\ops-tools\config.toml

Contributing

Contributions are welcome! Please submit a Pull Request or open an Issue.

See CONTRIBUTING.md for development guidelines.

License

MIT License

About

rust devops cli terraform terragrunt ai-tools mcp-server security-scanner clean-code automation

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors