os-scripting
यह क्या करती है
यह एक toolkit है जो system scripts (ऐसे commands जिन्हें आपका कंप्यूटर अपने आप चलाता है) की समस्याएँ ठीक करने और operating system को संभालने में मदद करता है। यह errors खोजने, बेहतर scripts बनाने और काम अपने आप करवाने में सहायता करता है।
कब इस्तेमाल करें
- ✓जब कोई system script उम्मीद के मुताबिक काम न कर रही हो।
- ✓ऐसे scripts बनाने के लिए जो बार-बार होने वाले काम अपने आप करें।
- ✓जब यह समझना हो कि सिस्टम धीमा क्यों है या errors क्यों दिखा रहा है।
Skill का लिंक
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/os-scripting/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस backup script में error ढूँढने में मेरी मदद करो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह आपको कदम-दर-कदम चलाता है: सिस्टम का आकलन, scripts का विश्लेषण, errors खोजना, और नई scripts लिखने में मदद करना। विवरण जाँचने के लिए यह दूसरे tools का भी इस्तेमाल करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
OS/Shell Scripting Troubleshooting Workflow Bundle
Overview
Comprehensive workflow for operating system troubleshooting, shell scripting, and system administration across Linux, macOS, and Windows. This bundle orchestrates skills for debugging system issues, creating robust scripts, and automating administrative tasks.
When to Use This Workflow
Use this workflow when:
- Debugging shell script errors
- Creating production-ready bash scripts
- Troubleshooting system issues
- Automating system administration tasks
- Managing processes and services
- Configuring system resources
Workflow Phases
Phase 1: Environment Assessment
Skills to Invoke
bash-linux- Linux bash patternsbash-pro- Professional bash scriptingbash-defensive-patterns- Defensive scripting
Actions
- Identify operating system and version
- Check available tools and commands
- Verify permissions and access
- Assess system resources
- Review logs and error messages
Diagnostic Commands
# System information
uname -a
cat /etc/os-release
hostnamectl
# Resource usage
top
htop
df -h
free -m
# Process information
ps aux
pgrep -f pattern
lsof -i :port
# Network status
netstat -tulpn
ss -tulpn
ip addr show
Copy-Paste Prompts
Use @bash-linux to diagnose system performance issues
Phase 2: Script Analysis
Skills to Invoke
bash-defensive-patterns- Defensive scriptingshellcheck-configuration- ShellCheck lintingbats-testing-patterns- Bats testing
Actions
- Run ShellCheck for linting
- Analyze script structure
- Identify potential issues
- Check error handling
- Verify variable usage
ShellCheck Usage
# Install ShellCheck
sudo apt install shellcheck # Debian/Ubuntu
brew install shellcheck # macOS
# Run ShellCheck
shellcheck script.sh
shellcheck -f gcc script.sh
# Fix common issues
# - Use quotes around variables
# - Check exit codes
# - Handle errors properly
Copy-Paste Prompts
Use @shellcheck-configuration to lint and fix shell scripts
Phase 3: Debugging
Skills to Invoke
systematic-debugging- Systematic debuggingdebugger- Debugging specialisterror-detective- Error pattern detection
Actions
- Enable debug mode
- Add logging statements
- Trace execution flow
- Isolate failing sections
- Test components individually
Debug Techniques
# Enable debug mode
set -x # Print commands
set -e # Exit on error
set -u # Exit on undefined variable
set -o pipefail # Pipeline failure detection
# Add logging
log() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $*" >> /var/log/script.log
}
# Trap errors
trap 'echo "Error on line $LINENO"' ERR
# Test sections
bash -n script.sh # Syntax check
bash -x script.sh # Trace execution
Copy-Paste Prompts
Use @systematic-debugging to trace and fix shell script errors
Phase 4: Script Development
Skills to Invoke
bash-pro- Professional scriptingbash-defensive-patterns- Defensive patternslinux-shell-scripting- Shell scripting
Actions
- Design script structure
- Implement functions
- Add error handling
- Include input validation
- Add help documentation
Script Template
#!/usr/bin/env bash
set -euo pipefail
# Constants
readonly SCRIPT_NAME=$(basename "$0")
readonly SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
# Logging
log() {
local level="$1"
shift
echo "[$(date '+%Y-%m-%d %H:%M:%S')] [$level] $*" >&2
}
info() { log "INFO" "$@"; }
warn() { log "WARN" "$@"; }
error() { log "ERROR" "$@"; exit 1; }
# Usage
usage() {
cat <<EOF
Usage: $SCRIPT_NAME [OPTIONS]
Options:
-h, --help Show this help message
-v, --verbose Enable verbose output
-d, --debug Enable debug mode
Examples:
$SCRIPT_NAME --verbose
$SCRIPT_NAME -d
EOF
}
# Main function
main() {
local verbose=false
local debug=false
while [[ $# -gt 0 ]]; do
case "$1" in
-h|--help)
usage
exit 0
;;
-v|--verbose)
verbose=true
shift
;;
-d|--debug)
debug=true
set -x
shift
;;
*)
error "Unknown option: $1"
;;
esac
done
info "Script started"
# Your code here
info "Script completed"
}
main "$@"
…
अक्सर पूछे जाने वाले सवाल
system script क्या होती है?
यह एक file होती है जिसमें commands की सूची होती है। आपका कंप्यूटर इन्हें क्रम से चलाकर कोई काम करता है, जैसे files का backup लेना या कोई program install करना।
script को 'debug' करने का क्या मतलब है?
Debug करने का मतलब है script में गलतियाँ खोजकर उन्हें ठीक करना, ताकि वह सही तरीके से काम करे।
कौन से operating systems सपोर्ट होते हैं?
यह Linux, macOS और Windows सिस्टम पर काम करता है।
जानकारी
लेखक का मूल विवरण
Operating system and shell scripting troubleshooting workflow for Linux, macOS, and Windows. Covers bash scripting, system administration, debugging, and automation.
लोकप्रियता
- GitHub स्टार
- 48k
- रैंकिंग में स्थान
- #5392
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
00-andruia-consultant
48kआपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।
007
48kआपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।
10-andruia-skill-smith
48kआपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।
20-andruia-niche-intelligence
48kआपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।