Modern JavaScript Patterns
wshobson/agents
Covers ES6+ syntax and functional patterns for refactoring older JavaScript: async/await, destructuring, spread, modules, generators and data pipelines.
Check concurrency and isolation before implementing or refactoring TestFx tests, lifecycle code, helpers, shared-state declarations, or production paths those tests exercise.
$ npx skills add microsoft/testfx --skill testfx-parallel-safety-preflight -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install microsoft/testfx testfx-parallel-safety-preflight --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/microsoft/testfx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/testfx-parallel-safety-preflight .claude/skills/testfx-parallel-safety-preflight && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "testfx-parallel-safety-preflight" agent skill from https://github.com/microsoft/testfx/tree/main/.github/skills/testfx-parallel-safety-preflight into .claude/skills/testfx-parallel-safety-preflight/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testfx-parallel-safety-preflight", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/microsoft/testfx/tree/main/.github/skills/testfx-parallel-safety-preflightType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add microsoft/testfx --skill testfx-parallel-safety-preflight -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install microsoft/testfx testfx-parallel-safety-preflight --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/testfx.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/testfx-parallel-safety-preflight .agents/skills/testfx-parallel-safety-preflight && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "testfx-parallel-safety-preflight" agent skill from https://github.com/microsoft/testfx/tree/main/.github/skills/testfx-parallel-safety-preflight into .agents/skills/testfx-parallel-safety-preflight/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testfx-parallel-safety-preflight", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add microsoft/testfx --skill testfx-parallel-safety-preflight -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install microsoft/testfx testfx-parallel-safety-preflight --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/testfx.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/testfx-parallel-safety-preflight .cursor/skills/testfx-parallel-safety-preflight && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "testfx-parallel-safety-preflight" agent skill from https://github.com/microsoft/testfx/tree/main/.github/skills/testfx-parallel-safety-preflight into .cursor/skills/testfx-parallel-safety-preflight/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testfx-parallel-safety-preflight", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/microsoft/testfx.git --path .github/skills/testfx-parallel-safety-preflight--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add microsoft/testfx --skill testfx-parallel-safety-preflight -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install microsoft/testfx testfx-parallel-safety-preflight --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/testfx.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/testfx-parallel-safety-preflight .gemini/skills/testfx-parallel-safety-preflight && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "testfx-parallel-safety-preflight" agent skill from https://github.com/microsoft/testfx/tree/main/.github/skills/testfx-parallel-safety-preflight into .gemini/skills/testfx-parallel-safety-preflight/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testfx-parallel-safety-preflight", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install microsoft/testfx testfx-parallel-safety-preflightInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add microsoft/testfx --skill testfx-parallel-safety-preflight -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/microsoft/testfx.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/testfx-parallel-safety-preflight .github/skills/testfx-parallel-safety-preflight && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "testfx-parallel-safety-preflight" agent skill from https://github.com/microsoft/testfx/tree/main/.github/skills/testfx-parallel-safety-preflight into .github/skills/testfx-parallel-safety-preflight/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testfx-parallel-safety-preflight", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add microsoft/testfx --skill testfx-parallel-safety-preflight -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install microsoft/testfx testfx-parallel-safety-preflight --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/microsoft/testfx.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/testfx-parallel-safety-preflight .opencode/skills/testfx-parallel-safety-preflight && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "testfx-parallel-safety-preflight" agent skill from https://github.com/microsoft/testfx/tree/main/.github/skills/testfx-parallel-safety-preflight into .opencode/skills/testfx-parallel-safety-preflight/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "testfx-parallel-safety-preflight", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
testfx-parallel-safety-preflightCheck concurrency and isolation before implementing or refactoring TestFx tests, lifecycle code, helpers, shared-state declarations, or production paths those tests exercise.
Testfx Parallel Safety Preflight is an agent skill from microsoft/testfx, published by the product's own GitHub organization. Check concurrency and isolation before implementing or refactoring TestFx tests, lifecycle code, helpers, shared-state declarations, or production paths those tests exercise. Use before narrowing DoNotParallelize or ResourceLock, changing parallelization settings, or introducing asynchronous workers; repeat against the final diff.
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Async programming and Refactoring. The repository describes itself as: This repository holds the source code of Microsoft.Testing.Platform (MTP), a lightweight alternative to VSTest, as well as MSTest adapter and framework. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 19d717a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Testfx Parallel Safety Preflight loads about 2.4k tokens when it runs. Until then it costs about 91 tokens; SKILL.md has 1,126 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from microsoft/testfx at commit 19d717a, republished under its MIT licence (© microsoft). 1,126 words, ~2,381 tokens.
.claude/skills/testfx-parallel-safety-preflight/SKILL.md (or your agent's skills folder).Run this during implementation, not only during review. Keep it bounded to the requested change and its reachable conflicts; do not turn it into a repository audit or speculative hardening.
Read .github/copilot-instructions.md, the owning project's configuration and
BannedSymbols.txt when present, and
.github/workflows/shared/parallel-safety-audit-shared.md.
Apply the shared rubric from # Parallel-safety audit through Step 3, including
its assembly-scoping rules. It owns scheduling semantics, the A-D taxonomy,
severity, confidence, culture/ExecutionContext distinctions, and declaration
reconciliation; do not duplicate or replace it.
Read .github/agents/parallel-safety-reviewer.agent.md for the specialist's
evidence and partial-analysis contract. No specialist invocation or GitHub
publication is required. Ignore review-only read-only instructions, event
expressions, extraction-tool assumptions, output formatting, and safe-output
calls: use the actual implementation scope and local diff instead. For existing
branch changes, compare against their merge base, not a moving base-branch tip.
Resolve the effective test engine, target frameworks, assembly scheduling scope, workers, and configuration sources using Step 0. Include constructors, initialization, cleanup, disposal, fixtures, linked sources, and production helpers reached by the affected tests. Do not assume that every project uses MSTest or that an attribute is the effective runtime configuration.
Record the existing resource coverage matrix in working notes, not a new repository planning file:
| Resource and boundary | Lifetime | Direct test readers/writers | Production readers/writers | Other tests reaching those paths | Declaration: key, mode, placement |
|---|---|---|---|---|---|
| Exact state, path, source, or registry; assembly/process/external | Per-test, class, assembly, or worker | Named tests and lifecycle members | Concrete helpers and call paths | Named observers or mutators in the owning assembly | Existing coverage or a confirmed gap |
Trace through production helpers and back to every reachable caller in the owning test assembly. A literal-key search is an inventory aid, not proof. Before claiming a race, name a concrete conflicting observer, the scheduling interleaving, and the observable wrong result. If no conflict is established, do not add a lock merely because a mutation exists; mark uncertainty or readiness-only concerns as such.
Choose elimination or the narrowest correct shared read/write declaration using categories C and D. Reuse the existing key and shared constants; include indirect readers and compatible producers, not only direct mutations. Justify method versus class placement against the whole lifecycle. Preserve assembly-level safety; a narrower method/class lock must not silently opt an assembly in or replace assembly-lifetime exclusion.
For a requested scheduling change, expand to the whole affected assembly as the shared rubric requires. Otherwise leave assembly scheduling unchanged. If coverage is incomplete, retain the existing exclusion and report the gap rather than serializing unrelated tests or weakening safety to finish a patch.
Mode = ResourceAccessMode.Read when the established protocol permits it;
use exclusive access only where required. Do not turn an entire class into
ReadWrite merely because one method needs exclusion.TF_BUILD.
Explicitly arrange required present and absent values using existing fakes or
child-process environment overrides where possible. A lock does not neutralize
CI inheritance. When real process state must change, capture exact previous
values (including absence), restore them in finally inside the protected
lifetime, and reconcile readers. Restore changed culture and static state too;
use the rubric's target-framework/ExecutionContext distinctions rather than
treating all current-culture changes as process-global races.finally, release blocked workers
and request cancellation as appropriate, then await their termination before
disposing gates/listeners, restoring shared state, or releasing test ownership.
A release signal, cancellation request, or "reached finally" marker is not
completion. Bound rendezvous and cleanup separately with named limits and
target-framework-compatible existing helpers; cleanup must not immediately
abandon the join because the test's cancellation token is already canceled.
Surface worker faults and cleanup timeouts without hiding the original test
failure. If in-process workers cannot terminate within the bound, use an
existing isolated-process harness or keep the attempted refactor out; do not
leave background mutation running and declare the test isolated.Rebuild the matrix from the final implementation, including removals of locks, opt-outs, restoration, or cleanup. Verify that each named conflicting observer is covered and that compatible readers remain concurrent. Missing evidence is partial, never clean. Do not remove an exclusion when any row is unknown.
Use the smallest existing build and focused tests for the affected behavior, following the repository-pinned toolchain and packing rules. Include the named conflicting tests and the relevant normal, assertion-failure, cancellation, and timeout cleanup paths, not just the changed method. Preserve the actual assembly scheduling in validation; a serial filtered run or passing stress run is not proof that a race is impossible. When environment-dependent behavior is in scope, cover the required present/absent CI values without changing unrelated host state.
Keep a concise handoff: assembly scope/workers, concrete conflict and declaration choice (or why none is needed), rendezvous/termination evidence, exact validation commands and results, and unresolved evidence. This skill does not authorize publication, unrelated fixes, or changing assembly scheduling.
These are analysis examples, not requests to patch the referenced tests. Recheck their implementation at HEAD before reusing a pattern.
| Scenario | Preflight decision and reference |
|---|---|
A test writes ProcessKilledByHangDump; another calls the crash handler without mentioning that slot. | Trace CrashDumpProcessLifetimeHandler.OnTestHostProcessExitedAsync to AppDomain.CurrentDomain.GetData. For example, the writer in CrashDumpTests could make CrashDumpArtifactPublisherMutationTests.OnTestHostProcessExitedAsync_MissingDumpPattern_ThrowsInvariantViolation skip its expected exception if exclusion were removed. Preserve the matching readers, writer's exclusive declaration, and exact restoration. |
| A raw activity listener could accept another test's builder event. | In OpenTelemetryProviderExtensionsTests, AddTestingPlatformDiagnostics_RawListenerObservesBuilderActivityWithoutProvider needs exclusion from the producer DiagnosticsAndProviderRegistration_IsIdempotentAndOrdered, not just a lock on its captured list. They use matching exclusive/read source-key declarations. OpenTelemetryPlatformServiceTests also uses a unique activity prefix and a compatible class-level read declaration; do not serialize all readers. |
| A test expects no CI resource attributes while running on an Azure Pipelines agent. | Inspect the environment read set, not the developer machine. OpenTelemetryProviderExtensionsTests.WithEnvironment / WithEnvironmentAsync explicitly clear observed values including TF_BUILD, then restore the snapshot. Prefer the existing fake when testing configuration alone. |
| A test's timeout/cancellation wrapper completes while its worker is still active. | src/Platform/Microsoft.Testing.Platform/Helpers/TaskExtensions.cs separates cancellation of the wait from completion of the original task. Retain and join that original worker after releasing its rendezvous, with bounded failure cleanup; observing the wrapper or a pre-exit marker is insufficient. |
© microsoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .github/skills/testfx-parallel-safety-preflight of microsoft/testfx.
Open the folder on GitHubat commit 19d717a
Testfx Parallel Safety Preflight next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Testfx Parallel Safety Preflight this skillmicrosoft/testfx | 1k | — | ~2.4k | Automated safety check: Pass | MIT | |
| Modern JavaScript Patternswshobson/agents | 40k | 12 repos | ~548 | Automated safety check: Pass | MIT | |
| Swift Concurrencysupabitapp/supaterm | 172 | — | ~3.3k | Automated safety check: Pass | Custom licence | |
| Pre PR AblationPopupMaker/Popup-Maker | 110 | — | ~2.5k | Automated safety check: Pass | None | |
| cmux Swift Package Architecturemanaflow-ai/cmux | 28k | 1 repos | ~4.2k | Automated safety check: Pass | Custom licence | |
| Swift ConcurrencyAFK-surf/OpenBridge | 430 | — | ~2.8k | Automated safety check: Pass | MIT |
wshobson/agents
Covers ES6+ syntax and functional patterns for refactoring older JavaScript: async/await, destructuring, spread, modules, generators and data pipelines.
supabitapp/supaterm
Diagnose data races, convert callback-based code to async/await, implement actor isolation patterns, resolve Sendable conformance issues, and guide Swift 6 migration.
PopupMaker/Popup-Maker
Use before finalizing or opening/updating a PR for non-trivial code changes, especially third-party integrations, compatibility layers, hooks and filters, lifecycle code, providers, abstractions…
manaflow-ai/cmux
Architecture rules for cmux's move to Swift Packages: acyclic whole-domain packages, minimal public API, group folders, Xcode project wiring and Swift 6 concurrency.
AFK-surf/OpenBridge
Expert guidance on Swift Concurrency best practices, patterns, and implementation.
Jeffallan/claude-skills
Writes and reviews modern JavaScript: ES2023+ syntax, async/await, ESM modules, Node.js and browser APIs, with linting, leak checks and Jest tests.
microsoft/testfx
Guide for organizing MSBuild infrastructure with Directory.Build.props, Directory.Build.targets, Directory.Packages.props, and Directory.Build.rsp.
microsoft/testfx
Project-wide code coverage and CRAP (Change Risk Anti-Patterns) score analysis for .NET projects.
microsoft/testfx
Guide for optimizing MSBuild incremental builds. An agent skill from microsoft/testfx.
microsoft/testfx
Validate TestFx shipping paths and capable CI execution using packed consumers, package/cache provenance, exact exits and artifacts, and selected-versus-executed test evidence.
microsoft/testfx
Guide for modernizing and migrating MSBuild project files to SDK-style format.
microsoft/testfx
Guide for interpreting ResolveProjectReferences time in MSBuild performance summaries.
Categories
Check concurrency and isolation before implementing or refactoring TestFx tests, lifecycle code, helpers, shared-state declarations, or production paths those tests exercise. Testfx Parallel Safety Preflight is an agent skill from microsoft/testfx, published by the product's own GitHub organization. Check concurrency and isolation before implementing or refactoring TestFx tests, lifecycle code, helpers, shared-state declarations, or production paths those tests exercise.
Testfx Parallel Safety Preflight fits situations like: tasks that involve Async programming; tasks that involve Refactoring.
Run `npx skills add microsoft/testfx --skill testfx-parallel-safety-preflight -a claude-code`. Or copy the skill folder (.github/skills/testfx-parallel-safety-preflight in microsoft/testfx) into .claude/skills/testfx-parallel-safety-preflight in your project. Claude Code loads it when a task matches its description.
Run `npx skills add microsoft/testfx --skill testfx-parallel-safety-preflight -a codex`. Or copy the skill folder (.github/skills/testfx-parallel-safety-preflight in microsoft/testfx) into .agents/skills/testfx-parallel-safety-preflight in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/testfx --skill testfx-parallel-safety-preflight -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/testfx-parallel-safety-preflight, .gemini/skills/testfx-parallel-safety-preflight, .github/skills/testfx-parallel-safety-preflight and .opencode/skills/testfx-parallel-safety-preflight in your project.
SKILL.md names no scripts, command-line tools or credentials: Testfx Parallel Safety Preflight is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Testfx Parallel Safety Preflight is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Testfx Parallel Safety Preflight: Modern JavaScript Patterns (wshobson/agents, 40k stars), Swift Concurrency (supabitapp/supaterm, 172 stars), Pre PR Ablation (PopupMaker/Popup-Maker, 110 stars) and cmux Swift Package Architecture (manaflow-ai/cmux, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
microsoft (a GitHub organization, an official publisher) maintains it in microsoft/testfx, which has 1,047 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on October 9, 2026.
Source: microsoft/testfx on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.