lab-update
Fix or refresh an existing MCS Labs hands-on lab (classic or guided missions format) and open a pull request. Applies findings from a lab-review report, a lab-runthrough log, a GitHub lab-update issue or a product change, keeps the README and _labs copies in sync, replaces drifted screenshots, keeps durations and agendas consistent, records confirmed product renames for the audit, validates, and opens a reviewable PR. Use when asked to fix, update, refresh, correct or modernize a lab, apply review findings, update screenshots, handle a product rename across labs, or open a PR for lab changes. Never merges.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 153
- Forks
- 104
01 前言 Front Matter
- name
- lab-update
- description
- Fix or refresh an existing MCS Labs hands-on lab (classic or guided missions format) and open a pull request. Applies findings from a lab-review report, a lab-runthrough log, a GitHub lab-update issue or a product change, keeps the README and _labs copies in sync, replaces drifted screenshots, keeps durations and agendas consistent, records confirmed product renames for the audit, validates, and opens a reviewable PR. Use when asked to fix, update, refresh, correct or modernize a lab, apply review findings, update screenshots, handle a product rename across labs, or open a PR for lab changes. Never merges.
02 资源文件 1
- 参考文档templates/pr-body.md2.2 KB
03 SKILL.md 正文
Update a lab
Every update is evidence, then a small coherent change to both copies, then validation,
then a PR someone else merges.
Apply the shared learner-facing rules in
../lab-review/references/learning-design.md, including when the update comes directly
from a user rather than a review report.
1. Start from evidence
Use one of these, in order of preference:
- A
lab-runthroughlog: what really happened in the product. - A
lab-reviewreport: audit findings, product claims checked against Microsoft Learn, learning-design scores. - A GitHub issue (
gh issue view <n> --repo microsoft/mcs-labs), usually from the Lab Update form. - A product announcement. Confirm it on Microsoft Learn or the product itself before changing a lab; announcements often precede rollout.
With only a vague request ("this lab is out of date"), run lab-review first. If the lab
depends on product UI and a training environment is available, run lab-runthrough too.
Agree the scope before editing when it is more than a fix: rewrites, a new format,
different prompts or a new duration need the lab owner (git log --format='%an' -- labs/<slug> _labs/<slug>.md _labs/mission-<slug>.md | sort | uniq -c | sort -rn).
2. Branch
Work on a feature branch, never on main. One PR per coherent change: one lab's refresh,
or one rename across many labs. Do not mix a content refresh with unrelated layout or
script changes.
3. Edit both copies
labs/<slug>/README.md (GitHub) and the site copy (_labs/<slug>.md, or
_labs/mission-<slug>.md for a guided lab) change together, in the same commit. CI
(Lab Doc Sync) fails a PR that changes a README without its site copy.
- Headings. README headings keep their emoji;
_labsheadings have none. When a heading changes, update the hand-written table of contents in both copies; the audit checks every anchor. - Voice and scope. Fix what the evidence shows. Keep the lab's structure and voice; do not rewrite a working section to taste. Preserve the creator's use-case and teaching-step order when adapting a lab. Keep the required path first and mark only trailing extensions optional. Do not move use cases to achieve that split; keep an earlier exercise required instead. Keep advertised timings unless the organizer requests a change.
- Write for the learner only. No proctor or maintainer notes, no per-step minute arithmetic or "if time permits", and no account-hygiene boilerplate (separate profile or private window, ask the proctor if something is missing). State pacing as at most one plain sentence saying which missions or use cases are core and which are optional. Use action-and-object labels such as "Automate tasks" or "Classify email", rather than mixing a use-case name with vague lifecycle labels such as "Explore". Compare ordered steps and prompt occurrences, not only a set of retained prompts.
- Learner instructions are not a test report. Keep run dates, coverage boundaries, failed automation attempts, account-specific workarounds, credit measurements and screenshot provenance in the run log and PR, not the lab, captions, notices or a "What was tested" disclosure. Translate evidence into a short action or expected result only when the learner needs it to complete the exercise. Knowledge checks should teach the product concept, not quiz learners on the runner's incomplete coverage. Do not require pass/fail logs or blocked-handoff reports unless reporting is itself a learning objective.
- Prepared training path. Start from the supplied working assets. Do not add owner checks, copy fallbacks, connection audits or sender restrictions because the automated runner needed them. Report provisioning defects to the organizer. Keep independent tenant setup in the existing expandable setup section, and do not repeat warnings already provided by the training tenant. Preserve approvals that teach the workflow's behavior, not maintainer safety checklists or generic coaching. When organizers delete the training environments, omit end-of-lab shutdown, off-state verification, test-data removal, and cleanup missions. Independent-tenant cleanup belongs in that setup's expandable guidance only when needed. Tell learners which service to open, not how to arrange their windows. Avoid side-by-side, split-screen or keep-the-lab-beside-the-product instructions, and generic headset/quiet-room coaching.
- UI labels. Use the label exactly as the product shows it, in bold, and quote it in the PR. When a label alternates between rollouts, name the destination or give both.
- Current product, everywhere. The live product is the source of truth: labels, menu
paths, page and feature names, defaults, model names and URLs move and get renamed
often. Rename them throughout the lab, not only in the steps: front matter
description, intro, Lab Details, Use Cases table, targets, tips, troubleshooting and link text. Remove steps for UI that no longer exists (retired toggles, "new experience" switches) and add any new mandatory screen. When something cannot be reached live, check its current name on Microsoft Learn and say "unverified live" in the PR. - Lists. Indent a code block, image or note inside a numbered step by three spaces. Kramdown otherwise ends the list and the site restarts numbering at 1.
- Prerequisites. Attendees with pre-provisioned accounts must not repeat tenant
setup. Use the organizer-neutral template cue and do not imply that attending any event
is enough to skip setup. Keep required sign-in and exercise downloads visible; put
independent-tenant provisioning in the expandable setup section. Replace older event-specific variants.
In missions labs,
prerequisites:is an always-visible attendee readiness checklist. Put own-tenant setup inmission_lab.self_setupand matching closed disclosures in both readable copies, not in that checklist. - Rendered Markdown. Escape literal pipes in prose as
|where Kramdown could make an accidental table. Build the page and inspect generated HTML; source-only review will not catch every list or table parsing issue. - Prompts. Prompts are tested content. Change one only when the run-through shows it
no longer works, and say why in the PR. In missions labs the prompt must stay identical
in front matter, the
_labsbody and the README. If an unchanged supplied prompt has a baseline retired-name warning, disclose it as pre-existing; do not rename the prompt to silence the audit. Preserve sample emails, expressions and expected-output fences too, including unlabelled ones and repeated occurrences. Expected output belongs ininstruction, notprompt. - Durations.
duration, the Lab Details row, use-case or mission minutes, and every agenda slot listing the lab (agenda-usage) must agree. Agenda changes affect an event, so name the event in the PR. - Dates. Do not add update dates; the site derives them from Git.
- Missions labs. Keep the contract: core
minutessum toduration, each check has exactly one correct option, and only trailing extensions are optional. Preserve mission/step IDs and readiness positions, and do not add result-check gates. Apply the prepared-training cleanup rule above, not a blanket cleanup mission.npm testenforces the content contracts. - Retired names. Current names (check
scripts/lab-audit-terms.jsonfor the full list): Microsoft Copilot and Microsoft Copilot Chat since August 2026 (formerly Microsoft 365 Copilot and Microsoft 365 Copilot Chat), and the Microsoft Copilot harness in Copilot Studio since October 2026 (formerly GitHub Copilot harness). Keep license SKU names, such as Microsoft 365 Copilot (add-on), as the price list shows them, and UI labels exactly as the product shows them. When a rename is confirmed, add it toscripts/lab-audit-terms.jsonwithterm,pattern(JavaScript regular expression, case-insensitive),replacement,sinceand an official MicrosoftsourceURL. Then runnpm run audit:labs -- --all --format markdownand list other affected labs as follow-ups, or fix them in a separate rename PR.
4. Replace screenshots
Use the captures and crop sizes from the lab-runthrough log. Keep the file name and
format so neither copy's Markdown changes. For missions labs, update width, height and
alt in the front matter, keep src and src_dark pairs together and keep the
<picture> element in both bodies. Use genuine current product captures at native
resolution; never retouch pixels to alter a name, result or product state. Recheck target
position after each theme switch, and verify both crops contain the current response,
whole filename and required controls. Inspect at full and rendered size, check EXIF/XMP
and visually review OCR candidates. A single theme-neutral hero is valid; do not create an
unused dark variant. Record retained-image provenance in the run log and PR; learner
captions describe what to notice in the product, not how or when the image was captured.
Choose the hero for the learner's goal: show the app, agent or useful result, not a setup dialog, approval card or runner checkpoint. For each Show me, show one image that answers that step's question. A supplied design reference must display the actual reference, not an upload dialog with its thumbnail. Keep images out of page-wide carousels: the full-size link should open only that picture, including the selected theme variant. Check the rendered page with the site's theme JavaScript loaded.
Compare the orphan scan with the baseline. Delete only images newly orphaned by this
branch and only after checking references (git grep <file name>); never delete
untouched-lab or shared assets (image-shared).
5. Validate
Check the requested scope before choosing commands. If modules or presentations are
excluded, do not run broad audits, feed/date resolution or full-site/test commands that
scan them. The audit CLI builds repository-wide context even with explicit slugs. Instead,
pass only the allowed documents to pure checks such as auditMissions and
collectAnchors, run named tests, and render single documents with collection discovery
and plugins disabled. Report omitted module/navigation/full-site checks; a scoped pass is
not a full-suite pass.
npm run audit:labs -- --changed # no new errors or warnings in the labs you touched
npm test # not run by CI; run it locally
bash tools/run.sh # or .\tools\run.ps1; open /mcs-labs/labs/<slug>/
In the browser check the changed sections, images in light and dark themes, the table of
contents links, and Previous and Next with ?event=<id> for each event that lists the
lab. Verify the generated HTML, including literal pipes escaped as |, rendered
mission instructions/help, lazy image dimensions and baseurl/event-context links. Compare
the audit with main when the lab already had findings: the PR should not add any.
6. Open the PR
-
Read the intended PR's live state before appending a commit, pushing to its head or editing its description. If it has merged or closed, preserve pending work and start a new focused PR from current main instead of treating the old PR as active. Review
git statusand stage only the intended files. Preserve concurrent edits; never amend a commit unless the user explicitly asks. Use the configured GitHub noreply commit identity rather than a private email, and do not put account identities or tokens into this skill. Do not reset or discard upstream wording to resolve a conflict; reconcile it with the requested change and retain a backup before resolving dirty work. -
Commit both copies, images and any terms or agenda changes, with a message such as
fix(<slug>): update Cowork plugin steps for the renamed Plugins page. -
Before pushing, verify the authenticated GitHub account, target repo, head repo and branch. Push only after local validation. Open the PR against
microsoft/mcs-labsmainwithgh pr createand a current body fromtemplates/pr-body.md; include coverage qualifications and link the issue withFixes #<n>. -
Check CI (
gh pr checks <n>): Lab Doc Sync, Accessibility and Lighthouse. Verify that the remote head matches the intended local commit and that the PR is open and unmerged before changing its ready state. Push, readiness and content freshness are separate gates; never describe an unpushed PR as current. Refresh the PR body with the latest evidence and qualification before marking it ready. -
Never merge your own PR, and never push to
main.
Check native command exit codes explicitly. In PowerShell, a semicolon or pipeline can
leave a successful final command hiding a failed git/npm command; inspect $LASTEXITCODE
or use a command runner that preserves it before reporting validation success.
Recurring maintenance
When asked to keep labs current after a product release:
Apply the scope/exclusions gate in section 5 before selecting any of these commands.
npm run audit:labs -- --all --format markdownfor the static picture.lab-reviewon labs about the changed product, checking claims on Microsoft Learn.lab-runthroughon labs in upcoming events first (_data/agendas/*.yml).- One PR per lab or per rename. Put pre-existing findings you did not fix under "Follow-ups" in the PR body rather than widening the PR.
04 同仓库更多 Skills
hotel-operations-briefing
Prepare a grounded Contoso Grand Hotel operations briefing and review-ready executive email from the supplied annual performance report. Use for hotel briefing, urgent operational issues, or an executive email grounded in that report.
zava-stock-policy
Evaluate Zava demo stock allocation and delivery-charge approval policy using bundled synthetic reference data.
liftline-dispatch
Evaluate delivery capacity, unloading, slots, and quotes from LiftLine's bundled synthetic service fixture for the Zava demo.
lab-runthrough
Run an MCS Labs hands-on lab (classic or guided missions format) step by step in a real browser on a training or demo tenant, the way an attendee would, to find steps, UI labels, prompts and screenshots that no longer match the product. Logs each step with evidence and distinguishes passed, drift, defect, variance, blocked, untested and unverified outcomes; recaptures drifted screenshots, including light and dark pairs. Runs windowed or headless in an isolated private profile, signed in by the person or as a provisioned event training account. Use when asked to test, run, walk through, dry-run, validate or smoke-test a lab or event curriculum, check whether a lab still works after a product update, or refresh a lab's screenshots. Never writes credentials into the repo, logs or chat. Hand the log to lab-update for the fix PR.
lab-review
Review an MCS Labs hands-on lab (classic README/_labs format or the guided missions format) for broken anchors and images, README and site copies drifting apart, invalid front matter, durations that disagree with Lab Details or event agendas, retired product names, out-of-date product claims, and wordy or hard-to-follow instructions. Produces a prioritized report with file and line evidence and proposed fixes. Use when asked to review, audit, check, QA, lint or health-check a lab, an event's labs, all labs, or a lab PR, or to find what needs updating after a product change. Read-only; hand fixes to lab-update and live testing to lab-runthrough.
lab-create
Create a new MCS Labs hands-on lab in the classic format (README plus _labs page with a long-form use-case walkthrough) or the guided missions format (lab_format missions with copyable prompts, reveals and knowledge checks), then wire it to its module and event agendas, preview it unlisted and validate it. Use when asked to create, add, draft or scaffold a lab, turn prompts or a demo script into a lab, convert a lab to missions, or add a new lab to a bootcamp or event. Not for fixing an existing lab (use lab-update) or auditing one (use lab-review).