/workflows:follow-test-patternsfrom workflows
Reads project test patterns from thoughts/notes/testing.md and applies them when writing new tests. Ensures consistency in naming, framework, structure, assertions, and mocking.
Ships in workflows. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Reference discovered test patterns when writing tests to ensure consistency with project conventions.
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
Read thoughts/notes/testing.md fully to understand:
Use the discovered patterns for:
File Naming:
*_test.go, *.test.ts)Imports:
Test Structure:
Assertions:
Mocking:
For complex test generation, spawn the test-writer agent:
Task(subagent_type="workflows:test-writer",
prompt="Generate tests for [functions] following patterns in testing.md.
Expected behavior: [describe].
Return test code only.")
Benefits:
When to use:
spawn-implementation-agents)After writing tests, verify:
If thoughts/notes/testing.md shows:
## Go Test Patterns
- File: `*_test.go` alongside source
- Framework: testify/require
- Pattern: Table-driven tests
Then write:
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)
})
}
}
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub eveld/claude --plugin workflows29 skills in this plugin
/agent-awarenessALWAYS check this skill before using grep, glob, Task tool, or doing any codebase exploration. Guides you to use specialized agents that are more efficient than basic tools./before-code-analysisUse BEFORE reading multiple files to understand code. Reminds you to use codebase-analyzer agent instead of manual file reading./before-file-searchUse BEFORE running grep or glob commands. Reminds you to use codebase-locator agent instead of basic file search tools./before-spawning-taskUse BEFORE using the Task tool. Ensures you select the correct specialized subagent_type instead of generic agents./debug-systematicallyUse when encountering errors or bugs to follow a systematic debugging process instead of jumping to conclusions./determine-feature-slugDetermine feature slug interactively by auto-detecting next number and prompting user for descriptionOther plugins' skills for the same job