소스 정보
- 저장소
- ffsshhttiikk/opencode-agents-skills
- 최근 소스 활동
- 2026년 2월 28일 22:46
- 감지된 SKILL.md 언어
- 영어
- 스타
- 2
- 포크
- 2
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/ffsshhttiikk/opencode-agents-skills --skill bash명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | bash |
| description | Bash shell scripting for automation, system administration, and command-line productivity |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"developers","category":"scripting"} |
When automating tasks, building CLI tools, or managing systems.
#!/bin/bash
# Variables
name="World"
echo "Hello, $name!"
# Command substitution
current_date=$(date +%Y-%m-%d)
files=$(ls)
# Arrays
colors=("red" "green" "blue")
echo "${colors[0]}"
echo "${colors[@]}"
# Dictionaries (bash 4+)
declare -A config
config[host]="localhost"
config[port]="8080"
echo "${config[host]}"
# If statement
if [ "$name" == "admin" ]; then
echo "Welcome admin"
elif [ "$age" -ge 18 ]; then
echo "Adult"
else
echo "Minor"
fi
# File tests
if [ -f "$file" ]; then
echo "Regular file"
fi
if [ -d "$dir" ]; then
echo "Directory"
fi
if [ -z "$var" ]; then
echo "Empty"
fi
# String comparison
if [[ "$str" == *"pattern"* ]]; then
echo "Contains pattern"
fi
# For loop
for i in {1..5}; do
echo "Number: $i"
done
for file in *.txt; do
echo "Processing $file"
done
# While loop
while read line; do
echo "$line"
done < file.txt
# Iterate over array
for color in "${colors[@]}"; do
echo "$color"
done
function greet() {
local name="$1" # local variable
echo "Hello, $name!"
}
greet "World"
# Return value
function get_sum() {
local a=$1
local b=$2
echo $((a + b))
}
result=$(get_sum 5 10)
#!/bin/bash
# $@ = all arguments
# $# = argument count
# $0 = script name
# $1, $2, ... = arguments
while [[ $# -gt 0 ]]; do
case $1 in
-h|--help)
help=true
;;
-n|--name)
name="$2"
shift 2
;;
-v|--verbose)
verbose=true
shift
;;
*)
echo "Unknown: $1"
shift
;;
esac
done
set -e # Exit on error
set -u # Exit on undefined variable
set -o pipefail # Pipeline fails on error
# Trap errors
trap 'echo "Error on line $LINENO"' ERR
# Check command success
if ! command -v git &> /dev/null; then
echo "Git not found"
exit 1
fi
# Awk
awk -F',' '{print $1, $3}' file.csv
awk 'NR>1 {sum+=$2} END {print sum}' file.txt
# Sed
sed 's/old/new/g' file.txt
sed -i 's/old/new/g' file.txt # in-place
sed '/pattern/d' file.txt # delete lines with pattern
# Find
find . -name "*.txt" -type f
find . -mtime -7 # modified in last 7 days
find . -size +1M # larger than 1MB
# xargs
find . -name "*.log" -type f | xargs rm
find . -name "*.txt" | xargs -I {} mv {} ./backup/
# Check if command exists
command -v docker >/dev/null 2>&1 || { echo "Docker required"; exit 1; }
# Heredoc
cat << EOF > config.txt
name=$name
value=$value
EOF
# Parallel execution
cat hosts | xargs -P 10 -I {} ssh {} 'uptime'
# Progress bar
for i in {1..100}; do
echo -ne "Progress: $i%\r"
sleep 0.1
done
SOC 직업 분류 기준