[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77KXVPMNWBWMN0T7RY96M3G":3,"skill-same:01M77KXVPMNWBWMN0T7RY96M3G":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M77KXVPMNWBWMN0T7RY96M3G","batch-files",null,"Expert-level Windows batch file (.bat\u002F.cmd) skill for writing, debugging, and maintaining CMD scripts. Use when asked to \"create a batch file\", \"write a .bat script\", \"automate a Windows task\", \"CMD scripting\", \"batch automation\", \"scheduled task script\", \"Windows shell script\", or when working with .bat\u002F.cmd files in the workspace. Covers cmd.exe syntax, environment variables, control flow, string processing, error handling, and integration with system tools.","Reihantt6\u002Fsns-myagent","Reihantt6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F219822095?v=4","01M77KK94PV8B7C2D9XWXNS8DJ","Mohamad Reihan tegar prasetya","01M77KK958QFMTHYXGXFV7KZ79",2,"MIT","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbatch-files\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: batch-files\ndescription: 'Expert-level Windows batch file (.bat\u002F.cmd) skill for writing, debugging, and maintaining CMD scripts. Use when asked to \"create a batch file\", \"write a .bat script\", \"automate a Windows task\", \"CMD scripting\", \"batch automation\", \"scheduled task script\", \"Windows shell script\", or when working with .bat\u002F.cmd files in the workspace. Covers cmd.exe syntax, environment variables, control flow, string processing, error handling, and integration with system tools.'\n---\n\n# Batch Files\n\nA comprehensive skill for creating, editing, debugging, and maintaining Windows batch files (.bat\u002F.cmd) using cmd.exe. Applies to CLI tool development, system administration automation, scheduled tasks, file operations scripting, and PATH-based executable scripts.\n\n## When to Use This Skill\n\n- Creating or editing `.bat` or `.cmd` files\n- Automating Windows tasks (file operations, deployments, backups)\n- Building CLI tools intended for a `bin\u002F` folder on PATH\n- Writing scheduled task scripts (SCHTASKS, Task Scheduler)\n- Debugging batch script issues (variable expansion, error levels, quoting)\n- Integrating batch scripts with external tools (curl, git, Node.js, Python)\n- Scaffolding new batch-based projects with structured templates\n\n## Prerequisites\n\n- Windows NT-based OS (Windows 7 or later)\n- cmd.exe (built-in)\n- Optional: a `bin\u002F` directory on PATH for distributing scripts as commands\n- Optional: PATHEXT configured to include `.BAT;.CMD` (default on Windows)\n\n## Command Interpretation\n\ncmd.exe processes each line through four stages in order:\n\n1. **Variable substitution** — `%VAR%` tokens are replaced with environment variable values. `%0`–`%9` reference batch arguments. `%*` expands to all arguments.\n2. **Quoting and escaping** — Caret `^` escapes special characters (`& | \u003C > ^`). Quotation marks prevent interpretation of enclosed special characters. In batch files, `%%` yields a literal `%`.\n3. **Syntax parsing** — Lines are split into pipelines (`|`), compound commands (`&`, `&&`, `||`), and parenthesized groups `( )`.\n4. **Redirection** — `>` overwrites, `>>` appends, `\u003C` reads input, `2>` redirects stderr, `2>&1` merges stderr into stdout, `>NUL` discards output.\n\n## Variables\n\n### Environment Variables\n\n```bat\nset _MY_VAR=Hello World\necho %_MY_VAR%\nset _MY_VAR=\n```\n\n- `set` with no arguments lists all variables\n- `set _PREFIX` lists variables starting with `_PREFIX`\n- No spaces around `=` — `set name = val` sets variable `\"name \"` to `\" val\"`\n\n### Special Variables\n\n| Variable | Value |\n|----------|-------|\n| `%CD%` | Current directory |\n| `%DATE%` | System date (locale-dependent) |\n| `%TIME%` | System time HH:MM:SS.mm |\n| `%RANDOM%` | Pseudorandom number 0–32767 |\n| `%ERRORLEVEL%` | Exit code of last command |\n| `%USERNAME%` | Current user name |\n| `%USERPROFILE%` | Current user profile path |\n| `%TEMP%` \u002F `%TMP%` | Temporary file directory |\n| `%PATHEXT%` | Executable extensions list |\n| `%COMSPEC%` | Path to cmd.exe |\n\n### Scoping with SETLOCAL \u002F ENDLOCAL\n\n```bat\nsetlocal\nset _LOCAL_VAR=scoped value\nendlocal\nREM _LOCAL_VAR is no longer defined here\n```\n\nTo return a value from a scoped block:\n\n```bat\nendlocal & set _RESULT=%_LOCAL_VAR%\n```\n\n### Delayed Expansion\n\nVariables inside parenthesized blocks are expanded at parse time. Use delayed expansion for runtime evaluation:\n\n```bat\nsetlocal EnableDelayedExpansion\nset _COUNT=0\nfor \u002Fl %%i in (1,1,5) do (\n    set \u002Fa _COUNT+=1\n    echo !_COUNT!\n)\nendlocal\n```\n\n- `!VAR!` expands at execution time (delayed)\n- `%VAR%` expands at parse time (immediate)\n\n## Control Flow\n\n### Conditional Execution\n\n```bat\nif exist \"output.txt\" echo File found\nif not defined _MY_VAR echo Variable not set\nif \"%_STATUS%\"==\"ready\" (echo Go) else (echo Wait)\nif %ERRORLEVEL% neq 0 echo Command failed\n```\n\nComparison operators: `equ`, `neq`, `lss`, `leq`, `gtr`, `geq`. Use `\u002Fi` for case-insensitive string comparison.\n\n### Compound Commands\n\n```bat\ncommand1 & command2        & REM Always run both\ncommand1 && command2       & REM Run command2 only if command1 succeeds\ncommand1 || command2       & REM Run command2 only if command1 fails\n```\n\n### FOR Loops\n\n```bat\nREM Iterate over a set of values\nfor %%i in (alpha beta gamma) do echo %%i\n\nREM Numeric range: start, step, end\nfor \u002Fl %%i in (1,1,10) do echo %%i\n\nREM Files in a directory\nfor %%f in (*.txt) do echo %%f\n\nREM Recursive file search\nfor \u002Fr %%f in (*.log) do echo %%f\n\nREM Directories only\nfor \u002Fd %%d in (*) do echo %%d\n\nREM Parse command output\nfor \u002Ff \"tokens=1,2 delims=:\" %%a in ('ipconfig ^| findstr \"IPv4\"') do echo %%b\n\nREM Parse file lines\nfor \u002Ff \"usebackq tokens=*\" %%a in (\"data.txt\") do echo %%a\n```\n\n### GOTO and Labels\n\n```bat\ngoto :main_logic\n:usage\necho Usage: %~nx0 [options]\nexit \u002Fb 1\n\n:main_logic\necho Running main logic...\ngoto :eof\n```\n\n`goto :eof` exits the current batch or subroutine. Labels start with `:`.\n\n## Command-Line Arguments\n\n| Syntax | Value |\n|--------|-------|\n| `%0` | Script name as invoked |\n| `%1`–`%9` | Positional arguments |\n| `%*` | All arguments (unaffected by SHIFT) |\n| `%~1` | Argument 1 with enclosing quotes removed |\n| `%~f1` | Full path of argument 1 |\n| `%~d1` | Drive letter of argument 1 |\n| `%~p1` | Path (without drive) of argument 1 |\n| `%~n1` | File name (no extension) of argument 1 |\n| `%~x1` | Extension of argument 1 |\n| `%~dp0` | Drive and path of the batch file itself |\n| `%~nx0` | File name with extension of the batch file |\n| `%~z1` | File size of argument 1 |\n| `%~$PATH:1` | Search PATH for argument 1 |\n\n### Argument Parsing Pattern\n\n```bat\n:parse_args\nif \"%~1\"==\"\" goto :args_done\nif \u002Fi \"%~1\"==\"--help\" goto :usage\nif \u002Fi \"%~1\"==\"--output\" (\n    set \"_OUTPUT_DIR=%~2\"\n    shift\n)\nshift\ngoto :parse_args\n:args_done\n```\n\n## String Processing\n\n### Substrings\n\n```bat\nset _STR=Hello World\necho %_STR:~0,5%       & REM \"Hello\"\necho %_STR:~6%         & REM \"World\"\necho %_STR:~-5%        & REM \"World\"\necho %_STR:~0,-6%      & REM \"Hello\"\n```\n\n### Search and Replace\n\n```bat\nset _STR=Hello World\necho %_STR:World=Earth%       & REM \"Hello Earth\"\necho %_STR:Hello=%            & REM \" World\" (remove \"Hello\")\n```\n\n### Substring Containment Test\n\n```bat\nif not \"%_STR:World=%\"==\"%_STR%\" echo Contains \"World\"\n```\n\n## Functions\n\nFunctions use labels, CALL, and SETLOCAL\u002FENDLOCAL:\n\n```bat\n@echo off\ncall :greet \"Jane Doe\"\necho Result: %_GREETING%\nexit \u002Fb 0\n\n:greet\nsetlocal\nset \"_MSG=Hello, %~1\"\nendlocal & set \"_GREETING=%_MSG%\"\nexit \u002Fb 0\n```\n\n- `call :label args` invokes a function\n- `exit \u002Fb` returns from the function (not the script)\n- Use the `endlocal & set` trick to pass values out of a scoped block\n\n## Arithmetic\n\n`set \u002Fa` performs 32-bit signed integer arithmetic:\n\n```bat\nset \u002Fa _RESULT=10 * 5 + 3\nset \u002Fa _COUNTER+=1\nset \u002Fa _REMAINDER=14 %% 3       & REM Use %% for modulo in batch files\nset \u002Fa _BITS=\"255 & 0x0F\"       & REM Bitwise AND\n```\n\nSupported operators: `+ - * \u002F %% ( )` and bitwise `& | ^ ~ \u003C\u003C >>`.\n\nHexadecimal (`0xFF`) and octal (`077`) literals are supported.\n\n## Error Handling\n\n### Error Level Conventions\n\n- `0` = success\n- Non-zero = failure (typically `1`)\n\n```bat\nmycommand.exe\nif %ERRORLEVEL% neq 0 (\n    echo ERROR: mycommand failed with code %ERRORLEVEL%\n    exit \u002Fb %ERRORLEVEL%\n)\n```\n\n### Fail-Fast Pattern\n\n```bat\ncommand1 || (echo command1 failed & exit \u002Fb 1)\ncommand2 || (echo command2 failed & exit \u002Fb 1)\n```\n\n### Setting Exit Codes\n\n```bat\nexit \u002Fb 0        & REM Return success from a batch\u002Ffunction\nexit \u002Fb 1        & REM Return failure\ncmd \u002Fc \"exit \u002Fb 42\"   & REM Set ERRORLEVEL to 42 inline\n```\n\n## Essential Commands Reference\n\n### File Operations\n\n| Command | Purpose |\n|---------|---------|\n| `DIR` | List directory contents |\n| `COPY` | Copy files |\n| `XCOPY` | Extended copy with subdirectories (legacy) |\n| `ROBOCOPY` | Robust copy with retry, mirror, logging |\n| `MOVE` | Move or rename files |\n| `DEL` | Delete files |\n| `REN` | Rename files |\n| `MD` \u002F `MKDIR` | Create directories |\n| `RD` \u002F `RMDIR` | Remove directories |\n| `MKLINK` | Create symbolic or hard links |\n| `ATTRIB` | View or set file attributes |\n| `TYPE` | Print file contents |\n| `MORE` | Paginated file display |\n| `TREE` | Display directory structure |\n| `REPLACE` | Replace files in destination with source |\n| `COMPACT` | Show or set NTFS compression |\n| `EXPAND` | Extract from .cab files |\n| `MAKECAB` | Create .cab archives |\n| `TAR` | Create or extract tar archives |\n\n### Text Search and Processing\n\n| Command | Purpose |\n|---------|---------|\n| `FIND` | Search for literal strings |\n| `FINDSTR` | Search with limited regular expressions |\n| `SORT` | Sort lines alphabetically |\n| `CLIP` | Copy piped input to clipboard |\n| `FC` | Compare two files |\n| `COMP` | Binary file comparison |\n| `CERTUTIL` | Encode\u002Fdecode Base64, compute hashes |\n\n### System Information\n\n| Command | Purpose |\n|---------|---------|\n| `SYSTEMINFO` | Full system configuration |\n| `HOSTNAME` | Display computer name |\n| `VER` | Windows version |\n| `WHOAMI` | Current user and group info |\n| `TASKLIST` | List running processes |\n| `TASKKILL` | Terminate processes |\n| `WMIC` | WMI queries (drives, OS, memory) |\n| `SC` | Service control (query, start, stop) |\n| `DRIVERQUERY` | List installed drivers |\n| `REG` | Registry operations (query, add, delete) |\n| `SETX` | Set persistent environment variables |\n\n### Network\n\n| Command | Purpose |\n|---------|---------|\n| `PING` | Test network connectivity |\n| `IPCONFIG` | IP configuration |\n| `NSLOOKUP` | DNS lookup |\n| `NETSTAT` | Network connections and ports |\n| `TRACERT` | Trace route to host |\n| `NET USE` | Map\u002Fdisconnect network drives |\n| `NET USER` | Manage user accounts |\n| `NETSH` | Network configuration utility |\n| `ARP` | ARP cache management |\n| `ROUTE` | Routing table management |\n| `CURL` | HTTP requests (Windows 10+) |\n| `SSH` | Secure shell (Windows 10+) |\n\n### Scheduling and Automation\n\n| Command | Purpose |\n|---------|---------|\n| `SCHTASKS` | Create and manage scheduled tasks |\n| `TIMEOUT` | Wait N seconds (Vista+) |\n| `START` | Launch programs asynchronously |\n| `RUNAS` | Run as different user |\n| `SHUTDOWN` | Shutdown or restart |\n| `FORFILES` | Find files by date and execute commands |\n\n### Shell Utilities\n\n| Command | Purpose |\n|---------|---------|\n| `WHERE` | Locate executables in PATH |\n| `DOSKEY` | Create command macros |\n| `CHOICE` | Prompt for single-key input |\n| `MODE` | Configure console size and ports |\n| `SUBST` | Map folder to drive letter |\n| `CHCP` | Get or set console code page |\n| `COLOR` | Set console colors |\n| `TITLE` | Set console window title |\n| `ASSOC` \u002F `FTYPE` | File type associations |\n\n## Shell Syntax and Expressions\n\n### Parentheses for Grouping\n\nParentheses turn compound commands into a single unit for redirection or conditional execution:\n\n```bat\n(echo Line 1 & echo Line 2) > output.txt\nif exist \"data.csv\" (\n    echo Processing...\n    call :process \"data.csv\"\n) else (\n    echo No data found.\n)\n```\n\n### Escape Characters\n\nThe caret `^` escapes the next character:\n\n```bat\necho Total ^& Summary          & REM Outputs: Total & Summary\necho 100%% complete            & REM Outputs: 100% complete (in batch)\necho Line one^\nLine two                       & REM Caret escapes the newline\n```\n\nAfter a pipe, triple caret is needed: `echo x ^^^& y | findstr x`\n\n### Wildcards\n\n- `*` matches any sequence of characters\n- `?` matches a single character (or zero at end of period-free segment)\n\n```bat\ndir *.txt           & REM All .txt files\nren *.jpeg *.jpg    & REM Bulk rename\n```\n\n### Redirection Summary\n\n```bat\ncommand > file.txt          & REM Overwrite stdout to file\ncommand >> file.txt         & REM Append stdout to file\ncommand 2> errors.log       & REM Redirect stderr\ncommand > all.log 2>&1      & REM Merge stderr into stdout\ncommand \u003C input.txt         & REM Read stdin from file\ncommand > NUL 2>&1          & REM Discard all output\n```\n\n## Writing Production-Quality Batch Files\n\n### Standard Script Structure\n\n```bat\n@echo off\nsetlocal EnableDelayedExpansion\n\nREM ============================================================\nREM  Script: example.bat\nREM  Purpose: Describe what this script does\nREM ============================================================\n\ncall :main %*\nexit \u002Fb %ERRORLEVEL%\n\n:main\n    call :parse_args %*\n    if not defined _TARGET (\n        echo ERROR: --target is required. 1>&2\n        call :usage\n        exit \u002Fb 1\n    )\n    echo Processing: %_TARGET%\n    exit \u002Fb 0\n\n:parse_args\n    if \"%~1\"==\"\" exit \u002Fb 0\n    if \u002Fi \"%~1\"==\"--target\" set \"_TARGET=%~2\" & shift\n    if \u002Fi \"%~1\"==\"--help\"   call :usage & exit \u002Fb 0\n    shift\n    goto :parse_args\n\n:usage\n    echo Usage: %~nx0 --target ^\u003Cpath^> [--help]\n    echo.\n    echo Options:\n    echo   --target   Path to process (required)\n    echo   --help     Show this help message\n    exit \u002Fb 0\n```\n\n### Best Practices\n\n1. **Always start with `@echo off` and `setlocal`** — Prevents noisy output and variable leakage to the caller.\n2. **Validate inputs before processing** — Check required arguments and file existence early. Use `if not defined` and `if not exist`.\n3. **Quote paths and variables** — Use `\"%~1\"` and `\"%_MY_PATH%\"` to handle spaces and special characters safely.\n4. **Use `exit \u002Fb` instead of `exit`** — Avoids closing the parent console window.\n5. **Return meaningful exit codes** — `exit \u002Fb 0` for success, non-zero for specific failures.\n6. **Use `%~dp0` for script-relative paths** — Ensures the script works regardless of the caller's working directory.\n7. **Prefer `ROBOCOPY` over `XCOPY`** — More reliable, supports retry, mirroring, and logging.\n8. **Use `EnableDelayedExpansion` when modifying variables inside loops or parenthesized blocks.**\n9. **Write errors to stderr** — `echo ERROR: message 1>&2` keeps stdout clean for piping.\n10. **Use `REM` for comments** — `::` can cause issues inside `FOR` loop bodies.\n\n### Security Considerations\n\n- **Never store credentials in batch files** — Use environment variables, credential stores, or prompts.\n- **Validate user input** — Unquoted variables containing `&`, `|`, or `>` can inject commands. Always quote: `\"%_USER_INPUT%\"`.\n- **Use `SETLOCAL`** — Prevents variable values from leaking to parent processes.\n- **Sanitize file paths** — Validate paths before passing to `DEL`, `RD`, or `ROBOCOPY` to prevent unintended deletion.\n- **Avoid `SET \u002FP` for sensitive input** — Input is visible and stored in console history. Use a dedicated credential tool when possible.\n\n## Debugging and Troubleshooting\n\n| Technique | How |\n|-----------|-----|\n| Trace execution | Remove `@echo off` or use `@echo on` temporarily |\n| Step through | Add `PAUSE` between sections |\n| Check error level | `echo Exit code: %ERRORLEVEL%` after each command |\n| Inspect variables | `set _MY_` to list all variables starting with `_MY_` |\n| Delayed expansion issues | Variable inside `( )` block not updating? Enable `!VAR!` syntax |\n| FOR loop `%%` vs `%` | Use `%%i` in batch files, `%i` on the command line |\n| Spaces in SET | `set name=value` not `set name = value` |\n| Caret in pipes | After a pipe, use `^^^` to escape special chars |\n| Parentheses in SET \u002FA | Escape with `^(` and `^)` inside `if` blocks, or use quotes |\n| Double percent for modulo | `set \u002Fa r=14 %% 3` in batch files |\n\n## Cross-Platform and Extended Tools\n\nWhen batch scripting reaches its limits, these tools extend cmd.exe capabilities:\n\n| Tool | Purpose |\n|------|---------|\n| **Cygwin** | Full POSIX environment on Windows (grep, sed, awk, ssh) |\n| **MSYS2** | Lightweight Unix tools and package manager (pacman) |\n| **WSL** | Windows Subsystem for Linux — run native Linux binaries |\n| **GnuWin32** | Individual GNU utilities as native Windows executables |\n| **PowerShell** | Modern Windows scripting with .NET integration |\n\nUse batch when you need: fast startup, simple file operations, PATH-based CLI tools, or Task Scheduler integration. Consider PowerShell or WSL for complex data processing, REST APIs, or object-oriented scripting.\n\n## CMD Keyboard Shortcuts\n\n| Shortcut | Action |\n|----------|--------|\n| `Tab` | Auto-complete file\u002Ffolder names |\n| `Up` \u002F `Down` | Navigate command history |\n| `F7` | Show command history popup |\n| `F3` | Repeat last command |\n| `Esc` | Clear current line |\n| `Ctrl+C` | Cancel running command |\n| `Alt+F7` | Clear command history |\n\n## Reference Files\n\nThe `references\u002F` folder contains detailed documentation:\n\n| File | Contents |\n|------|----------|\n| `tools-and-resources.md` | Windows tools, utilities, package managers, terminals |\n| `batch-files-and-functions.md` | Example scripts, techniques, best practices links |\n| `windows-commands.md` | Comprehensive A-Z Windows command reference |\n| `cygwin.md` | Cygwin user guide and FAQ |\n| `msys2.md` | MSYS2 installation, packages, and environments |\n| `windows-subsystem-on-linux.md` | WSL setup, commands, and documentation |\n\n## Asset Templates\n\nThe `assets\u002F` folder contains starter batch file template data, but as text files:\n\n| Template | Purpose |\n|----------|---------|\n| `executable.txt` | Standalone CLI tool with argument parsing |\n| `library.txt` | Reusable function library with CALL-able labels |\n| `task.txt` | Scheduled task \u002F automation script |\n","# Batch Files\n\nA comprehensive skill for creating, editing, debugging, and maintaining Windows batch files (.bat\u002F.cmd) using cmd.exe. Applies to CLI tool development, system administration automation, scheduled tasks, file operations scripting, and PATH-based executable scripts.\n\n## When to Use This Skill\n\n- Creating or editing `.bat` or `.cmd` files\n- Automating Windows tasks (file operations, deployments, backups)\n- Building CLI tools intended for a `bin\u002F` folder on PATH\n- Writing scheduled task scripts (SCHTASKS, Task Scheduler)\n- Debugging batch script issues (variable expansion, error levels, quoting)\n- Integrating batch scripts with external tools (curl, git, Node.js, Python)\n- Scaffolding new batch-based projects with structured templates\n\n## Prerequisites\n\n- Windows NT-based OS (Windows 7 or later)\n- cmd.exe (built-in)\n- Optional: a `bin\u002F` directory on PATH for distributing scripts as commands\n- Optional: PATHEXT configured to include `.BAT;.CMD` (default on Windows)\n\n## Command Interpretation\n\ncmd.exe processes each line through four stages in order:\n\n1. **Variable substitution** — `%VAR%` tokens are replaced with environment variable values. `%0`–`%9` reference batch arguments. `%*` expands to all arguments.\n2. **Quoting and escaping** — Caret `^` escapes special characters (`& | \u003C > ^`). Quotation marks prevent interpretation of enclosed special characters. In batch files, `%%` yields a literal `%`.\n3. **Syntax parsing** — Lines are split into pipelines (`|`), compound commands (`&`, `&&`, `||`), and parenthesized groups `( )`.\n4. **Redirection** — `>` overwrites, `>>` appends, `\u003C` reads input, `2>` redirects stderr, `2>&1` merges stderr into stdout, `>NUL` discards output.\n\n## Variables\n\n### Environment Variables\n\n```bat\nset _MY_VAR=Hello World\necho %_MY_VAR%\nset _MY_VAR=\n```\n\n- `set` with no arguments lists all variables\n- `set _PREFIX` lists variables starting with `_PREFIX`\n- No spaces around `=` — `set name = val` sets variable `\"name \"` to `\" val\"`\n\n### Special Variables\n\n| Variable | Value |\n|----------|-------|\n| `%CD%` | Current directory |\n| `%DATE%` | System date (locale-dependent) |\n| `%TIME%` | System time HH:MM:SS.mm |\n| `%RANDOM%` | Pseudorandom number 0–32767 |\n| `%ERRORLEVEL%` | Exit code of last command |\n| `%USERNAME%` | Current user name |\n| `%USERPROFILE%` | Current user profile path |\n| `%TEMP%` \u002F `%TMP%` | Temporary file directory |\n| `%PATHEXT%` | Executable extensions list |\n| `%COMSPEC%` | Path to cmd.exe |\n\n### Scoping with SETLOCAL \u002F ENDLOCAL\n\n```bat\nsetlocal\nset _LOCAL_VAR=scoped value\nendlocal\nREM _LOCAL_VAR is no longer defined here\n```\n\nTo return a value from a scoped block:\n\n```bat\nendlocal & set _RESULT=%_LOCAL_VAR%\n```\n\n### Delayed Expansion\n\nVariables inside parenthesized blocks are expanded at parse time. Use delayed expansion for runtime evaluation:\n\n```bat\nsetlocal EnableDelayedExpansion\nset _COUNT=0\nfor \u002Fl %%i in (1,1,5) do (\n    set \u002Fa _COUNT+=1\n    echo !_COUNT!\n)\nendlocal\n```\n\n- `!VAR!` expands at execution time (delayed)\n- `%VAR%` expands at parse time (immediate)\n\n## Control Flow\n\n### Conditional Execution\n\n```bat\nif exist \"output.txt\" echo File found\nif not defined _MY_VAR echo Variable not set\nif \"%_STATUS%\"==\"ready\" (echo Go) else (echo Wait)\nif %ERRORLEVEL% neq 0 echo Command failed\n```\n\nComparison operators: `equ`, `neq`, `lss`, `leq`, `gtr`, `geq`. Use `\u002Fi` for case-insensitive string comparison.\n\n### Compound Commands\n\n```bat\ncommand1 & command2        & REM Always run both\ncommand1 && command2       & REM Run command2 only if command1 succeeds\ncommand1 || command2       & REM Run command2 only if command1 fails\n```\n\n### FOR Loops\n\n```bat\nREM Iterate over a set of values\nfor %%i in (alpha beta gamma) do echo %%i\n\nREM Numeric range: start, step, end\nfor \u002Fl %%i in (1,1,10) do echo %%i\n\nREM Files in a directory\nfor %%f in (*.txt) do echo %%f\n\nREM Recursive file search\nfor \u002Fr %%f in (*.log) do echo %%f\n\nREM Directories only\nfor \u002Fd %%d in (*) do echo %%d\n\nREM Parse command output\nfor \u002Ff \"tokens=1,2 delims=:\" %%a in ('ipconfig ^| findstr \"IPv4\"') do echo %%b\n\nREM Parse file lines\nfor \u002Ff \"usebackq tokens=*\" %%a in (\"data.txt\") do echo %%a\n```\n\n### GOTO and Labels\n\n```bat\ngoto :main_logic\n:usage\necho Usage: %~nx0 [options]\nexit \u002Fb 1\n\n:main_logic\necho Running main logic...\ngoto :eof\n```\n\n`goto :eof` exits the current batch or subroutine. Labels start with `:`.\n\n## Command-Line Arguments\n\n| Syntax | Value |\n|--------|-------|\n| `%0` | Script name as invoked |\n| `%1`–`%9` | Positional arguments |\n| `%*` | All arguments (unaffected by SHIFT) |\n| `%~1` | Argument 1 with enclosing quotes removed |\n| `%~f1` | Full path of argument 1 |\n| `%~d1` | Drive letter of argument 1 |\n| `%~p1` | Path (without drive) of argument 1 |\n| `%~n1` | File name (no extension) of argument 1 |\n| `%~x1` | Extension of argument 1 |\n| `%~dp0` | Drive and path of the batch file itself |\n| `%~nx0` | File name with extension of the batch file |\n| `%~z1` | File size of argument 1 |\n| `%~$PATH:1` | Search PATH for argument 1 |\n\n### Argument Parsing Pattern\n\n```bat\n:parse_args\nif \"%~1\"==\"\" goto :args_done\nif \u002Fi \"%~1\"==\"--help\" goto :usage\nif \u002Fi \"%~1\"==\"--output\" (\n    set \"_OUTPUT_DIR=%~2\"\n    shift\n)\nshift\ngoto :parse_args\n:args_done\n```\n\n## String Processing\n\n### Substrings\n\n```bat\nset _STR=Hello World\necho %_STR:~0,5%       & REM \"Hello\"\necho %_STR:~6%         & REM \"World\"\necho %_STR:~-5%        & REM \"World\"\necho %_STR:~0,-6%      & REM \"Hello\"\n```\n\n### Search and Replace\n\n```bat\nset _STR=Hello World\necho %_STR:World=Earth%       & REM \"Hello Earth\"\necho %_STR:Hello=%            & REM \" World\" (remove \"Hello\")\n```\n\n### Substring Containment Test\n\n```bat\nif not \"%_STR:World=%\"==\"%_STR%\" echo Contains \"World\"\n```\n\n## Functions\n\nFunctions use labels, CALL, and SETLOCAL\u002FENDLOCAL:\n\n```bat\n@echo off\ncall :greet \"Jane Doe\"\necho Result: %_GREETING%\nexit \u002Fb 0\n\n:greet\nsetlocal\nset \"_MSG=Hello, %~1\"\nendlocal & set \"_GREETING=%_MSG%\"\nexit \u002Fb 0\n```\n\n- `call :label args` invokes a function\n- `exit \u002Fb` returns from the function (not the script)\n- Use the `endlocal & set` trick to pass values out of a scoped block\n\n## Arithmetic\n\n`set \u002Fa` performs 32-bit signed integer arithmetic:\n\n```bat\nset \u002Fa _RESULT=10 * 5 + 3\nset \u002Fa _COUNTER+=1\nset \u002Fa _REMAINDER=14 %% 3       & REM Use %% for modulo in batch files\nset \u002Fa _BITS=\"255 & 0x0F\"       & REM Bitwise AND\n```\n\nSupported operators: `+ - * \u002F %% ( )` and bitwise `& | ^ ~ \u003C\u003C >>`.\n\nHexadecimal (`0xFF`) and octal (`077`) literals are supported.\n\n## Error Handling\n\n### Error Level Conventions\n\n- `0` = success\n- Non-zero = failure (typically `1`)\n\n```bat\nmycommand.exe\nif %ERRORLEVEL% neq 0 (\n    echo ERROR: mycommand failed with code %ERRORLEVEL%\n    exit \u002Fb %ERRORLEVEL%\n)\n```\n\n### Fail-Fast Pattern\n\n```bat\ncommand1 || (echo command1 failed & exit \u002Fb 1)\ncommand2 || (echo command2 failed & exit \u002Fb 1)\n```\n\n### Setting Exit Codes\n\n```bat\nexit \u002Fb 0        & REM Return success from a batch\u002Ffunction\nexit \u002Fb 1        & REM Return failure\ncmd \u002Fc \"exit \u002Fb 42\"   & REM Set ERRORLEVEL to 42 inline\n```\n\n## Essential Commands Reference\n\n### File Operations\n\n| Command | Purpose |\n|---------|---------|\n| `DIR` | List directory contents |\n| `COPY` | Copy files |\n| `XCOPY` | Extended copy with subdirectories (legacy) |\n| `ROBOCOPY` | Robust copy with retry, mirror, logging |\n| `MOVE` | Move or rename files |\n| `DEL` | Delete files |\n| `REN` | Rename files |\n| `MD` \u002F `MKDIR` | Create directories |\n| `RD` \u002F `RMDIR` | Remove directories |\n| `MKLINK` | Create symbolic or hard links |\n| `ATTRIB` | View or set file attributes |\n| `TYPE` | Print file contents |\n| `MORE` | Paginated file display |\n| `TREE` | Display directory structure |\n| `REPLACE` | Replace files in destination with source |\n| `COMPACT` | Show or set NTFS compression |\n| `EXPAND` | Extract from .cab files |\n| `MAKECAB` | Create .cab archives |\n| `TAR` | Create or extract tar archives |\n\n### Text Search and Processing\n\n| Command | Purpose |\n|---------|---------|\n| `FIND` | Search for literal strings |\n| `FINDSTR` | Search with limited regular expressions |\n| `SORT` | Sort lines alphabetically |\n| `CLIP` | Copy piped input to clipboard |\n| `FC` | Compare two files |\n| `COMP` | Binary file comparison |\n| `CERTUTIL` | Encode\u002Fdecode Base64, compute hashes |\n\n### System Information\n\n| Command | Purpose |\n|---------|---------|\n| `SYSTEMINFO` | Full system configuration |\n| `HOSTNAME` | Display computer name |\n| `VER` | Windows version |\n| `WHOAMI` | Current user and group info |\n| `TASKLIST` | List running processes |\n| `TASKKILL` | Terminate processes |\n| `WMIC` | WMI queries (drives, OS, memory) |\n| `SC` | Service control (query, start, stop) |\n| `DRIVERQUERY` | List installed drivers |\n| `REG` | Registry operations (query, add, delete) |\n| `SETX` | Set persistent environment variables |\n\n### Network\n\n| Command | Purpose |\n|---------|---------|\n| `PING` | Test network connectivity |\n| `IPCONFIG` | IP configuration |\n| `NSLOOKUP` | DNS lookup |\n| `NETSTAT` | Network connections and ports |\n| `TRACERT` | Trace route to host |\n| `NET USE` | Map\u002Fdisconnect network drives |\n| `NET USER` | Manage user accounts |\n| `NETSH` | Network configuration utility |\n| `ARP` | ARP cache management |\n| `ROUTE` | Routing table management |\n| `CURL` | HTTP requests (Windows 10+) |\n| `SSH` | Secure shell (Windows 10+) |\n\n### Scheduling and Automation\n\n| Command | Purpose |\n|---------|---------|\n| `SCHTASKS` | Create and manage scheduled tasks |\n| `TIMEOUT` | Wait N seconds (Vista+) |\n| `START` | Launch programs asynchronously |\n| `RUNAS` | Run as different user |\n| `SHUTDOWN` | Shutdown or restart |\n| `FORFILES` | Find files by date and execute commands |\n\n### Shell Utilities\n\n| Command | Purpose |\n|---------|---------|\n| `WHERE` | Locate executables in PATH |\n| `DOSKEY` | Create command macros |\n| `CHOICE` | Prompt for single-key input |\n| `MODE` | Configure console size and ports |\n| `SUBST` | Map folder to drive letter |\n| `CHCP` | Get or set console code page |\n| `COLOR` | Set console colors |\n| `TITLE` | Set console window title |\n| `ASSOC` \u002F `FTYPE` | File type associations |\n\n## Shell Syntax and Expressions\n\n### Parentheses for Grouping\n\nParentheses turn compound commands into a single unit for redirection or conditional execution:\n\n```bat\n(echo Line 1 & echo Line 2) > output.txt\nif exist \"data.csv\" (\n    echo Processing...\n    call :process \"data.csv\"\n) else (\n    echo No data found.\n)\n```\n\n### Escape Characters\n\nThe caret `^` escapes the next character:\n\n```bat\necho Total ^& Summary          & REM Outputs: Total & Summary\necho 100%% complete            & REM Outputs: 100% complete (in batch)\necho Line one^\nLine two                       & REM Caret escapes the newline\n```\n\nAfter a pipe, triple caret is needed: `echo x ^^^& y | findstr x`\n\n### Wildcards\n\n- `*` matches any sequence of characters\n- `?` matches a single character (or zero at end of period-free segment)\n\n```bat\ndir *.txt           & REM All .txt files\nren *.jpeg *.jpg    & REM Bulk rename\n```\n\n### Redirection Summary\n\n```bat\ncommand > file.txt          & REM Overwrite stdout to file\ncommand >> file.txt         & REM Append stdout to file\ncommand 2> errors.log       & REM Redirect stderr\ncommand > all.log 2>&1      & REM Merge stderr into stdout\ncommand \u003C input.txt         & REM Read stdin from file\ncommand > NUL 2>&1          & REM Discard all output\n```\n\n## Writing Production-Quality Batch Files\n\n### Standard Script Structure\n\n```bat\n@echo off\nsetlocal EnableDelayedExpansion\n\nREM ============================================================\nREM  Script: example.bat\nREM  Purpose: Describe what this script does\nREM ============================================================\n\ncall :main %*\nexit \u002Fb %ERRORLEVEL%\n\n:main\n    call :parse_args %*\n    if not defined _TARGET (\n        echo ERROR: --target is required. 1>&2\n        call :usage\n        exit \u002Fb 1\n    )\n    echo Processing: %_TARGET%\n    exit \u002Fb 0\n\n:parse_args\n    if \"%~1\"==\"\" exit \u002Fb 0\n    if \u002Fi \"%~1\"==\"--target\" set \"_TARGET=%~2\" & shift\n    if \u002Fi \"%~1\"==\"--help\"   call :usage & exit \u002Fb 0\n    shift\n    goto :parse_args\n\n:usage\n    echo Usage: %~nx0 --target ^\u003Cpath^> [--help]\n    echo.\n    echo Options:\n    echo   --target   Path to process (required)\n    echo   --help     Show this help message\n    exit \u002Fb 0\n```\n\n### Best Practices\n\n1. **Always start with `@echo off` and `setlocal`** — Prevents noisy output and variable leakage to the caller.\n2. **Validate inputs before processing** — Check required arguments and file existence early. Use `if not defined` and `if not exist`.\n3. **Quote paths and variables** — Use `\"%~1\"` and `\"%_MY_PATH%\"` to handle spaces and special characters safely.\n4. **Use `exit \u002Fb` instead of `exit`** — Avoids closing the parent console window.\n5. **Return meaningful exit codes** — `exit \u002Fb 0` for success, non-zero for specific failures.\n6. **Use `%~dp0` for script-relative paths** — Ensures the script works regardless of the caller's working directory.\n7. **Prefer `ROBOCOPY` over `XCOPY`** — More reliable, supports retry, mirroring, and logging.\n8. **Use `EnableDelayedExpansion` when modifying variables inside loops or parenthesized blocks.**\n9. **Write errors to stderr** — `echo ERROR: message 1>&2` keeps stdout clean for piping.\n10. **Use `REM` for comments** — `::` can cause issues inside `FOR` loop bodies.\n\n### Security Considerations\n\n- **Never store credentials in batch files** — Use environment variables, credential stores, or prompts.\n- **Validate user input** — Unquoted variables containing `&`, `|`, or `>` can inject commands. Always quote: `\"%_USER_INPUT%\"`.\n- **Use `SETLOCAL`** — Prevents variable values from leaking to parent processes.\n- **Sanitize file paths** — Validate paths before passing to `DEL`, `RD`, or `ROBOCOPY` to prevent unintended deletion.\n- **Avoid `SET \u002FP` for sensitive input** — Input is visible and stored in console history. Use a dedicated credential tool when possible.\n\n## Debugging and Troubleshooting\n\n| Technique | How |\n|-----------|-----|\n| Trace execution | Remove `@echo off` or use `@echo on` temporarily |\n| Step through | Add `PAUSE` between sections |\n| Check error level | `echo Exit code: %ERRORLEVEL%` after each command |\n| Inspect variables | `set _MY_` to list all variables starting with `_MY_` |\n| Delayed expansion issues | Variable inside `( )` block not updating? Enable `!VAR!` syntax |\n| FOR loop `%%` vs `%` | Use `%%i` in batch files, `%i` on the command line |\n| Spaces in SET | `set name=value` not `set name = value` |\n| Caret in pipes | After a pipe, use `^^^` to escape special chars |\n| Parentheses in SET \u002FA | Escape with `^(` and `^)` inside `if` blocks, or use quotes |\n| Double percent for modulo | `set \u002Fa r=14 %% 3` in batch files |\n\n## Cross-Platform and Extended Tools\n\nWhen batch scripting reaches its limits, these tools extend cmd.exe capabilities:\n\n| Tool | Purpose |\n|------|---------|\n| **Cygwin** | Full POSIX environment on Windows (grep, sed, awk, ssh) |\n| **MSYS2** | Lightweight Unix tools and package manager (pacman) |\n| **WSL** | Windows Subsystem for Linux — run native Linux binaries |\n| **GnuWin32** | Individual GNU utilities as native Windows executables |\n| **PowerShell** | Modern Windows scripting with .NET integration |\n\nUse batch when you need: fast startup, simple file operations, PATH-based CLI tools, or Task Scheduler integration. Consider PowerShell or WSL for complex data processing, REST APIs, or object-oriented scripting.\n\n## CMD Keyboard Shortcuts\n\n| Shortcut | Action |\n|----------|--------|\n| `Tab` | Auto-complete file\u002Ffolder names |\n| `Up` \u002F `Down` | Navigate command history |\n| `F7` | Show command history popup |\n| `F3` | Repeat last command |\n| `Esc` | Clear current line |\n| `Ctrl+C` | Cancel running command |\n| `Alt+F7` | Clear command history |\n\n## Reference Files\n\nThe `references\u002F` folder contains detailed documentation:\n\n| File | Contents |\n|------|----------|\n| `tools-and-resources.md` | Windows tools, utilities, package managers, terminals |\n| `batch-files-and-functions.md` | Example scripts, techniques, best practices links |\n| `windows-commands.md` | Comprehensive A-Z Windows command reference |\n| `cygwin.md` | Cygwin user guide and FAQ |\n| `msys2.md` | MSYS2 installation, packages, and environments |\n| `windows-subsystem-on-linux.md` | WSL setup, commands, and documentation |\n\n## Asset Templates\n\nThe `assets\u002F` folder contains starter batch file template data, but as text files:\n\n| Template | Purpose |\n|----------|---------|\n| `executable.txt` | Standalone CLI tool with argument parsing |\n| `library.txt` | Reusable function library with CALL-able labels |\n| `task.txt` | Scheduled task \u002F automation script |\n",{"name":5,"description":7},"main","58843b159d7a4050d6b785a98b908cce505c0b92",".agents\u002Fskills\u002Fbatch-files",0,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent","https:\u002F\u002Fgithub.com\u002FReihantt6","reihsns.web.id","2026-08-19 20:08:18",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Reihantt6\u002Fsns-myagent --skill batch-files",{"tool":38,"command":39},"bunx","bunx skills add Reihantt6\u002Fsns-myagent --skill batch-files",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Reihantt6\u002Fsns-myagent --skill batch-files","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbatch-files\u002FSKILL.md",true,[46,52,56,60,66,70,74,78,82],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"assets\u002Fexecutable.txt","ASSET","资产文件",5534,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbatch-files\u002Fassets\u002Fexecutable.txt",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"assets\u002Flibrary.txt",7392,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbatch-files\u002Fassets\u002Flibrary.txt",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"assets\u002Ftask.txt",5892,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbatch-files\u002Fassets\u002Ftask.txt",{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fbatch-files-and-functions.md","REFERENCE","参考文档",69454,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbatch-files\u002Freferences\u002Fbatch-files-and-functions.md",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fcygwin.md",4675,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbatch-files\u002Freferences\u002Fcygwin.md",{"path":71,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fmsys2.md",4390,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbatch-files\u002Freferences\u002Fmsys2.md",{"path":75,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Ftools-and-resources.md",9240,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbatch-files\u002Freferences\u002Ftools-and-resources.md",{"path":79,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fwindows-commands.md",87766,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbatch-files\u002Freferences\u002Fwindows-commands.md",{"path":83,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fwindows-subsystem-on-linux.md",3212,"https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbatch-files\u002Freferences\u002Fwindows-subsystem-on-linux.md",[87,94,101,108,115,122],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M77XDCYZ407XYMF2T4P6F7VT","youtube-transcript","Extract transcripts from YouTube videos. Use when the user asks for a transcript, subtitles, or captions of a YouTube video and provides a YouTube URL (youtube.com\u002Fwatch?v=, youtu.be\u002F, or similar). Supports output with or without timestamps.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-transcript\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M77XD7PBC98J6MXGJJ2TJ8DX","youtube-thumbnail-design","YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A\u002FB testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-thumbnail-design\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M77XD2541C8HXJ6RHYZP4NGJ","youtube-short-maker","Make YouTube Shorts that hold attention with Pexo — vertical 9:16, fast-paced, hook in the first 3 seconds. Describe your topic and Pexo writes the script, generates the shots, picks the models, and assembles a finished Short with music and captions. Use for YouTube Shorts: \"youtube short\", \"make a youtube short\", \"shorts video\", \"short-form video\". NOT for long-form or landscape video.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fyoutube-short-maker\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M77XCXKVSYK7KTZ3PQBVVGFD","xcode-project-setup","Safely modifies Xcode projects (.pbxproj) to add Swift Packages and link files. Use this skill whenever an iOS project needs dependencies installed (e.g. Firebase, Alamofire).","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fxcode-project-setup\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M77XCR1DV8ZQK2NHWKVY4EWX","x402","Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — \"just use it\" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing touches your codebase) or \"build it in\" (install the SDK and write the key + code into your project). Walks through wallet setup, funding, .env, and a ~$1 test run. Use when the user asks about x402, pay-per-use, USDC payments, or wants Browser Use Cloud without an API key. For the free-tier signup (reverse-CAPTCHA → API key), use `browser-use cloud signup` or the `cloud` skill instead.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx402\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":19},"01M77XCMD3R3ZBZQQSW6E0793B","x-twitter-scraper","Build GitHub Copilot workflows with Xquik X API SDKs, REST endpoints, hosted Apify Actor runs, MCP tools, TweetClaw OpenClaw plugin installs, signed webhooks, tweet search, user lookup, follower exports, media actions, and agent automation.","https:\u002F\u002Fgithub.com\u002FReihantt6\u002Fsns-myagent\u002Fblob\u002Fmain\u002Fagent\u002Fskills\u002Fx-twitter-scraper\u002FSKILL.md",[],[]]