/context-load-fedora
Load Fedora Linux expertise with system information and configuration guidance
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/context-load-fedora
Context preview
What this command does when you run it.
Load Fedora Linux expertise with system information and configuration guidance
Command definition
context-load-fedora.mdallowed-tools: Bash(cat:*), Bash(rpm:*), Bash(dnf:*), Bash(systemctl:*), Bash(hostnamectl:*), Bash(date:*), Bash(jq:*), Read, WebFetch, Task, TodoWrite
name: "Context Load Fedora"
description: "Load Fedora Linux expertise with system information and configuration guidance"
author: "wcygan"
tags: ["context","ops"]
version: "1.0.0"
created_at: "2025-07-14T00:00:00Z"
updated_at: "2025-07-14T00:00:00Z"
Context
- Session ID: !`date +%s%N`
- OS Detection: !`cat /etc/os-release 2>/dev/null | grep -E "^(NAME|VERSION_ID|PRETTY_NAME)" | head -3`
- System Type: !`hostnamectl --json=short 2>/dev/null | jq -r .OperatingSystemPrettyName // "Unknown"`
- Fedora Version: !`rpm -E %fedora 2>/dev/null || echo "Not Fedora"`
- Kernel Version: !`uname -r`
- Architecture: !`uname -m`
- SELinux Status: !`getenforce 2>/dev/null || echo "Not available"`
Fedora System Detection
!`if [ -f /etc/fedora-release ] || grep -q "Fedora" /etc/os-release 2>/dev/null; then echo "FEDORA_DETECTED=true"; else echo "FEDORA_DETECTED=false"; fi`
Your task
IF FEDORA_DETECTED == "false": PRINT "❌ This system is not running Fedora Linux. This command is designed specifically for Fedora systems." PRINT "Detected OS: $(cat /etc/os-release 2>/dev/null | grep PRETTY_NAME | cut -d= -f2 | tr -d '"' || echo 'Unknown')" EXIT gracefully
ELSE: PRINT "✅ Fedora Linux detected! Loading expertise and system information..."
**DEPLOY 8 PARALLEL AGENTS** for comprehensive Fedora expertise:
1. **System Architecture Agent**: Map Fedora's filesystem hierarchy, systemd units, and core system components 2. **Package Management Agent**: Deep dive into DNF, RPM, Flatpak, and repository management 3. **Configuration Agent**: Analyze system configuration files, networking, and service management 4. **Security Agent**: SELinux policies, firewall rules, and security best practices 5. **Performance Agent**: System tuning, monitoring tools, and optimization techniques 6. **Troubleshooting Agent**: Log analysis, debugging tools, and common issue resolution 7. **Development Agent**: Development tools, compilers, and Fedora-specific build processes 8. **Administration Agent**: User management, updates, and system maintenance procedures
**Phase 1: System Information Gathering**
COLLECT current system state:
- Installed packages: !`dnf list installed | wc -l` packages
- Enabled repositories: !`dnf repolist enabled | grep -v "repo id" | wc -l` repos
- Running services: !`systemctl list-units --type=service --state=running | wc -l` services
- System uptime: !`uptime -p`
**Phase 2: Create Fedora Expertise Knowledge Base**
CREATE /tmp/fedora-expertise-$SESSION_ID.json with:
{
"essential_directories": {
"/etc/dnf/": "DNF package manager configuration",
"/etc/yum.repos.d/": "Repository definitions",
"/etc/systemd/": "Systemd service configurations",
"/var/log/": "System and application logs",
"/usr/share/doc/": "Package documentation",
"/etc/selinux/": "SELinux configuration",
"/etc/sysconfig/": "System configuration files"
},
"critical_commands": {
"dnf": "Package management (install, update, search)",
"rpm": "Low-level package operations",
"systemctl": "Service management",
"journalctl": "System log viewing",
"firewall-cmd": "Firewall configuration",
"ausearch/aureport": "SELinux audit logs",
"getsebool/setsebool": "SELinux boolean management",
"restorecon": "Fix SELinux contexts"
},
"configuration_files": {
"/etc/dnf/dnf.conf": "DNF configuration",
"/etc/selinux/config": "SELinux mode",
"/etc/systemd/system.conf": "Systemd settings",
"/etc/fstab": "Filesystem mounts",
"/etc/hosts": "Static hostname mappings",
"/etc/hostname": "System hostname",
"/etc/nsswitch.conf": "Name service switch config"
}
}**Phase 3: Load Fedora-Specific Documentation**
FETCH documentation from official sources:
- Fedora Documentation: https://docs.fedoraproject.org/
- Fedora Magazine best practices
- RedHat Enterprise Linux shared knowledge
- Community troubleshooting guides
**Phase 4: Common Tasks Quick Reference**
GENERATE task-specific guidance:
**Package Management:**
# Update system
sudo dnf update
# Search packages
dnf search <package>
# Install package
sudo dnf install <package>
# Remove package
sudo dnf remove <package>
# Clean cache
sudo dnf clean all
# Show package info
dnf info <package>
**Service Management:**
# Start/stop/restart service
sudo systemctl start|stop|restart <service>
# Enable/disable at boot
sudo systemctl enable|disable <service>
# Check service status
systemctl status <service>
# View service logs
journalctl -u <service>
**SELinux Management:**
# Check SELinux status
getenforce
# Set SELinux mode
sudo setenforce 0|1
# View SELinux contexts
ls -Z
# Restore file contexts
sudo restorecon -Rv /path
# Check SELinux denials
sudo ausearch -m avc -ts recent
**Phase 5: Create Personalized Learning Plan**
Based on your current system, recommend:
1. Areas to explore based on installed packages 2. Security hardening steps specific to your configuration 3. Performance optimizations for your hardware 4. Useful tools not yet installed
**Phase 6: Interactive Q&A Mode**
OFFER to answer specific questions about:
- System administration tasks
- Troubleshooting specific issues
- Best practices for your use case
- Migration from other distributions
SAVE expertise session to: /tmp/fedora-expertise-$SESSION_ID.json ARCHIVE to: ~/.fedora-expertise-history/
PRINT "🎓 Fedora expertise loaded! You now have access to:" PRINT "- System-specific configuration knowledge" PRINT "- Common commands and their usage" PRINT "- Troubleshooting procedures" PRINT "- Best practices for Fedora $FEDORA_VERSION" PRINT "" PRINT "Ask me anything about your Fedora system!"
FINALLY: IF session completed: ARCHIVE knowledge base for future reference CLEAN temporary files REPORT key insights discovered
Read more
allowed-tools: Bash(cat:*), Bash(rpm:*), Bash(dnf:*), Bash(systemctl:*), Bash(hostnamectl:*), Bash(date:*), Bash(jq:*), Read, WebFetch, Task, TodoWrite name: "Context Load Fedora" description: "Load Fedora Linux expertise with system information and configuration guidance" author: "wcygan" tags: ["context","ops"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
Context
- Session ID: !`date +%s%N`
- OS Detection: !`cat /etc/os-release 2>/dev/null | grep -E "^(NAME|VERSION_ID|PRETTY_NAME)" | head -3`
- System Type: !`hostnamectl --json=short 2>/dev/null | jq -r .OperatingSystemPrettyName // "Unknown"`
- Fedora Version: !`rpm -E %fedora 2>/dev/null || echo "Not Fedora"`
- Kernel Version: !`uname -r`
- Architecture: !`uname -m`
- SELinux Status: !`getenforce 2>/dev/null || echo "Not available"`
Fedora System Detection
!`if [ -f /etc/fedora-release ] || grep -q "Fedora" /etc/os-release 2>/dev/null; then echo "FEDORA_DETECTED=true"; else echo "FEDORA_DETECTED=false"; fi`
Your task
IF FEDORA_DETECTED == "false": PRINT "❌ This system is not running Fedora Linux. This command is designed specifically for Fedora systems." PRINT "Detected OS: $(cat /etc/os-release 2>/dev/null | grep PRETTY_NAME | cut -d= -f2 | tr -d '"' || echo 'Unknown')" EXIT gracefully
ELSE: PRINT "✅ Fedora Linux detected! Loading expertise and system information..."
**DEPLOY 8 PARALLEL AGENTS** for comprehensive Fedora expertise:
1. **System Architecture Agent**: Map Fedora's filesystem hierarchy, systemd units, and core system components 2. **Package Management Agent**: Deep dive into DNF, RPM, Flatpak, and repository management 3. **Configuration Agent**: Analyze system configuration files, networking, and service management 4. **Security Agent**: SELinux policies, firewall rules, and security best practices 5. **Performance Agent**: System tuning, monitoring tools, and optimization techniques 6. **Troubleshooting Agent**: Log analysis, debugging tools, and common issue resolution 7. **Development Agent**: Development tools, compilers, and Fedora-specific build processes 8. **Administration Agent**: User management, updates, and system maintenance procedures
**Phase 1: System Information Gathering**
COLLECT current system state:
- Installed packages: !`dnf list installed | wc -l` packages
- Enabled repositories: !`dnf repolist enabled | grep -v "repo id" | wc -l` repos
- Running services: !`systemctl list-units --type=service --state=running | wc -l` services
- System uptime: !`uptime -p`
**Phase 2: Create Fedora Expertise Knowledge Base**
CREATE /tmp/fedora-expertise-$SESSION_ID.json with:
{
"essential_directories": {
"/etc/dnf/": "DNF package manager configuration",
"/etc/yum.repos.d/": "Repository definitions",
"/etc/systemd/": "Systemd service configurations",
"/var/log/": "System and application logs",
"/usr/share/doc/": "Package documentation",
"/etc/selinux/": "SELinux configuration",
"/etc/sysconfig/": "System configuration files"
},
"critical_commands": {
"dnf": "Package management (install, update, search)",
"rpm": "Low-level package operations",
"systemctl": "Service management",
"journalctl": "System log viewing",
"firewall-cmd": "Firewall configuration",
"ausearch/aureport": "SELinux audit logs",
"getsebool/setsebool": "SELinux boolean management",
"restorecon": "Fix SELinux contexts"
},
"configuration_files": {
"/etc/dnf/dnf.conf": "DNF configuration",
"/etc/selinux/config": "SELinux mode",
"/etc/systemd/system.conf": "Systemd settings",
"/etc/fstab": "Filesystem mounts",
"/etc/hosts": "Static hostname mappings",
"/etc/hostname": "System hostname",
"/etc/nsswitch.conf": "Name service switch config"
}
}**Phase 3: Load Fedora-Specific Documentation**
FETCH documentation from official sources:
- Fedora Documentation: https://docs.fedoraproject.org/
- Fedora Magazine best practices
- RedHat Enterprise Linux shared knowledge
- Community troubleshooting guides
**Phase 4: Common Tasks Quick Reference**
GENERATE task-specific guidance:
**Package Management:**
# Update system sudo dnf update # Search packages dnf search <package> # Install package sudo dnf install <package> # Remove package sudo dnf remove <package> # Clean cache sudo dnf clean all # Show package info dnf info <package>
**Service Management:**
# Start/stop/restart service sudo systemctl start|stop|restart <service> # Enable/disable at boot sudo systemctl enable|disable <service> # Check service status systemctl status <service> # View service logs journalctl -u <service>
**SELinux Management:**
# Check SELinux status getenforce # Set SELinux mode sudo setenforce 0|1 # View SELinux contexts ls -Z # Restore file contexts sudo restorecon -Rv /path # Check SELinux denials sudo ausearch -m avc -ts recent
**Phase 5: Create Personalized Learning Plan**
Based on your current system, recommend:
1. Areas to explore based on installed packages 2. Security hardening steps specific to your configuration 3. Performance optimizations for your hardware 4. Useful tools not yet installed
**Phase 6: Interactive Q&A Mode**
OFFER to answer specific questions about:
- System administration tasks
- Troubleshooting specific issues
- Best practices for your use case
- Migration from other distributions
SAVE expertise session to: /tmp/fedora-expertise-$SESSION_ID.json ARCHIVE to: ~/.fedora-expertise-history/
PRINT "🎓 Fedora expertise loaded! You now have access to:" PRINT "- System-specific configuration knowledge" PRINT "- Common commands and their usage" PRINT "- Troubleshooting procedures" PRINT "- Best practices for Fedora $FEDORA_VERSION" PRINT "" PRINT "Ask me anything about your Fedora system!"
FINALLY: IF session completed: ARCHIVE knowledge base for future reference CLEAN temporary files REPORT key insights discovered
A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Other commands on claude-cmd.
- /agent-browser-automation
Automate browser interactions for development testing using Puppeteer MCP
Open command - /agent-prep-merge
Prepare branches for merging across multiple worktrees and coordinate integration
Open command - /agent-persona-accessibility-expert
Transform into accessibility expert for WCAG compliance and inclusive design
Open command - /agent-persona-api-designer
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Open command - /agent-persona-backend-specialist
Transform into backend specialist for scalable API and system design
Open command - /agent-persona-cloud-architect
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies
Open command

