Claude-Code-Linux-Desktop-Slash-Commands
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.
- 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
README
View on GitHub ↗Claude Code Linux Desktop Slash Commands

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:
- Creates workspace directory structure at
~/claude-spaces/desktop-sys-admin - Syncs all 93+ slash commands to
.claude/commands/(organized by category) - Generates
CLAUDE.mdwith workspace configuration and instructions - Gathers current system information (CPU, GPU, RAM, OS, network, dev tools) into
context/system-info.md - Creates user-facing
README.mddocumentation - Initializes a git repository for version control
- Sets up
.gitignorefor 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:
commands/- Organized by category in nested directories (primary source)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:
- Clears the
commands-flat/directory - Recursively finds all
.mdfiles incommands/ - Flattens the directory structure by replacing
/with-in filenames - 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
SuperClaude_Framework
Claude Code framework for structured development — adds 30 slash commands, 20 agents, and MCP server integrations
seomachine
Claude Code workspace for SEO content — researches, writes, analyzes, and optimizes long-form blog posts
claude-code-docs
Local Claude Code documentation slash command — instant offline access, automatic updates, and changelog tracking
learn-faster-kit
Claude Code learning coach — spaced repetition and personalized syllabi for rapid skill mastery