ha-test-strategy

ha-test-strategy is a skill for Claude Code from shiwenwen/hope-agent. It costs 43 tokens per session (664 once invoked), scanned A, original, MIT.

A test-planning guide for features, bug fixes, and refactoring. It chooses among approaches such as test-first development, regression tests, tests that capture existing behavior, integration tests, end-to-end tests, or manual checks.

In plain words
What is it for?
Use it to select a testing strategy, decide where tests should be added, and choose evidence that demonstrates a change works without unnecessarily running broad test suites.
Why use it?
It helps match the amount and type of testing to the risk and to the repository's rules. For a bug, it emphasizes reproducing the failure so the fix is shown to address the real cause.

Skill for Claude Code

Written for Claude Code: paths in frontmatter.

Good fit Use it to select a testing strategy, decide where tests should be added, and choose evidence that demonstrates a change works without unnecessarily running broad test suites.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shiwenwen/hope-agent/ha-test-strategy
About the project

Hope Agent is a cross-device personal AI assistant that remembers context, uses tools, and continues working toward goals through dynamically organized workflows. Individuals use it from desktop, web, server, or messaging environments to manage projects, knowledge, designs, and long-running tasks. The catalogue add-ons extend its agent workflows and capabilities.

shiwenwen/hope-agent · 1,589 stars · on GitHub

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 shiwenwen/hope-agent --skill ha-test-strategy
Clone the repo
git clone --depth 1 https://github.com/shiwenwen/hope-agent

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 ha-test-strategy

README.md
[![agentmods](https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-test-strategy/github.svg)](https://agentmods.dev/skills/shiwenwen/hope-agent/ha-test-strategy)
Your own site
<a href="https://agentmods.dev/skills/shiwenwen/hope-agent/ha-test-strategy"><img src="https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-test-strategy/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 ha-test-strategy

Your own site · 80×15
<a href="https://agentmods.dev/skills/shiwenwen/hope-agent/ha-test-strategy"><img src="https://agentmods.dev/badge/skills/shiwenwen/hope-agent/ha-test-strategy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 664 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00043 $0.00664
Opus 5 $0.00022 $0.00332
Sonnet 5 $0.00009 $0.00133
Haiku 4.5 $0.00004 $0.00066

Measured 11d ago against content hash 09a363ee5a39, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

ha-test-strategy 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 11d ago.

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.

skills/ha-test-strategy/SKILL.md · 83 lines

How it starts

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

Hope Test Strategy

Choose tests that reduce uncertainty about the requested behavior. Test-first is a valuable technique, not an unconditional law.

Precedence

Follow the user's request and repository instructions. Do not run broad suites, install dependencies, or rewrite test infrastructure when the project forbids or does not require it.

Select The Strategy

Test-first

Prefer a failing test before implementation when the new contract is clear, the test seam is stable, and observing the failure proves the test is meaningful.

Regression-first

For a bug, reproduce the original failure in the narrowest credible automated test before or alongside the fix. Confirm it fails for the right reason, then passes after the root-cause change.

Characterization-first

For legacy, poorly documented, or risky refactors, capture current intentional behavior before changing structure. Do not freeze a known bug as desired behavior.

Implementation-first with immediate coverage

Reasonable for exploratory seams, generated code, mechanical migrations, or UI work where the correct test boundary becomes clear only after a small reversible implementation. Add the relevant proof before claiming completion.

No new automated test

Reasonable for pure docs, trivial metadata, generated outputs, or low-risk mechanical changes when existing checks directly cover the risk. Explain the decision rather than adding a meaningless test.

Choose The Layer

  • Unit: pure logic, state transition, parser, policy, or failure classification.
  • Integration: persistence, adapter, protocol, or cross-module contract.
  • E2E: a user-critical path that only becomes true across the full stack.
  • Manual smoke: visual layout, OS integration, credentials, or external state that cannot be honestly simulated.

Use the lowest layer that proves the contract. Add a higher layer only for a boundary the lower layer cannot cover.

Test Quality

  • Assert observable behavior, not incidental implementation details.
  • Keep fixtures deterministic and failures diagnostic.
  • Cover the demonstrated edge, including cancellation, retry, stale state, or partial failure when relevant.
  • Avoid mocks that erase the boundary being tested.
  • Do not weaken existing assertions merely to make a change pass.

Read the full file on GitHub · 83 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. 11d ago First seen · 83 lines · 43 tokens per session scan A 09a363ee5a39

Subscribe to this mod's changes

ha-test-strategy is a skill published in the GitHub repository shiwenwen/hope-agent (1,589 stars, last pushed 2d ago), licensed MIT. It adds 43 tokens to every session and 664 once invoked, about $0.0002 per session on Opus 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 skills, from other repositories

develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with rendergametotext.

netease-youdao/LobsterAI · 64 tokens

implement

Implement a technical design by decomposing it into dependency-ordered vertical slices, executing each with TDD red-green, reviewing each via an isolated sub-agent, and persisting progress to a state file so work survives session restarts. Use when the user has a tech design (doc or settled conversation) and says…

open-octo/octo-agent · 97 tokens

memory

Use this skill when Pioneer should proactively use durable memory or recalled context: decide whether memory can improve a turn, answer from remembered user/project facts, request memory tools, search/list/get stored memories, save durable preferences or project decisions, forget memories, audit or clean up memory, or…

pioneerdotai/pioneer · 64 tokens

subagents

Use this skill when Pioneer should delegate current-turn work to attached task-backed subagents, coordinate parallel child agents, wait for child results, review/revise/accept/cancel/detach attached work, or synthesize accepted child results into the parent answer.

pioneerdotai/pioneer · 54 tokens

tasks

Use this skill when Pioneer should create, inspect, update, reschedule, pause, resume, troubleshoot, or configure delivery for durable tasks, scheduled tasks, recurring tasks, interval tasks, cron jobs, background work, or existing task state.

pioneerdotai/pioneer · 50 tokens

browser-automation

A set of instructions for controlling a web browser, testing web interfaces, and collecting information from websites that load content dynamically.

kawayiYokami/P-ai · 33 tokens