Mole Bug Patterns
tw93/Mole
A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.
Expert-level Windows batch file (.bat/.cmd) skill for writing, debugging, and maintaining CMD scripts.
$ npx skills add github/awesome-copilot --skill batch-files -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install github/awesome-copilot batch-files --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/github/awesome-copilot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/batch-files .claude/skills/batch-files && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "batch-files" agent skill from https://github.com/github/awesome-copilot/tree/main/skills/batch-files into .claude/skills/batch-files/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "batch-files", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/github/awesome-copilot/tree/main/skills/batch-filesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add github/awesome-copilot --skill batch-files -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install github/awesome-copilot batch-files --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/github/awesome-copilot.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/batch-files .agents/skills/batch-files && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "batch-files" agent skill from https://github.com/github/awesome-copilot/tree/main/skills/batch-files into .agents/skills/batch-files/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "batch-files", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add github/awesome-copilot --skill batch-files -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install github/awesome-copilot batch-files --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/github/awesome-copilot.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/batch-files .cursor/skills/batch-files && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "batch-files" agent skill from https://github.com/github/awesome-copilot/tree/main/skills/batch-files into .cursor/skills/batch-files/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "batch-files", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/github/awesome-copilot.git --path skills/batch-files--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add github/awesome-copilot --skill batch-files -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install github/awesome-copilot batch-files --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/github/awesome-copilot.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/batch-files .gemini/skills/batch-files && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "batch-files" agent skill from https://github.com/github/awesome-copilot/tree/main/skills/batch-files into .gemini/skills/batch-files/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "batch-files", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install github/awesome-copilot batch-filesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add github/awesome-copilot --skill batch-files -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/github/awesome-copilot.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/batch-files .github/skills/batch-files && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "batch-files" agent skill from https://github.com/github/awesome-copilot/tree/main/skills/batch-files into .github/skills/batch-files/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "batch-files", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add github/awesome-copilot --skill batch-files -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install github/awesome-copilot batch-files --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/github/awesome-copilot.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/batch-files .opencode/skills/batch-files && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "batch-files" agent skill from https://github.com/github/awesome-copilot/tree/main/skills/batch-files into .opencode/skills/batch-files/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "batch-files", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
batch-filesExpert-level Windows batch file (.bat/.cmd) skill for writing, debugging, and maintaining CMD scripts.
Batch Files is an agent skill from github/awesome-copilot, published by the product's own GitHub organization. Expert-level Windows batch file (.bat/.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/.cmd files in the workspace. Covers cmd.exe syntax, environment variables, control flow, string processing, error handling, and integration with system tools.
Its SKILL.md is about 4.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including reference files and assets (for example `references/batch-files-and-functions.md`, `references/cygwin.md` and `references/msys2.md`).
It sits in Development, covering Scheduled and recurring tasks, Secrets management and Shell scripting. It works with Bash. The repository describes itself as: Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 727ff2e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bat).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Batch Files loads about 4.3k tokens when it runs, and up to ~49k if it reads all its reference files. Until then it costs about 119 tokens; SKILL.md has 1,471 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from github/awesome-copilot at commit 727ff2e, republished under its MIT licence (© github). 1,471 words, ~4,310 tokens.
.claude/skills/batch-files/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.A comprehensive skill for creating, editing, debugging, and maintaining Windows batch files (.bat/.cmd) using cmd.exe. Applies to CLI tool development, system administration automation, scheduled tasks, file operations scripting, and PATH-based executable scripts.
.bat or .cmd filesbin/ folder on PATHbin/ directory on PATH for distributing scripts as commands.BAT;.CMD (default on Windows)cmd.exe processes each line through four stages in order:
%VAR% tokens are replaced with environment variable values. %0–%9 reference batch arguments. %* expands to all arguments.^ escapes special characters (& | < > ^). Quotation marks prevent interpretation of enclosed special characters. In batch files, %% yields a literal %.|), compound commands (&, &&, ||), and parenthesized groups ( ).> overwrites, >> appends, < reads input, 2> redirects stderr, 2>&1 merges stderr into stdout, >NUL discards output.set _MY_VAR=Hello World
echo %_MY_VAR%
set _MY_VAR=set with no arguments lists all variablesset _PREFIX lists variables starting with _PREFIX= — set name = val sets variable "name " to " val"| Variable | Value |
|---|---|
%CD% | Current directory |
%DATE% | System date (locale-dependent) |
%TIME% | System time HH:MM:SS.mm |
%RANDOM% | Pseudorandom number 0–32767 |
%ERRORLEVEL% | Exit code of last command |
%USERNAME% | Current user name |
%USERPROFILE% | Current user profile path |
%TEMP% / %TMP% | Temporary file directory |
%PATHEXT% | Executable extensions list |
%COMSPEC% | Path to cmd.exe |
setlocal
set _LOCAL_VAR=scoped value
endlocal
REM _LOCAL_VAR is no longer defined hereTo return a value from a scoped block:
endlocal & set _RESULT=%_LOCAL_VAR%Variables inside parenthesized blocks are expanded at parse time. Use delayed expansion for runtime evaluation:
setlocal EnableDelayedExpansion
set _COUNT=0
for /l %%i in (1,1,5) do (
set /a _COUNT+=1
echo !_COUNT!
)
endlocal!VAR! expands at execution time (delayed)%VAR% expands at parse time (immediate)if exist "output.txt" echo File found
if not defined _MY_VAR echo Variable not set
if "%_STATUS%"=="ready" (echo Go) else (echo Wait)
if %ERRORLEVEL% neq 0 echo Command failedComparison operators: equ, neq, lss, leq, gtr, geq. Use /i for case-insensitive string comparison.
command1 & command2 & REM Always run both
command1 && command2 & REM Run command2 only if command1 succeeds
command1 || command2 & REM Run command2 only if command1 failsREM Iterate over a set of values
for %%i in (alpha beta gamma) do echo %%i
REM Numeric range: start, step, end
for /l %%i in (1,1,10) do echo %%i
REM Files in a directory
for %%f in (*.txt) do echo %%f
REM Recursive file search
for /r %%f in (*.log) do echo %%f
REM Directories only
for /d %%d in (*) do echo %%d
REM Parse command output
for /f "tokens=1,2 delims=:" %%a in ('ipconfig ^| findstr "IPv4"') do echo %%b
REM Parse file lines
for /f "usebackq tokens=*" %%a in ("data.txt") do echo %%agoto :main_logic
:usage
echo Usage: %~nx0 [options]
exit /b 1
:main_logic
echo Running main logic...
goto :eofgoto :eof exits the current batch or subroutine. Labels start with :.
| Syntax | Value |
|---|---|
%0 | Script name as invoked |
%1–%9 | Positional arguments |
%* | All arguments (unaffected by SHIFT) |
%~1 | Argument 1 with enclosing quotes removed |
%~f1 | Full path of argument 1 |
%~d1 | Drive letter of argument 1 |
%~p1 | Path (without drive) of argument 1 |
%~n1 | File name (no extension) of argument 1 |
%~x1 | Extension of argument 1 |
%~dp0 | Drive and path of the batch file itself |
%~nx0 | File name with extension of the batch file |
%~z1 | File size of argument 1 |
%~$PATH:1 | Search PATH for argument 1 |
:parse_args
if "%~1"=="" goto :args_done
if /i "%~1"=="--help" goto :usage
if /i "%~1"=="--output" (
set "_OUTPUT_DIR=%~2"
shift
)
shift
goto :parse_args
:args_doneset _STR=Hello World
echo %_STR:~0,5% & REM "Hello"
echo %_STR:~6% & REM "World"
echo %_STR:~-5% & REM "World"
echo %_STR:~0,-6% & REM "Hello"set _STR=Hello World
echo %_STR:World=Earth% & REM "Hello Earth"
echo %_STR:Hello=% & REM " World" (remove "Hello")if not "%_STR:World=%"=="%_STR%" echo Contains "World"Functions use labels, CALL, and SETLOCAL/ENDLOCAL:
@echo off
call :greet "Jane Doe"
echo Result: %_GREETING%
exit /b 0
:greet
setlocal
set "_MSG=Hello, %~1"
endlocal & set "_GREETING=%_MSG%"
exit /b 0call :label args invokes a functionexit /b returns from the function (not the script)endlocal & set trick to pass values out of a scoped blockset /a performs 32-bit signed integer arithmetic:
set /a _RESULT=10 * 5 + 3
set /a _COUNTER+=1
set /a _REMAINDER=14 %% 3 & REM Use %% for modulo in batch files
set /a _BITS="255 & 0x0F" & REM Bitwise ANDSupported operators: + - * / %% ( ) and bitwise & | ^ ~ << >>.
Hexadecimal (0xFF) and octal (077) literals are supported.
0 = success1)mycommand.exe
if %ERRORLEVEL% neq 0 (
echo ERROR: mycommand failed with code %ERRORLEVEL%
exit /b %ERRORLEVEL%
)command1 || (echo command1 failed & exit /b 1)
command2 || (echo command2 failed & exit /b 1)exit /b 0 & REM Return success from a batch/function
exit /b 1 & REM Return failure
cmd /c "exit /b 42" & REM Set ERRORLEVEL to 42 inline| Command | Purpose |
|---|---|
DIR | List directory contents |
COPY | Copy files |
XCOPY | Extended copy with subdirectories (legacy) |
ROBOCOPY | Robust copy with retry, mirror, logging |
MOVE | Move or rename files |
DEL | Delete files |
REN | Rename files |
MD / MKDIR | Create directories |
RD / RMDIR | Remove directories |
MKLINK | Create symbolic or hard links |
ATTRIB | View or set file attributes |
TYPE | Print file contents |
MORE | Paginated file display |
TREE | Display directory structure |
REPLACE | Replace files in destination with source |
COMPACT | Show or set NTFS compression |
EXPAND | Extract from .cab files |
MAKECAB | Create .cab archives |
TAR | Create or extract tar archives |
| Command | Purpose |
|---|---|
FIND | Search for literal strings |
FINDSTR | Search with limited regular expressions |
SORT | Sort lines alphabetically |
CLIP | Copy piped input to clipboard |
FC | Compare two files |
COMP | Binary file comparison |
CERTUTIL | Encode/decode Base64, compute hashes |
| Command | Purpose |
|---|---|
SYSTEMINFO | Full system configuration |
HOSTNAME | Display computer name |
VER | Windows version |
WHOAMI | Current user and group info |
TASKLIST | List running processes |
TASKKILL | Terminate processes |
WMIC | WMI queries (drives, OS, memory) |
SC | Service control (query, start, stop) |
DRIVERQUERY | List installed drivers |
REG | Registry operations (query, add, delete) |
SETX | Set persistent environment variables |
| Command | Purpose |
|---|---|
PING | Test network connectivity |
IPCONFIG | IP configuration |
NSLOOKUP | DNS lookup |
NETSTAT | Network connections and ports |
TRACERT | Trace route to host |
NET USE | Map/disconnect network drives |
NET USER | Manage user accounts |
NETSH | Network configuration utility |
ARP | ARP cache management |
ROUTE | Routing table management |
CURL | HTTP requests (Windows 10+) |
SSH | Secure shell (Windows 10+) |
| Command | Purpose |
|---|---|
SCHTASKS | Create and manage scheduled tasks |
TIMEOUT | Wait N seconds (Vista+) |
START | Launch programs asynchronously |
RUNAS | Run as different user |
SHUTDOWN | Shutdown or restart |
FORFILES | Find files by date and execute commands |
| Command | Purpose |
|---|---|
WHERE | Locate executables in PATH |
DOSKEY | Create command macros |
CHOICE | Prompt for single-key input |
MODE | Configure console size and ports |
SUBST | Map folder to drive letter |
CHCP | Get or set console code page |
COLOR | Set console colors |
TITLE | Set console window title |
ASSOC / FTYPE | File type associations |
Parentheses turn compound commands into a single unit for redirection or conditional execution:
(echo Line 1 & echo Line 2) > output.txt
if exist "data.csv" (
echo Processing...
call :process "data.csv"
) else (
echo No data found.
)The caret ^ escapes the next character:
echo Total ^& Summary & REM Outputs: Total & Summary
echo 100%% complete & REM Outputs: 100% complete (in batch)
echo Line one^
Line two & REM Caret escapes the newlineAfter a pipe, triple caret is needed: echo x ^^^& y | findstr x
* matches any sequence of characters? matches a single character (or zero at end of period-free segment)dir *.txt & REM All .txt files
ren *.jpeg *.jpg & REM Bulk renamecommand > file.txt & REM Overwrite stdout to file
command >> file.txt & REM Append stdout to file
command 2> errors.log & REM Redirect stderr
command > all.log 2>&1 & REM Merge stderr into stdout
command < input.txt & REM Read stdin from file
command > NUL 2>&1 & REM Discard all output@echo off
setlocal EnableDelayedExpansion
REM ============================================================
REM Script: example.bat
REM Purpose: Describe what this script does
REM ============================================================
call :main %*
exit /b %ERRORLEVEL%
:main
call :parse_args %*
if not defined _TARGET (
echo ERROR: --target is required. 1>&2
call :usage
exit /b 1
)
echo Processing: %_TARGET%
exit /b 0
:parse_args
if "%~1"=="" exit /b 0
if /i "%~1"=="--target" set "_TARGET=%~2" & shift
if /i "%~1"=="--help" call :usage & exit /b 0
shift
goto :parse_args
:usage
echo Usage: %~nx0 --target ^<path^> [--help]
echo.
echo Options:
echo --target Path to process (required)
echo --help Show this help message
exit /b 0@echo off and setlocal — Prevents noisy output and variable leakage to the caller.if not defined and if not exist."%~1" and "%_MY_PATH%" to handle spaces and special characters safely.exit /b instead of exit — Avoids closing the parent console window.exit /b 0 for success, non-zero for specific failures.%~dp0 for script-relative paths — Ensures the script works regardless of the caller's working directory.ROBOCOPY over XCOPY — More reliable, supports retry, mirroring, and logging.EnableDelayedExpansion when modifying variables inside loops or parenthesized blocks.echo ERROR: message 1>&2 keeps stdout clean for piping.REM for comments — :: can cause issues inside FOR loop bodies.&, |, or > can inject commands. Always quote: "%_USER_INPUT%".SETLOCAL — Prevents variable values from leaking to parent processes.DEL, RD, or ROBOCOPY to prevent unintended deletion.SET /P for sensitive input — Input is visible and stored in console history. Use a dedicated credential tool when possible.| Technique | How |
|---|---|
| Trace execution | Remove @echo off or use @echo on temporarily |
| Step through | Add PAUSE between sections |
| Check error level | echo Exit code: %ERRORLEVEL% after each command |
| Inspect variables | set _MY_ to list all variables starting with _MY_ |
| Delayed expansion issues | Variable inside ( ) block not updating? Enable !VAR! syntax |
FOR loop %% vs % | Use %%i in batch files, %i on the command line |
| Spaces in SET | set name=value not set name = value |
| Caret in pipes | After a pipe, use ^^^ to escape special chars |
| Parentheses in SET /A | Escape with ^( and ^) inside if blocks, or use quotes |
| Double percent for modulo | set /a r=14 %% 3 in batch files |
When batch scripting reaches its limits, these tools extend cmd.exe capabilities:
| Tool | Purpose |
|---|---|
| Cygwin | Full POSIX environment on Windows (grep, sed, awk, ssh) |
| MSYS2 | Lightweight Unix tools and package manager (pacman) |
| WSL | Windows Subsystem for Linux — run native Linux binaries |
| GnuWin32 | Individual GNU utilities as native Windows executables |
| PowerShell | Modern Windows scripting with .NET integration |
Use 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.
| Shortcut | Action |
|---|---|
Tab | Auto-complete file/folder names |
Up / Down | Navigate command history |
F7 | Show command history popup |
F3 | Repeat last command |
Esc | Clear current line |
Ctrl+C | Cancel running command |
Alt+F7 | Clear command history |
The references/ folder contains detailed documentation:
| File | Contents |
|---|---|
tools-and-resources.md | Windows tools, utilities, package managers, terminals |
batch-files-and-functions.md | Example scripts, techniques, best practices links |
windows-commands.md | Comprehensive A-Z Windows command reference |
cygwin.md | Cygwin user guide and FAQ |
msys2.md | MSYS2 installation, packages, and environments |
windows-subsystem-on-linux.md | WSL setup, commands, and documentation |
The assets/ folder contains starter batch file template data, but as text files:
| Template | Purpose |
|---|---|
executable.txt | Standalone CLI tool with argument parsing |
library.txt | Reusable function library with CALL-able labels |
task.txt | Scheduled task / automation script |
© github, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 9 other files (references, assets) in skills/batch-files of github/awesome-copilot.
Open the folder on GitHubat commit 727ff2e
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in github/awesome-copilot, which our catalogue first saw on October 7, 2026.
Batch Files next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Batch Files this skillgithub/awesome-copilot | 40k | 1 repos | ~4.3k | Automated safety check: Pass | MIT | |
| Mole Bug Patternstw93/Mole | 69k | — | ~2k | Automated safety check: Pass | GPL-3.0 | |
| Cppcrazyguitar/cppcheatsheet | 290 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Os Scriptingaiskillstore/marketplace | 430 | 3 repos | ~2.2k | Automated safety check: Notes | None | |
| Bash Scriptingericrisco/rsc-harness | 156 | — | ~2.5k | Automated safety check: Pass | MIT | |
| Shell ScripterFerroxLabs/wayland | 608 | — | ~3.3k | Automated safety check: Pass | Apache-2.0 |
tw93/Mole
A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.
crazyguitar/cppcheatsheet
Comprehensive C/C++ programming reference covering everything from C11-C23 and C++11-C++23, system programming, CUDA GPU computing, debugging tools, Rust interop, and advanced topics.
aiskillstore/marketplace
Operating system and shell scripting troubleshooting workflow for Linux, macOS, and Windows.
ericrisco/rsc-harness
A skill your agent uses when writing or hardening a shell script that must survive another machine — a CI step, install script, cron job, git hook, devcontainer entrypoint: strict-mode leaks…
FerroxLabs/wayland
Shell scripting mastery. An agent skill from FerroxLabs/wayland.
HKUDS/OpenSpace
Fallback ladder for failed sandboxed code runs, plus the habit of fixing the working directory first so generated files land in the right place.
github/awesome-copilot
Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.
github/awesome-copilot
Designs Azure infrastructure from a natural-language description, or diagrams an existing resource group, then refines the design through conversation and deploys it with Bicep.
github/awesome-copilot
Generates, edits and validates draw.io files with correct mxGraph XML, covering flowcharts, architecture, sequence, ER and UML class diagrams.
github/awesome-copilot
Cleans raw credit data and screens variables before loan modeling, dropping unstable, noisy or redundant features and writing an Excel report of every step.
github/awesome-copilot
Builds a warm, browser-based daily focus board the user updates by talking to their agent, with Eisenhower priorities, a brain-dump box and kind not-today carryover.
github/awesome-copilot
End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI.
Works with
Categories
Expert-level Windows batch file (.bat/.cmd) skill for writing, debugging, and maintaining CMD scripts. Batch Files is an agent skill from github/awesome-copilot, published by the product's own GitHub organization.cmd) skill for writing, debugging, and maintaining CMD scripts.
Batch Files fits situations like: asked to create a batch file; write a .bat script; automate a Windows task; batch automation.
Run `npx skills add github/awesome-copilot --skill batch-files -a claude-code`. Or copy the skill folder (skills/batch-files in github/awesome-copilot) into .claude/skills/batch-files in your project. Claude Code loads it when a task matches its description.
Run `npx skills add github/awesome-copilot --skill batch-files -a codex`. Or copy the skill folder (skills/batch-files in github/awesome-copilot) into .agents/skills/batch-files in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add github/awesome-copilot --skill batch-files -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/batch-files, .gemini/skills/batch-files, .github/skills/batch-files and .opencode/skills/batch-files in your project.
SKILL.md names no scripts, command-line tools or credentials: Batch Files is instructions for the agent only. Our summary lists: Node.js.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Batch Files is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.3k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 45k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Batch Files: Mole Bug Patterns (tw93/Mole, 69k stars), Cpp (crazyguitar/cppcheatsheet, 290 stars), Os Scripting (aiskillstore/marketplace, 430 stars) and Bash Scripting (ericrisco/rsc-harness, 156 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
github (a GitHub organization, an official publisher) maintains it in github/awesome-copilot, which has 39,748 GitHub stars. The repository holds 417 skills in this directory. The repository was last updated on October 7, 2026.
Source: github/awesome-copilot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.