Official agent skill

Batch Files

by github in github/awesome-copilot

Expert-level Windows batch file (.bat/.cmd) skill for writing, debugging, and maintaining CMD scripts.

OfficialMITAuto-check passedDevelopment

Install Batch Files

skills CLI
$ npx skills add github/awesome-copilot --skill batch-files -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install github/awesome-copilot batch-files --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ 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-src

Use ~/.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/

Facts

Skill name
batch-files
GitHub stars
40k
Used in
1 other repo
Token cost
~4.3k tokens
SKILL.md length
1,471 words
Files
10 (incl. references, assets)
Skills in repo
417
Repo updated
First seen
Licence
MIT

At a glance

Expert-level Windows batch file (.bat/.cmd) skill for writing, debugging, and maintaining CMD scripts.

  • Works in 4 steps: Variable substitution — %VAR% tokens are… → Quoting and escaping — Caret ^ escapes… → Syntax parsing — Lines are split into… → …
  • Asked to create a batch file
  • SKILL.md covers When to Use This Skill, Prerequisites, Command Interpretation and Variables, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

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.

When your agent uses it

  • Asked to create a batch file
  • Write a .bat script
  • Automate a Windows task
  • Batch automation

Example prompts

  • “create a batch file”
  • “write a .bat script”
  • “automate a Windows task”
  • “/batch-files”

Requirements

  • Node.js

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Variable substitution — %VAR% tokens are replaced with environment variable values. %0–%9 reference batch arguments. %* expands to all…
  2. Quoting and escaping — Caret ^ escapes special characters (& | < > ^). Quotation marks prevent interpretation of enclosed special…
  3. Syntax parsing — Lines are split into pipelines (|), compound commands (&, &&, ||), and parenthesized groups ( ).
  4. Redirection — > overwrites, >> appends, < reads input, 2> redirects stderr, 2>&1 merges stderr into stdout, >NUL discards output.

What it can do on your machine

Read from SKILL.md and the folder at commit 727ff2e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    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.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

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.

Always · name and description, kept in context so the agent knows when to use it
~119
When it runs · the whole SKILL.md, loaded when a task matches
~4.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~49k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from github/awesome-copilot at commit 727ff2e, republished under its MIT licence (© github). 1,471 words, ~4,310 tokens.

Download SKILL.mdSave it as .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.
name
batch-files
description
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.

Batch Files

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.

When to Use This Skill

  • Creating or editing .bat or .cmd files
  • Automating Windows tasks (file operations, deployments, backups)
  • Building CLI tools intended for a bin/ folder on PATH
  • Writing scheduled task scripts (SCHTASKS, Task Scheduler)
  • Debugging batch script issues (variable expansion, error levels, quoting)
  • Integrating batch scripts with external tools (curl, git, Node.js, Python)
  • Scaffolding new batch-based projects with structured templates

Prerequisites

  • Windows NT-based OS (Windows 7 or later)
  • cmd.exe (built-in)
  • Optional: a bin/ directory on PATH for distributing scripts as commands
  • Optional: PATHEXT configured to include .BAT;.CMD (default on Windows)

Command Interpretation

cmd.exe processes each line through four stages in order:

  1. Variable substitution — %VAR% tokens are replaced with environment variable values. %0–%9 reference batch arguments. %* expands to all arguments.
  2. Quoting and escaping — Caret ^ escapes special characters (& | < > ^). Quotation marks prevent interpretation of enclosed special characters. In batch files, %% yields a literal %.
  3. Syntax parsing — Lines are split into pipelines (|), compound commands (&, &&, ||), and parenthesized groups ( ).
  4. Redirection — > overwrites, >> appends, < reads input, 2> redirects stderr, 2>&1 merges stderr into stdout, >NUL discards output.

Variables

Environment Variables
bat
set _MY_VAR=Hello World
echo %_MY_VAR%
set _MY_VAR=
  • set with no arguments lists all variables
  • set _PREFIX lists variables starting with _PREFIX
  • No spaces around = — set name = val sets variable "name " to " val"
Special Variables
VariableValue
%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
Scoping with SETLOCAL / ENDLOCAL
bat
setlocal
set _LOCAL_VAR=scoped value
endlocal
REM _LOCAL_VAR is no longer defined here

To return a value from a scoped block:

bat
endlocal & set _RESULT=%_LOCAL_VAR%
Delayed Expansion

Variables inside parenthesized blocks are expanded at parse time. Use delayed expansion for runtime evaluation:

bat
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)

Control Flow

Conditional Execution
bat
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 failed

Comparison operators: equ, neq, lss, leq, gtr, geq. Use /i for case-insensitive string comparison.

Compound Commands
bat
command1 & command2        & REM Always run both
command1 && command2       & REM Run command2 only if command1 succeeds
command1 || command2       & REM Run command2 only if command1 fails
FOR Loops
bat
REM 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 %%a
GOTO and Labels
bat
goto :main_logic
:usage
echo Usage: %~nx0 [options]
exit /b 1

:main_logic
echo Running main logic...
goto :eof

goto :eof exits the current batch or subroutine. Labels start with :.

Command-Line Arguments

SyntaxValue
%0Script name as invoked
%1–%9Positional arguments
%*All arguments (unaffected by SHIFT)
%~1Argument 1 with enclosing quotes removed
%~f1Full path of argument 1
%~d1Drive letter of argument 1
%~p1Path (without drive) of argument 1
%~n1File name (no extension) of argument 1
%~x1Extension of argument 1
%~dp0Drive and path of the batch file itself
%~nx0File name with extension of the batch file
%~z1File size of argument 1
%~$PATH:1Search PATH for argument 1
Argument Parsing Pattern
bat
: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_done

String Processing

Substrings
bat
set _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"
Search and Replace
bat
set _STR=Hello World
echo %_STR:World=Earth%       & REM "Hello Earth"
echo %_STR:Hello=%            & REM " World" (remove "Hello")
Substring Containment Test
bat
if not "%_STR:World=%"=="%_STR%" echo Contains "World"

Functions

Functions use labels, CALL, and SETLOCAL/ENDLOCAL:

bat
@echo off
call :greet "Jane Doe"
echo Result: %_GREETING%
exit /b 0

:greet
setlocal
set "_MSG=Hello, %~1"
endlocal & set "_GREETING=%_MSG%"
exit /b 0
  • call :label args invokes a function
  • exit /b returns from the function (not the script)
  • Use the endlocal & set trick to pass values out of a scoped block

Arithmetic

set /a performs 32-bit signed integer arithmetic:

bat
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 AND

Supported operators: + - * / %% ( ) and bitwise & | ^ ~ << >>.

Hexadecimal (0xFF) and octal (077) literals are supported.

Error Handling

Error Level Conventions
  • 0 = success
  • Non-zero = failure (typically 1)
bat
mycommand.exe
if %ERRORLEVEL% neq 0 (
    echo ERROR: mycommand failed with code %ERRORLEVEL%
    exit /b %ERRORLEVEL%
)
Fail-Fast Pattern
bat
command1 || (echo command1 failed & exit /b 1)
command2 || (echo command2 failed & exit /b 1)
Setting Exit Codes
bat
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

Essential Commands Reference

File Operations
CommandPurpose
DIRList directory contents
COPYCopy files
XCOPYExtended copy with subdirectories (legacy)
ROBOCOPYRobust copy with retry, mirror, logging
MOVEMove or rename files
DELDelete files
RENRename files
MD / MKDIRCreate directories
RD / RMDIRRemove directories
MKLINKCreate symbolic or hard links
ATTRIBView or set file attributes
TYPEPrint file contents
MOREPaginated file display
TREEDisplay directory structure
REPLACEReplace files in destination with source
COMPACTShow or set NTFS compression
EXPANDExtract from .cab files
MAKECABCreate .cab archives
TARCreate or extract tar archives
Text Search and Processing
CommandPurpose
FINDSearch for literal strings
FINDSTRSearch with limited regular expressions
SORTSort lines alphabetically
CLIPCopy piped input to clipboard
FCCompare two files
COMPBinary file comparison
CERTUTILEncode/decode Base64, compute hashes
System Information
CommandPurpose
SYSTEMINFOFull system configuration
HOSTNAMEDisplay computer name
VERWindows version
WHOAMICurrent user and group info
TASKLISTList running processes
TASKKILLTerminate processes
WMICWMI queries (drives, OS, memory)
SCService control (query, start, stop)
DRIVERQUERYList installed drivers
REGRegistry operations (query, add, delete)
SETXSet persistent environment variables
Network
CommandPurpose
PINGTest network connectivity
IPCONFIGIP configuration
NSLOOKUPDNS lookup
NETSTATNetwork connections and ports
TRACERTTrace route to host
NET USEMap/disconnect network drives
NET USERManage user accounts
NETSHNetwork configuration utility
ARPARP cache management
ROUTERouting table management
CURLHTTP requests (Windows 10+)
SSHSecure shell (Windows 10+)
Scheduling and Automation
CommandPurpose
SCHTASKSCreate and manage scheduled tasks
TIMEOUTWait N seconds (Vista+)
STARTLaunch programs asynchronously
RUNASRun as different user
SHUTDOWNShutdown or restart
FORFILESFind files by date and execute commands
Shell Utilities
CommandPurpose
WHERELocate executables in PATH
DOSKEYCreate command macros
CHOICEPrompt for single-key input
MODEConfigure console size and ports
SUBSTMap folder to drive letter
CHCPGet or set console code page
COLORSet console colors
TITLESet console window title
ASSOC / FTYPEFile type associations

Shell Syntax and Expressions

Parentheses for Grouping

Parentheses turn compound commands into a single unit for redirection or conditional execution:

bat
(echo Line 1 & echo Line 2) > output.txt
if exist "data.csv" (
    echo Processing...
    call :process "data.csv"
) else (
    echo No data found.
)
Show full SKILL.md (586 more words)Show less
Escape Characters

The caret ^ escapes the next character:

bat
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 newline

After a pipe, triple caret is needed: echo x ^^^& y | findstr x

Wildcards
  • * matches any sequence of characters
  • ? matches a single character (or zero at end of period-free segment)
bat
dir *.txt           & REM All .txt files
ren *.jpeg *.jpg    & REM Bulk rename
Redirection Summary
bat
command > 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

Writing Production-Quality Batch Files

Standard Script Structure
bat
@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
Best Practices
  1. Always start with @echo off and setlocal — Prevents noisy output and variable leakage to the caller.
  2. Validate inputs before processing — Check required arguments and file existence early. Use if not defined and if not exist.
  3. Quote paths and variables — Use "%~1" and "%_MY_PATH%" to handle spaces and special characters safely.
  4. Use exit /b instead of exit — Avoids closing the parent console window.
  5. Return meaningful exit codes — exit /b 0 for success, non-zero for specific failures.
  6. Use %~dp0 for script-relative paths — Ensures the script works regardless of the caller's working directory.
  7. Prefer ROBOCOPY over XCOPY — More reliable, supports retry, mirroring, and logging.
  8. Use EnableDelayedExpansion when modifying variables inside loops or parenthesized blocks.
  9. Write errors to stderr — echo ERROR: message 1>&2 keeps stdout clean for piping.
  10. Use REM for comments — :: can cause issues inside FOR loop bodies.
Security Considerations
  • Never store credentials in batch files — Use environment variables, credential stores, or prompts.
  • Validate user input — Unquoted variables containing &, |, or > can inject commands. Always quote: "%_USER_INPUT%".
  • Use SETLOCAL — Prevents variable values from leaking to parent processes.
  • Sanitize file paths — Validate paths before passing to DEL, RD, or ROBOCOPY to prevent unintended deletion.
  • Avoid SET /P for sensitive input — Input is visible and stored in console history. Use a dedicated credential tool when possible.

Debugging and Troubleshooting

TechniqueHow
Trace executionRemove @echo off or use @echo on temporarily
Step throughAdd PAUSE between sections
Check error levelecho Exit code: %ERRORLEVEL% after each command
Inspect variablesset _MY_ to list all variables starting with _MY_
Delayed expansion issuesVariable inside ( ) block not updating? Enable !VAR! syntax
FOR loop %% vs %Use %%i in batch files, %i on the command line
Spaces in SETset name=value not set name = value
Caret in pipesAfter a pipe, use ^^^ to escape special chars
Parentheses in SET /AEscape with ^( and ^) inside if blocks, or use quotes
Double percent for moduloset /a r=14 %% 3 in batch files

Cross-Platform and Extended Tools

When batch scripting reaches its limits, these tools extend cmd.exe capabilities:

ToolPurpose
CygwinFull POSIX environment on Windows (grep, sed, awk, ssh)
MSYS2Lightweight Unix tools and package manager (pacman)
WSLWindows Subsystem for Linux — run native Linux binaries
GnuWin32Individual GNU utilities as native Windows executables
PowerShellModern 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.

CMD Keyboard Shortcuts

ShortcutAction
TabAuto-complete file/folder names
Up / DownNavigate command history
F7Show command history popup
F3Repeat last command
EscClear current line
Ctrl+CCancel running command
Alt+F7Clear command history

Reference Files

The references/ folder contains detailed documentation:

FileContents
tools-and-resources.mdWindows tools, utilities, package managers, terminals
batch-files-and-functions.mdExample scripts, techniques, best practices links
windows-commands.mdComprehensive A-Z Windows command reference
cygwin.mdCygwin user guide and FAQ
msys2.mdMSYS2 installation, packages, and environments
windows-subsystem-on-linux.mdWSL setup, commands, and documentation

Asset Templates

The assets/ folder contains starter batch file template data, but as text files:

TemplatePurpose
executable.txtStandalone CLI tool with argument parsing
library.txtReusable function library with CALL-able labels
task.txtScheduled 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

Files

SKILL.md and 9 other files (references, assets) in skills/batch-files of github/awesome-copilot.

  • SKILL.md
  • assets/executable.txt
  • assets/library.txt
  • assets/task.txt
  • references/batch-files-and-functions.md
  • references/cygwin.md
  • references/msys2.md
  • references/tools-and-resources.md
  • references/windows-commands.md
  • references/windows-subsystem-on-linux.md

Open the folder on GitHubat commit 727ff2e

Used in 1 other repository

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.

Compare with similar skills

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.

Batch Files compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Batch Files this skillgithub/awesome-copilot40k1 repos~4.3kAutomated safety check: PassMIT
Mole Bug Patternstw93/Mole69k—~2kAutomated safety check: PassGPL-3.0
Cppcrazyguitar/cppcheatsheet290—~1.8kAutomated safety check: PassMIT
Os Scriptingaiskillstore/marketplace4303 repos~2.2kAutomated safety check: NotesNone
Bash Scriptingericrisco/rsc-harness156—~2.5kAutomated safety check: PassMIT
Shell ScripterFerroxLabs/wayland608—~3.3kAutomated safety check: PassApache-2.0

Similar skills

  • 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.

    69k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Cpp

    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.

    290 GitHub stars~1.8k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Os Scripting

    aiskillstore/marketplace

    Operating system and shell scripting troubleshooting workflow for Linux, macOS, and Windows.

    430 GitHub starsUsed in 3 repos~2.2k tokens
    DevelopmentAuto-check: notes
  • Bash Scripting

    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…

    156 GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Shell Scripter

    FerroxLabs/wayland

    Shell scripting mastery. An agent skill from FerroxLabs/wayland.

    608 GitHub stars~3.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Fallback ladder for failed sandboxed code runs, plus the habit of fixing the working directory first so generated files land in the right place.

    7.7k GitHub stars~1.1k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed

More from github/awesome-copilot

All 417 skills in this repo
  • Acquire Codebase Knowledge

    github/awesome-copilot

    Official

    Maps an unfamiliar codebase into seven evidence-backed documents in docs/codebase/, using a scan script and templates, for onboarding or architecture write-ups.

    40k GitHub starsUsed in 1 repo~2.3k tokens
    Auto-check passed
  • Azure Architecture Autopilot

    github/awesome-copilot

    Official

    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.

    40k GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Draw.io Diagram Generator

    github/awesome-copilot

    Official

    Generates, edits and validates draw.io files with correct mxGraph XML, covering flowcharts, architecture, sequence, ER and UML class diagrams.

    40k GitHub starsUsed in 1 repo~4.9k tokens
    Auto-check passed
  • Credit Risk Data Cleaning

    github/awesome-copilot

    Official

    Cleans raw credit data and screens variables before loan modeling, dropping unstable, noisy or redundant features and writing an Excel report of every step.

    40k GitHub starsUsed in 1 repo~1.5k tokens
    Auto-check passed
  • Daily Focus Board

    github/awesome-copilot

    Official

    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.

    40k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Python Pypi Package Builder

    github/awesome-copilot

    Official

    End-to-end skill for building, testing, linting, versioning, and publishing a production-grade Python library to PyPI.

    40k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Works with

Questions about Batch Files

What does Batch Files do?

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.

When should I use Batch Files?

Batch Files fits situations like: asked to create a batch file; write a .bat script; automate a Windows task; batch automation.

How do I install Batch Files in Claude Code?

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.

How do I install Batch Files in Codex?

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.

Can I use Batch Files in Cursor, Gemini CLI or GitHub Copilot?

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.

What does Batch Files need to run?

SKILL.md names no scripts, command-line tools or credentials: Batch Files is instructions for the agent only. Our summary lists: Node.js.

Does Batch Files access the network?

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.

Is Batch Files safe to install?

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.

What licence does Batch Files use?

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.

How many tokens does Batch Files use?

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.

What are the alternatives to Batch 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.

Who maintains Batch Files?

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.