Tpl — Testing skill for Claude Code
by KarpelesLab - Details Go project conventions with comprehensive error handling recommendations, table-driven testing approach guidelines, and modernization suggestions for latest Go features.
How to install Tpl
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open KarpelesLab/tpl and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Tpl does
This is a legacy template engine system, made to be compatible with an older version initially written in PHP.
Alternatives in Testing
- Pua — Use when the user invokes /pua or asks for PUA mode, try-harder/retry help, change-approach coaching, completi 19.5k ★
- Langgraphjs — by langchain-ai - Offers comprehensive build and test commands with detailed TypeScript style guidelines, laye 2.7k ★
- Inkline — by inkline - Structures development workflow using pnpm with emphasis on TypeScript and Vue 3 Composition API 1.4k ★
README
[](https://godoc.org/github.com/KarpelesLab/tpl) [](https://github.com/KarpelesLab/tpl/actions/workflows/test.yml) [](https://coveralls.io/github/KarpelesLab/tpl?branch=master)
Template Engine for Go
This is a legacy template engine system, made to be compatible with an older version initially written in PHP.
Features
- Template syntax with interpolation and control structures
- Support for custom filters and functions
- Parallel template execution
- Structured error handling with location information
- Context-aware template execution
Usage
See the [SYNTAX.md](SYNTAX.md) file for template syntax documentation.
package main
import (
"context"
"fmt"
"github.com/KarpelesLab/tpl"
)
func main() {
// Create a new template engine
engine := tpl.New()
// Add a template
engine.Raw.TemplateData["main"] = "Hello {{_name}}!"
// Set up a context with variables
ctx := context.Background()
ctx = tpl.ValuesCtx(ctx, map[string]any{
"_name": "World",
})
// Compile templates
if err := engine.Compile(ctx); err != nil {
panic(err)
}
// Execute template
result, err := engine.ParseAndReturn(ctx, "main")
if err != nil {
panic(err)
}
fmt.Println(result) // Output: Hello World!
}
License
This project is released under the MIT license.
Related Skills
Grounded RAG
Data-agnostic, professionally oriented chatbot prototype demonstrated on the Spanish GeSIDA HIV guidelines. Im
Spy
by spylang - Enforces strict coding conventions with comprehensive testing guidelines, multiple code compilati
Skills Test
Test skills against representative scenarios (positive, negative, ambiguous, incomplete-input, failure) — chec
Export Spec
Summarize the WHOLE project (design, features, verification, suggestions — referencing the onboarding doc) and
Conversational
Spec a conversational UI — voice assistant, chatbot, AI chat (LLM), or live-agent chat. Modality, persona, int
Go Test
Enforce TDD workflow for Go. Write table-driven tests first, then implement. Verify 80%+ coverage with go test
Related Agents
Wasp Code Reviewer
Code smell detection en refactor suggestions. Kent Wasp conventions, import rules, error handling patterns.
Shell Reviewer
Reviews shell scripts read-only on source and returns a findings table: quoting, error handling, injection, po
Home Assistant Engineer
Use when building or reviewing Home Assistant configuration and automations. Applies strict YAML conventions,