Official agent skill

Session Delivery Hygiene

by microsoft in microsoft/testfx

Gate local-session scope, persistent delivery, live PR state, integration provenance, and owned cleanup.

OfficialMITAuto-check passed

Install Session Delivery Hygiene

skills CLI
$ npx skills add microsoft/testfx --skill session-delivery-hygiene -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install microsoft/testfx session-delivery-hygiene --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/microsoft/testfx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/session-delivery-hygiene .claude/skills/session-delivery-hygiene && rm -rf skills-src

Use ~/.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/

Facts

Skill name
session-delivery-hygiene
GitHub stars
1k
Token cost
~1.2k tokens
SKILL.md length
609 words
Files
1
Skills in repo
54
Repo updated
First seen
Licence
MIT

At a glance

Gate local-session scope, persistent delivery, live PR state, integration provenance, and owned cleanup.

  • Works in 5 steps: Outcome and ownership. Classify the… → Persistent delivery. For implementation,… → Live PR destination. Immediately before… → …
  • SKILL.md covers Risk-based gates and Evidence-based handoff
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Session Delivery Hygiene is an agent skill from microsoft/testfx, published by the product's own GitHub organization. Gate local-session scope, persistent delivery, live PR state, integration provenance, and owned cleanup. Use before implementing guidance changes, changing or pushing PR work, diagnosing package/output mismatches, or handing off implementation.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

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.

Example prompts

  • “/session-delivery-hygiene”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Outcome and ownership. Classify the request as analysis, implementation,
  2. Persistent delivery. For implementation, inspect the actual final files
  3. Live PR destination. Immediately before editing PR-linked work or
  4. Integration provenance. Before diagnosing stale-package or launch
  5. Owned cleanup. Track only resources created or temporarily changed for

What it can do on your machine

Read from SKILL.md and the folder at commit 7226b0c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    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.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Session Delivery Hygiene loads about 1.2k tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 609 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from microsoft/testfx at commit 7226b0c, republished under its MIT licence (© microsoft). 609 words, ~1,211 tokens.

Download SKILL.mdSave it as .claude/skills/session-delivery-hygiene/SKILL.md (or your agent's skills folder).
name
session-delivery-hygiene
description
Gate local-session scope, persistent delivery, live PR state, integration provenance, and owned cleanup. Use before implementing guidance changes, changing or pushing PR work, diagnosing package/output mismatches, or handing off implementation.

Session delivery hygiene

Read repository instructions first. Apply only the gates relevant to the task's risks; this skill grants no additional scope, publication permission, or authority over another session.

Risk-based gates

  1. Outcome and ownership. Classify the request as analysis, implementation, publication, or an explicitly requested combination. Improving reviewer or workflow guidance means editing that guidance, not running or posting a review. Preserve the requested repository, branch, paths, and exclusions. Confirm the active worktree and existing changes before editing; do not overwrite unrelated work or alter user-global settings or other sessions.
  2. Persistent delivery. For implementation, inspect the actual final files and Git diff, including staged and untracked files, against each requested outcome. Inspect commits too when the worktree is clean. A plan, status update, successful command, or agent's completion message is not a delivered change. Validate the changed artifact itself; for guidance, check skill metadata, local links, examples, and consistency with existing instructions. If no change is needed, explain the evidence rather than claiming a fix.
  3. Live PR destination. Immediately before editing PR-linked work or pushing it, read the PR's live state, base/head repositories and refs, and head SHA; confirm the destination still matches the requested work. Recheck before publication if the state may have changed. Never push to or recreate a merged PR's old head branch. Use a new follow-up branch and, only when publication is authorized, a new PR targeting the intended base branch; do not infer that target from a local checkout or default to main. For a closed unmerged PR, stop publication unless reopening or a follow-up is authorized. If live state cannot be read, do not push based on stale session metadata. Local commits do not prove delivery to a live PR.
  4. Integration provenance. Before diagnosing stale-package or launch failures, identify the exact consumer checkout, configuration, TFM/RID, executable/output layout, producer commit, and package ID/version. Inspect the consumer's effective NuGet configuration, NUGET_PACKAGES or RestorePackagesPath, and resolved paths in project.assets.json; a global cache listing does not identify a repository-local restore. For packaged apps, verify package identity/version, registration install location, and the launched process/loaded binary paths belong to the output under test. Establish or correct that provenance before concluding the implementation is defective; rebuilding elsewhere is not proof the consumer used it.
  5. Owned cleanup. Track only resources created or temporarily changed for this task: process IDs and executable paths, exact package registrations and install locations, temporary files, and prior override values. Reconfirm ownership before cleanup; stop processes by specific PID, remove only task-owned registrations/files, and restore temporary overrides to their prior values. Never kill by process name, unregister all matching apps, clear entire shared/global caches, or recursively delete broad directories. Prefer isolated outputs/caches; even a targeted cache eviction requires proof of the consumer's actual path and ownership. Leave borrowed resources untouched and report any owned cleanup that could not be completed.
Show full SKILL.md (132 more words)Show less

Evidence-based handoff

Lead with the implemented outcome or concrete blocker, then name changed artifacts and their actual delivery state. These states are not interchangeable:

StateRequired evidence
LocalFinal file/diff exists in the identified worktree.
CommittedCommit SHA contains the intended changes.
PushedRead the destination remote ref and verify it contains that commit.
PublishedRead the live PR/comment/other object and verify the intended content and current head where applicable.
CI-verifiedRelevant checks passed for the exact published head SHA, not an earlier or merged PR.

Include the decisive validation result and any remaining blocker or owned cleanup. Do not label local validation as CI, or a push as publication. Existing GitHub-body readback and composed-product validation requirements still apply. Finish the requested work without status-only handoffs, invented follow-up tasks, or unsolicited publication.

© microsoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/session-delivery-hygiene of microsoft/testfx.

Open the folder on GitHubat commit 7226b0c

Compare with similar skills

Session Delivery Hygiene 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.

Session Delivery Hygiene compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Session Delivery Hygiene this skillmicrosoft/testfx1k—~1.2kAutomated safety check: PassMIT
Delivery Gateaffaan-m/ECC276k—~1.3kAutomated safety check: PassMIT
Gate Testsvercel/next.js143k—~2.8kAutomated safety check: PassMIT
Gateplugin87/ux-ui-agent-skills1.6k—~532Automated safety check: PassMIT
Brain Ingest Gategarrytan/gbrain31k—~3.9kAutomated safety check: PassMIT
Swift Actor Persistenceaffaan-m/ECC277k4 repos~1.2kAutomated safety check: PassMIT

Similar skills

  • Delivery Gate

    affaan-m/ECC

    Stop hook that blocks Claude from finishing until quality checks pass.

    276k GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Gate Tests

    vercel/next.js

    Official

    How to use the @gate / @force-gate test directives instead of it.skip or fake-green skip patterns.

    143k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Gate

    plugin87/ux-ui-agent-skills

    Run the one-command quality gate and report the real N/N result.

    1.6k GitHub stars~532 tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Brain Ingest Gate

    garrytan/gbrain

    Pre-write quality gate for content entering the brain. An agent skill from garrytan/gbrain.

    31k GitHub stars~3.9k tokensUpdated today
    Testing & QAAuto-check passed
  • Thread-safe data persistence in Swift using actors — in-memory cache with file-backed storage, eliminating data races by design.

    277k GitHub starsUsed in 4 repos~1.2k tokens
    MobileAuto-check passed
  • Session Persist

    ruvnet/ruflo

    Persist and restore agent sessions across conversations with state snapshots

    74k GitHub stars~415 tokensUpdated yesterday
    Auto-check: notes

More from microsoft/testfx

All 54 skills in this repo
  • Find Untested Sources

    microsoft/testfx

    Official

    MANDATORY for static source-to-test pairing: find or list source files/modules without corresponding tests, or suggest test locations from repository structure.

    1k GitHub starsUsed in 2 repos~3.3k tokens
    Auto-check passed
  • Coverage Analysis

    microsoft/testfx

    Official

    Activation requires either supplied .NET coverage reports/percentages/line, branch, or condition metrics, or an explicit request to collect .NET coverage for analysis.

    1k GitHub starsUsed in 2 repos~2.8k tokens
    Auto-check passed
  • Csharp Refactoring

    microsoft/testfx

    Official

    Safely refactors C/.NET code without changing behavior. An agent skill from microsoft/testfx.

    1k GitHub starsUsed in 2 repos~3.1k tokens
    Auto-check passed
  • Platform Detection

    microsoft/testfx

    Official

    Identify a .NET project's test platform, framework, command mode, and SDK-style vs classic project system.

    1k GitHub starsUsed in 2 repos~3.3k tokens
    Auto-check passed
  • Official

    Validate TestFx shipping paths and capable CI execution using packed consumers, package/cache provenance, exact exits and artifacts, and selected-versus-executed test evidence.

    1k GitHub stars~5k tokensUpdated yesterday
    Auto-check passed
  • Writing Mstest Tests

    microsoft/testfx

    Official

    ALWAYS USE when asked to fix, rewrite, update, improve, modernize, show corrected code for, or explain existing MSTest tests or MSTest-specific configuration.

    1k GitHub starsUsed in 2 repos~5k tokens
    Auto-check passed

Questions about Session Delivery Hygiene

What does Session Delivery Hygiene do?

Gate local-session scope, persistent delivery, live PR state, integration provenance, and owned cleanup. Session Delivery Hygiene is an agent skill from microsoft/testfx, published by the product's own GitHub organization. Gate local-session scope, persistent delivery, live PR state, integration provenance, and owned cleanup.

How do I install Session Delivery Hygiene in Claude Code?

Run `npx skills add microsoft/testfx --skill session-delivery-hygiene -a claude-code`. Or copy the skill folder (.github/skills/session-delivery-hygiene in microsoft/testfx) into .claude/skills/session-delivery-hygiene in your project. Claude Code loads it when a task matches its description.

How do I install Session Delivery Hygiene in Codex?

Run `npx skills add microsoft/testfx --skill session-delivery-hygiene -a codex`. Or copy the skill folder (.github/skills/session-delivery-hygiene in microsoft/testfx) into .agents/skills/session-delivery-hygiene in your project. Codex loads it when a task matches its description.

Can I use Session Delivery Hygiene in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/testfx --skill session-delivery-hygiene -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/session-delivery-hygiene, .gemini/skills/session-delivery-hygiene, .github/skills/session-delivery-hygiene and .opencode/skills/session-delivery-hygiene in your project.

What does Session Delivery Hygiene need to run?

SKILL.md names no scripts, command-line tools or credentials: Session Delivery Hygiene is instructions for the agent only.

Does Session Delivery Hygiene access the network?

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.

Is Session Delivery Hygiene safe to install?

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.

What licence does Session Delivery Hygiene use?

Session Delivery Hygiene is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Session Delivery Hygiene use?

About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Session Delivery Hygiene?

Skills that share tags, products or a category with Session Delivery Hygiene: Delivery Gate (affaan-m/ECC, 276k stars), Gate Tests (vercel/next.js, 143k stars), Gate (plugin87/ux-ui-agent-skills, 1.6k stars) and Brain Ingest Gate (garrytan/gbrain, 31k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Session Delivery Hygiene?

microsoft (a GitHub organization, an official publisher) maintains it in microsoft/testfx, which has 1,047 GitHub stars. The repository holds 54 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.