teststand-mcp: Instructions file for Claude Code

CLAUDE.md

teststand-mcp CLAUDE.md is an instructions file for Claude Code from Zuehlke/teststand-mcp. It costs 12,021 tokens per session, scanned A, original, MIT.

A set of instructions for working with TestStand sequence files through teststand-mcp tools. TestStand sequence files describe automated test steps and their order.

In plain words
What is it for?
It is for whole-file export and import, targeted sequence duplication, documentation workflows, and verifying that rebuilt sequences match their originals.
Why use it?
It provides rules for safely reproducing, editing, comparing, and checking sequence files while avoiding leftover content or type mismatches.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

This is Zuehlke/teststand-mcp's own configuration. It tells Claude Code how to work on teststand-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything teststand-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Zuehlke/teststand-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Zuehlke/teststand-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Zuehlke/teststand-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for teststand-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zuehlke/teststand-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/zuehlke/teststand-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/zuehlke/teststand-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/zuehlke/teststand-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for teststand-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zuehlke/teststand-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/zuehlke/teststand-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12,021 This file is loaded in full into every session.
When invoked 12,021 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.12021 $0.12021
Opus 5.5 $0.04808 $0.04808
Sonnet 5.5 $0.02404 $0.02404
Haiku 4.5 $0.01202 $0.01202

Measured yesterday against content hash 6b63266c9458, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

teststand-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 279 lines

How it starts

The opening of the file, as written. The whole thing — 279 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TestStandMCP — Behavior Rules for Claude

User-facing rules (imported from the plugin skill)

The rules a plugin user needs live in the teststand-rules skill, which is their single source: edit them there, never here. The imports below load them into every session in this repository. build/Test-SkillSources.ps1 fails when a moved heading reappears in this file or an import dangles; it cannot see a rule restated in a sentence, so keep only the developer fact (measurement, history, test ID, source pointer) in the sections below and point to the skill file for the rule.

@plugin/skills/teststand-rules/SKILL.md @plugin/skills/teststand-rules/references/rebuild.md @plugin/skills/teststand-rules/references/sequence-design.md @plugin/skills/teststand-rules/references/agents.md @plugin/skills/teststand-rules/references/headless-and-tools.md @plugin/skills/teststand-rules/references/tool-contracts.md

Developer notes behind the imported rules

The skill states each rule for a plugin user: no dates, no test IDs, no class names. The facts below are the developer side of the same rules: measurements, history, the suites that pin them and the source that implements them. Each bullet names the skill file that holds the rule.

Export/import and rebuild fidelity (rebuild.md)

  • Measured 2026-07-29 on 8 sequences of TFW_MDC_com_Python.seq (47 steps, 13 object-oriented Python steps, 5 LabVIEW .lvlibp steps, 1 cross-file SequenceCall): 3 MCP calls and ZERO FileDiffer differences inside the imported scope (the only rows left are the 22 sequences not imported). The same rebuild with the granular tools took ~700 calls, 3 diff iterations and left 224 differences.
  • A WHOLE-file rebuild reaches identical: true, verified 2026-07-29 on TFW_Symphony_DutCom.seq (17 sequences, 79 steps, 43 variables, 18 .lvlibp panes from TWO packed libraries, 4 cross-file calls, 2 ActiveX steps, 49 types) in 4 MCP calls with 0 warnings.
  • An import measured 5.5 min before the passes were made cheap; <dest>.import.json exists because that outlives the MCP transport window.
  • Subset import: the in-memory type list still lists a type the save just dropped, so the loss is detected AFTER a save+reload. attach='preserve' (what a 1:1 rebuild needs) attaches almost nothing, so a type survives only while still referenced.
  • The safe defaults (labview_panes='copy', cross_file_prototypes='copy', variables='copy', keep_unused_types) are locked down by tests in T35. The worker route for the cross-file cache is not viable: it starts its own engine and opens every callee, and one 3 MB callee (Easy.Log.seq) ran it into a 300 s timeout; 'copy' reproduced the same 6 Prototype members in about a second.
  • DiffReportShaper.DefaultMaxResults (150) sits on Options, so compare_sequence_files in native mode inherits the cap; diff_sequence_files and compare_sequence_files mode=native are the same diff.
  • Connector-pane binding through set_module_parameter, measured: 31 differences became 68 (write everything), 41 (non-empty only), 39 (flag-aware), while writing ViCall.Parms[i].ArgVal and UseDefaultValues INDEPENDENTLY gave 9. A SequenceCall argument's UseDef has the same asymmetry.
  • The two prototype-load kinds are mutually exclusive per server process (measured 2026-07-29): a LabVIEW pane load first makes the next SeqCall load return prototypeLoaded:false ("LoadPrototype could not resolve the target/module"), and the reverse order fails the same way.
  • Residuals closed 2026-07-29, each by cloning from the source file instead of loading: the LabVIEW connector panes (pass 5), the cross-file Prototype cache (pass 7), and a step's authored TS.AdditionalResultsHints / CustomResults / ErrorDialogOptions for EVERY step (pass 6b). copy_typedefs reproduces every type correctly (0 types differences); the declarative route had lost the type INSTANCE, not the type.
  • A named-type instance's ENUM member reading as explicitly set was long recorded as an irreducible API limit; it is not. Instantiating the type (insert_local_variable dataType:"LogEvent") writes the default enumerator NAME out, so the member reads [Debug] where the editor-authored original has {Debug} (get_property_tree: symbolicName:"Debug", isDefault:false vs symbolicName:"", isDefault:true). Not writing the value does not help: the import already skips it (isDefault:true in the model, and WriteEnumLeafExplicit returns early on null ordinal+value). variables='copy' clones the variable and reproduces the state exactly.
  • NI.Analyzer.IgnoredMessages is invisible to the engine API; only FileDiffer's raw reader sees it, as a lone File Properties > Attributes delete.
  • Typed PropertyObject (2026-07-29): Clone(path, CopyAllFlags) then SetPropertyObject on a subtree whose node carries a NAMED TYPE re-registers a second instance of the type; the fix writes the leaf scalars (SetValString/SetValNumber/SetValBoolean) on the existing node. Measured: modulesCloned dropped 79 -> 47 and the dialog disappeared. The decision lives in StepCopyPolicy (scalar compared and written by value, empty list-like node skipped, object copy last resort), pinned by tests in T35. The FileDiffer reported identical: true for the file that raised the dialog. audit_type_consistency (2026-07-30) reads the file's TypeUsageList RAW, duplicates included, which EnumerateFileTypeDefs deliberately hides.
  • File format (2026-07-31): MEDELA_TFW's real files are XML, so a rebuild used to come out binary: content-identical yet 25 KB against 3.4 MB on TFW_MDC_com_Python (x133, pure serialization). TestStandService ParseFileWritingFormat / ApplyFileWritingFormat; pinned by T36_FileFormatTests (tests asserting the RAW bytes TOF1 vs a UTF-8 BOM + <?xml). An unknown format name THROWS rather than falling back to binary.
  • .lvlibp guard (2026-07-30): InputGuards.IsPackedLibraryModulePath plus the refusal message; force_unsafe_inprocess:true overrides. The in-process load raised the MSVC delay-load SEH 0xC06D007E (the LabVIEW Run-Time lvrt.dll) with LabVIEW 2026 32-bit already started and responsive; it escapes managed try/catch, so the server PROCESS DIED and the NI Error Reporter appeared. isolate:true is crash-safe but cannot bind the running LabVIEW ADE, so it only times out (8 steps x 120 s, all timeouts; it also reads the file from DISK). An earlier note recommended isolate:false after one apparently good run; that advice caused a crash and is retracted.
  • Per-sequence clone recipe: memory teststand-whole-sequence-clone-rebuild-2026-07-08.
  • set_step_property_flags (measured 2026-10-24, TestStand 2026 Q3): a plain SetFlags REPLACES the bitfield. 0x4 then 0x80 (no exact) reads back 0x400080, so 0x4 is gone; exact=true gives the same result; the engine keeps its own 0x400000 bit in both modes. The earlier "SetFlags only ever turns bits ON" descriptions and comments were wrong and are fixed; the exact path (SetExactFlags) stays as the verified write (read-back check, then SetInstanceOverrideFlags).

Read the full file on GitHub · 279 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · -864 lines · -10,904 tokens per session 6b63266c9458
  2. 2mo ago First seen · 1,143 lines · 22,925 tokens per session scan A 66ac67bb974d

Subscribe to this mod's changes

teststand-mcp CLAUDE.md is an instructions file published in the GitHub repository Zuehlke/teststand-mcp (30 stars, last pushed today), licensed MIT. It adds 12,021 tokens to every session, about $0.0481 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens