style-guide
Style guide enforcement and documentation conventions
test-fixtures-go
Factory-go and gofakeit for Go test fixtures
Full skill instructions
I provide expertise in generating realistic test data for Go using factory-go patterns and gofakeit. I specialise in the functional options pattern for flexible, composable, and type-safe test fixtures.
gofakeit to generate data that mimics production values (valid emails, real-looking names).func(*Type) options for builders to keep the API clean and extensible.type User struct {
ID string
Email string
FirstName string
Role string
}
func NewUser(opts ...func(*User)) *User {
user := &User{
ID: gofakeit.UUID(),
Email: gofakeit.Email(),
FirstName: gofakeit.FirstName(),
Role: "user",
}
for _, opt := range opts {
opt(user)
}
return user
}
// Options
func WithEmail(e string) func(*User) { return func(u *User) { u.Email = e } }
func WithRole(r string) func(*User) { return func(u *User) { u.Role = r } }
// Usage
admin := NewUser(WithRole("admin"))
var _ = Describe("UserService", func() {
var user *User
BeforeEach(func() {
user = NewUser(WithRole("admin"))
})
It("grants admin privileges", func() {
Expect(user.Role).To(Equal("admin"))
})
})
~/vaults/baphled/3. Resources/Knowledge Base/AI Development System/Skills/Testing-BDD/Test Fixtures Go.md
test-fixtures - Universal patterns for test data.ginkgo-gomega - Go BDD testing framework.golang - Core Go language idioms.Style guide enforcement and documentation conventions
Enforce strict test-first discipline — no implementation code before a failing test exists
Identifying, documenting, and systematically managing technical debt to maintain codebase health
DEPRECATED - Use bdd-workflow instead
Understand complex systems, interconnections, and emergent behaviors
Systematically evaluate trade-offs when comparing alternatives
Use skills for domain knowledge, MCP tools over manual lookups
Personal writing voice and communication style conventions
Estimate and track token costs before work sessions - complexity, duration, resources
Intuitive user experiences in terminal applications - mental models, interaction patterns
Automatically discover/load local skills and suggest external skills based on task context
Maximise AI interaction value per token - techniques, patterns, integration with cost estimation
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience