follow-test-patterns
Use when writing tests to ensure they follow project conventions.
Skill by eveld
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/eveld-follow-test-patterns
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, writing, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/follow-test-patterns
What's inside
- Skill name
follow-test-patterns- Description
- Use when writing tests to ensure they follow project conventions. References patterns from thoughts/notes/testing.md.
- License
- MIT
- Instructions
- 131 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Follow Test Patterns
Reference discovered test patterns when writing tests to ensure consistency with project conventions.
## When to Use
- Before writing any test file
- When implementing test-related phases in plans
- When user asks you to add tests
## Workflow
### 1. Check for Pattern Document
```bash
if [ -f thoughts/notes/testing.md ]; then
# Read and follow patterns
else
# Prompt user to run discover-test-patterns first
echo "No test patterns found. Run discover-test-patterns skill first."
fi
```
### 2. Read Pattern Document
Read `thoughts/notes/testing.md` fully to understand:
- File naming conventions
- Testing framework and imports
- Test structure (table-driven, etc.)
- Assertion style
- Mocking approach
### 3. Apply Patterns to New Tests
Use the discovered patterns for:
**File Naming**:
- Follow the pattern (e.g., `*_test.go`, `*.test.ts`)
- Place alongside source or in test directory as per convention
**Imports**:
- Use same testing framework (testify, jest, pytest)
- Import same assertion libraries
**Test Structure**:
- If codebase uses table-driven tests, use that pattern
- If codebase uses describe/it blocks, use that pattern
- Match indentation and formatting
**Assertions**:
- Use same assertion style (require.Equal vs assert.Equal)
- Follow error message conventions
**Mocking**:
- Use same mocking library (mockery, jest.mock, unittest.mock)
- Follow interface/class mocking patterns found in codebase
## Alternative: Use Test-Writer Agent
For complex test generation, spawn the test-writer agent:
```markdown
Task(subagent_type="workflows:test-writer",
prompt="Generate tests for [functions] following patterns in testing.md.
Expected behavior: [describe].
Return test code only.")
```
**Benefits**:
- Conserves main agent context (3k instead of 20k+)
- Agent reads testing.md and examples in isolation
- Returns only the test code you need
- Follows project patterns automatically
**When to use**:
- Generating multiple test files
- Complex table-driven tests
- During phased implementation (see `spawn-implementation-agents`)
### 4. Verify Consistency
After writing tests, verify:
- File name matches convention
- Framework imports are correct
- Test structure matches examples
- Assertions use same style
- Tests are in correct location
## Example
If `thoughts/notes/testing.md` shows:
```
## Go Test Patterns
- File: `*_test.go` alongside source
- Framework: testify/require
- Pattern: Table-driven tests
```
Then write:
```go
package handlers
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestNewFeature(t *testing.T) {
tests := []struct {
name string
input FeatureInput
want FeatureOutput
}{
{name: "valid case", input: ..., want: ...},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got := NewFeature(tt.input)
require.Equal(t, tt.want, got)
})From eveld/claude, MIT.
More from eveld/claude
- 0.480score
linear-issues
eveld
Fetch and view Linear issues/tickets.
SkillDFreshness: D★ 10Claude Code +9 - 0.479score
k8s-query
eveld
Query Kubernetes resources (pods, deployments, services, events).
SkillDFreshness: D★ 10Claude Code +9 - 0.479score
gcp-logs
eveld
Query GCP Cloud Logging for errors, service logs, and request traces.
SkillDFreshness: D★ 10Claude Code +9 - 0.475score
k8s-debug
eveld
Launch ephemeral debug container in running pod for interactive debugging.
SkillDFreshness: D★ 10Claude Code +9 - 0.474score
spawn-planning-agents
eveld
Use when creating implementation plans to research codebase patterns and gather context for planning.
SkillDFreshness: D★ 10Claude Code +9 - 0.474score
gather-project-metadata
eveld
Use when creating research or plan documents to gather git commit, branch, repository info.
SkillDFreshness: D★ 10Claude Code +9 - 0.474score
debug-systematically
eveld
Use when encountering errors or bugs to follow a systematic debugging process instead of jumping to conclusions.
SkillDFreshness: D★ 10Claude Code +9 - 0.474score
spawn-research-agents
eveld
Use when conducting codebase research to orchestrate specialized agents in parallel for comprehensive investigation.
SkillDFreshness: D★ 10Claude Code +9 - 0.472score
before-code-analysis
eveld
Use BEFORE reading multiple files to understand code.
SkillDFreshness: D★ 10Claude Code +9 - 0.472score
agent-awareness
eveld
ALWAYS check this skill before using grep, glob, Task tool, or doing any codebase exploration.
SkillDFreshness: D★ 10Claude Code +9 - 0.472score
linear-awareness
eveld
ALWAYS check before working with Linear issues.
SkillDFreshness: D★ 10Claude Code +9 - 0.472score
linear-update
eveld
Update Linear issues with debugging findings.
SkillDFreshness: D★ 10Claude Code +9
Signals
- Stars
- 10
- Forks
- 2
- Open issues
- 0
- Last commit (this folder)
- Feb 4, 2026 (8 months ago)
- Last release
- Dec 29, 2025 (10 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/eveld/claude
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from eveld
- 0.480score
linear-issues
eveld
Fetch and view Linear issues/tickets.
SkillDFreshness: D★ 10Claude Code +9 - 0.479score
gcp-logs
eveld
Query GCP Cloud Logging for errors, service logs, and request traces.
SkillDFreshness: D★ 10Claude Code +9 - 0.479score
k8s-query
eveld
Query Kubernetes resources (pods, deployments, services, events).
SkillDFreshness: D★ 10Claude Code +9 - 0.475score
k8s-debug
eveld
Launch ephemeral debug container in running pod for interactive debugging.
SkillDFreshness: D★ 10Claude Code +9 - 0.474score
spawn-planning-agents
eveld
Use when creating implementation plans to research codebase patterns and gather context for planning.
SkillDFreshness: D★ 10Claude Code +9 - 0.474score
debug-systematically
eveld
Use when encountering errors or bugs to follow a systematic debugging process instead of jumping to conclusions.
SkillDFreshness: D★ 10Claude Code +9
Cite this page
follow-test-patterns skill. Agent Mart. https://agentmart.dev/skills/eveld-follow-test-patterns (last updated 2026-10-24)