memstack-development-test-writer

memstack-development-test-writer is a skill for Claude Code from cwinvestments/memstack. It costs 70 tokens per session (3,745 once invoked), scanned A, original, MIT.

A test-writing guide for creating unit, integration, component, and end-to-end tests. It includes mock choices, edge cases, naming, and ways to connect tests to continuous integration.

In plain words
What is it for?
Use it when adding tests, checking coverage, testing functions and components, mocking external boundaries, or verifying error and boundary cases.
Why use it?
It helps catch incorrect behavior and unusual inputs instead of producing tests that only pass for the normal case or depend too much on implementation details.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the memstack plugin — 87 skills, 2 commands, 6 hooks shipped together

Good fit Use it when adding tests, checking coverage, testing functions and components, mocking external boundaries, or verifying error and boundary cases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cwinvestments/memstack/test-writer
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 cwinvestments/memstack --skill test-writer
Clone the repo
git clone --depth 1 https://github.com/cwinvestments/memstack

Made for: Claude Code.

Or install memstack, the plugin that ships this one along with the rest of its 87 skills, 2 commands, 6 hooks.

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 memstack-development-test-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/cwinvestments/memstack/test-writer/github.svg)](https://agentmods.dev/skills/cwinvestments/memstack/test-writer)
Your own site
<a href="https://agentmods.dev/skills/cwinvestments/memstack/test-writer"><img src="https://agentmods.dev/badge/skills/cwinvestments/memstack/test-writer/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 memstack-development-test-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/cwinvestments/memstack/test-writer"><img src="https://agentmods.dev/badge/skills/cwinvestments/memstack/test-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,745 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 warn 7 Sept 2026
SkillSpector: 5 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Memory Poisoning · line 142
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
  • high Memory Poisoning · line 197
    Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
    Fix: Protect agent memory and state from modification by untrusted content. Use read-only memory for critical instructions and validate all state changes.
  • medium MCP Rug Pull · line 375
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 411
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 413
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
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.00070 $0.03745
Opus 5.5 $0.00028 $0.01498
Sonnet 5.5 $0.00014 $0.00749
Haiku 4.5 $0.00007 $0.00375

Measured 1mo ago against content hash ed3c4404597f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

memstack-development-test-writer 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 1mo 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/development/test-writer/SKILL.md · 473 lines

How it starts

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

Test Writer: Generating test suite...

Generates comprehensive test suites with unit, integration, and e2e tests, proper mocking strategies, edge case coverage, naming conventions, and CI integration patterns.

Activation

When this skill activates, output:

Test Writer: Generating test suite...

Then execute the protocol below.

Context Guard

Context Status
User says "write tests", "add tests", "test coverage" ACTIVE
User says "unit tests", "integration tests", "component tests", "e2e tests" ACTIVE
User says "mocking", "edge cases", "test this function" ACTIVE
User wants to refactor existing code DORMANT: use Refactor Planner
User wants to change database schema DORMANT: use Migration Planner

Common Mistakes

Mistake Why It's Wrong
"Testing implementation, not behavior" Tests that break when you refactor internals are brittle. Test WHAT it does, not HOW.
"No edge cases" Happy path tests catch 20% of bugs. Boundaries, nulls, empty inputs, and error paths catch the rest.
"Mocking everything" Over-mocking creates tests that pass but don't catch real bugs. Mock boundaries, not internals.
"Test names like test1, test2" Names should describe behavior: "returns empty array when no items match filter". Self-documenting tests.
"No test isolation" Tests that depend on each other or shared state create flaky test suites that nobody trusts.

Protocol

Step 1: Gather Test Requirements

If the user hasn't provided details, ask:

  1. Target: what code needs tests? (function, class, module, API endpoint)
  2. Language/framework: what tech stack? (JS/TS + Jest/Vitest, Python + pytest, Go, etc.)
  3. Test level: unit, integration, e2e, or all three?
  4. Current coverage: any existing tests? What percentage?
  5. Priority: critical paths first, or comprehensive coverage?

Step 2: Analyze the Code Under Test

Before writing tests, understand the target:

Read the full file on GitHub · 473 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. 1mo ago Changed ed3c4404597f
  2. 1mo ago First seen · 473 lines · 70 tokens per session scan A c40f4dd509bc

Subscribe to this mod's changes

memstack-development-test-writer is a skill published in the GitHub repository cwinvestments/memstack (425 stars, last pushed today), licensed MIT. It adds 70 tokens to every session and 3,745 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-08-30.