Skip to content

Install review skills and update checksums - #30

Open
vartaxe wants to merge 20 commits into
mainfrom
copilot/review-and-skills-2026-10-17
Open

vartaxe wants to merge 20 commits into
mainfrom
copilot/review-and-skills-2026-10-17

Conversation

@vartaxe

@vartaxe vartaxe commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Install github-actions-hardening, pester-should-migration, docs-sync-audit, github-release, and batch-files.
  • Regenerate CHECKSUMS.txt for all maintained skill assets.
  • Fix documentation-audit false positives for skill-relative scripts, code spans/fences, PowerShell environment reads, and URL-encoded paths.

Validation

  • Windows PowerShell 5.1 / Pester 6.2.0: 153 passed, 0 failed.
  • 119 checksum entries verified; focused docs-drift test passed.
  • git diff --check passed.

vartaxe and others added 2 commits October 17, 2026 11:45
Add the selected review and workflow skills, checksum all maintained assets, and include the shared documentation-audit checker fix.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Batch execution and cleanup defects, unsafe command expansion, and release guidance conflicts remain unresolved.

13 open issues
What changed in this PR

Adds five assistant skills for repository maintenance and review without changing the production log-copy script.

Changes:

  • Adds skill guidance, references, and batch templates.
  • Adds a documentation-drift checker and focused regression coverage.
  • Updates checksums for maintained skill assets.
File Description
CHECKSUMS.txt Records skill asset hashes.
.github/​skills/​pester-should-migration/​SKILL.md Introduces assertion migration guidance.
.github/​skills/​pester-should-migration/​references/​assertion-map.md Maps classic assertions to v6.
.github/​skills/​github-release/​SKILL.md Defines release preparation workflow.
.github/​skills/​github-release/​references/​semver-rules.md Explains version selection.
.github/​skills/​github-release/​references/​commit-classification.md Guides changelog classification.
.github/​skills/​github-actions-hardening/​SKILL.md Introduces workflow security review.
.github/​skills/​github-actions-hardening/​references/​triggers-and-privilege.md Explains workflow trust boundaries.
.github/​skills/​github-actions-hardening/​references/​supply-chain.md Covers action and artifact integrity.
.github/​skills/​github-actions-hardening/​references/​report-format.md Provides security report structure.
.github/​skills/​github-actions-hardening/​references/​permissions-and-tokens.md Documents least-privilege permissions.
.github/​skills/​github-actions-hardening/​references/​injection.md Explains injection prevention.
.github/​skills/​docs-sync-audit/​tests/​test_docs_drift.py Covers audit false-positive scenarios.
.github/​skills/​docs-sync-audit/​SKILL.md Defines documentation audit procedure.
.github/​skills/​docs-sync-audit/​scripts/​docs_drift.py Implements documentation checks.
.github/​skills/​batch-files/​SKILL.md Introduces batch scripting guidance.
.github/​skills/​batch-files/​references/​windows-subsystem-on-linux.md Collects WSL references.
.github/​skills/​batch-files/​references/​tools-and-resources.md Lists Windows development tools.
.github/​skills/​batch-files/​references/​msys2.md Collects MSYS2 guidance.
.github/​skills/​batch-files/​references/​cygwin.md Documents Cygwin integration.
.github/​skills/​batch-files/​references/​batch-files-and-functions.md Catalogs batch scripting techniques.
.github/​skills/​batch-files/​assets/​task.txt Adds automation task template.
.github/​skills/​batch-files/​assets/​library.txt Adds reusable function template.
.github/​skills/​batch-files/​assets/​executable.txt Adds command-line tool template.

Review effort: Balanced

Comment thread .github/skills/batch-files/SKILL.md Resolved
Comment thread .github/skills/github-release/SKILL.md Resolved
Comment thread .github/skills/github-release/SKILL.md Resolved
vartaxe and others added 2 commits November 1, 2026 01:38
Correct batch templates, docs auditing, Actions examples, and release guidance; refresh source checksums.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The recovery instructions leave a persistent unauthenticated SYSTEM shell at sign-in, alongside unresolved correctness defects in batch scripts and Markdown auditing.

2 open issues
10 previously missed issues

In code that hasn't changed since last review

Medium severity Return failure when input is missing or nonexistent

.github/​skills/​batch-files/​assets/​executable.txt:89

Missing input or a nonexistent input file prints an error without setting a failure status, so the tool can return success without doing any work. Set explicit nonzero results for both validation branches, capture the operation result before cleanup, and return the saved result afterward. The same issue occurs in the missing-file branch at lines 106–108.

Medium severity Trim spaces without reparsing values through FOR /F

.github/​skills/​batch-files/​assets/​library.txt:84

FOR /F substitutes %%a before delayed expansion scans the assignment, so trimming a value such as Hello! removes the literal exclamation mark as well as whitespace. Its default eol=; also skips values beginning with a semicolon. Trim leading spaces with substring operations, as the trailing-space loop does, rather than reparsing the value through FOR /F.

Medium severity Generate enough padding to honor the requested width

.github/​skills/​batch-files/​assets/​library.txt:176

Padding is limited to the fixed spaces in this literal. For example, padding abc to width 100 returns a shorter string because substring extraction does not extend a string beyond its existing length. Generate padding based on the requested width before truncating, so the function honors its documented width argument.

Medium severity Propagate task failures to the final exit code

.github/​skills/​batch-files/​assets/​task.txt:110

A nonexistent target only logs an error and returns without a nonzero result, so Task Scheduler can report success even though no task ran. Return an explicit failure here, capture the task result immediately after call :_runMyTask, and preserve it through logging and cleanup to the final exit /b.

Medium severity Provide a timestamp fallback when WMIC is unavailable

.github/​skills/​batch-files/​assets/​task.txt:138

Timestamp generation depends unconditionally on wmic, although the bundled reference notes that WMIC is disabled by default on Windows 11. On those systems every log call emits a command-not-found error and constructs a timestamp from an unset value. Use the PowerShell timestamp alternative already documented by the skill, or provide a checked fallback instead of requiring WMIC.

Medium severity Parse balanced and escaped Markdown link destinations

.github/​skills/​docs-sync-audit/​scripts/​docs_drift.py:70

The regex truncates a valid destination such as docs/guide(draft).md at its first ), causing a broken-link finding even when the file exists. Parse balanced and escaped Markdown destinations before resolving them.

Medium severity Match command-scanner fences by character and length

.github/​skills/​docs-sync-audit/​scripts/​docs_drift.py:180

The command scanner uses a different fence parser from the link scanner: it recognizes only backticks and toggles on any three-backtick prefix. Consequently commands in valid ~~~sh blocks are never checked, and a shorter backtick fence inside a four-backtick example prematurely ends command checking. Track the opening fence character and length, and close only on a matching fence, as the Markdown-code exclusion helper already does.

Medium severity Require valid closing-fence syntax in the link scanner

.github/​skills/​docs-sync-audit/​scripts/​docs_drift.py:192

This condition treats a backtick marker followed by powershell inside an open code block as a closing fence, although closing fences allow only trailing whitespace. That can expose literal example links and hide real links after the actual closing fence. Require a matching character, sufficient length, and whitespace-only trailing text.

Medium severity Mask multiline code spans without crossing fenced blocks

.github/​skills/​docs-sync-audit/​scripts/​docs_drift.py:201

Markdown code spans can cross line breaks, but this line-by-line masking leaves links inside those spans visible to the checker. A multiline span containing [Fake](not-a-real-link.md) therefore produces a false broken-link finding. Mask spans across the document while preserving line numbers and fenced-block boundaries.

Low severity Make PATCH recommendations preserve consumer compatibility

.github/​skills/​github-release/​references/​semver-rules.md:91

Adding a type annotation is not necessarily non-breaking. For example, changing a public TypeScript parameter from implicit any to number rejects previously valid string callers at compile time, which meets the MAJOR criteria stated above. Make PATCH conditional on preserving accepted inputs and consumer compatibility; otherwise this rule can recommend a patch release for a breaking API change.

12 resolved since last review

Review effort: Balanced

vartaxe and others added 2 commits November 1, 2026 03:01
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved path-resolution defects cause false drift reports, while batch templates corrupt exclamation-mark values and can report success despite cleanup failures.

1 open issue
4 previously missed issues

In code that hasn't changed since last review

Medium severity Preserve exclamation marks in captured arguments

.github/​skills/​batch-files/​assets/​library.txt:193

This assignment uses percent expansion after delayed expansion has been enabled, so literal exclamation marks in the input are interpreted as expansion syntax. Calling the template with padRight "Hello!" 8 loses the exclamation mark rather than padding the original string. Read the already-captured argument through delayed expansion, whose resulting value is not rescanned.

Medium severity Preserve exclamation marks in the expanded log path

.github/​skills/​batch-files/​assets/​task.txt:142

The log path is percent-expanded while delayed expansion is enabled. If %TEMP% contains a valid exclamation mark, such as C:\Users\Jane!\Temp, CMD removes or expands that part of the path and writes to the wrong location or fails to create the log. Expand the stored path with !_logFileMyTask! so its contents are preserved.

Medium severity Propagate temporary-directory cleanup failures

.github/​skills/​batch-files/​assets/​task.txt:205

A failed temporary-directory removal is completely suppressed, and the final exit still uses the earlier task result. If task operations succeed but leave a locked intermediate file, the scheduled task reports success while retaining that directory. Report cleanup failures and make an otherwise successful task return nonzero, as the executable template already does.

Medium severity Resolve script paths relative to the effective shell directory

.github/​skills/​docs-sync-audit/​scripts/​docs_drift.py:455

Script paths ignore the working directory tracked for the fenced block. For example, a root README containing cd tools followed by python check.py is reported as missing-script-file even when tools/check.py exists. Resolve each invocation relative to its effective shell directory, including directory changes earlier on the same line, before reporting it as missing.

2 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The checksum manifest contains a mismatched hash for library.txt and omits Tests/BatchLibrary.Tests.ps1, causing repository tests and final validation to fail.

1 open issue
1 resolved since last review

Review effort: Balanced

Comment thread CHECKSUMS.txt Resolved
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed to weigh unpublished behavioral findings spanning command resolution, batch-script failure handling, release-tag ordering, and assertion semantics.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved validation and parsing bugs produce false documentation-drift findings, miss invalid Makefile targets and workspace scripts, and leave batch errors without nonzero exit statuses.

6 open issues

Review effort: Balanced

vartaxe and others added 2 commits November 1, 2026 06:41
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@cmendesvdl
cmendesvdl requested a balanced review from Copilot November 1, 2026 05:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The batch template interpolates filenames into CMD command text without protection, allowing version display to execute unintended commands.

3 open issues

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Command and Markdown parsing bugs produce false findings, and the assertion migration example fails because it uses equality for a wildcard pattern.

6 open issues

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed to weigh unpublished moderate findings that could cause misleading results in Python import-reference and workspace-root script checks.

No open issues 🎉

6 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The audit can produce false missing-target and missing-script findings because it overlooks space-indented Make rule headers and scans heredoc payloads as executable commands.

2 open issues

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because unpublished findings identify missed npm workspace-root failures and false positives in Java reachability and shell-continuation scanning.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved audit bugs miss nested image references and produce false findings from incorrect Makefile selection, unhandled sudo directory changes, and links inside HTML comments.

5 open issues

Review effort: Balanced

Comment thread .github/skills/github-release/SKILL.md Resolved
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because interactions among HTML comments, code fences, and PowerShell here-strings can cause missed link checks and false missing-script findings.

No open issues 🎉

5 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because unpublished findings identify a critical release-baseline error and multiple documentation-audit gaps involving workspace scripts and Markdown handling.

No open issues 🎉

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed to weigh omitted findings about false command and link warnings from Markdown parsing and incorrect Java environment-setting reachability.

No open issues 🎉

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants