Environment-Specific Bash Mastery
БесплатноБез исполняемых скриптовНе проверенGenerate optimized scripts that utilize the specific hardware (cores, GPU, OS) of the execution environment.
Об этом скилле
SKILL-013: Environment-Specific Bash Mastery
Overview
Executes "Hardware-Aware Execution" by profiling the host machine (CPU cores, RAM availability, OS Version, GPU presence) to generate execution scripts that maximize performance. No more single-threaded scripts on a 12-core beast.
Trigger Phrases
optimize script executionget system profilerun with max performancegenerate hardware aware script
Inputs
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
--output-dir |
string | No | .env |
Directory to save profile |
Outputs
1. SYSTEM_PROFILE.json
Detailed hardware specs:
{
"os": "Microsoft Windows 10.0.22631",
"cpu": {
"name": "AMD Ryzen 9 7900X 12-Core Processor",
"cores": 12,
"logical_processors": 24
},
"memory": {
"total_gb": 64,
"free_gb": 32
},
"flags": {
"has_cuda": true,
"has_avx2": true,
"is_wsl": false
}
}
2. OPTIMIZED_FLAGS.env
Environment variables ready to be sourced:
export MAKE_JOBS=24
export OMP_NUM_THREADS=24
export NODE_OPTIONS="--max-old-space-size=60000"
export PYTHON_MULTIPROCESSING=1
Preconditions
- PowerShell access to WMI/CIM or system commands.
Implementation
Script: detect_env.ps1
- Queries WMI (Win32_Processor, Win32_OperatingSystem) to get raw stats.
- Detects Capabilities: Checks for
nvidia-smito infer CUDA. - Calculates Optimal Settings:
- Compile Jobs (
-j): Logical Cores. - Node Memory: 90% of Total RAM.
- Compile Jobs (
- Outputs JSON & ENV profiles.
Use Cases
- High Performance: Writing a Python script that uses
multiprocessingto crunch data, utilizing all 12 cores of "The Beast". - System Hardening: Generating backup scripts that know exactly which drive is the encrypted local backup based on volume labels.
Установить Environment-Specific Bash Mastery в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Environment-Specific Bash Mastery?
Generate optimized scripts that utilize the specific hardware (cores, GPU, OS) of the execution environment.
Как установить скилл Environment-Specific Bash Mastery?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Environment-Specific Bash Mastery запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic