ClaudeMod
Back to browse
Commands

Linux Desktop Commands

Desktop integration slash commands for Linux — open files in apps, show system notifications, interact with the system tray, and control apps from Claude Code.

Daniel Rosehill26 starsAdded 1 months ago

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

More Commands

Commands

Daniel Rosehill Slash Commands

danielrosehill's practical slash commands for content creators and technical writers — outline generators, SEO optimizers, and document formatter commands.

contentwritingseo+3
by Daniel Rosehill
GitHub
Commands

Scopecraft Command

Task-based slash commands for structured feature development — /create-task, /list-tasks, /next-task drive a disciplined workflow from spec to implementation.

task-managementstructuredfeature-development+2
by Scopecraft
GitHub
Commands

artemgetmann Slash Commands

Artemgetmann's slash commands for rapid development — scaffold generators, boilerplate creators, and refactoring helpers for TypeScript and Python projects.

scaffoldboilerplaterefactoring+3
by Artem Getmann
GitHub

Command Palette

Search for a command to run...