[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C482HF6N8SVE42QFNW1A1K":3,"skill-same:01M6C482HF6N8SVE42QFNW1A1K":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":13,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":50,"linkOnly":51,"markdownContent":52,"markdownBody":53,"frontMatter":54,"refName":55,"commitSha":56,"skillDirectory":57,"forksCount":58,"repositoryHtmlUrl":59,"repositoryHomepageUrl":13,"ownerHtmlUrl":60,"ownerBlogUrl":13,"ownerDescription":13,"updatedAt":61,"install":62,"resources":75},"01M6C482HF6N8SVE42QFNW1A1K","terminal-hygiene","终端与测试执行规范","Terminal and test execution guardrails plus session-cost discipline for Agent Orchestra workflows. Use when choosing sync\u002Fasync terminal mode, scoping Pester runs, retrying background commands, recovering from multiline-prompt stalls, wrapping subagent diagnostics, avoiding terminal\u002Fsubagent batching mistakes, or applying session-cost discipline; also when a PowerShell expression returns an unexpected type, an array collapses to a scalar or a single element, a parameter binding or splat behaves unlike the call you wrote, or an ordered literal, pipeline, or here-string parses differently than written. DO NOT USE FOR: application-level debugging (use systematic-debugging), post-merge archival (use post-pr-review), or cost telemetry\u002Fmeasurement setup (use copilot-cost-collection).","面向 Agent Orchestra 工作流的终端与测试执行防护栏及会话成本纪律。适用于：选择同步\u002F异步终端模式、限定 Pester 测试运行范围、重试后台命令、从多行提示停滞中恢复、封装子智能体诊断、避免终端\u002F子智能体批处理错误，或应用会话成本纪律；也适用于 PowerShell 表达式返回意外类型、数组坍缩为标量或单个元素、参数绑定或 splat 的表现与所写调用不一致，或有序字面量、管道或 here-string 的解析结果与书写不符的情况。不适用于：应用层调试（使用 systematic-debugging）、合并后归档（使用 post-pr-review），或成本遥测\u002F度量设置（使用 copilot-cost-collection）。","Grimblaz\u002Fagent-orchestra","Grimblaz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F74755849?v=4","01M6C430M9XZDHGHPWQVTQ3KMA",null,"01M6C430RJY3MMX0QAZ3X8DR3Y",3,"MIT","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fterminal-hygiene\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49],"terminal","terminal hygiene","Guardrails","review","discipline","use","session","prompt","subagent","collection","execution","test","pipeline","powershell","debugging","pr","telemetry","copilot","merge","workflows","2026-11-10 10:12:30",false,"---\nname: terminal-hygiene\ndescription: \"Terminal and test execution guardrails plus session-cost discipline for Agent Orchestra workflows. Use when choosing sync\u002Fasync terminal mode, scoping Pester runs, retrying background commands, recovering from multiline-prompt stalls, wrapping subagent diagnostics, avoiding terminal\u002Fsubagent batching mistakes, or applying session-cost discipline; also when a PowerShell expression returns an unexpected type, an array collapses to a scalar or a single element, a parameter binding or splat behaves unlike the call you wrote, or an ordered literal, pipeline, or here-string parses differently than written. DO NOT USE FOR: application-level debugging (use systematic-debugging), post-merge archival (use post-pr-review), or cost telemetry\u002Fmeasurement setup (use copilot-cost-collection).\"\n---\n\n# Terminal Hygiene\n\nTerminal and validation rules that keep workflow execution predictable.\n\n## When to Use\n\n- When choosing targeted versus full-suite Pester runs\n- When deciding between `mode: sync` and `mode: async` \u002F `isBackground: true`\n- When validating at step boundaries without overflowing terminal state\n- When retrying background terminal commands safely\n- When applying session-cost discipline (parent-side diagnostics, targeted edits, call batching, extract-don't-dump) in a long-context orchestrated session\n\n## Scope\n\nThese rules supplement, not replace, any agent-specific terminal guidance such as Code-Conductor's non-interactive guardrails. Scope also extends to session-cost discipline for long-context agent sessions — not terminal execution alone.\n\n## PowerShell and Pester traps\n\n[`references\u002Fpowershell-traps.md`](references\u002Fpowershell-traps.md) collects the language-level and runner-level traps that have cost this repository real time. Most share one property: **they do not throw** — they return a wrong shape, a wrong count, or a green verdict; the few that do throw fire somewhere other than where you would look. Read it before writing a verification script, a guard, or a test whose purpose is to detect something, since most of the file is a way for such a check to report success while checking nothing.\n\nHighest-frequency entries: `-eq` and `Should -Be` are case-insensitive (so an \"identical text\" criterion implemented with either cannot detect a case-only difference — the exact divergence such a criterion is usually written to catch); `return ,$array` plus a caller's `@()` collapses to one element; `??` does not guard an absent property under StrictMode; and the sharded runner's `fail=N` is not a count of failing tests.\n\n## Pester Scope\n\nWhen iterating on a specific test during red-green-refactor within an implementation step, use targeted Pester:\n\n```powershell\nInvoke-Pester 'path\u002Fto\u002Fspecific.Tests.ps1' -Output Minimal\n```\n\nThe full-suite runner is `.github\u002Fscripts\u002Frun-pester-sharded.ps1` (authored in issue #740 s4); invoke it at step boundaries as the standard validation gate. Do not run the full suite during inner-loop iteration.\n\nNote: CI's `pester.yml` runs a **glob minus an explicit quarantine** — every `*.Tests.ps1` in `.github\u002Fscripts\u002FTests\u002F` except the files listed in `ci-quarantine.json` — through that same sharded runner, driven by that selection rather than by a directory glob (issue #1037). It is not an allowlist and there is no list to register a new suite into: a new suite is gated the moment it is written. Derive the current selection from `Get-CISuiteSelection` rather than reading a count out of any document; the quarantine shrinks as suites are triaged.\n\nThat divergence from the full local suite is intentional, and it runs the other way too: `run-pester-sharded.ps1 -TestsPath \u003Cdir>` **globs**, so it measures every suite on disk *including* the quarantined ones. To reproduce what CI runs, pass the selection instead:\n\n```powershell\n. .github\u002Fscripts\u002Flib\u002Fci-suite-selection-core.ps1\n. .github\u002Fscripts\u002Flib\u002Fpester-sharded-core.ps1\n$selection = Get-CISuiteSelection -TestsRoot '.github\u002Fscripts\u002FTests' -QuarantinePath '.github\u002Fscripts\u002FTests\u002Fci-quarantine.json'\nInvoke-PesterSharded -SuitePath $selection.Selected -FanOutWidth 10\n```\n\nSince issue #1037 the runner reports **two** totals that name their units and are never summed — `TOTAL suites (unit: files)` with a per-outcome tally, and `TOTAL tests (unit: test cases)` — plus a reconciliation line against the caller's selection. Do **not** subtract a per-file phantom from the failure count: that increment is gone. It also means `ExitCode=1` with zero failing *tests* is now a shape that occurs on its own (a crashed worker, a suite that discovered nothing, a suite whose tests were all skipped, a selected suite with no result at all) rather than only alongside failing tests, so read the suite tally or the exit code, never the test-failure total alone. Build any baseline measurement in a detached worktree (`git worktree add --detach \u003Cpath> \u003Ccommit>`): a `git stash` cannot prove a failure is pre-existing, and a `git archive` extract has no repository metadata and fails a large number of tests for that reason alone. [`Documents\u002FDesign\u002Ftest-suite-baseline-948.md`](..\u002F..\u002FDocuments\u002FDesign\u002Ftest-suite-baseline-948.md) records the last full-suite baseline, the runner's counting and false-green traps in detail, and the disposition of every test that was red at it.\n\n## `isBackground` Default\n\nUse `isBackground: false` for Pester, PSScriptAnalyzer, `markdownlint-cli2`, structural checks, and any command expected to complete in under 60 seconds. Reserve `isBackground: true` for dev servers and watch-mode builds.\n\nExceptions:\n\n- When diagnosing a terminal stall, the `process-troubleshooting` skill guidance to switch to `isBackground: true` for diagnostics takes precedence.\n- Final-gate full suite in live-refresh mode (`PESTER_LIVE_GH=1`): treat as long-running, run with `isBackground: true`, and poll with `get_terminal_output`. In fixture mode, keep `isBackground: false`.\n\nPester 5 writes pass\u002Ffail output to the terminal buffer rather than redirected file streams, so `*>` only captures advisory output such as `Write-Warning`. Do not use `await_terminal` for the live-refresh full-suite case; the PowerShell prompt returning on the last line signals completion.\n\n## No Terminal\u002FSubagent Batching\n\nDo not batch `run_in_terminal` and subagent dispatch calls in the same parallel tool-call set. Sequential use is fine. Parallel subagent dispatch remains allowed when no terminal command shares that batch.\n\n## Session-Cost Discipline\n\nFour rules that keep long-context orchestrated sessions from spending money re-reading their own transcript instead of doing work. They apply to any long-context agent session, not terminal execution alone.\n\n### 1. Parent-side diagnostics\n\nRule 1 (parent-side diagnostics): never dispatch a subagent for a check the parent could do in ≤2 tool calls. Reserve subagent dispatch for substantive specialist work.\n\n### 2. Targeted edits, split by target\n\n**Local files**: use targeted in-place `Edit` calls; never rewrite a whole file to change part of it.\n\n**GitHub issue\u002FPR bodies**: bodies are edited concurrently across sessions and phases, so follow this sequence:\n\n1. Compose the new body once from content already in context.\n2. Precede the write with a freshness check: re-read the live body via structured JSON extraction — `gh issue view {N} --json body --jq '.body'` (or `gh pr view {N} --json body --jq '.body'` for PR bodies), never `gh view` console text output and never a `>`-redirected tmp file — and compare it against your in-context snapshot.\n3. If they diverge, halt-and-reconcile: stop, re-fetch the live body via that same clean channel, and re-compose the write payload from the reconciled content already in context — never merge the re-read output directly into the payload.\n4. Post the composed body with a single `--body-file` write.\n\nThe prohibition is scoped to **payload reuse**, not to reading: never let `gh view` output become the write payload — on Windows, `gh view` output OEM-mangles non-ASCII (em-dashes, section signs, emoji); never write a tmp copy and then edit it before posting. This check narrows but does not eliminate the inherent check-then-write race window between the freshness read and the write itself.\n\nContent destined to become a write payload — including the freshness-comparison read above — must be read **in full** and fidelity-verified — the extract-don't-dump rule (rule 4 below) does not apply to read-modify-write payloads.\n\nSee `## Scratch & Temp-File Hygiene` above for where scratch files belong; that section is this skill's single source of truth for scratch-file location and is not restated here.\n\n### 3. Batch independent tool calls\n\nRule 3 (call batching): batch independent tool calls in one message when they have no dependency between them. Each avoidable sequential call re-reads the whole session context (~$0.08\u002Fcall, measured on PR #857, 2026-07-16). **Carve-out**: `## No Terminal\u002FSubagent Batching` above always wins — never batch a terminal command and a subagent dispatch in the same parallel set.\n\n### 4. Extract, don't dump\n\nRule 4 (extract, don't dump): extract at the tool boundary (`--jq`, `grep`, `Select-String`, targeted `Read` offsets) instead of dumping full structured payloads into context. **Exception**: read-modify-write payloads (rule 2 above) must be read in full. Measured on PR #857 (2026-07-16): one careless 36,000-character dump cost approximately $7, because every later call re-carried it — see the [#476 cost-analysis comment (2026-07-16)](https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fissues\u002F476#issuecomment-4992967140). This figure is historical evidence, not a standing rate.\n\n**Scope acknowledgment**: nine agent bodies currently load this skill unscoped (Code-Conductor, Code-Critic, Code-Smith, Doc-Keeper, Process-Review, Refactor-Specialist, Specification, Test-Writer, UI-Iterator); rules 2-4 are generic session discipline that benefits any of them, not just the bodies that carry an explicit Session-Cost Discipline load reference — this is a scope acknowledgment, not a call to edit those other bodies.\n\n## Terminal Cleanup\n\nCode-Conductor manages background terminal lifecycle with its Terminal Lifecycle Protocol. At phase boundaries such as post-step, post-implementation, and post-PR, it sweeps tracked `isBackground: true` terminal IDs, kills confirmed-completed terminals, and preserves active or unknown-state ones. Cleanup is always non-fatal.\n\nRoot cause context:\n\n- Agent Orchestra sessions generate high terminal command volume, especially around repeated structural checks.\n- When the shared terminal buffer overflows at roughly 16 KB, commands appear to stall and later commands often shift to new background terminals.\n- At roughly 30 or more idle terminals, shells can enter CPU-spin states.\n- The consolidated `quick-validate.ps1` reduces per-pass command count and lowers overflow risk.\n\nLogging contract:\n\n```text\nTerminal cleanup: killed N completed, preserved M active, K unknown\u002Falready-gone\n```\n\nSubagent gap: subagent-spawned background terminals are not tracked by Code-Conductor. Subagents should follow the `isBackground: false` preference unless a documented exception applies.\n\n## Terminal Retry Hygiene\n\nWhen retrying a failed command that ran in a background terminal (`isBackground: true` or `mode: async`), use this kill-before-retry protocol:\n\n1. Record the terminal ID returned by `run_in_terminal`.\n2. Kill that terminal via `kill_terminal` using the same terminal ID, loading the tool first with `tool_search_tool_regex` if needed.\n3. If `kill_terminal` fails, log it and proceed. This is non-fatal.\n4. For dev servers, run `pwsh -NoProfile -NonInteractive -File skills\u002Fterminal-hygiene\u002Fscripts\u002Fcheck-port.ps1 -Port {PORT}` before restart to verify the port was released. If the port is still in use, log the diagnostic and proceed.\n5. Start the retry in a fresh terminal.\n\nScope notes:\n\n- This protocol applies to within-step retries for terminals with trackable background IDs.\n- Phase-boundary cleanup of accumulated terminals remains governed by Terminal Cleanup.\n- Kill-before-retry and Terminal Cleanup are complementary, not substitutes. If both target the same terminal ID, the first successful kill wins and later attempts are harmless no-ops.\n- Both `kill_terminal` failures and `check-port.ps1` errors are non-blocking. Degrade gracefully to retry-without-kill when necessary.\n\n## Scratch & Temp-File Hygiene\n\n**Single source of truth** for where agents write scratch\u002Foutput files. All other skills cross-reference this section; do NOT duplicate the rule.\n\n### Rule: use repo-relative `.tmp\u002F` — never host-native absolute paths\n\nWhen a Bash-tool shell command writes a scratch or output file:\n\n- **DO**: write to a relative `.tmp\u002F` path, e.g. `.tmp\u002Fissue-643-body.md`, `.tmp\u002F643-comments.json`\n- **DO NOT**: construct a Windows-style absolute path (`C:\\Users\\...\\Temp\\...`) or pass it to a POSIX\u002Fgit-bash shell — the drive letter and backslashes do not translate and the path collapses to a repo-root filename\n\nIf a Windows-native tool requires an absolute path (e.g. a screenshot tool that cannot accept a relative save target):\n\n- Use forward-slash git-bash form: `\u002Fc\u002FUsers\u002F...\u002FTemp\u002F...`\n- Or use the PowerShell tool with `$env:TEMP` — never `C:\\...` inside a bash redirect\n\n**Consumer snippet** — add these lines to your repo `.gitignore` to keep `.tmp\u002F` and collapsed-mangle-literal shapes out of `git status`:\n\n```gitignore\n# Agent scratch — keep out of git status\n.tmp\u002F\n\u002F[A-Za-z][A-Za-z]sers*\n\u002F[A-Za-z]:*\n# \u002F*[Tt]emp* intentionally omitted: over-matched template.md, templates\u002F, attempt.js.\n# Primary mangle shapes are covered by \u002F[A-Za-z]:* and \u002F[A-Za-z][A-Za-z]sers* above.\n\u002Fvar*folders*\n\u002F[Rr][Uu][Nn][Nn][Ee][Rr]*[Tt][Ee][Mm][Pp]*\n```\n\nThese patterns cover the Windows default-temp mangle (`UsersXAppDataLocalTempfoo.png`) and a root-anchored set of other shapes. They are best-effort — the author-time grep guard (see `skills\u002Fterminal-hygiene\u002FSKILL.md` `## Scratch & Temp-File Hygiene`) is the authoritative prevention, not the gitignore net.\n\n## Multiline Continuation-Prompt Hazard\n\nPowerShell enters a continuation prompt (`>>`) and bash enters a `>` prompt when a command is syntactically incomplete: unclosed here-strings (`@'`\u002F`@\"`), parentheses, braces, or backtick line continuations in PowerShell; unclosed heredocs, quotes, or backslash continuations in bash.\n\n**Symptom**: the terminal appears to hang — no output, no PS prompt. The buffer tail shows `>>` or `>` rather than a prompt.\n\n**Agent-side detection**: if the prior command contained an unclosed multiline construct (a here-string, unclosed parenthesis, or continuation backslash) and the terminal returns no new output, presume a continuation prompt rather than a frozen process. When the terminal buffer is inspectable, a trailing `>>` or `>` line with no surrounding command output confirms this.\n\n**Recovery**: do not attempt `^C` — from the agent side, sending literal `\"^C\"` adds more input to the here-string rather than interrupting the shell. Use `kill_terminal` on the stalled terminal ID, then open a fresh terminal. This extends the existing kill-before-retry pattern from `## Terminal Retry Hygiene`.\n\n**Prevention**: prefer one-line commands. When a multiline construct is genuinely required, write it to a temporary `.ps1` or `.sh` file and invoke the file, rather than passing the block inline to the terminal. Those temporary `.ps1` and `.sh` files must themselves land under `.tmp\u002F` per `## Scratch & Temp-File Hygiene` above.\n\n## Non-Fatal Diagnostic Wrapper Pattern\n\nWhen a subagent needs to run a diagnostic check (linting, structural validation, schema inspection) without risking an orchestration halt on a non-zero exit code, the wrapper script should emit a structured status line as its final stdout output and always exit 0.\n\n**Shape**:\n\n- Readable line: `VALIDATION_STATUS=pass` or `VALIDATION_STATUS=fail` as any line in stdout; emit it last for unambiguous parsing\n- Optional preceding lines: evidence such as diff output, line counts, or error messages\n- Exit code: always `exit 0` so the orchestrator continues regardless of findings\n\n**Worked examples**:\n\nPowerShell:\n\n```powershell\nif ($findings.Count -eq 0) {\n    Write-Output 'VALIDATION_STATUS=pass'\n} else {\n    $findings | ForEach-Object { Write-Output $_ }\n    Write-Output 'VALIDATION_STATUS=fail'\n}\nexit 0\n```\n\nBash:\n\n```bash\nif [ \"$finding_count\" -eq 0 ]; then\n  echo 'VALIDATION_STATUS=pass'\nelse\n  echo \"$error_details\"\n  echo 'VALIDATION_STATUS=fail'\nfi\nexit 0\n```\n\n**Scope**: this pattern applies to diagnostic wrappers only. Real validation gates (Pester, PSScriptAnalyzer, markdownlint) retain their non-zero exits — do not apply `exit 0` to gates that must halt on failure. Criterion: if the orchestrator should stop when this tool reports failure, it is a gate; if it should continue and log findings, it is a diagnostic.\n\n**Residual non-zero sources**: existing third-party tools (e.g., `grep -q`) exit non-zero on no-match by design. Wrap calls to such tools explicitly if their exit codes would be misread as failures.\n\n**Consumer**: the `VALIDATION_STATUS` token is readable by the operator in the terminal buffer and future-greppable as `^VALIDATION_STATUS=` in stdout. No automated consumer exists today — the value is operator-facing structured evidence at a glance.\n\n## Gotchas\n\n| Trigger                                               | Gotcha                                                                          | Fix                                                                            |\n| ----------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |\n| Running full Pester repeatedly during inner-loop work | Large, repetitive output increases terminal buffer pressure and slows iteration | Use targeted Pester until the step boundary, then run the full validation gate |\n\n| Trigger                                                         | Gotcha                                                             | Fix                                                                                                |\n| --------------------------------------------------------------- | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- |\n| Retrying a failed async server without killing the old terminal | The old shell or port can stay alive and make the retry look flaky | Kill the prior terminal ID first, check the port for dev servers, then restart in a fresh terminal |\n\n| Trigger                                                          | Gotcha                                                                                        | Fix                                                                                                            |\n| ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |\n| Terminal sits silently after a multiline command                | The shell entered a continuation prompt (`>>` or `>`); the terminal is not frozen             | Intervene immediately — the shell waits indefinitely; use `kill_terminal` and open a fresh terminal — do not send `^C` |\n\n| Trigger                                                          | Gotcha                                                                                        | Fix                                                                                                            |\n| ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |\n| Subagent diagnostic check causes orchestration to halt unexpectedly | The diagnostic script exited non-zero and the orchestrator treated it as a blocking failure | Wrap the diagnostic in the Non-Fatal Diagnostic Wrapper Pattern: emit `VALIDATION_STATUS=pass\u002Ffail`, exit 0    |\n","# Terminal Hygiene\n\nTerminal and validation rules that keep workflow execution predictable.\n\n## When to Use\n\n- When choosing targeted versus full-suite Pester runs\n- When deciding between `mode: sync` and `mode: async` \u002F `isBackground: true`\n- When validating at step boundaries without overflowing terminal state\n- When retrying background terminal commands safely\n- When applying session-cost discipline (parent-side diagnostics, targeted edits, call batching, extract-don't-dump) in a long-context orchestrated session\n\n## Scope\n\nThese rules supplement, not replace, any agent-specific terminal guidance such as Code-Conductor's non-interactive guardrails. Scope also extends to session-cost discipline for long-context agent sessions — not terminal execution alone.\n\n## PowerShell and Pester traps\n\n[`references\u002Fpowershell-traps.md`](references\u002Fpowershell-traps.md) collects the language-level and runner-level traps that have cost this repository real time. Most share one property: **they do not throw** — they return a wrong shape, a wrong count, or a green verdict; the few that do throw fire somewhere other than where you would look. Read it before writing a verification script, a guard, or a test whose purpose is to detect something, since most of the file is a way for such a check to report success while checking nothing.\n\nHighest-frequency entries: `-eq` and `Should -Be` are case-insensitive (so an \"identical text\" criterion implemented with either cannot detect a case-only difference — the exact divergence such a criterion is usually written to catch); `return ,$array` plus a caller's `@()` collapses to one element; `??` does not guard an absent property under StrictMode; and the sharded runner's `fail=N` is not a count of failing tests.\n\n## Pester Scope\n\nWhen iterating on a specific test during red-green-refactor within an implementation step, use targeted Pester:\n\n```powershell\nInvoke-Pester 'path\u002Fto\u002Fspecific.Tests.ps1' -Output Minimal\n```\n\nThe full-suite runner is `.github\u002Fscripts\u002Frun-pester-sharded.ps1` (authored in issue #740 s4); invoke it at step boundaries as the standard validation gate. Do not run the full suite during inner-loop iteration.\n\nNote: CI's `pester.yml` runs a **glob minus an explicit quarantine** — every `*.Tests.ps1` in `.github\u002Fscripts\u002FTests\u002F` except the files listed in `ci-quarantine.json` — through that same sharded runner, driven by that selection rather than by a directory glob (issue #1037). It is not an allowlist and there is no list to register a new suite into: a new suite is gated the moment it is written. Derive the current selection from `Get-CISuiteSelection` rather than reading a count out of any document; the quarantine shrinks as suites are triaged.\n\nThat divergence from the full local suite is intentional, and it runs the other way too: `run-pester-sharded.ps1 -TestsPath \u003Cdir>` **globs**, so it measures every suite on disk *including* the quarantined ones. To reproduce what CI runs, pass the selection instead:\n\n```powershell\n. .github\u002Fscripts\u002Flib\u002Fci-suite-selection-core.ps1\n. .github\u002Fscripts\u002Flib\u002Fpester-sharded-core.ps1\n$selection = Get-CISuiteSelection -TestsRoot '.github\u002Fscripts\u002FTests' -QuarantinePath '.github\u002Fscripts\u002FTests\u002Fci-quarantine.json'\nInvoke-PesterSharded -SuitePath $selection.Selected -FanOutWidth 10\n```\n\nSince issue #1037 the runner reports **two** totals that name their units and are never summed — `TOTAL suites (unit: files)` with a per-outcome tally, and `TOTAL tests (unit: test cases)` — plus a reconciliation line against the caller's selection. Do **not** subtract a per-file phantom from the failure count: that increment is gone. It also means `ExitCode=1` with zero failing *tests* is now a shape that occurs on its own (a crashed worker, a suite that discovered nothing, a suite whose tests were all skipped, a selected suite with no result at all) rather than only alongside failing tests, so read the suite tally or the exit code, never the test-failure total alone. Build any baseline measurement in a detached worktree (`git worktree add --detach \u003Cpath> \u003Ccommit>`): a `git stash` cannot prove a failure is pre-existing, and a `git archive` extract has no repository metadata and fails a large number of tests for that reason alone. [`Documents\u002FDesign\u002Ftest-suite-baseline-948.md`](..\u002F..\u002FDocuments\u002FDesign\u002Ftest-suite-baseline-948.md) records the last full-suite baseline, the runner's counting and false-green traps in detail, and the disposition of every test that was red at it.\n\n## `isBackground` Default\n\nUse `isBackground: false` for Pester, PSScriptAnalyzer, `markdownlint-cli2`, structural checks, and any command expected to complete in under 60 seconds. Reserve `isBackground: true` for dev servers and watch-mode builds.\n\nExceptions:\n\n- When diagnosing a terminal stall, the `process-troubleshooting` skill guidance to switch to `isBackground: true` for diagnostics takes precedence.\n- Final-gate full suite in live-refresh mode (`PESTER_LIVE_GH=1`): treat as long-running, run with `isBackground: true`, and poll with `get_terminal_output`. In fixture mode, keep `isBackground: false`.\n\nPester 5 writes pass\u002Ffail output to the terminal buffer rather than redirected file streams, so `*>` only captures advisory output such as `Write-Warning`. Do not use `await_terminal` for the live-refresh full-suite case; the PowerShell prompt returning on the last line signals completion.\n\n## No Terminal\u002FSubagent Batching\n\nDo not batch `run_in_terminal` and subagent dispatch calls in the same parallel tool-call set. Sequential use is fine. Parallel subagent dispatch remains allowed when no terminal command shares that batch.\n\n## Session-Cost Discipline\n\nFour rules that keep long-context orchestrated sessions from spending money re-reading their own transcript instead of doing work. They apply to any long-context agent session, not terminal execution alone.\n\n### 1. Parent-side diagnostics\n\nRule 1 (parent-side diagnostics): never dispatch a subagent for a check the parent could do in ≤2 tool calls. Reserve subagent dispatch for substantive specialist work.\n\n### 2. Targeted edits, split by target\n\n**Local files**: use targeted in-place `Edit` calls; never rewrite a whole file to change part of it.\n\n**GitHub issue\u002FPR bodies**: bodies are edited concurrently across sessions and phases, so follow this sequence:\n\n1. Compose the new body once from content already in context.\n2. Precede the write with a freshness check: re-read the live body via structured JSON extraction — `gh issue view {N} --json body --jq '.body'` (or `gh pr view {N} --json body --jq '.body'` for PR bodies), never `gh view` console text output and never a `>`-redirected tmp file — and compare it against your in-context snapshot.\n3. If they diverge, halt-and-reconcile: stop, re-fetch the live body via that same clean channel, and re-compose the write payload from the reconciled content already in context — never merge the re-read output directly into the payload.\n4. Post the composed body with a single `--body-file` write.\n\nThe prohibition is scoped to **payload reuse**, not to reading: never let `gh view` output become the write payload — on Windows, `gh view` output OEM-mangles non-ASCII (em-dashes, section signs, emoji); never write a tmp copy and then edit it before posting. This check narrows but does not eliminate the inherent check-then-write race window between the freshness read and the write itself.\n\nContent destined to become a write payload — including the freshness-comparison read above — must be read **in full** and fidelity-verified — the extract-don't-dump rule (rule 4 below) does not apply to read-modify-write payloads.\n\nSee `## Scratch & Temp-File Hygiene` above for where scratch files belong; that section is this skill's single source of truth for scratch-file location and is not restated here.\n\n### 3. Batch independent tool calls\n\nRule 3 (call batching): batch independent tool calls in one message when they have no dependency between them. Each avoidable sequential call re-reads the whole session context (~$0.08\u002Fcall, measured on PR #857, 2026-07-16). **Carve-out**: `## No Terminal\u002FSubagent Batching` above always wins — never batch a terminal command and a subagent dispatch in the same parallel set.\n\n### 4. Extract, don't dump\n\nRule 4 (extract, don't dump): extract at the tool boundary (`--jq`, `grep`, `Select-String`, targeted `Read` offsets) instead of dumping full structured payloads into context. **Exception**: read-modify-write payloads (rule 2 above) must be read in full. Measured on PR #857 (2026-07-16): one careless 36,000-character dump cost approximately $7, because every later call re-carried it — see the [#476 cost-analysis comment (2026-07-16)](https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fissues\u002F476#issuecomment-4992967140). This figure is historical evidence, not a standing rate.\n\n**Scope acknowledgment**: nine agent bodies currently load this skill unscoped (Code-Conductor, Code-Critic, Code-Smith, Doc-Keeper, Process-Review, Refactor-Specialist, Specification, Test-Writer, UI-Iterator); rules 2-4 are generic session discipline that benefits any of them, not just the bodies that carry an explicit Session-Cost Discipline load reference — this is a scope acknowledgment, not a call to edit those other bodies.\n\n## Terminal Cleanup\n\nCode-Conductor manages background terminal lifecycle with its Terminal Lifecycle Protocol. At phase boundaries such as post-step, post-implementation, and post-PR, it sweeps tracked `isBackground: true` terminal IDs, kills confirmed-completed terminals, and preserves active or unknown-state ones. Cleanup is always non-fatal.\n\nRoot cause context:\n\n- Agent Orchestra sessions generate high terminal command volume, especially around repeated structural checks.\n- When the shared terminal buffer overflows at roughly 16 KB, commands appear to stall and later commands often shift to new background terminals.\n- At roughly 30 or more idle terminals, shells can enter CPU-spin states.\n- The consolidated `quick-validate.ps1` reduces per-pass command count and lowers overflow risk.\n\nLogging contract:\n\n```text\nTerminal cleanup: killed N completed, preserved M active, K unknown\u002Falready-gone\n```\n\nSubagent gap: subagent-spawned background terminals are not tracked by Code-Conductor. Subagents should follow the `isBackground: false` preference unless a documented exception applies.\n\n## Terminal Retry Hygiene\n\nWhen retrying a failed command that ran in a background terminal (`isBackground: true` or `mode: async`), use this kill-before-retry protocol:\n\n1. Record the terminal ID returned by `run_in_terminal`.\n2. Kill that terminal via `kill_terminal` using the same terminal ID, loading the tool first with `tool_search_tool_regex` if needed.\n3. If `kill_terminal` fails, log it and proceed. This is non-fatal.\n4. For dev servers, run `pwsh -NoProfile -NonInteractive -File skills\u002Fterminal-hygiene\u002Fscripts\u002Fcheck-port.ps1 -Port {PORT}` before restart to verify the port was released. If the port is still in use, log the diagnostic and proceed.\n5. Start the retry in a fresh terminal.\n\nScope notes:\n\n- This protocol applies to within-step retries for terminals with trackable background IDs.\n- Phase-boundary cleanup of accumulated terminals remains governed by Terminal Cleanup.\n- Kill-before-retry and Terminal Cleanup are complementary, not substitutes. If both target the same terminal ID, the first successful kill wins and later attempts are harmless no-ops.\n- Both `kill_terminal` failures and `check-port.ps1` errors are non-blocking. Degrade gracefully to retry-without-kill when necessary.\n\n## Scratch & Temp-File Hygiene\n\n**Single source of truth** for where agents write scratch\u002Foutput files. All other skills cross-reference this section; do NOT duplicate the rule.\n\n### Rule: use repo-relative `.tmp\u002F` — never host-native absolute paths\n\nWhen a Bash-tool shell command writes a scratch or output file:\n\n- **DO**: write to a relative `.tmp\u002F` path, e.g. `.tmp\u002Fissue-643-body.md`, `.tmp\u002F643-comments.json`\n- **DO NOT**: construct a Windows-style absolute path (`C:\\Users\\...\\Temp\\...`) or pass it to a POSIX\u002Fgit-bash shell — the drive letter and backslashes do not translate and the path collapses to a repo-root filename\n\nIf a Windows-native tool requires an absolute path (e.g. a screenshot tool that cannot accept a relative save target):\n\n- Use forward-slash git-bash form: `\u002Fc\u002FUsers\u002F...\u002FTemp\u002F...`\n- Or use the PowerShell tool with `$env:TEMP` — never `C:\\...` inside a bash redirect\n\n**Consumer snippet** — add these lines to your repo `.gitignore` to keep `.tmp\u002F` and collapsed-mangle-literal shapes out of `git status`:\n\n```gitignore\n# Agent scratch — keep out of git status\n.tmp\u002F\n\u002F[A-Za-z][A-Za-z]sers*\n\u002F[A-Za-z]:*\n# \u002F*[Tt]emp* intentionally omitted: over-matched template.md, templates\u002F, attempt.js.\n# Primary mangle shapes are covered by \u002F[A-Za-z]:* and \u002F[A-Za-z][A-Za-z]sers* above.\n\u002Fvar*folders*\n\u002F[Rr][Uu][Nn][Nn][Ee][Rr]*[Tt][Ee][Mm][Pp]*\n```\n\nThese patterns cover the Windows default-temp mangle (`UsersXAppDataLocalTempfoo.png`) and a root-anchored set of other shapes. They are best-effort — the author-time grep guard (see `skills\u002Fterminal-hygiene\u002FSKILL.md` `## Scratch & Temp-File Hygiene`) is the authoritative prevention, not the gitignore net.\n\n## Multiline Continuation-Prompt Hazard\n\nPowerShell enters a continuation prompt (`>>`) and bash enters a `>` prompt when a command is syntactically incomplete: unclosed here-strings (`@'`\u002F`@\"`), parentheses, braces, or backtick line continuations in PowerShell; unclosed heredocs, quotes, or backslash continuations in bash.\n\n**Symptom**: the terminal appears to hang — no output, no PS prompt. The buffer tail shows `>>` or `>` rather than a prompt.\n\n**Agent-side detection**: if the prior command contained an unclosed multiline construct (a here-string, unclosed parenthesis, or continuation backslash) and the terminal returns no new output, presume a continuation prompt rather than a frozen process. When the terminal buffer is inspectable, a trailing `>>` or `>` line with no surrounding command output confirms this.\n\n**Recovery**: do not attempt `^C` — from the agent side, sending literal `\"^C\"` adds more input to the here-string rather than interrupting the shell. Use `kill_terminal` on the stalled terminal ID, then open a fresh terminal. This extends the existing kill-before-retry pattern from `## Terminal Retry Hygiene`.\n\n**Prevention**: prefer one-line commands. When a multiline construct is genuinely required, write it to a temporary `.ps1` or `.sh` file and invoke the file, rather than passing the block inline to the terminal. Those temporary `.ps1` and `.sh` files must themselves land under `.tmp\u002F` per `## Scratch & Temp-File Hygiene` above.\n\n## Non-Fatal Diagnostic Wrapper Pattern\n\nWhen a subagent needs to run a diagnostic check (linting, structural validation, schema inspection) without risking an orchestration halt on a non-zero exit code, the wrapper script should emit a structured status line as its final stdout output and always exit 0.\n\n**Shape**:\n\n- Readable line: `VALIDATION_STATUS=pass` or `VALIDATION_STATUS=fail` as any line in stdout; emit it last for unambiguous parsing\n- Optional preceding lines: evidence such as diff output, line counts, or error messages\n- Exit code: always `exit 0` so the orchestrator continues regardless of findings\n\n**Worked examples**:\n\nPowerShell:\n\n```powershell\nif ($findings.Count -eq 0) {\n    Write-Output 'VALIDATION_STATUS=pass'\n} else {\n    $findings | ForEach-Object { Write-Output $_ }\n    Write-Output 'VALIDATION_STATUS=fail'\n}\nexit 0\n```\n\nBash:\n\n```bash\nif [ \"$finding_count\" -eq 0 ]; then\n  echo 'VALIDATION_STATUS=pass'\nelse\n  echo \"$error_details\"\n  echo 'VALIDATION_STATUS=fail'\nfi\nexit 0\n```\n\n**Scope**: this pattern applies to diagnostic wrappers only. Real validation gates (Pester, PSScriptAnalyzer, markdownlint) retain their non-zero exits — do not apply `exit 0` to gates that must halt on failure. Criterion: if the orchestrator should stop when this tool reports failure, it is a gate; if it should continue and log findings, it is a diagnostic.\n\n**Residual non-zero sources**: existing third-party tools (e.g., `grep -q`) exit non-zero on no-match by design. Wrap calls to such tools explicitly if their exit codes would be misread as failures.\n\n**Consumer**: the `VALIDATION_STATUS` token is readable by the operator in the terminal buffer and future-greppable as `^VALIDATION_STATUS=` in stdout. No automated consumer exists today — the value is operator-facing structured evidence at a glance.\n\n## Gotchas\n\n| Trigger                                               | Gotcha                                                                          | Fix                                                                            |\n| ----------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |\n| Running full Pester repeatedly during inner-loop work | Large, repetitive output increases terminal buffer pressure and slows iteration | Use targeted Pester until the step boundary, then run the full validation gate |\n\n| Trigger                                                         | Gotcha                                                             | Fix                                                                                                |\n| --------------------------------------------------------------- | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- |\n| Retrying a failed async server without killing the old terminal | The old shell or port can stay alive and make the retry look flaky | Kill the prior terminal ID first, check the port for dev servers, then restart in a fresh terminal |\n\n| Trigger                                                          | Gotcha                                                                                        | Fix                                                                                                            |\n| ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |\n| Terminal sits silently after a multiline command                | The shell entered a continuation prompt (`>>` or `>`); the terminal is not frozen             | Intervene immediately — the shell waits indefinitely; use `kill_terminal` and open a fresh terminal — do not send `^C` |\n\n| Trigger                                                          | Gotcha                                                                                        | Fix                                                                                                            |\n| ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |\n| Subagent diagnostic check causes orchestration to halt unexpectedly | The diagnostic script exited non-zero and the orchestrator treated it as a blocking failure | Wrap the diagnostic in the Non-Fatal Diagnostic Wrapper Pattern: emit `VALIDATION_STATUS=pass\u002Ffail`, exit 0    |\n",{"name":5,"description":7},"main","d5486aacc32c9ca1b07173cfd530f8fe75c29e58","skills\u002Fterminal-hygiene",0,"https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra","https:\u002F\u002Fgithub.com\u002FGrimblaz","2026-08-16 01:12:46",{"source":9,"skillName":5,"commands":63,"prompt":73,"zipAvailable":74},[64,67,70],{"tool":65,"command":66},"npx","npx skills add Grimblaz\u002Fagent-orchestra --skill terminal-hygiene",{"tool":68,"command":69},"bunx","bunx skills add Grimblaz\u002Fagent-orchestra --skill terminal-hygiene",{"tool":71,"command":72},"pnpm","pnpm dlx skills add Grimblaz\u002Fagent-orchestra --skill terminal-hygiene","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fterminal-hygiene\u002FSKILL.md",true,[76,82,88],{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"references\u002Fpowershell-traps.md","REFERENCE","参考文档",28033,"https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fterminal-hygiene\u002Freferences\u002Fpowershell-traps.md",{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Fcheck-port-core.ps1","SCRIPT","脚本",1987,"https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fterminal-hygiene\u002Fscripts\u002Fcheck-port-core.ps1",{"path":89,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":90,"sourceHtmlUrl":91},"scripts\u002Fcheck-port.ps1",235,"https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fterminal-hygiene\u002Fscripts\u002Fcheck-port.ps1",[93,124,152,172,198,215],{"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":13,"sourceHtmlUrl":99,"categories":100,"keywords":107,"publishedAt":50},"01M6C48YMJVFHM7DVGG1WWW5RJ","webapp-testing","Playwright 端到端测试","Playwright end-to-end testing guidance for web apps, with practical patterns and setup steps. Use when creating or improving browser-based E2E coverage, test stability, and CI execution. DO NOT USE FOR: React component tests (use ui-testing), canvas game interaction (use browser-canvas-testing), TDD workflow (use test-driven-development), debugging failures (use systematic-debugging), or randomized property tests (use property-based-testing).","面向 Web 应用的 Playwright 端到端测试指南，包含实用模式和设置步骤。在创建或改进基于浏览器的 E2E 覆盖率、测试稳定性和 CI 执行时使用。不要用于：React 组件测试（使用 ui-testing）、Canvas 游戏交互（使用 browser-canvas-testing）、TDD 工作流（使用 test-driven-development）、失败调试（使用 systematic-debugging）或随机化属性测试（使用 property-based-testing）。","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[101,104],{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师",{"categoryNo":105,"categoryName":106,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障",[108,109,110,111,112,113,114,41,115,116,117,44,118,119,120,40,121,122,123,35],"testing","webapp testing","webapp","canvas","tdd","workflow","playwright","web","react","component","development","browser","ci","e2e","game","coverage",{"skillNo":125,"name":126,"nameZh":127,"description":128,"descriptionZh":129,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":130,"categories":131,"keywords":136,"publishedAt":50},"01M6C48TNNP2KCSQXV8YK7SK49","verification-before-completion","任务完成前验证","Evidence-based verification checklist before marking work complete. Use before PRs, releases, marking tickets done, or any \"I'm finished\" declaration; also when naming a baseline commit for a differential suite claim, when designing a mutation campaign or red-run evidence, when making an absence claim, a universal claim, or a one-time demonstration offered as a standing guarantee, when attributing a measurement or claiming a sweep or verification loop is complete, and when stating what a check or a CI suite will do about a change. DO NOT USE FOR: post-merge cleanup or archival (use post-pr-review) or processing GitHub review comments (use code-review-intake).","在将工作标记为完成前使用的基于证据的验证清单。适用于提交 PR、发布、将工单标记为完成，或任何「我已完成」的声明之前；也适用于为差异测试套件的主张指定基线提交、设计变异测试活动或红灯运行证据、做出「不存在」的主张、普遍性主张，或将一次性演示作为长期保证提供时、归因某项测量结果或声称某次扫描或验证循环已完成时，以及陈述某项检查或 CI 套件将如何处理某个变更时。不要用于：合并后清理或归档（使用 post-pr-review），或处理 GitHub 审查意见（使用 code-review-intake）。","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[132,133],{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":134,"categoryName":135,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8C48JNVH0P83Z0KVKAQ4819","成果验证与价值评估",[137,138,33,139,140,48,45,141,142,143,144,145,120,146,147,148,149,35,150,151],"verification","verification before completion","change","commit","cleanup","run","code","code-review","intake","loop","verification loop","work","check","evidence","campaign",{"skillNo":153,"name":154,"nameZh":155,"description":156,"descriptionZh":157,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":158,"categories":159,"keywords":162,"publishedAt":50},"01M6C48QZWNTP7JGKD32QZAKKX","validation-methodology","验证与审查方法论","Reusable validation and review methodology for staged validation, failure triage, and prosecution-depth setup. Use when running validation ladders, triaging failures, or executing adversarial review passes. DO NOT USE FOR: CE Gate orchestration, specialist dispatch ownership, or step execution flow (keep those in Code-Conductor).","用于分阶段验证、故障分诊和追查深度设置的可复用验证与审查方法论。在运行验证阶梯、对失败进行分诊或执行对抗性审查时使用。不要用于：CE Gate 编排、专家派发的职责归属或步骤执行流程（这些保留在 Code-Conductor 中）。","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fvalidation-methodology\u002FSKILL.md",[160,161],{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":134,"categoryName":135,"taxonomyType":27,"taxonomyTypeDesc":28},[163,164,165,33,166,167,168,169,143,170,40,35,171],"validation","methodology","validation methodology","triage","orchestration","setup","adversarial review","flow","dispatch",{"skillNo":173,"name":174,"nameZh":175,"description":176,"descriptionZh":177,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":178,"categories":179,"keywords":186,"publishedAt":50},"01M6C48MCAHG5Z79BJ369CRYRZ","upstream-onboarding","上游智能体接手协议","Shared opening-phase protocol for upstream agents (Experience-Owner, Solution-Designer, Issue-Planner) and Code-Conductor when invoked on an existing GitHub issue. Renders a scaled context brief and runs a standards check on inherited work at each phase boundary. Use when a user-invocable agent receives a request referencing an existing GitHub issue and must load solution-authoring and upstream-onboarding at the opening phase. DO NOT USE FOR: subagent dispatches (which already operate within an assessed session context); post-merge review (use post-pr-review); research or non-tree subagents.","供上游智能体（Experience-Owner、Solution-Designer、Issue-Planner）与 Code-Conductor 在针对现有 GitHub issue 被调用时使用的共享开场阶段协议。它会生成适配规模的上下文简报，并在每个阶段边界对承接的工作执行标准检查。当用户可调用的智能体收到引用现有 GitHub issue 的请求、且必须在开场阶段加载 solution-authoring 与 upstream-onboarding 时使用。不要用于：子智能体派发（其已在经评估的会话上下文中运行）、合并后审查（使用 post-pr-review）、研究类或非树形子智能体。","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fupstream-onboarding\u002FSKILL.md",[180,183],{"categoryNo":181,"categoryName":182,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":184,"categoryName":185,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[187,188,33,189,190,48,191,45,143,192,193,194,195,38,196,148,149,197,36,35],"onboarding","upstream onboarding","github","research","standards check","protocol","brief","boundary","designer","planner","user",{"skillNo":199,"name":200,"nameZh":201,"description":202,"descriptionZh":203,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":204,"categories":205,"keywords":208,"publishedAt":50},"01M6C48GPVE120TGPMD1CS365H","ui-testing","React 组件测试策略","Resilient React component testing strategies focusing on user behavior. Use when writing or reviewing component-level React tests, fixing flaky component tests, or establishing React testing patterns. DO NOT USE FOR: Playwright E2E tests (use webapp-testing), canvas game interaction (use browser-canvas-testing), TDD workflow (use test-driven-development), debugging failures (use systematic-debugging), UI component design (use frontend-design), or randomized property tests (use property-based-testing).","以用户行为为核心的弹性 React 组件测试策略。适用于编写或审阅组件级 React 测试、修复不稳定的组件测试，或建立 React 测试模式。不适用于：Playwright E2E 测试（使用 webapp-testing）、canvas 游戏交互（使用 browser-canvas-testing）、TDD 工作流（使用 test-driven-development）、失败调试（使用 systematic-debugging）、UI 组件设计（使用 frontend-design），或随机属性测试（使用 property-based-testing）。","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fui-testing\u002FSKILL.md",[206,207],{"categoryNo":102,"categoryName":103,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":105,"categoryName":106,"taxonomyType":27,"taxonomyTypeDesc":28},[108,209,210,211,212,213,111,113,114,41,116,117,44,118,119,214,121,122,35,110],"ui","ui testing","frontend","design","writing","testing patterns",{"skillNo":216,"name":217,"nameZh":218,"description":219,"descriptionZh":220,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":13,"sourceHtmlUrl":221,"categories":222,"keywords":229,"publishedAt":50},"01M6C48DRJ9XBDR2FW0W37DY53","ui-iteration","UI 界面视觉迭代优化","Reusable screenshot-driven UI polish workflow for iterative visual refinement. Use when improving layout, hierarchy, spacing, feedback, or Tailwind-based presentation through repeated review-and-adjust passes. DO NOT USE FOR: functional bug fixing, accessibility-only audits, or major redesign strategy work (use Code-Smith or frontend-design).","可复用的截图驱动 UI 打磨工作流，用于迭代式视觉优化。适用于通过反复审阅与调整来改进布局、层级、间距、反馈或基于 Tailwind 的呈现效果。不适用于：功能性 Bug 修复、仅针对无障碍的审计，或重大重设计策略工作（使用 Code-Smith 或 frontend-design）。","https:\u002F\u002Fgithub.com\u002FGrimblaz\u002Fagent-orchestra\u002Fblob\u002Fmain\u002Fskills\u002Fui-iteration\u002FSKILL.md",[223,226],{"categoryNo":224,"categoryName":225,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQMKHSMFVQHR2KYAEVN","界面设计师",{"categoryNo":227,"categoryName":228,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[209,230,211,212,33,113,231,143,232,233,234,235,236,148,237,238,35,239],"ui iteration","accessibility","screenshot","Tailwind","polish","ui polish","feedback","redesign","strategy","only"]