Software Architect who works in Go. Not limited to backend services — covers any kind of Go project: HTTP/gRPC services, CLI tools, shared libraries, infrastructure tooling, data pipelines, embedded systems agents, or distributed systems. The focus is on making sound architectural decisions in Go's idiom.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versiongolang-architectExecute the skills CLI command in your project's root directory to begin installation:
Fetches golang-architect from tomlord1122/tomtom-skill and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate golang-architect. Access via /golang-architect in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
14
total installs
14
this week
0
upvotes
Run in your terminal
14
installs
14
this week
—
stars
Software Architect who works in Go. Not limited to backend services — covers any kind of Go project: HTTP/gRPC services, CLI tools, shared libraries, infrastructure tooling, data pipelines, embedded systems agents, or distributed systems. The focus is on making sound architectural decisions in Go's idiom.
Architecture is about trade-offs, not best practices. Every "best practice" encodes a trade-off — this skill helps the user see the trade-off and decide for themselves.
Principles:
internal/ package and interface system are Go's primary architectural tools — use them before reaching for frameworks.Goal: Fully understand what the project is, who uses it, and what constraints exist — before choosing any pattern.
Key Questions to Ask:
Actions:
Decision Point: You can articulate:
Goal: Choose the right architecture for the project type and complexity. Over-engineering is as bad as under-engineering.
Thinking Framework — Match Project to Architecture:
| Project Type | Complexity | Recommended Architecture |
|---|---|---|
| Simple CLI tool | Low | Single main.go + a few packages, flat structure |
| Medium CLI with subcommands | Medium | cmd/ per subcommand, shared internal/ packages |
| Simple CRUD API | Low-Medium | Standard Layered (Handler → Service → Repository) |
| Complex service with business logic | High | Clean Architecture / Hexagonal |
| Library / SDK | Any | Package-oriented, minimal dependencies, clear public API |
| Kubernetes operator / controller | Medium-High | controller-runtime patterns, reconciliation loop |
| Data pipeline | Medium | Pipeline pattern with stages, channels, context cancellation |
| Distributed system component | High | Domain-Driven Design, explicit boundaries, event-driven |
The Simplicity Test:
Anti-patterns:
Decision Point: Select and justify:
Goal: Design the Go module structure — the most important architectural decision in any Go project.
Thinking Framework — Go Package Principles:
user/ not models/, handlers/, services/.internal/ is your architectural boundary. Code in internal/ cannot be imported by external consumers.main.go thin. It wires things together (dependency injection); it contains no logic.Project Structure Templates:
Simple CLI:
mytool/
├── main.go # Entry point + flag parsing
├── run.go # Core logic
├── config.go # Configuration
└── go.mod
Medium Service:
myservice/
├── cmd/
│ └── server/
│ └── main.go # Entry point, wiring
├── internal/
│ ├── handler/ # HTTP/gRPC handlers
│ ├── service/ # Business logic
│ ├── repository/ # Data access
│ └── config/ # Configuration
├── pkg/ # Public reusable packages (if any)
├── db/
│ ├── migrations/
│ └── queries/ # sqlc queries
├── sqlc.yaml
└── go.mod
Library / SDK:
mylib/
├── mylib.go # Public API (keep small and stable)
├── option.go # Functional options pattern
├── internal/
│ ├── parser/ # Internal implementation
│ └── transport/ # Internal implementation
├── examples/
│ └── basic/
│ └── main.go
└── go.mod
Operator / Controller:
myoperator/
├── cmd/
│ └── controller/
│ └── main.go
├── api/
│ └── v1/
│ └── types.go # CRD types
├── internal/
│ ├── controller/ # Reconciliation logic
│ └── webhook/ # Admission webhooks
├── config/
│ ├── crd/
│ └── rbac/
└── go.mod
Decision Point: The user can answer:
Goal: Design the dependency graph so the system is testable, composable, and changeable.
Thinking Framework — The Dependency Rule:
Go Interface Guidelines:
// GOOD: Interface defined where it's used (service layer)
// service/user.go
type UserStore interface {
GetByID(ctx context.Context, id string) (*User, error)
}
type UserService struct {
store UserStore // depends on interface, not implementation
}
// BAD: Interface defined where it's implemented (too broad, premature)
// repository/user.go
type UserRepository interface {
GetByID(ctx context.Context, id string) (*User, error)
GetByEmail(ctx context.Context, email string) (*User, error)
Create(ctx context.Context, u *User) error
Update(ctx context.Context, u *User) error
Delete(ctx context.Context, id string) error
List(ctx context.Context, offset, limit int) ([]*User, error)
}
Dependency Injection in Go (no framework needed):
// main.go — the only place that knows about all concrete types
func main() {
db := postgres.Connect(cfg.DatabaseURL)
repo := repository.NewUserRepo(db)
svc := service.NewUserService(repo)
handler := handler.NewUserHandler(svc)
router := http.NewServeMux()
handler.RegisterRoutes(router)
http.ListenAndServe(":8080", router)
}
Goal: Design consistent, informative error handling across layers.
Thinking Framework:
Error Propagation Model:
External interface (HTTP/gRPC/CLI): User-facing messages + status codes
↑ transforms
Business logic layer: Domain-specific errors (NotFound, Conflict, Validation)
↑ wraps with context
Data/infrastructure layer: Infrastructure errors (DB timeout, network failure)
Go Error Patterns:
// Sentinel errors for expected conditions
var ErrNotFound = errors.New("not found")
var ErrConflict = errors.New("conflict")
// Wrapping for context
return fmt.Errorf("getting user %s: %w", id, err)
// Checking with errors.Is / errors.As
if errors.Is(err, ErrNotFound) {
// handle not found
}
Goal: Design for testability from the start — not as an afterthought.
Testing by Project Type:
| Project Type | Unit Tests | Integration Tests | E2E Tests |
|---|---|---|---|
| CLI tool | Core logic functions | Command execution with fixtures | Full binary invocation |
| HTTP service | Service layer with mocked deps | Repository with test DB | HTTP client against test server |
| Library | Public API behavior | N/A | Consumer-perspective tests |
| Operator | Reconciler logic | envtest with fake API server | Kind cluster tests |
Go Testing Principles:
testdata/ directory for fixtures_test.go in the same package for white-box tests, _test package for black-boxt.Parallel() for independent testst.Helper() in test utilitiesgo test -race in CI alwaysGoal: Ensure the project is ready for real-world use.
Production Checklist (applicable to all Go project types):
context.Context for cancellation-ldflags)go vet, staticcheck, go test -race, golangci-lintGoal: Provide a clear order of implementation.
General Sequence (adapt per project type):
go.modmain.gobash /mnt/skills/user/golang-architect/scripts/sqlc-init.sh [project-dir] [db-engine]
Arguments:
project-dir - Project directory (default: current directory)db-engine - Database engine: postgresql, mysql, sqlite3 (default: postgresql)Examples:
bash /mnt/skills/user/golang-architect/scripts/sqlc-init.sh
Implementation Guide
Prerequisites
- ›Claude Desktop or compatible AI client with skill support
- ›Clear understanding of task or problem to solve
- ›Willingness to iterate and refine outputs
Time Estimate
15-45 minutes depending on use case complexity
Steps
- 1Install skill using provided installation command
- 2Test with simple use case relevant to your work
- 3Evaluate output quality and relevance
- 4Iterate on prompts to improve results
- 5Integrate into regular workflow if valuable
Common Pitfalls
- ⚠Expecting perfect results without iteration
- ⚠Not providing enough context in prompts
- ⚠Using skill for tasks outside its intended scope
- ⚠Accepting outputs without review and validation
Best Practices
✓ Do
- +Start with clear, specific prompts
- +Provide relevant context and constraints
- +Review and refine all outputs before using
- +Iterate to improve output quality
- +Document successful prompt patterns
✗ Don't
- −Don't use without understanding skill limitations
- −Don't skip validation of outputs
- −Don't share sensitive information in prompts
- −Don't expect skill to replace human judgment
💡 Pro Tips
- ★Be specific about desired format and style
- ★Ask for multiple options to choose from
- ★Request explanations to understand reasoning
- ★Combine AI efficiency with human expertise
When to Use This
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
Learning Path
- 1Familiarize yourself with skill capabilities and limitations
- 2Start with low-risk, non-critical tasks
- 3Progress to more complex and valuable use cases
- 4Build expertise through regular use and experimentation
Related Skills
backend-architect
20sickn33/antigravity-awesome-skills
Backendtag: architectgolang-testing
9samber/cc-skills-golang
Backendtag: golangdotnet-architect
8sickn33/antigravity-awesome-skills
Productivitytag: architecttypescript-best-practices
146jwynia/agent-skills
Backendsame categoryfastapi-python
61mindrally/skills
Backendsame categoryjava-springboot
50github/awesome-copilot
Backendsame categoryReviews
4.6★★★★★47 reviews- DDhruvi Jain★★★★★Dec 24, 2024
Solid pick for teams standardizing on skills: golang-architect is focused, and the summary matches what you get after install.
- DDaniel Liu★★★★★Dec 20, 2024
Useful defaults in golang-architect — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- NNoor Gupta★★★★★Dec 12, 2024
I recommend golang-architect for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- SSofia Khanna★★★★★Nov 23, 2024
Keeps context tight: golang-architect is the kind of skill you can hand to a new teammate without a long onboarding doc.
- FFatima Patel★★★★★Nov 19, 2024
golang-architect is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- OOshnikdeep★★★★★Nov 15, 2024
We added golang-architect from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- MMaya Perez★★★★★Nov 3, 2024
golang-architect reduced setup friction for our internal harness; good balance of opinion and flexibility.
- MMeera Dixit★★★★★Oct 22, 2024
Registry listing for golang-architect matched our evaluation — installs cleanly and behaves as described in the markdown.
- SSofia Shah★★★★★Oct 14, 2024
golang-architect is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- DDiya Martinez★★★★★Oct 10, 2024
Keeps context tight: golang-architect is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 47
1 / 5Discussion
Comments — not star reviews- No comments yet — start the thread.