Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

smith-sysdef

БесплатноБез исполняемых скриптовНе проверен

Generate system definition file for ToolSmith with tested OS commands

jmaglyот jmagly★ 233 звезды на GitHub

Об этом скилле

System Definition Generator

Generate a system definition file that catalogs available commands for the ToolSmith agent. This file describes the local operating system and provides a verified catalog of commands the ToolSmith can use to create tools.

Arguments

  • --categories <list> - Comma-separated categories to test: file-ops, text-processing, hashing, compression, network, process, json (default: all)
  • --output <path> - Output file path (default: .aiwg/smiths/system-definition.yaml)
  • --verify-only - Verify existing definition without regenerating
  • --update - Update existing definition with any new commands

Workflow

Step 1: Ensure Directory Structure

Create the smiths directory if it doesn't exist:

mkdir -p .aiwg/smiths/toolsmith/tools
mkdir -p .aiwg/smiths/toolsmith/scripts

Step 2: Probe System Information

Gather platform details:

# OS and kernel
uname -s        # OS name (Linux, Darwin)
uname -r        # Kernel version
uname -m        # Architecture (x86_64, arm64)

# Distribution (Linux)
cat /etc/os-release 2>/dev/null | grep -E "^(NAME|VERSION)="

# macOS version
sw_vers 2>/dev/null

# Shell
echo $SHELL
$SHELL --version 2>/dev/null | head -1

# User environment
echo $HOME
echo $PATH | tr ':' '\n' | head -5

Step 3: Define Command Categories

Test commands in each category. For each command:

  1. Check if it exists: command -v <cmd> or which <cmd>
  2. Get version if available: <cmd> --version 2>/dev/null | head -1
  3. Note capabilities based on common usage patterns

file-ops - File system operations:

  • find, ls, cp, mv, rm, mkdir, rmdir, chmod, chown, stat, file, ln, touch, du, df

text-processing - Text manipulation:

  • grep, sed, awk, sort, uniq, cut, tr, head, tail, wc, diff, comm, join, paste, column

hashing - Checksums and hashing:

  • md5sum (or md5 on macOS), sha256sum (or shasum -a 256), sha1sum, cksum

compression - Archive and compression:

  • gzip, gunzip, tar, zip, unzip, bzip2, xz

network - Network utilities:

  • curl, wget, nc (netcat), ping, dig, host, ssh, scp, rsync

process - Process management:

  • ps, kill, pkill, pgrep, top, nice, nohup, xargs

json - JSON processing:

  • jq

Step 4: Test Each Command

For each command in the selected categories:

# Check existence
if command -v <cmd> >/dev/null 2>&1; then
  # Get path
  CMD_PATH=$(command -v <cmd>)

  # Get version (various methods)
  VERSION=$(<cmd> --version 2>/dev/null | head -1 || <cmd> -V 2>/dev/null | head -1 || echo "unknown")

  # Mark as tested=true
fi

Step 5: Generate YAML Output

Create .aiwg/smiths/system-definition.yaml:

# System Definition for ToolSmith
# Generated: <timestamp>
# Platform: <os> <version>

platform:
  os: "<linux|darwin|windows>"
  distribution: "<Ubuntu 22.04|macOS 14.0|etc>"
  kernel: "<kernel version>"
  shell: "<shell path>"
  shell_version: "<shell version>"
  architecture: "<x86_64|arm64|etc>"

environment:
  home: "<home directory>"
  path_dirs:
    - /usr/local/bin
    - /usr/bin
    - /bin
  temp_dir: "/tmp"

categories:
  file-ops:
    description: "File system operations"
    commands:
      - name: find
        path: /usr/bin/find
        version: "4.8.0"
        tested: true
        capabilities:
          - recursive search
          - pattern matching
          - exec actions
          - time filters
      # ... more commands

  text-processing:
    description: "Text manipulation tools"
    commands:
      # ... commands

  # ... more categories

Step 6: Report Summary

Output a summary of tested commands:

System Definition Generated
============================
Platform: Ubuntu 22.04 (Linux 5.15)
Shell: /bin/bash 5.1.16
Architecture: x86_64

Categories tested:
  file-ops:        15/15 commands available
  text-processing: 15/15 commands available
  hashing:         4/4 commands available
  compression:     5/7 commands available (missing: xz, bzip2)
  network:         7/9 commands available (missing: nc, dig)
  process:         8/8 commands available
  json:            1/1 commands available

Total: 55/59 commands verified

Output: .aiwg/smiths/system-definition.yaml

Command Capability Mappings

Map each command to its key capabilities for catalog matching:

file-ops

Command Capabilities
find recursive search, pattern matching, exec actions, time/size filters
ls directory listing, detailed output, sorting, hidden files
cp copy files, recursive copy, preserve attributes
mv move/rename files, force overwrite
rm remove files, recursive delete, force delete
mkdir create directories, create parents
chmod change permissions, recursive
chown change ownership
stat file metadata, timestamps
file file type detection
ln symbolic links, hard links
touch create files, update timestamps
du disk usage, summarize
df filesystem space

text-p

Полный SKILL.md на GitHub

Установить smith-sysdef в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл smith-sysdef?

Generate system definition file for ToolSmith with tested OS commands

Как установить скилл smith-sysdef?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл smith-sysdef запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить smith-sysdef с