dym-harness-sdk-effect-tests

dym-harness-sdk-effect-tests is a skill for Claude Code from Rheinmir/setup. It costs 63 tokens per session (758 once invoked), scanned A, original, MIT.

A testing guide for agents that call a live language model, checking observable results such as successful tool calls or files created rather than the model's exact wording.

In plain words
What is it for?
Use it to write pytest integration tests for Strands agents, isolate each test in a temporary directory, and verify tool results or other visible effects.
Why use it?
Model responses can vary between runs, so testing their wording can produce flaky tests. Checking side effects makes the tests more stable.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents.

Good fit Use it to write pytest integration tests for Strands agents, isolate each test in a temporary directory, and verify tool results or other visible effects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rheinmir/setup/dym-harness-sdk-effect-tests
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Rheinmir/setup --skill dym-harness-sdk-effect-tests
Clone the repo
git clone --depth 1 https://github.com/Rheinmir/setup

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 dym-harness-sdk-effect-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/rheinmir/setup/dym-harness-sdk-effect-tests/github.svg)](https://agentmods.dev/skills/rheinmir/setup/dym-harness-sdk-effect-tests)
Your own site
<a href="https://agentmods.dev/skills/rheinmir/setup/dym-harness-sdk-effect-tests"><img src="https://agentmods.dev/badge/skills/rheinmir/setup/dym-harness-sdk-effect-tests/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 dym-harness-sdk-effect-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/rheinmir/setup/dym-harness-sdk-effect-tests"><img src="https://agentmods.dev/badge/skills/rheinmir/setup/dym-harness-sdk-effect-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 758 The whole file, excluding the scripts and references it only reads on demand.
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.00063 $0.00758
Opus 5.5 $0.00025 $0.00303
Sonnet 5.5 $0.00013 $0.00152
Haiku 4.5 $0.00006 $0.00076

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

Security

Grade A, and why

dym-harness-sdk-effect-tests 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.

.overstack/doyourmagic/harness-sdk/skills/dym-harness-sdk-effect-tests/SKILL.md · 35 lines

How it starts

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

Skill: dym-harness-sdk-effect-tests — test hiệu ứng, không test lời văn

When to use

  • Có agent chạy model thật và cần test không vỡ vì model trả lời khác chữ.
  • Nguyên tắc gốc (harness-py/tests_integ/conftest.py:7-8): "Assertions check observable side effects (a file created, a tool blocked), never the model's exact prose — the model is non-deterministic, the effect is not."
  • Sinh ra: bộ pytest nằm NGOÀI testpaths (unit run mặc định không gom), chạy tường minh bằng pytest tests_integ.

Steps

  1. Fixture dựng agent tối giản — model nhỏ, tắt reasoning, tắt plugin, tắt session — để test chỉ đo đúng thứ nó dựng:
    INTEG_MODEL = os.environ.get("STRANDS_INTEG_MODEL", "bedrock/global.anthropic.claude-haiku-4-5-20251001-v1:0")
    def build_agent(**o):
        return create_harness(**{"model": INTEG_MODEL, "effort": "off", "builtin_plugins": [], "session": False, **o})
    
  2. Cwd tạm cho mỗi test (monkeypatch.chdir(tmp_path)) — tool file/shell của agent phân giải theo cwd.
  3. Ba predicate đọc lịch sử hội thoại (agent.messages), không đọc câu trả lời cuối:
    • tool_succeeded(agent, name) — có toolUse tên đó VÀ toolResult cùng toolUseId với status == "success".
    • tool_attempted(agent, name) — có toolUse tên đó bất kể kết quả → chống pass giả khi assert "tool bị chặn" (chứng minh nó đã THỬ rồi bị deny, không phải bị bỏ qua).
    • tool_result_contains(agent, name, needle) — output CỦA TOOL chứa needle.
  4. Một lượt model phủ nhiều tool để rẻ (e2e của họ: 7 tool/1 lượt, rồi assert file trên đĩa + kết quả subagent chứa "333").
  5. Kiểm cơ chế qua số đo hạ tầng, ví dụ cache: result.metrics.accumulated_usage["cacheReadInputTokens"] phải > 0 và tăng mọi lượt.
  6. Chạy: pytest tests_integ --reruns 2 (cần pytest-rerunfailures, credential model).

Rules

  • Không assert chuỗi model nói; assert trạng thái (file, tool result, metric).
  • Mọi assert "không làm X" phải đi kèm tool_attempted — nếu không sẽ pass khi model đơn giản là không thử.
  • --reruns 2 che độ flaky thật: nếu muốn biết tỉ lệ ổn định thì chạy N lần không rerun và ghi pass@k — repo gốc KHÔNG làm việc này.
  • Chưa kiểm chứng ở đây: 11 test integ chỉ được --collect-only (rc 0), chưa chạy vì cần AWS Bedrock.

Read the full file on GitHub · 35 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 First seen · 35 lines · 63 tokens per session scan A 49dc85d8d3f2

Subscribe to this mod's changes

dym-harness-sdk-effect-tests is a skill published in the GitHub repository Rheinmir/setup (11 stars, last pushed 20d ago), licensed MIT. It adds 63 tokens to every session and 758 once invoked, about $0.0003 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-11-07.

Related

dym-harness-sdk-effect-tests compared with skills from other repositories

dym-harness-sdk-effect-tests next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dym-harness-sdk-effect-testsRheinmir/setupSkill1120d agoMITA63Claude Code
verify-omnigentomnigent-ai/omnigentSkill11ktodayApache-2.0A100Claude Code, Codex
test-masterJeffallan/claude-skillsSkill12k8d agoMITA104Claude Code
eval-dataset-designbojieli/ai-agent-bookSkill57k1mo agoApache-2.0A138Claude Code, Codex
dogfoodcallstack/agent-deviceSkill5.3ktodayMITA55Claude Code
cua-driverdavidondrej/skillsSkill4.3k2d agoMITA68Claude Code, Codex
test-warp-uiwarpdotdev/warpSkill66ktodayAGPL-3.0A55Claude Code