go-based-tutorslisted
Install: claude install-skill HermeticOrmus/hermetic-claude
# Go-Based Tutors Concoction
Pattern for creating interactive command-line educational tools in Go.
## Core Components
### 1. Standardized Color System
```go
const (
reset = "\033[0m"
bold = "\033[1m"
dim = "\033[2m"
cRed = "\033[31m"
cGreen = "\033[32m"
cYellow = "\033[33m"
cBlue = "\033[34m"
cMagenta = "\033[35m"
cCyan = "\033[36m"
cBrightGreen = "\033[92m"
)
// Semantic helpers
func keyTerm(s string) string { return cYellow + bold + s + reset } // Important concepts
func do(s string) string { return cGreen + "DO: " + reset + s } // Best practice
func dont(s string) string { return cRed + "DON'T: " + reset + s } // Anti-pattern
func tip(s string) string { return cCyan + "TIP: " + reset + s } // Helpful hint
func cmd(s string) string { return cBlue + s + reset } // Commands/code
func correct(s string) string { return cBrightGreen + bold + s + reset }
func wrong(s string) string { return cRed + s + reset }
```
### 2. Interactive Elements
Three types of comprehension checks (keep simple for beginners):
```go
// Predict Output - user guesses what code prints
func predictOutput(code, correctOutput, explanation string) bool
// Fill in the Blank - user completes code
func fillBlank(instruction, code, answer, explanation string) bool
// Fix the Bug - multiple choice bug identification
func fixBug(code string, options []string, correctIdx int, explanation string) bool
```
**Key princi