SkillsReviewed · github

Batch Script Progress

Batch Script Progress is an AI assistant skill for developers adding progress reporting to batch scripts, but each script still needs its own integration and runtime verification. It covers Python, PowerShell and Node.js, with guidance on counters, failures, output streams, cancellation and preserving existing exit codes.

Researched 16 Nov 2026

In short.

Batch Script Progress is an AI assistant skill for developers making batch scripts easier to observe, but its bundled examples do not establish that a production script works correctly. It defines how to report starts, progress, individual failures and final outcomes while preserving existing results and exit codes. The supplied Python, PowerShell and Node.js fixtures illustrate those rules, and a verifier contains accounting and live-output checks. Nothing was executed; runtime behavior and the skill's effect on an assistant's work remain unverified.

Researched and written by an AI model and checked by a second AI model. How it works

Scope covers the complete supplied skills/batch-script-progress folder: SKILL.md, references/language-notes.md, references/verification.md, examples/batch.py, examples/batch.ps1, examples/batch.mjs and tests/verify-examples.mjs, plus the repository-level LICENSE notice. All are pinned to dc0083dbe22133bfa7ce3500dee85e187e0cd47a. Other repository content, assistant-host installation behavior and production integrations are outside this scope. No code was executed, and no runtime, performance, real-signal cancellation or assistant-effectiveness results are established.

The overview

Identity

Batch Script Progress is a folder-based AI assistant skill in github/awesome-copilot. SKILL.md supplies the instructions, supported by language notes, verification guidance, three example scripts and a Node.js verifier.

The version described is revision dc0083dbe22133bfa7ce3500dee85e187e0cd47a. Its original location at that revision is [https://github.com/github/awesome-copilot/tree/dc0083dbe22133bfa7ce3500dee85e187e0cd47a/skills/batch-script-progress].

Assessment

The skill provides a detailed approach for adding visibility to scripts that process many files, records or API requests. Its useful distinction is that progress reporting includes truthful counts, failure outcomes, compatible output streams and exit status, rather than just a visual indicator.

The source explicitly separates example verification from production verification. The supplied verifier contains concrete assertions, but no execution results or evidence that loading this skill improves an assistant's output are supplied.

Users

The intended users are developers asking an AI assistant to create or modify Python, PowerShell or Node.js batch scripts. It is particularly relevant to silent loops, bulk operations and scripts whose results feed another program.

Beginners get a vocabulary for describing progress and failures. Experienced developers get guidance on lazy input, transaction boundaries, retries, concurrency and cancellation. Applying those parts requires understanding the existing script and its callers. UI progress bars, monitoring infrastructure and conversational status updates fall outside the stated scope.

Capabilities

The skill guides an assistant through defining start, periodic progress, individual-failure and summary records. Suggested fields include processed, succeeded, failed and skipped counts, elapsed time, a known or unknown total, and a final outcome.

It addresses empty input, unknown totals, partial failures that retain a zero exit code, fail-fast behavior, output flushing and safe identifiers. It also explains why a timer cannot provide progress during synchronous Node.js blocking and why PowerShell's interactive progress display is insufficient as a durable log.

Using it

Requirements

Using the guidance requires access to the target script, its callers and nearby tests. The assistant needs to establish the existing result format, failure policy, runtime, cancellation behavior and exit-code expectations before changing output. Specific assistant products, host versions and automatic discovery requirements are not established by these files.

The documented bundled verifier requires Node.js 20 or later, Python 3.9 or later and PowerShell 5.1 or later. All three runtimes are required for its full set of checks; a missing runtime causes failure. The examples use standard runtime facilities without third-party package imports.

Mechanism

The central accounting rule is processed = succeeded + failed + skipped. Only terminal outcomes count as processed; retries, submitted work and in-flight items need separate treatment. Success should follow the required write, commit or acknowledgement, with rollback reported honestly.

The skill reserves standard output, or stdout, for established results and normally uses standard error, or stderr, for progress and diagnostics. Existing callers must tolerate that channel. It recommends bounded reporting intervals, monotonic clocks, sanitized identifiers and explicit flushing or backpressure handling.

Unknown totals remain unknown, without fabricated percentages or estimated completion times. Reporting must preserve the script's existing failure and exit-code contract, including a zero exit code for partial failure when that is already required.

Setup

Keep SKILL.md together with references/, examples/ and tests/ so its relative references remain usable. Host-specific installation and automatic loading steps are not documented in the selected folder.

The documented command for the bundled fixtures is node tests/verify-examples.mjs, issued from the skill folder. BATCH_PYTHON and BATCH_POWERSHELL can specify executable paths. The verifier uses its own Node.js interpreter. On Windows, its PowerShell child receives a process-scoped ExecutionPolicy Bypass argument; the notes state that stored policy is unchanged and organization policy may still block execution. No command was executed.

Example

The partial-zero scenario illustrates a subtle integration requirement. Each supplied language fixture is written to process three synthetic items, reject item-2 and retain results for item-1 and item-3, with values 2 and 6. Its summary describes a partial outcome with three processed, two succeeded, one failed and zero skipped, while preserving exit code zero.

The live scenario uses a fixture-only pause after the first progress event. The verifier is written to receive that event while the child is still active, then release it through standard input. This checks pre-exit delivery for the fixtures rather than inferring visibility from output collected after termination. These are descriptions of source logic, not observed results.

Assessment & evidence

Limitations

The examples are small synthetic processors, not production integrations. Their unknown-total scenario hides the total for a fixed loop; it does not demonstrate real lazy-stream consumption. Cancellation is simulated, so it does not establish operating-system signal handling or PowerShell host-stop behavior.

The verifier does not establish production transaction handling, concurrency, secret redaction or mid-item heartbeat delivery. Progress checked only between items can remain silent throughout one blocking operation. Forced termination, crashes and broken output pipes may prevent a final summary.

No execution logs, performance measurements, assistant behavior evaluations or automatic-discovery results are supplied. Passing the bundled fixtures, if subsequently demonstrated, would still leave the target script's actual behavior to verify.

Reasoning

The strongest design choice is preserving the caller's existing contract. Additional text can break JSON consumers or PowerShell pipelines, and some callers interpret any stderr output as failure. Establishing a compatible reporting channel is therefore a practical prerequisite.

The accounting and outcome rules also address misleading success reports. A partial result can legitimately retain exit code zero, while a submitted or rolled-back item cannot automatically count as successful. The skill makes those distinctions explicit; its effectiveness in generated scripts remains unmeasured.

Alternatives

For a script with an established logger or reporting utility, the resource recommends reusing it. Standalone CLI scripts can use native stderr facilities when their callers support them.

PowerShell Write-Progress can provide an interactive display, but the notes warn that it may be invisible in CI or redirected execution. A progress-bar library can address presentation while output compatibility, failure accounting and exit codes still require design. The supplied sources do not compare named third-party libraries.

Evidence

The available source comprises SKILL.md, two reference documents, three language fixtures, one Node.js verifier and the repository MIT notice. Together they establish the documented design, visible example logic and redistribution terms.

The verifier defines eight scenarios for each of three runtimes: normal, mixed outcomes, partial failure with exit zero, empty input, unknown total, fail-fast, simulated cancellation and live output. It also contains a negative accounting control. These are 24 intended runtime/scenario checks, not 24 demonstrated passes.

No scripts or verifier were executed. Runtime compatibility, actual progress delivery and the effect of loading the skill are unverified.

Access & freshness

Costs

No purchase price, required assistant subscription, usage fee or token cost is specified. Total cost is unknown and depends on the assistant and execution environment used.

The examples have no third-party package imports, but that does not establish zero operating cost. Runtime overhead, log-storage volume and integration effort have not been measured.

Rights

The supplied repository notice is the MIT License, with copyright attributed to GitHub, Inc. It permits use, copying, modification, publication, distribution, sublicensing and sale, subject to retaining the copyright and permission notice in copies or substantial portions.

The licence supplies the software without warranty and limits liability. Copies of the skill and supporting files should retain the applicable notice. The original notice is available at [https://raw.githubusercontent.com/github/awesome-copilot/dc0083dbe22133bfa7ce3500dee85e187e0cd47a/LICENSE].

Freshness

The source snapshot was captured at 2026-11-16T18:49:13.107Z and is pinned to revision dc0083dbe22133bfa7ce3500dee85e187e0cd47a. That revision identifies the exact material described.

The supplied folder does not establish a release version or subsequent changes. Whether the main branch currently matches this snapshot, and whether later versions behave the same way, is unknown.

Actions

Before applying the skill, identify the target script's result consumers, failure policy, exit codes and cancellation requirements. Choose a compatible reporting channel, then adapt the relevant language example's reporting and accounting to that contract.

Verify the changed script with harmless inputs, capture stdout and stderr separately, inspect the real exit status and observe progress while the process is still active. Include empty input, failures and unknown totals where applicable. Verify real cancellation, redaction, transactions or concurrency when the script depends on them.

Use the bundled verifier to check the supplied probes independently. Establishing whether the skill improves assistant behavior requires separate comparisons with and without explicit loading; automatic discovery needs its own evaluation.

Evidence for this report

LICENSEnotice · checked 2026-11-16
skills/batch-script-progress/SKILL.mdselected · checked 2026-11-16