RepoDepot
Slash Command

Claude-Code-Linux-Desktop-Slash-Commands

by danielrosehill
Linux desktop slash commands for Claude Code — automate sysadmin, optimization, and configuration tasks

This collection of Claude Code slash commands streamlines Linux desktop system administration, optimization, and configuration for developers and power users. It provides over 90 pre-defined commands, organized by category, along with a setup script to create a dedicated workspace with system context. The workspace automatically gathers system information like CPU, GPU, RAM, and OS for informed agent interactions.

View on GitHub ↗
Key features
  • Over 90 pre-defined commands for Linux desktop tasks
  • Automated workspace setup with `CLAUDE.md` and system context
  • Categorized commands for AI tools, audio, backup, security, and more
  • Non-destructive sync script to update commands and system info
  • Flattening script for single-directory command deployment
Languages
Shell100%
Top contributors
Topics
claude-codelinux-desktopslash-commands

Claude Code Linux Desktop Slash Commands

Claude Code Linux Platform Claude Code Projects GitHub Index

alt text

A collection of slash commands for Claude Code CLI designed to streamline system administration, optimization, and configuration tasks on Linux desktop systems.

Also provided: a script for setting up a repo-style workspace for Claude Code to focus on sysadmin tasks. The script populates a CLAUDE.md describing the purpose and creates (or on subsequent runs non-destructively syncs) the slash command library in this repo.

Automated Workspace Setup

This repository includes a setup script that creates a dedicated Claude Code workspace for desktop system administration at ~/claude-spaces/desktop-sys-admin.

Run the setup script:

bash ~/repos/github/Claude-Code-Linux-Desktop-Slash-Commands/setup-desktop-sysadmin-workspace.sh

What the script does:

  1. Creates workspace directory structure at ~/claude-spaces/desktop-sys-admin
  2. Syncs all 93+ slash commands to .claude/commands/ (organized by category)
  3. Generates CLAUDE.md with workspace configuration and instructions
  4. Gathers current system information (CPU, GPU, RAM, OS, network, dev tools) into context/system-info.md
  5. Creates user-facing README.md documentation
  6. Initializes a git repository for version control
  7. Sets up .gitignore for temporary files

Using the workspace:

cd ~/claude-spaces/desktop-sys-admin
claude-code

Once in the workspace, Claude Code has full context about your system and access to all slash commands. Type / to see available commands organized by category.

Updating the workspace:

Re-run the setup script to sync the latest slash commands and refresh system information:

bash ~/repos/github/Claude-Code-Linux-Desktop-Slash-Commands/setup-desktop-sysadmin-workspace.sh

The script uses rsync to efficiently update only changed files while preserving the directory structure.

Command Structure & Organization

Two Directory Structures

This repository maintains slash commands in two parallel structures:

  1. commands/ - Organized by category in nested directories (primary source)
  2. commands-flat/ - Flattened structure with all commands in one directory

Flattening Workflow

The flatten-commands.sh script converts the categorized structure into a flat structure for easy deployment to Claude Code workspaces.

Run the flattening script:

bash ~/repos/github/Claude-Code-Linux-Desktop-Slash-Commands/flatten-commands.sh

What the script does:

  1. Clears the commands-flat/ directory
  2. Recursively finds all .md files in commands/
  3. Flattens the directory structure by replacing / with - in filenames
  4. Copies all commands to commands-flat/

Example transformation:

commands/system-health/system-upgrade.md → commands-flat/system-health-system-upgrade.md
commands/security/probe-vulnerabilities.md → commands-flat/security-probe-vulnerabilities.md

When to use flattening:

  • Before copying commands to a Claude Code workspace
  • When you need all commands in a single directory
  • For easier deployment without preserving category structure

Note: The setup-desktop-sysadmin-workspace.sh script uses the categorized commands/ structure (not the flattened version) to maintain organization in the workspace.

Categories

AI Tools

Local AI inference (Ollama), GPU configuration, model management, speech-to-text setup, ComfyUI

Audio

PipeWire optimization and audio configuration

Backup

Backup planning, target identification, backup strategies, cloud storage setup (rclone, B2, AWS)

Configuration

Git config, SSH keys, MCP servers, API keys, environment management

Debugging

System diagnostics, troubleshooting, crash analysis, performance debugging

Development Tools

Docker setup, IDE suggestions, VS Code optimization

Filesystem Organization

File organization, folder consolidation, structure optimization

Fonts

Font management, Google Fonts installation

Hardware

Hardware profiling, GPU management, wake device control

Installation

CLI tool installation (gh, pipx, brew, rclone, AWS CLI, B2 CLI)

Management

Repository management utilities

Media

Codec checking and recommendations

Network

LAN scanning, connectivity diagnostics, network troubleshooting

Optimization

System optimization and performance tuning

Package Management

Package cleanup, software evaluation, repository management

Program Management

Application management and organization

Python

pyenv setup, conda environments for data analysis, ROCm, LLM/STT fine-tuning

Repositories

Repository management and version control

Security

Vulnerability scanning, spyware detection, firewall analysis, security auditing

Storage

Storage health monitoring, BTRFS/Snapper checks, RAID configuration, network mounts

System Health

Boot logs, slowdown diagnosis, health checkups, system upgrades, startup services

Utilities

Printer diagnostics, general system utilities

Virtualization

Virtualization capabilities and configuration

Related

Claude Slash Commands - General collection of slash commands for Claude AI

Similar slash commands

Added to RepoDepot ·