Home / shinpr / claude-code-workflows · skills/test-implement/SKILL.md · GitHub

test-implement skillA

This file is byte-identical to the first copy the registry indexed, one of 4 copies on public GitHub. Same content hash, same audit grade.

test-implement is agent-read markdown (skill) from shinpr/claude-code-workflows: Implements React/TypeScript unit, integration, and browser E2E tests with the repository's configured runner, mocks, setup, and browser harness. Use when creating or completing frontend tests and generated test skeletons..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Test Implementation Patterns

## Reference Selection

| Test Type | Reference | When to Use |
|-----------|-----------|-------------|
| **Unit / Integration** | [references/frontend.md](references/frontend.md) | Implementing React component tests with the repository's configured runner and network mocking layer |
| **E2E** | [references/e2e.md](references/e2e.md) | Implementing browser-level E2E tests in the existing harness, or Playwright when the approved work introduces a harness |

## Common Principles

### AAA Structure
All tests follow **Arrange-Act-Assert**:
- **Arrange**: Set up preconditions and inputs
- **Act**: Execute the behavior under test
- **Assert**: Verify the expected outcome

### Test Independence
- Each test runs independently without depending on other tests
- No shared mutable state between tests
- Deterministic execution — mock random and time dependencies

### Naming
- Test names describe expected behavior from user perspective
- One test verifies one behavior

Read the whole file at its exact version.

How to install

Latest version
mdr add shinpr/claude-code-workflows/test-implement@git:20260806.d8a29d4
Exact content
mdr add shinpr/claude-code-workflows/test-implement@sha256:73e98ef791c754bb

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_we7xxvbrkrtdnnhv.svg)](https://markdownregistry.com/a/art_we7xxvbrkrtdnnhv)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
git:20260806.d8a29d4 latest2026-08-06 d8a29d4 1,269 BA view · diff
git:20260719.526b0d12026-07-19 526b0d1 1,282 BA view · diff
git:20260308.50de2bd2026-03-08 50de2bd 1,135 BA view · diff
git:20260307.561353f2026-03-07 561353f 1,175 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (1269 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

shinpr/claude-code-workflows · 684 stars · license MIT · pushed 2026-09-24 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_we7xxvbrkrtdnnhv
GET https://markdownregistry.com/api/v1/resolve?ref=shinpr/claude-code-workflows/test-implement
GET https://markdownregistry.com/api/v1/blob/73e98ef791c754bb8e4641f68cb31defb6d93f32ada67c1456a876a51d155c8c

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from shinpr/claude-code-workflows

ai-development-guide skill
shinpr/claude-code-workflows · dev-skills/skills/ai-development-guide/SKILL.md · Applies language-agnostic and backend technical decision criteria, anti-pattern detection, debugging, and quality…
git:20260827.75012a3 · audit A · 684 stars
coding-principles skill
shinpr/claude-code-workflows · dev-skills/skills/coding-principles/SKILL.md · Language-agnostic coding principles for maintainability, readability, and quality. Use when implementing features…
git:20260922.7c4e3a7 · audit A · 684 stars
documentation-criteria skill
shinpr/claude-code-workflows · dev-skills/skills/documentation-criteria/SKILL.md · Determines which of PRD, ADR, UI Spec, Design Doc, and Work Plan a change requires, and where each is stored. Use when…
git:20260915.b4b5611 · audit A · 684 stars
external-resource-context skill
shinpr/claude-code-workflows · dev-skills/skills/external-resource-context/SKILL.md · Records where resources outside the repository live (design source, design system, API schema, IaC source, secret…
git:20260809.6130272 · audit A · 684 stars
frontend-ai-guide skill
shinpr/claude-code-workflows · dev-skills/skills/frontend-ai-guide/SKILL.md · Applies React/TypeScript-specific technical decision criteria, anti-pattern detection, debugging, and frontend quality…
git:20260906.fbff90d · audit A · 684 stars
implementation-approach skill
shinpr/claude-code-workflows · dev-skills/skills/implementation-approach/SKILL.md · Implementation strategy selection framework. Use when planning implementation strategy, selecting development approach…
git:20260827.75012a3 · audit A · 684 stars
integration-e2e-testing skill
shinpr/claude-code-workflows · dev-skills/skills/integration-e2e-testing/SKILL.md · Integration and E2E test design principles, ROI calculation, test skeleton specification, and review criteria. Use when…
git:20260905.82cde5e · audit A · 684 stars
llm-friendly-context skill
shinpr/claude-code-workflows · dev-skills/skills/llm-friendly-context/SKILL.md · Clarifies inputs, outputs, success criteria, decisions, and unresolved conditions so downstream consumers can execute…
git:20260917.73d4471 · audit A · 684 stars
requirement-convergence skill
shinpr/claude-code-workflows · dev-skills/skills/requirement-convergence/SKILL.md · Separates the outcome a change must produce from the requirements proposed to reach it, records what the user excluded…
git:20260917.c5b7fa6 · audit A · 684 stars
test-implement skill
shinpr/claude-code-workflows · dev-skills/skills/test-implement/SKILL.md · Implements React/TypeScript unit, integration, and browser E2E tests with the repository's configured runner, mocks…
git:20260806.d8a29d4 · audit A · 684 stars
testing-principles skill
shinpr/claude-code-workflows · dev-skills/skills/testing-principles/SKILL.md · Language-agnostic testing principles including TDD, test quality, coverage standards, and test design patterns. Use…
git:20260809.6130272 · audit A · 684 stars
typescript-rules skill
shinpr/claude-code-workflows · dev-skills/skills/typescript-rules/SKILL.md · React/TypeScript frontend development rules including type safety, component design, state management, and error…
git:20260728.e9e235b · audit A · 684 stars

Every file in shinpr/claude-code-workflows

Other files named test-implement

test-implement skill
shinpr/claude-code-workflows · dev-workflows-fullstack/skills/test-implement/SKILL.md · Implements React/TypeScript unit, integration, and browser E2E tests with the repository's configured runner, mocks…
git:20260806.d8a29d4 · audit A · 684 stars
test-implement skill
shinpr/claude-code-workflows · dev-skills/skills/test-implement/SKILL.md · Implements React/TypeScript unit, integration, and browser E2E tests with the repository's configured runner, mocks…
git:20260806.d8a29d4 · audit A · 684 stars
test-implement skill
shinpr/claude-code-workflows · dev-workflows-frontend/skills/test-implement/SKILL.md · Implements React/TypeScript unit, integration, and browser E2E tests with the repository's configured runner, mocks…
git:20260806.d8a29d4 · audit A · 684 stars

Browse by kind, by grade A, or by owner.