[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BVC29V68FGJXNX1QX6M6P":3,"skill-same:01M69BVC29V68FGJXNX1QX6M6P":92},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":69,"commitSha":70,"skillDirectory":71,"forksCount":72,"repositoryHtmlUrl":73,"repositoryHomepageUrl":17,"ownerHtmlUrl":74,"ownerBlogUrl":75,"ownerDescription":76,"updatedAt":77,"install":78,"resources":91},"01M69BVC29V68FGJXNX1QX6M6P","mcs-lab-fix-pr-filer","实验室审计修复PR提交","After mcs-lab-issue-filer has filed (or commented on) the audit issue for a lab, apply the findings' suggested_correction diffs to the lab markdown and copy any proposed_screenshot_replacement images into labs\u002F\u003Cslug>\u002Fimages\u002F. If an OPEN fix-PR for this slug already exists (same author, mergeable), append the commit to it; otherwise open a NEW PR on a run-unique branch `{branch_prefix}\u002Ffix-\u003Cslug>-content-audit-\u003Crun-id>`. Title `\u003Cslug>: fix audit findings from #\u003Cissue-number>`, body `Closes #\u003Cissue-number>`. Dedup is scoped to OPEN PRs only — a merged or closed prior PR never blocks a new one. Should NOT be invoked directly by the user — the orchestrator calls it after mcs-lab-issue-filer returns the issue number.","当 mcs-lab-issue-filer 已为某个实验室提交（或评论）审计 issue 后，将 findings 中建议的 suggested_correction 差异应用到实验室 markdown 文件，并把任何 proposed_screenshot_replacement 提议的截图复制到 labs\u002F\u003Cslug>\u002Fimages\u002F 目录。如果该 slug 已存在 OPEN 状态的修复 PR（同一作者、可合并），则向该 PR 追加提交；否则在一个 run 唯一的分支 `{branch_prefix}\u002Ffix-\u003Cslug>-content-audit-\u003Crun-id>` 上新建一个 PR。标题为 `\u003Cslug>: fix audit findings from #\u003Cissue-number>`，正文为 `Closes #\u003Cissue-number>`。去重仅针对 OPEN 状态的 PR——已合并或已关闭的历史 PR 不会阻止新建 PR。不应由用户直接调用——编排器会在 mcs-lab-issue-filer 返回 issue 编号后调用它。","microsoft\u002FBootcampLabTestPlugin","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BV3S4XDND40KRTA6BGFVQ",1,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FBootcampLabTestPlugin\u002Fblob\u002Fmain\u002Fskills\u002Fmcs-lab-fix-pr-filer\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40],"pr","mcs lab fix pr filer","diffs","commit","status","git commit","create","run","git branch","git","2026-11-10 10:12:30",false,"---\nname: mcs-lab-fix-pr-filer\ndescription: |\n  After mcs-lab-issue-filer has filed (or commented on) the audit issue for a lab, apply the findings' suggested_correction diffs to the lab markdown and copy any proposed_screenshot_replacement images into labs\u002F\u003Cslug>\u002Fimages\u002F. If an OPEN fix-PR for this slug already exists (same author, mergeable), append the commit to it; otherwise open a NEW PR on a run-unique branch `{branch_prefix}\u002Ffix-\u003Cslug>-content-audit-\u003Crun-id>`. Title `\u003Cslug>: fix audit findings from #\u003Cissue-number>`, body `Closes #\u003Cissue-number>`. Dedup is scoped to OPEN PRs only — a merged or closed prior PR never blocks a new one. Should NOT be invoked directly by the user — the orchestrator calls it after mcs-lab-issue-filer returns the issue number.\nallowed-tools:\n  - Read\n  - Write\n  - Edit\n  - Bash(git status:*)\n  - Bash(git checkout:*)\n  - Bash(git branch:*)\n  - Bash(git fetch:*)\n  - Bash(git pull:*)\n  - Bash(git add:*)\n  - Bash(git commit:*)\n  - Bash(git push:*)\n  - Bash(git log:*)\n  - Bash(git diff:*)\n  - Bash(gh pr list:*)\n  - Bash(gh pr view:*)\n  - Bash(gh pr checkout:*)\n  - Bash(gh pr create:*)\n  - Bash(gh pr edit:*)\n  - Bash(gh pr comment:*)\n  - Bash(gh api:*)\n  - Bash(cp:*)\n---\n\n# mcs-lab-fix-pr-filer (sub-skill)\n\nApply the audit's suggested corrections to the actual lab files in the active instance's repo (`{repo}`), then either **open a new fix-PR on a run-unique branch** or **append to the lab's existing open fix-PR** — whichever the dedup check resolves — and close (or reference) the audit issue.\n\n**PR dedup is scoped to OPEN PRs only.** A merged or closed prior PR for the same lab never blocks a new one — each audit run that finds new problems gets its own PR. The only thing that suppresses a new PR is an *already-open* fix-PR for the same slug, in which case this run's fixes are appended to that PR instead of opening a duplicate. See [[feedback_fresh_branch_per_pr]].\n\n## Inputs (assumed present from the orchestrator)\n\n- `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Ffindings.json` — same file the issue-filer read.\n- `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fscreenshots\u002Fproposed\u002F` — proposed replacement images keyed to `findings[*].proposed_screenshot_replacement_for` paths.\n- `\u003Cplugin>\u002Fconfig\u002Fjudge-config.yml` — branch conventions:\n  - `issues.pr_append.pr_branch_pattern` (default `{branch_prefix}\u002Ffix-{slug}-content-audit-{run_id}`) — the **run-unique** branch name to CREATE when no open PR exists.\n  - `issues.pr_append.pr_match_head_prefix` (default `{branch_prefix}\u002Ffix-{slug}-content-audit`) — the head-ref **prefix** used to find an existing open PR for the slug regardless of its run-id suffix.\n- `runs\u002F\u003Crun-id>\u002Fexisting-state.yml` — the orchestrator's Phase 1.4 probe. `labs[\u003Cslug>].open_pr` is non-null when an open fix-PR already exists for the slug.\n- the resolved clone of `{repo}` (from `Resolve-LabRepo.ps1 -Instance`).\n- `issue_number` — returned by `mcs-lab-issue-filer`. Required.\n- `lab_slug`, `run_id` — passed through.\n\n## Outputs\n\n- Either a **new** run-unique branch `{branch_prefix}\u002Ffix-\u003Cslug>-content-audit-\u003Crun-id>` on the active instance's repo (`{repo}`), OR a new commit on the **existing open PR's** branch — never both.\n- New or updated PR titled `\u003Cslug>: fix audit findings from #\u003Cissue-number>` with body containing `Closes #\u003Cissue-number>`.\n- `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fpr-url.txt` — convenience file for the orchestrator's summary.\n- Updated `manifest.yml.labs[\u003Cslug>]`: `status: issue_and_pr_filed`, `pr_url`, `pr_action: created | appended | skipped_no_changes`.\n\n## Procedure\n\n### 1. Prepare the working tree\n\n```bash\ncd C:\\Users\\dewainr\\mcs-labs\ngit fetch origin main\n```\n\nIf there are uncommitted changes in the working tree, stash them with a clear label and restore the user's prior `HEAD`. (Never clobber unrelated in-flight work.)\n\n### 2. Resolve the PR target — append to an open PR, else open a new one\n\n**Dedup is scoped to OPEN PRs only.** First find whether an *open* fix-PR already exists for this slug; if so, append to it; otherwise open a brand-new PR on a run-unique branch. A merged or closed prior PR is irrelevant — it never blocks a new PR.\n\n**2a. Find an existing open PR for the slug.**\n\n- If the orchestrator's probe wrote `runs\u002F\u003Crun-id>\u002Fexisting-state.yml.labs[\u003Cslug>].open_pr` (non-null), use it directly — it already carries `number`, `branch` (the actual head ref, run-id suffix and all), `author`, and `mergeable`.\n- Otherwise, query directly by **head prefix** (matches any run's branch for this slug), most-recently-updated first:\n  ```bash\n  prefix=\"{branch_prefix}\u002Ffix-\u003Cslug>-content-audit\"   # judge-config.yml.issues.pr_append.pr_match_head_prefix\n  gh pr list --repo {repo} --state open --author \"@me\" \\\n    --json number,headRefName,author,mergeable,url,updatedAt \\\n    --search \"head:$prefix\" | jq 'sort_by(.updatedAt) | reverse | .[0] \u002F\u002F empty'\n  ```\n  If the head query returns nothing, fall back to a title match: `--search \"\\\"\u003Cslug>: fix audit findings\\\" in:title\"`. Only OPEN PRs count.\n\n**2b. If an open PR was found → append.**\n\n- Verify it's authored by the current `gh` user (`pr_append.require_same_author`) and mergeable (`pr_append.require_mergeable`).\n- If guardrails pass: `git fetch origin`, then `gh pr checkout \u003Cnumber> --repo {repo}` (checks out the PR's actual branch whatever its name). Confirm with `git rev-parse --abbrev-ref HEAD`. Set `pr_action: appended` and remember `\u003Cbranch>` = that head ref.\n- If guardrails fail (different author, or `CONFLICTING`): abort the PR step (the orchestrator records this as a soft failure: issue was filed but the open PR could not be appended; the user is told to inspect the PR). **Do NOT open a competing second PR for the same lab.**\n\n**2c. If no open PR exists → open a new one on a run-unique branch.**\n\n- Render the create pattern: `branch = {branch_prefix}\u002Ffix-\u003Cslug>-content-audit-\u003Crun-id>` (from `judge-config.yml.issues.pr_append.pr_branch_pattern`, substituting `{branch_prefix}`, `{slug}`, and `{run_id}`). The `{run_id}` suffix guarantees the name can't collide with a leftover branch from a merged\u002Fclosed prior PR — so there is **no need to rename or delete any stale branch**.\n- `git fetch origin main`, then `git checkout -b \u003Cbranch> origin\u002Fmain`. Set `pr_action: created`.\n\n### 3. Apply markdown corrections\n\nFor each finding in `findings.json` where `outcome ∈ {broken, unclear}` AND `suggested_correction` is non-null:\n\n1. Read the lab file `_labs\u002F\u003Cslug>.md`.\n2. Apply a literal string replacement:\n   - `old_string = suggested_correction.original_text`\n   - `new_string = suggested_correction.proposed_text`\n3. If the `old_string` is no longer present (the lab has changed since the audit), record `{finding_id, applied: false, reason: original_text_not_found}` in `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fpr-apply-log.json` and continue with the next finding.\n4. If the replacement would match in multiple places, prefer the location with the line number closest to `finding.evidence.line_number` if recorded; otherwise apply once at the first match and warn.\n\nSome corrections span multiple lines or require reordering content (new UC, scene swap, etc.). Findings whose `suggested_correction.scope == \"scene\"` should NOT be auto-applied — leave them for human review and record `{finding_id, applied: false, reason: scope_scene_requires_manual}`.\n\n### 4. Apply screenshot replacements \u002F additions\n\nFor each finding with non-null `proposed_screenshot_replacement`:\n\n1. Resolve source path: `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fscreenshots\u002Fproposed\u002F\u003Cproposed_screenshot_replacement>` (the audit subagents save replacements here).\n2. Resolve destination:\n   - If `proposed_screenshot_replacement_for` is non-null (replacing an existing image): destination is `labs\u002F\u003Cslug>\u002F\u003Cproposed_screenshot_replacement_for>` (e.g. `labs\u002F\u003Cslug>\u002Fimages\u002Ffoo.png`).\n   - If null (adding a new image): destination is `labs\u002F\u003Cslug>\u002Fimages\u002F\u003Cproposed_screenshot_replacement>` and ensure the lab markdown is updated to reference it (the markdown reference should be in the same finding's `suggested_correction.proposed_text` if the parser caught it).\n3. `cp \u003Csource> \u003Cdestination>`.\n\nTrack `screenshots_replaced` count for the commit message.\n\n### 4a. Detect missing screenshot replacements for UI-drift findings\n\nBefore moving on to step 5, scan applied findings for the case where the audit caught **UI drift** (a renamed control, moved button, re-organized dialog, changed label) but the finding does NOT have a `proposed_screenshot_replacement` populated. This is exactly the case where the lab's screenshot will be stale even after the markdown fix lands — the body text says the new label, the picture still shows the old one. See `mcs-lab-auditor\u002Freferences\u002Fplaywright-cookbook.md` → \"Screenshot freshness\" for the standing rule.\n\nFor each such finding, before committing:\n\n1. Identify any image-ref in the same scene as the relabeled instruction line. Most labs put `![...](images\u002Ffoo.png)` one or two paragraphs after the instruction it depicts. Look for image references within the `_labs\u002F\u003Cslug>.md` section being edited.\n2. If an image-ref exists within the affected scene and the file at `labs\u002F\u003Cslug>\u002Fimages\u002F\u003Cfile>.png` shows the **old** UI state (i.e. the same surface the audit just observed has been relabeled), the screenshot is stale.\n3. The audit driver should already have captured a fresh screenshot for this surface during the run — look for it in `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fscreenshots\u002F`. If found, copy it over `labs\u002F\u003Cslug>\u002Fimages\u002F\u003Cfile>.png`.\n4. If no fresh screenshot was captured (the driver missed the image-ref → instruction mapping during the run), open a separate audit-loop iteration to capture one before proceeding. Do not skip — record `{finding_id, screenshot_refresh: pending_capture, image_path}` in `pr-apply-log.json` and request the screenshot from the orchestrator before commit.\n5. If the maintainer's fix PR explicitly defers the image refresh (e.g. an explicit \"deferred to follow-up\" annotation in the finding), record the deferral in the PR body's Test plan under an unchecked checkbox: `- [ ] Refresh \\`images\u002F\u003Cfile>.png\\` to show the current UI`. Never silently ship the markdown-only fix.\n\nTrack `screenshots_implied_stale` and `screenshots_refreshed_from_audit_run` counts for the commit message and PR body. If `screenshots_implied_stale > screenshots_refreshed_from_audit_run + screenshots_deferred`, the gap is a process failure — log it loudly so the orchestrator can flag it on the next run.\n\n### 5. Sanity check\n\n```bash\ngit diff --stat\n```\n\nIf the working tree has NO changes after steps 3 and 4 (every correction failed to apply, every screenshot was already current), set `pr_action: skipped_no_changes` and abort the PR step. Record the reason in `pr-apply-log.json`.\n\n### 6. Commit\n\n```bash\ngit add _labs\u002F\u003Cslug>.md labs\u002F\u003Cslug>\u002Fimages\u002F\ngit commit -m \"$(cat \u003C\u003CEOF\n\u003Cslug>: fix audit findings from #\u003Cissue-number>\n\nAuto-applied by mcs-lab-fix-pr-filer from audit run \u003Crun-id>.\n\nMarkdown corrections: \u003CN applied> of \u003CN total> findings.\nScreenshot updates: \u003CN replaced> + \u003CN added>.\n\nSee issue #\u003Cissue-number> for full audit details and per-finding evidence.\n\nCloses #\u003Cissue-number>\nEOF\n)\"\n```\n\nCommit author: use the current `gh auth status` user (e.g. `dewainr@microsoft.com` \u002F `Dewain Robinson`) via `git -c user.email=... -c user.name=...`. Never sign with a Claude \u002F bot identity unless explicitly configured.\n\n### 7. Push\n\n```bash\ngit push -u origin \u003Cbranch>\n```\n\nIf push fails because the remote branch already exists and is ahead (concurrent run), `git pull --rebase origin \u003Cbranch>` then re-push.\n\n### 8. Open or update the PR\n\nIf `pr_action: created`:\n\n```bash\ngh pr create \\\n  --repo {repo} \\\n  --base main \\\n  --head \u003Cbranch> \\\n  --title \"\u003Cslug>: fix audit findings from #\u003Cissue-number>\" \\\n  --body-file \u003Cpr-body.md>\n```\n\nPR body template (`runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fpr-body.md`):\n\n```markdown\nCloses #\u003Cissue-number>.\n\nImplements the corrections from the mcs-lab-auditor run on `\u003Cslug>` (run id `\u003Crun-id>`).\n\n## What changed\n\n\u003Cfor each applied finding: a 1-2 line bullet describing the fix>\n\n## How it was verified\n\nEvery change was driven by the audit run's Playwright execution on a fresh workshop-issued tenant account. Per-finding evidence (screenshots, accessibility snapshots, console + network logs) is stored locally under `~\u002F.claude\u002Fplugins\u002Fmcs-lab-auditor\u002Fruntime\u002Fruns\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002F`.\n\n\u003Cif any findings were NOT auto-applied:>\n## Findings deferred to human review\n\n\u003Cfor each unapplied finding: a bullet with the reason from pr-apply-log.json>\n```\n\nIf `pr_action: appended`:\n- Just push (already done in step 7). Then `gh pr comment \u003Cpr-number> --body \"Appended fixes from audit run \u003Crun-id>: \u003CN> markdown corrections, \u003CN> screenshot updates.\"`.\n\nCapture the resulting PR URL.\n\n### 9. Record the outcome\n\nUpdate `runs\u002F\u003Crun-id>\u002Fmanifest.yml`:\n\n```yaml\nlabs:\n  \u003Cslug>:\n    status: issue_and_pr_filed\n    issue_url: \u003Cfrom issue-filer>\n    issue_action: created | commented\n    pr_url: \u003Ccaptured above>\n    pr_action: created | appended | skipped_no_changes\n    finished_at: \u003Ciso-timestamp>\n```\n\nAppend to `runtime\u002Faudit-history.yml`:\n\n```yaml\n- run_id: \u003Crun-id>\n  lab_slug: \u003Cslug>\n  status: issue_and_pr_filed\n  issue_url: \u003C...>\n  pr_url: \u003C...>\n  findings_applied: \u003CN>\n  findings_deferred: \u003CN>\n```\n\nWrite `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fpr-url.txt` containing just the PR URL for the orchestrator's end-of-run summary.\n\n## Important rules\n\n- **Never force-push.** `pr_append.allow_force_push` is `false` and remains so.\n- **Dedup is OPEN-PR-scoped.** Only an *open* fix-PR for the slug suppresses a new PR. Merged\u002Fclosed PRs never block a new one — that's the whole point of the run-unique branch name. See [[feedback_fresh_branch_per_pr]].\n- **One open PR per lab.** If an open fix-PR already exists, append to it; never open a second open PR for the same lab in the same breath.\n- **Never modify a closed\u002Fmerged PR's branch.** Always check open-PR state before pushing. See [[feedback_no_push_to_merged_pr]].\n- **Respect same-author guardrail.** If the current `gh` user does not match the PR author on an existing open PR, abort the append step and leave the issue-filer's record as the only output for this lab.\n- **Restore the user's working tree.** If you stashed changes at the start, `git stash pop` (or leave the stash with a clear label and tell the user how to recover) — never silently lose work.\n- **Defer scene-scope corrections.** Anything bigger than a phrase- or step-scope replacement should land in the PR body's \"Findings deferred to human review\" section, not in the commit. Large rewrites (e.g., adding a whole new use case) should be handled by the orchestrator at audit time, not auto-applied here.\n\n## What to do when stuck\n\n- **`original_text` not found in markdown**: lab has drifted since the audit. Record in `pr-apply-log.json` and continue.\n- **`proposed_screenshot_replacement` source missing**: subagent didn't save the file. Skip the image update and record in pr-apply-log. The PR still ships the markdown corrections; the screenshot finding remains in the issue for human attention.\n- **Branch is up-to-date with main and no changes apply**: still no-op — set `pr_action: skipped_no_changes` and don't push an empty commit.\n- **An open PR exists but the author\u002Fmergeable guardrail fails**: abort the PR step with the reason recorded; do NOT open a competing second PR. The issue-filer's record stands and the user is told to inspect the open PR.\n- **`gh pr create` fails**: leave the branch pushed (the commits are valuable), record the error in `pr-apply-log.json`, and tell the user the manual PR-create command they can run.\n","# mcs-lab-fix-pr-filer (sub-skill)\n\nApply the audit's suggested corrections to the actual lab files in the active instance's repo (`{repo}`), then either **open a new fix-PR on a run-unique branch** or **append to the lab's existing open fix-PR** — whichever the dedup check resolves — and close (or reference) the audit issue.\n\n**PR dedup is scoped to OPEN PRs only.** A merged or closed prior PR for the same lab never blocks a new one — each audit run that finds new problems gets its own PR. The only thing that suppresses a new PR is an *already-open* fix-PR for the same slug, in which case this run's fixes are appended to that PR instead of opening a duplicate. See [[feedback_fresh_branch_per_pr]].\n\n## Inputs (assumed present from the orchestrator)\n\n- `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Ffindings.json` — same file the issue-filer read.\n- `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fscreenshots\u002Fproposed\u002F` — proposed replacement images keyed to `findings[*].proposed_screenshot_replacement_for` paths.\n- `\u003Cplugin>\u002Fconfig\u002Fjudge-config.yml` — branch conventions:\n  - `issues.pr_append.pr_branch_pattern` (default `{branch_prefix}\u002Ffix-{slug}-content-audit-{run_id}`) — the **run-unique** branch name to CREATE when no open PR exists.\n  - `issues.pr_append.pr_match_head_prefix` (default `{branch_prefix}\u002Ffix-{slug}-content-audit`) — the head-ref **prefix** used to find an existing open PR for the slug regardless of its run-id suffix.\n- `runs\u002F\u003Crun-id>\u002Fexisting-state.yml` — the orchestrator's Phase 1.4 probe. `labs[\u003Cslug>].open_pr` is non-null when an open fix-PR already exists for the slug.\n- the resolved clone of `{repo}` (from `Resolve-LabRepo.ps1 -Instance`).\n- `issue_number` — returned by `mcs-lab-issue-filer`. Required.\n- `lab_slug`, `run_id` — passed through.\n\n## Outputs\n\n- Either a **new** run-unique branch `{branch_prefix}\u002Ffix-\u003Cslug>-content-audit-\u003Crun-id>` on the active instance's repo (`{repo}`), OR a new commit on the **existing open PR's** branch — never both.\n- New or updated PR titled `\u003Cslug>: fix audit findings from #\u003Cissue-number>` with body containing `Closes #\u003Cissue-number>`.\n- `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fpr-url.txt` — convenience file for the orchestrator's summary.\n- Updated `manifest.yml.labs[\u003Cslug>]`: `status: issue_and_pr_filed`, `pr_url`, `pr_action: created | appended | skipped_no_changes`.\n\n## Procedure\n\n### 1. Prepare the working tree\n\n```bash\ncd C:\\Users\\dewainr\\mcs-labs\ngit fetch origin main\n```\n\nIf there are uncommitted changes in the working tree, stash them with a clear label and restore the user's prior `HEAD`. (Never clobber unrelated in-flight work.)\n\n### 2. Resolve the PR target — append to an open PR, else open a new one\n\n**Dedup is scoped to OPEN PRs only.** First find whether an *open* fix-PR already exists for this slug; if so, append to it; otherwise open a brand-new PR on a run-unique branch. A merged or closed prior PR is irrelevant — it never blocks a new PR.\n\n**2a. Find an existing open PR for the slug.**\n\n- If the orchestrator's probe wrote `runs\u002F\u003Crun-id>\u002Fexisting-state.yml.labs[\u003Cslug>].open_pr` (non-null), use it directly — it already carries `number`, `branch` (the actual head ref, run-id suffix and all), `author`, and `mergeable`.\n- Otherwise, query directly by **head prefix** (matches any run's branch for this slug), most-recently-updated first:\n  ```bash\n  prefix=\"{branch_prefix}\u002Ffix-\u003Cslug>-content-audit\"   # judge-config.yml.issues.pr_append.pr_match_head_prefix\n  gh pr list --repo {repo} --state open --author \"@me\" \\\n    --json number,headRefName,author,mergeable,url,updatedAt \\\n    --search \"head:$prefix\" | jq 'sort_by(.updatedAt) | reverse | .[0] \u002F\u002F empty'\n  ```\n  If the head query returns nothing, fall back to a title match: `--search \"\\\"\u003Cslug>: fix audit findings\\\" in:title\"`. Only OPEN PRs count.\n\n**2b. If an open PR was found → append.**\n\n- Verify it's authored by the current `gh` user (`pr_append.require_same_author`) and mergeable (`pr_append.require_mergeable`).\n- If guardrails pass: `git fetch origin`, then `gh pr checkout \u003Cnumber> --repo {repo}` (checks out the PR's actual branch whatever its name). Confirm with `git rev-parse --abbrev-ref HEAD`. Set `pr_action: appended` and remember `\u003Cbranch>` = that head ref.\n- If guardrails fail (different author, or `CONFLICTING`): abort the PR step (the orchestrator records this as a soft failure: issue was filed but the open PR could not be appended; the user is told to inspect the PR). **Do NOT open a competing second PR for the same lab.**\n\n**2c. If no open PR exists → open a new one on a run-unique branch.**\n\n- Render the create pattern: `branch = {branch_prefix}\u002Ffix-\u003Cslug>-content-audit-\u003Crun-id>` (from `judge-config.yml.issues.pr_append.pr_branch_pattern`, substituting `{branch_prefix}`, `{slug}`, and `{run_id}`). The `{run_id}` suffix guarantees the name can't collide with a leftover branch from a merged\u002Fclosed prior PR — so there is **no need to rename or delete any stale branch**.\n- `git fetch origin main`, then `git checkout -b \u003Cbranch> origin\u002Fmain`. Set `pr_action: created`.\n\n### 3. Apply markdown corrections\n\nFor each finding in `findings.json` where `outcome ∈ {broken, unclear}` AND `suggested_correction` is non-null:\n\n1. Read the lab file `_labs\u002F\u003Cslug>.md`.\n2. Apply a literal string replacement:\n   - `old_string = suggested_correction.original_text`\n   - `new_string = suggested_correction.proposed_text`\n3. If the `old_string` is no longer present (the lab has changed since the audit), record `{finding_id, applied: false, reason: original_text_not_found}` in `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fpr-apply-log.json` and continue with the next finding.\n4. If the replacement would match in multiple places, prefer the location with the line number closest to `finding.evidence.line_number` if recorded; otherwise apply once at the first match and warn.\n\nSome corrections span multiple lines or require reordering content (new UC, scene swap, etc.). Findings whose `suggested_correction.scope == \"scene\"` should NOT be auto-applied — leave them for human review and record `{finding_id, applied: false, reason: scope_scene_requires_manual}`.\n\n### 4. Apply screenshot replacements \u002F additions\n\nFor each finding with non-null `proposed_screenshot_replacement`:\n\n1. Resolve source path: `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fscreenshots\u002Fproposed\u002F\u003Cproposed_screenshot_replacement>` (the audit subagents save replacements here).\n2. Resolve destination:\n   - If `proposed_screenshot_replacement_for` is non-null (replacing an existing image): destination is `labs\u002F\u003Cslug>\u002F\u003Cproposed_screenshot_replacement_for>` (e.g. `labs\u002F\u003Cslug>\u002Fimages\u002Ffoo.png`).\n   - If null (adding a new image): destination is `labs\u002F\u003Cslug>\u002Fimages\u002F\u003Cproposed_screenshot_replacement>` and ensure the lab markdown is updated to reference it (the markdown reference should be in the same finding's `suggested_correction.proposed_text` if the parser caught it).\n3. `cp \u003Csource> \u003Cdestination>`.\n\nTrack `screenshots_replaced` count for the commit message.\n\n### 4a. Detect missing screenshot replacements for UI-drift findings\n\nBefore moving on to step 5, scan applied findings for the case where the audit caught **UI drift** (a renamed control, moved button, re-organized dialog, changed label) but the finding does NOT have a `proposed_screenshot_replacement` populated. This is exactly the case where the lab's screenshot will be stale even after the markdown fix lands — the body text says the new label, the picture still shows the old one. See `mcs-lab-auditor\u002Freferences\u002Fplaywright-cookbook.md` → \"Screenshot freshness\" for the standing rule.\n\nFor each such finding, before committing:\n\n1. Identify any image-ref in the same scene as the relabeled instruction line. Most labs put `![...](images\u002Ffoo.png)` one or two paragraphs after the instruction it depicts. Look for image references within the `_labs\u002F\u003Cslug>.md` section being edited.\n2. If an image-ref exists within the affected scene and the file at `labs\u002F\u003Cslug>\u002Fimages\u002F\u003Cfile>.png` shows the **old** UI state (i.e. the same surface the audit just observed has been relabeled), the screenshot is stale.\n3. The audit driver should already have captured a fresh screenshot for this surface during the run — look for it in `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fscreenshots\u002F`. If found, copy it over `labs\u002F\u003Cslug>\u002Fimages\u002F\u003Cfile>.png`.\n4. If no fresh screenshot was captured (the driver missed the image-ref → instruction mapping during the run), open a separate audit-loop iteration to capture one before proceeding. Do not skip — record `{finding_id, screenshot_refresh: pending_capture, image_path}` in `pr-apply-log.json` and request the screenshot from the orchestrator before commit.\n5. If the maintainer's fix PR explicitly defers the image refresh (e.g. an explicit \"deferred to follow-up\" annotation in the finding), record the deferral in the PR body's Test plan under an unchecked checkbox: `- [ ] Refresh \\`images\u002F\u003Cfile>.png\\` to show the current UI`. Never silently ship the markdown-only fix.\n\nTrack `screenshots_implied_stale` and `screenshots_refreshed_from_audit_run` counts for the commit message and PR body. If `screenshots_implied_stale > screenshots_refreshed_from_audit_run + screenshots_deferred`, the gap is a process failure — log it loudly so the orchestrator can flag it on the next run.\n\n### 5. Sanity check\n\n```bash\ngit diff --stat\n```\n\nIf the working tree has NO changes after steps 3 and 4 (every correction failed to apply, every screenshot was already current), set `pr_action: skipped_no_changes` and abort the PR step. Record the reason in `pr-apply-log.json`.\n\n### 6. Commit\n\n```bash\ngit add _labs\u002F\u003Cslug>.md labs\u002F\u003Cslug>\u002Fimages\u002F\ngit commit -m \"$(cat \u003C\u003CEOF\n\u003Cslug>: fix audit findings from #\u003Cissue-number>\n\nAuto-applied by mcs-lab-fix-pr-filer from audit run \u003Crun-id>.\n\nMarkdown corrections: \u003CN applied> of \u003CN total> findings.\nScreenshot updates: \u003CN replaced> + \u003CN added>.\n\nSee issue #\u003Cissue-number> for full audit details and per-finding evidence.\n\nCloses #\u003Cissue-number>\nEOF\n)\"\n```\n\nCommit author: use the current `gh auth status` user (e.g. `dewainr@microsoft.com` \u002F `Dewain Robinson`) via `git -c user.email=... -c user.name=...`. Never sign with a Claude \u002F bot identity unless explicitly configured.\n\n### 7. Push\n\n```bash\ngit push -u origin \u003Cbranch>\n```\n\nIf push fails because the remote branch already exists and is ahead (concurrent run), `git pull --rebase origin \u003Cbranch>` then re-push.\n\n### 8. Open or update the PR\n\nIf `pr_action: created`:\n\n```bash\ngh pr create \\\n  --repo {repo} \\\n  --base main \\\n  --head \u003Cbranch> \\\n  --title \"\u003Cslug>: fix audit findings from #\u003Cissue-number>\" \\\n  --body-file \u003Cpr-body.md>\n```\n\nPR body template (`runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fpr-body.md`):\n\n```markdown\nCloses #\u003Cissue-number>.\n\nImplements the corrections from the mcs-lab-auditor run on `\u003Cslug>` (run id `\u003Crun-id>`).\n\n## What changed\n\n\u003Cfor each applied finding: a 1-2 line bullet describing the fix>\n\n## How it was verified\n\nEvery change was driven by the audit run's Playwright execution on a fresh workshop-issued tenant account. Per-finding evidence (screenshots, accessibility snapshots, console + network logs) is stored locally under `~\u002F.claude\u002Fplugins\u002Fmcs-lab-auditor\u002Fruntime\u002Fruns\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002F`.\n\n\u003Cif any findings were NOT auto-applied:>\n## Findings deferred to human review\n\n\u003Cfor each unapplied finding: a bullet with the reason from pr-apply-log.json>\n```\n\nIf `pr_action: appended`:\n- Just push (already done in step 7). Then `gh pr comment \u003Cpr-number> --body \"Appended fixes from audit run \u003Crun-id>: \u003CN> markdown corrections, \u003CN> screenshot updates.\"`.\n\nCapture the resulting PR URL.\n\n### 9. Record the outcome\n\nUpdate `runs\u002F\u003Crun-id>\u002Fmanifest.yml`:\n\n```yaml\nlabs:\n  \u003Cslug>:\n    status: issue_and_pr_filed\n    issue_url: \u003Cfrom issue-filer>\n    issue_action: created | commented\n    pr_url: \u003Ccaptured above>\n    pr_action: created | appended | skipped_no_changes\n    finished_at: \u003Ciso-timestamp>\n```\n\nAppend to `runtime\u002Faudit-history.yml`:\n\n```yaml\n- run_id: \u003Crun-id>\n  lab_slug: \u003Cslug>\n  status: issue_and_pr_filed\n  issue_url: \u003C...>\n  pr_url: \u003C...>\n  findings_applied: \u003CN>\n  findings_deferred: \u003CN>\n```\n\nWrite `runs\u002F\u003Crun-id>\u002Flabs\u002F\u003Cslug>\u002Fpr-url.txt` containing just the PR URL for the orchestrator's end-of-run summary.\n\n## Important rules\n\n- **Never force-push.** `pr_append.allow_force_push` is `false` and remains so.\n- **Dedup is OPEN-PR-scoped.** Only an *open* fix-PR for the slug suppresses a new PR. Merged\u002Fclosed PRs never block a new one — that's the whole point of the run-unique branch name. See [[feedback_fresh_branch_per_pr]].\n- **One open PR per lab.** If an open fix-PR already exists, append to it; never open a second open PR for the same lab in the same breath.\n- **Never modify a closed\u002Fmerged PR's branch.** Always check open-PR state before pushing. See [[feedback_no_push_to_merged_pr]].\n- **Respect same-author guardrail.** If the current `gh` user does not match the PR author on an existing open PR, abort the append step and leave the issue-filer's record as the only output for this lab.\n- **Restore the user's working tree.** If you stashed changes at the start, `git stash pop` (or leave the stash with a clear label and tell the user how to recover) — never silently lose work.\n- **Defer scene-scope corrections.** Anything bigger than a phrase- or step-scope replacement should land in the PR body's \"Findings deferred to human review\" section, not in the commit. Large rewrites (e.g., adding a whole new use case) should be handled by the orchestrator at audit time, not auto-applied here.\n\n## What to do when stuck\n\n- **`original_text` not found in markdown**: lab has drifted since the audit. Record in `pr-apply-log.json` and continue.\n- **`proposed_screenshot_replacement` source missing**: subagent didn't save the file. Skip the image update and record in pr-apply-log. The PR still ships the markdown corrections; the screenshot finding remains in the issue for human attention.\n- **Branch is up-to-date with main and no changes apply**: still no-op — set `pr_action: skipped_no_changes` and don't push an empty commit.\n- **An open PR exists but the author\u002Fmergeable guardrail fails**: abort the PR step with the reason recorded; do NOT open a competing second PR. The issue-filer's record stands and the user is told to inspect the open PR.\n- **`gh pr create` fails**: leave the branch pushed (the commits are valuable), record the error in `pr-apply-log.json`, and tell the user the manual PR-create command they can run.\n",{"name":5,"description":46,"allowed-tools":47},"After mcs-lab-issue-filer has filed (or commented on) the audit issue for a lab, apply the findings' suggested_correction diffs to the lab markdown and copy any proposed_screenshot_replacement images into labs\u002F\u003Cslug>\u002Fimages\u002F. If an OPEN fix-PR for this slug already exists (same author, mergeable), append the commit to it; otherwise open a NEW PR on a run-unique branch `{branch_prefix}\u002Ffix-\u003Cslug>-content-audit-\u003Crun-id>`. Title `\u003Cslug>: fix audit findings from #\u003Cissue-number>`, body `Closes #\u003Cissue-number>`. Dedup is scoped to OPEN PRs only — a merged or closed prior PR never blocks a new one. Should NOT be invoked directly by the user — the orchestrator calls it after mcs-lab-issue-filer returns the issue number.\n",[48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68],"Read","Write","Edit","Bash(git status:*)","Bash(git checkout:*)","Bash(git branch:*)","Bash(git fetch:*)","Bash(git pull:*)","Bash(git add:*)","Bash(git commit:*)","Bash(git push:*)","Bash(git log:*)","Bash(git diff:*)","Bash(gh pr list:*)","Bash(gh pr view:*)","Bash(gh pr checkout:*)","Bash(gh pr create:*)","Bash(gh pr edit:*)","Bash(gh pr comment:*)","Bash(gh api:*)","Bash(cp:*)","main","aae0865a11e7bbbce9d74b0b6b043d9945c3335f","skills\u002Fmcs-lab-fix-pr-filer",2,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FBootcampLabTestPlugin","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-06-20 03:15:17",{"source":9,"skillName":5,"commands":79,"prompt":89,"zipAvailable":90},[80,83,86],{"tool":81,"command":82},"npx","npx skills add microsoft\u002FBootcampLabTestPlugin --skill mcs-lab-fix-pr-filer",{"tool":84,"command":85},"bunx","bunx skills add microsoft\u002FBootcampLabTestPlugin --skill mcs-lab-fix-pr-filer",{"tool":87,"command":88},"pnpm","pnpm dlx skills add microsoft\u002FBootcampLabTestPlugin --skill mcs-lab-fix-pr-filer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FBootcampLabTestPlugin\u002Fblob\u002Fmain\u002Fskills\u002Fmcs-lab-fix-pr-filer\u002FSKILL.md",true,[],[93,111,123,141,166],{"skillNo":94,"name":95,"nameZh":96,"description":97,"descriptionZh":98,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":99,"categories":100,"keywords":103,"publishedAt":41},"01M69BVHVKRMK12R15T156SRG5","mcs-lab-pr-appender","实验室审计 PR 截图追加","Append screenshot updates from a lab audit run onto an EXISTING open fix-PR branch in the active instance's lab repo (microsoft\u002Fmcs-labs by default). Replaces matched image files in place, makes one commit, pushes, and comments on the PR. Never creates a new branch and never opens a new PR. Invoked by mcs-lab-auditor by default whenever (a) the orchestrator's existing-state probe found an open PR for the slug AND (b) the lab produced new screenshot artifacts. Suppressed by --no-update-screenshots \u002F --no-append-to-pr (CLI) or `issues.pr_append.enabled_by_default: false` (config). Should NOT be invoked directly by the user.","将实验室审计运行产生的截图更新追加到活动实例的 lab 仓库（默认为 microsoft\u002Fmcs-labs）中一个已存在的开放修复 PR 分支上。就地替换匹配的图片文件，仅创建一个提交，推送，并在 PR 上发表评论。永不创建新分支，也永不开启新 PR。默认情况下，当 (a) 编排器的现有状态探测发现该 slug 存在开放的 PR 且 (b) 实验室产生了新的截图产物时，由 mcs-lab-auditor 调用。可通过 --no-update-screenshots \u002F --no-append-to-pr（CLI）或 `issues.pr_append.enabled_by_default: false`（配置）来禁用。不应由用户直接调用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FBootcampLabTestPlugin\u002Fblob\u002Fmain\u002Fskills\u002Fmcs-lab-pr-appender\u002FSKILL.md",[101,102],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[31,104,105,40,36,106,107,108,109,10,34,110,35,38],"mcs lab pr appender","artifacts","image","screenshots","update","cli","config",{"skillNo":112,"name":113,"nameZh":114,"description":115,"descriptionZh":116,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":117,"categories":118,"keywords":121,"publishedAt":41},"01M69BVFWN5Q952B3SHKVY7863","mcs-lab-new-lab-pr","新实验室PR提交","Open a PR on the active instance's lab repo (microsoft\u002Fmcs-labs by default) that adds a NEW lab built by mcs-lab-builder. Stages the assembled `labs\u002F\u003Cslug>\u002FREADME.md` + screenshots, applies the registration entry (root `lab-config.yml` + generator, or direct `_data\u002Flab-config.yml` + `_labs\u002F\u003Cslug>.md` writes — per the detected mechanism), commits everything in one commit on a run-unique branch off `origin\u002Fmain`, and opens the PR. Invoked by mcs-lab-builder at B7 — NOT directly by the user. Do not use this for audit fixes (that is mcs-lab-fix-pr-filer, which patches an existing lab).","在当前活跃实例的实验室仓库（默认为 microsoft\u002Fmcs-labs）上开一个 PR，新增一个由 mcs-lab-builder 构建的实验室。暂存组装好的 `labs\u002F\u003Cslug>\u002FREADME.md` + 截图，应用注册条目（根目录下的 `lab-config.yml` + generator，或直接写入 `_data\u002Flab-config.yml` + `_labs\u002F\u003Cslug>.md`——根据检测到的机制而定），在一个基于 `origin\u002Fmain` 的 run 唯一分支上将所有内容用一个提交提交，并创建 PR。由 mcs-lab-builder 在 B7 阶段调用——不由用户直接调用。请勿将其用于审计修复（那是 mcs-lab-fix-pr-filer 的职责，用于修补现有实验室）。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FBootcampLabTestPlugin\u002Fblob\u002Fmain\u002Fskills\u002Fmcs-lab-new-lab-pr\u002FSKILL.md",[119,120],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[122,31,37,107,10,34,110,38,40],"mcs lab new lab pr",{"skillNo":124,"name":125,"nameZh":126,"description":127,"descriptionZh":128,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":129,"categories":130,"keywords":137,"publishedAt":41},"01M69BVEA7WF4B3FQE0AAA43XC","mcs-lab-issue-filer","实验室审计问题提交","Convert a lab's findings.json into a GitHub issue body and file it against the active instance's lab repo (microsoft\u002Fmcs-labs by default). Checks for an existing open issue with matching labels and comments on it instead of duplicating. Invoked by mcs-lab-auditor after a lab completes with at least one judge-recorded finding above the confidence threshold. Should NOT be invoked directly by the user — it expects a fully-populated run directory and assumes the orchestrator has already filtered out cannot_verify and below-threshold findings.","将某个实验室的 findings.json 转换为 GitHub issue 正文，并针对当前活跃实例的实验室仓库（默认为 microsoft\u002Fmcs-labs）提交该 issue。检查是否存在带有匹配标签的现有开放 issue，若有则在其上评论，而不是重复提交。由 mcs-lab-auditor 在某个实验室完成且至少有一条由 judge 记录、置信度高于阈值的发现后调用。不应由用户直接调用——它期望一个完整填充的 run 目录，并假设编排器已经过滤掉 cannot_verify 和低于阈值的发现。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FBootcampLabTestPlugin\u002Fblob\u002Fmain\u002Fskills\u002Fmcs-lab-issue-filer\u002FSKILL.md",[131,134],{"categoryNo":132,"categoryName":133,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":135,"categoryName":136,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C2MZSDTE56BDKER3VPW2JM","工单与问题跟踪管理",[138,139,140,10,37,38],"mcs lab issue filer","directory","github",{"skillNo":142,"name":143,"nameZh":144,"description":145,"descriptionZh":146,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":147,"categories":148,"keywords":153,"publishedAt":41},"01M69BV8YA1TEFTPGZXQ1JP8X1","mcs-lab-builder","Copilot Studio 实验构建","Interactively BUILD a new Microsoft Copilot Studio lab for the mcs-labs repo, end-to-end. Get a workshop test account, drive Playwright to the Copilot Studio Home page, then capture a lab step-by-step — writing instructions, tips, and screenshots and confirming each step with the user — assemble it into a sibling-formatted `labs\u002F\u003Cslug>\u002FREADME.md`, re-run the finished lab through the existing audit engine as a quality gate, and open a PR on the active instance's lab repo (microsoft\u002Fmcs-labs by default). Event\u002Fworkshop-agnostic: a lab is built and tested standalone; event attachment is optional. Use when the user says \"build a new lab\", \"author a lab\", or invokes `\u002Fbuild-lab`.","以交互式方式端到端地为 mcs-labs 仓库构建新的 Microsoft Copilot Studio 实验（lab）。获取研讨会测试账号，使用 Playwright 打开 Copilot Studio 主页，然后逐步录制实验内容——编写操作说明、提示和截图，并与用户逐步确认——将其组装成与同级实验格式一致的 `labs\u002F\u003Cslug>\u002FREADME.md`，把完成的实验通过现有审核引擎重新运行作为质量门禁，并在当前实例的实验仓库（默认为 microsoft\u002Fmcs-labs）上提交 PR。该流程与具体活动\u002F研讨会无关：实验独立构建和测试，是否关联活动为可选项。当用户说“构建新实验”、“编写实验”或调用 `\u002Fbuild-lab` 时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FBootcampLabTestPlugin\u002Fblob\u002Fmain\u002Fskills\u002Fmcs-lab-builder\u002FSKILL.md",[149,150],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":151,"categoryName":152,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BWKS60NTYJHFE9FQSXGDKS","低代码应用开发",[154,155,107,156,157,158,159,10,160,35,161,31,162,163,164,165,37,38,40],"mcs lab builder","console","MCP","writing","playwright","test","auth","copilot","quality gate","plugin","copilot studio","microsoft copilot",{"skillNo":167,"name":168,"nameZh":169,"description":170,"descriptionZh":171,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":172,"categories":173,"keywords":178,"publishedAt":41},"01M69BV5CF31HJCE2JRKRDF2C2","mcs-lab-auditor","Copilot Studio 实验审计","Audit Microsoft Copilot Studio labs end-to-end for any event or workshop. Resolves the mcs-labs repo location dynamically (clones\u002Fupdates it as needed), enumerates auditable scopes from the repo's `_events\u002F` and `_workshops\u002F` collections, drives Playwright through every numbered step of each lab in the chosen scope, compares the live UI to the written instructions with an LLM judge, and either files a GitHub issue (one per lab with findings) or appends a clean-pass entry to a local audit log. Use this skill when the user says \"audit the bootcamp\", \"audit a workshop\", \"run the lab auditor\", \"test the mcs-labs labs\", or invokes any `\u002Faudit-*` command from this plugin.","针对任意活动或研讨会，对 Microsoft Copilot Studio 实验（labs）进行端到端审计。动态解析 mcs-labs 仓库位置（按需克隆\u002F更新），从仓库的 `_events\u002F` 和 `_workshops\u002F` 集合中枚举可审计范围，使用 Playwright 逐步执行所选范围内每个实验的所有编号步骤，并通过 LLM 评审器将实时 UI 与书面说明进行比对；然后要么提交一个 GitHub issue（每个有发现问题的实验一个），要么向本地审计日志追加一条通过记录。当用户说 \"audit the bootcamp\"、\"audit a workshop\"、\"run the lab auditor\"、\"test the mcs-labs labs\"，或调用此插件中的任意 `\u002Faudit-*` 命令时，使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FBootcampLabTestPlugin\u002Fblob\u002Fmain\u002Fskills\u002Fmcs-lab-auditor\u002FSKILL.md",[174,175],{"categoryNo":132,"categoryName":133,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":176,"categoryName":177,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[179,140,158,159,10,160,35,161,163,164,165,38,155,156],"mcs lab auditor"]