Skip to content

new skill batch-files#1435

Open
jhauga wants to merge 4 commits intogithub:stagedfrom
jhauga:skill-batch-files
Open

new skill batch-files#1435
jhauga wants to merge 4 commits intogithub:stagedfrom
jhauga:skill-batch-files

Conversation

@jhauga
Copy link
Copy Markdown
Contributor

@jhauga jhauga commented Apr 18, 2026

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, or workflow file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, or workflow with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the staged branch for this pull request.

Description

For full test results ctrl + click support-repo.

  • Agent: Local
  • Model: Claude Opus 4.6
  • Number of Prompts: 3
  • Post Edits: 2
    • Added echo to game over screen echo Play again? ^(Y/N^)
    • Added "Q" to choice in game over screen as choice /c YNQ ..

Prompt

batch-files Create a "Space Invaders" knock-off DOS game - call it
"alien-attackers.bat". It should:

- Use simple controls
  - Left/right arrow, or A/D keys
  - Spacebar shoots
  - "P" to pause
  - "Q" to quit

The tool will be called in an unconventional environment:

- GitHub codespace will be used to launch the initial console
- The Linux tool `wine` will be downloaded so the batch file will be called
  from the `wine` console as `wine cmd alien-attackers.bat`

For more info on the environment, see the wine installation script
`install-wine.sh`.

At the top of the `alien-attackers.bat` file include additional
instructions to:

- Install dependencies (*may be needed - so if dependencies used*)
- Run the game
- Play the game

allowing for a help option like `/?` that will in-turn output the help comments
to the terminal if called like `alien-attackers /?`

Results

After first prompt, progress was made. Things that worked:

  • Player moved
  • Shoot works
  • Shoot removed enemy

But the terminal output "ECHO is off." in the left column, and enemies did not
progress. See details below for initial terminal output:

Show Details
ECHO is off.
ECHO is off.
        M   M   M   M   M   M   M   M    
        M   M   M   M   M   M   M   M    
        M   M   M   M   M   M   M   M    
        M   M   M   M       M   M   M    
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
ECHO is off.
                        /^\              
 ========================================

Resolved after second prompt. The third prompt resolved the keypress of "Q" to
quit the game, which exits to the "Game Over" screen. Applied post edits
after that. Game works. I mean - its 1960's DOS quality, but still - pure
batch script "Space Invaders" knock-off.


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • Update to existing instruction, prompt, agent, plugin, skill, or workflow.
  • Other (please specify):

By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

@jhauga jhauga requested a review from aaronpowell as a code owner April 18, 2026 02:40
Copilot AI review requested due to automatic review settings April 18, 2026 02:40
Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ This PR targets main, but PRs should target staged.

The main branch is auto-published from staged and should not receive direct PRs.
Please close this PR and re-open it against the staged branch.

You can change the base branch using the Edit button at the top of this PR,
or run: gh pr edit 1435 --base staged

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new batch-files skill under skills/ to provide a reusable knowledge pack (references + templates) for authoring and debugging Windows batch (.bat/.cmd) scripts.

Changes:

  • Added skills/batch-files/SKILL.md with comprehensive batch scripting guidance and pointers to bundled resources.
  • Added bundled assets (assets/) and reference documentation (references/) for Windows commands and related tooling (WSL/Cygwin/MSYS2).
  • Registered the new skill in docs/README.skills.md.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
skills/batch-files/SKILL.md Defines the skill, usage guidance, and references to bundled assets/docs.
skills/batch-files/assets/library.bat Adds a reusable batch “function library” template.
skills/batch-files/assets/executable.bat Adds a standalone batch CLI tool template with argument parsing.
skills/batch-files/references/windows-subsystem-on-linux.md Adds curated WSL documentation links for reference.
skills/batch-files/references/windows-commands.md Adds A–Z Windows command reference links.
skills/batch-files/references/tools-and-resources.md Adds a curated list of Windows tooling/resources links.
skills/batch-files/references/msys2.md Adds MSYS2 reference links and environment overview.
skills/batch-files/references/cygwin.md Adds Cygwin reference summary plus batch invocation examples.
skills/batch-files/references/batch-files-and-functions.md Adds a large collection of batch scripting patterns/notes.
docs/README.skills.md Adds the batch-files entry to the skills index.

Comment thread skills/batch-files/SKILL.md Outdated
Comment thread skills/batch-files/assets/library.txt
Comment thread skills/batch-files/assets/executable.txt
Comment thread skills/batch-files/assets/executable.txt
Comment thread skills/batch-files/SKILL.md Outdated
Comment thread docs/README.skills.md Outdated
Comment thread skills/batch-files/assets/library.bat Outdated
Comment thread skills/batch-files/assets/executable.txt
Comment thread skills/batch-files/assets/library.bat Outdated
@jhauga jhauga changed the base branch from main to staged April 18, 2026 02:46
@jhauga jhauga marked this pull request as draft April 18, 2026 02:47
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 18, 2026

🔍 Skill Validator Results

⚠️ Warnings or advisories found

Scope Checked
Skills 1
Agents 1
Total 2
Severity Count
--- ---:
❌ Errors 0
⚠️ Warnings 1
ℹ️ Advisories 0

Summary

Level Finding
ℹ️ Found 1 skill(s)
ℹ️ [batch-files] 📊 batch-files: 4,639 BPE tokens [chars/4: 4,310] (standard ~), 47 sections, 22 code blocks
ℹ️ [batch-files] ⚠ Skill is 4,639 BPE tokens (chars/4 estimate: 4,310) — approaching "comprehensive" range where gains diminish.
ℹ️ ✅ All checks passed (1 skill(s))
Full validator output ```text Found 1 skill(s) [batch-files] 📊 batch-files: 4,639 BPE tokens [chars/4: 4,310] (standard ~), 47 sections, 22 code blocks [batch-files] ⚠ Skill is 4,639 BPE tokens (chars/4 estimate: 4,310) — approaching "comprehensive" range where gains diminish. ✅ All checks passed (1 skill(s)) ```

jhauga added 2 commits April 18, 2026 00:12
codespellrc: add FO for tasklist option

validate-readme: re-run npm start

apply suggestions from code review

batch-files: change asset templates to text files
@jhauga jhauga marked this pull request as ready for review April 18, 2026 05:02
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.

2 participants