lab-vm-update
Skill3 starsChanged 28 days agoMITView on GitHub
Use when creating, recreating, or porting the tooling that pushes lab files to a Skillable lab VM with one PowerShell command, or when changing which files the VM gets or publishing a VM update. The tooling packages repo files into a self-contained PowerShell script that installs them under C:\LabFiles, uploads it as a secret gist, and prints an `irm <url> | iex` command to run on the VM. Triggers include VM preparation script, VM update script, lab VM setup, push or deploy lab files to the VM, the VM can't clone the repo, C:\LabFiles, secret gist, irm | iex, lab-vm-update. Do not use for writing lab instructions or compiling skillable.md (use lab-instructions), the self-guided workshop (use export-self-guided), setting up the lab outside the VM (Codespaces or attendees' own machines), or checkpoint scripts.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- microsoft/ignite26-LAB690word for word, first seen Nov 22, 2026
Other versions1 project uses a version of this.
Word for word · 1
- microsoft/ignite26-LAB690★ 1100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- src/home-loan-desk/AGENTS.mdAGENTS.md
- export-self-guidedSkill
- lab-instructionsSkill
- check-setupSkill
- lab-checkpointSkill
- analyticsSkill
- app-deploymentSkill
- app-designSkill
- app-validationSkill
- capability-routerSkill
- connectorsSkill
- crud-uiSkill
- data-modelingSkill
- dax-authoringSkill
- external-api-workflowsSkill
- fabric-data-agentSkill
- fabric-sdkSkill
- functions-capabilitySkill
- query-designSkill
- schema-discoverySkill
- visualsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Look for existing tooling (scripts/publish-*vm-update.mjs).
- Very specific: line 19
Only when the lab needs more than copied files (see Gotchas), add steps in the template's Lab-specific steps region.
- Very specific: line 27
Every row of the results table must show OK.
- Very specific: line 29
Document in the lab's scripts/README.md what each group installs and where, and how to publish an update (steps 5 and 6).
- Very specific: line 35
Keep the [Net.ServicePointManager]::SecurityProtocol='Tls12' prefix in the command, because Windows PowerShell 5.1 may default to TLS 1.0, …
- Very specific: line 37
Only files that Git tracks or doesn't ignore are packaged, including uncommitted changes (the publisher warns about them).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lab VM update tooling
Skillable VMs can't clone a private repository, so the lab files ship inside a PowerShell script. The publisher zips the files, embeds the zip as base64 in the VM script, uploads it as a secret gist, and prints one command to paste in PowerShell on the VM.
Procedure
- Look for existing tooling (
scripts/publish-*vm-update.mjs). If there is some, extend it and follow its README instead of copying the assets. PREL40 has its own variant:scripts/publish-vm-update.mjs, documented inscripts/README.md. - Copy assets/publish-lab-vm-update.mjs and assets/lab-vm-update.template.ps1 to the lab's
scripts/folder. Add/scripts/dist/to.gitignore. - Edit only the configuration block at the top of the publisher:
LAB_NAME: the session code, for examplePREL40. The publisher finds the lab's earlier gists by this name, so keep it stable.LAB_ROOT: keepC:\LabFilesunless the lab profile uses another folder.GROUPS: ask the author which repo files the VM needs, and where. Add one entry per repo file or folder. Userequiredfor files that must exist (it catches a wrong path early), andkeepfor files the lab writes in a target folder that must survive updates, such as progress or state files.
- Only when the lab needs more than copied files (see Gotchas), add steps in the template's
Lab-specific stepsregion. Leave the rest of the template unchanged. Build, then run the generated script locally the way the VM does, in a temporary lab folder:
node scripts/publish-lab-vm-update.mjs --no-upload pwsh -NoProfile -Command '$env:LAB_FILES_DIR = Join-Path ([IO.Path]::GetTempPath()) "labfiles-test"; Get-Content -Raw scripts/dist/lab-vm-update.ps1 | Invoke-Expression'Every row of the results table must show
OK. Check the files in the target folders it lists, then delete the test folder.- Publish with
node scripts/publish-lab-vm-update.mjs. Its only stdout is the VM command: give it to the author to paste in a PowerShell window on the VM, where every row must showOK. Windows PowerShell 5.1 can't be tested anywhere else, so a new lab isn't done until it has run once on the VM. - Document in the lab's
scripts/README.mdwhat each group installs and where, and how to publish an update (steps 5 and 6).
Gotchas
- The VM script runs through
irm | iexin the author's PowerShell session. Never callexit, because it closes the window. Keep everything inside the& { }block, keep the output ASCII (5.1 garbles emoji), and avoid syntax that only works in PowerShell 7, such as??,?:,&&,||,ForEach-Object -Parallel,ConvertFrom-Json -AsHashtable, andJoin-Pathwith three arguments. - Inside an
Invoke-Updatescriptblock, don't use variables named$Group,$Target, or$Action: the function's parameters shadow them, since variable names ignore case. Don't use.GetNewClosure()either, because it hides the script's helper functions. - Keep the
[Net.ServicePointManager]::SecurityProtocol='Tls12'prefix in the command, because Windows PowerShell 5.1 may default to TLS 1.0, which GitHub refuses. - A secret gist is unlisted, not private: anyone with the URL can download it. Never package secrets or credentials. Once the VM image is final, delete the last gist with
gh gist delete <id> --yes. ChangingLAB_NAMEorphans the earlier gists, so delete those by hand too. - Only files that Git tracks or doesn't ignore are packaged, including uncommitted changes (the publisher warns about them). Keep the payload to a few MB at most: leave out
node_modulesand build output, and let the lab install dependencies. - Folder targets are replaced, not merged. Files that attendees or the lab create in a target folder are deleted on each update, unless they're listed in
keep. Content elsewhere in the lab folder is left untouched. - To install skills for the GitHub Copilot app, package them as a group (for example, target
skills/check-setup). Then, in the lab-specific region, copy that folder toJoin-Path $HOME '.copilot\skills\check-setup'. To change a Copilot setting, such asdefaultPermissionModeset toallow-all, read%USERPROFILE%\.copilot\settings.json, change only that key, and write it back as UTF-8 without BOM. Never overwrite the whole file. Tell the author to restart the app afterwards. PREL40'sscripts/vm-update.template.ps1does both.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

