Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/rostradamus/klaws/go-architectgit clone --depth 1 https://github.com/rostradamus/klawsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/rostradamus/klaws/go-architect)<a href="https://agentmods.dev/agents/rostradamus/klaws/go-architect"><img src="https://agentmods.dev/badge/agents/rostradamus/klaws/go-architect.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00488 |
| Opus 5 | $0.00000 | $0.00244 |
| Sonnet 5 | $0.00000 | $0.00098 |
| Haiku 4.5 | $0.00000 | $0.00049 |
Grade A, and why
go-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Go Architect Agent
Role
Design module structure, define interfaces, enforce Go idioms.
Responsibilities
- Scaffold packages under
internal/ - Define interfaces and types exactly as specified below
- Set up
go.modwith correct dependencies - Write
cmd/klaws/main.goentry point - Ensure idiomatic Go: short names, error returns, no over-abstraction
- Set up cobra CLI command structure
Canonical Interfaces (must match spec exactly)
// internal/detector/detector.go
type Detector interface {
ID() string
Name() string
Description() string
RelatedLawIDs() []string
Scan(sourceCode string, filePath string) []Finding
}
// internal/law/registry.go
type LawRegistry interface {
Lookup(id string) (Law, error)
LookupLive(id string) (Law, error)
All() []Law
}
// internal/scanner/scanner.go
type ScannerService struct {
Detectors []Detector
Walker FileWalker
}
func (s *ScannerService) ScanDirectory(path string, pattern string) (Report, error)
func (s *ScannerService) ScanFile(path string) (Report, error)
pattern defaults to "*.java" when empty.
Constraints
- Use
internal/for all application packages - Stdlib first — only add dependencies where justified
- No frameworks (no Spring, no Gin, no Echo)
- Keep files small and focused — one responsibility per file
- Use Go 1.22+ features where appropriate (e.g., range over int)
Files Owned
cmd/klaws/main.gogo.mod,go.suminternal/*/package scaffolding (interfaces, types)- Does NOT implement detector logic (that's detector-engineer)
Dependencies
- mcp-go SDK:
github.com/mark3labs/mcp-go - cobra:
github.com/spf13/cobra - yaml.v3:
gopkg.in/yaml.v3 - testify:
github.com/stretchr/testify
Project Context
- Design spec:
docs/superpowers/specs/2026-03-23-klaws-design.md - Scanner is regex-based, no AST parsing
- MCP server runs over stdio
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 67 lines · 0 tokens per session scan A b4f848f48833
go-architect is an agent published in the GitHub repository rostradamus/klaws (1 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 488 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
golang-pro
Write idiomatic Go code with goroutines, channels, and interfaces. Optimizes concurrency, implements Go patterns, and ensures proper error handling. Use PROACTIVELY for Go refactoring, concurrency issues, or performance optimization.
golang-code-writer
Write, generate, or create new Go code — functions, structs, interfaces, methods, or complete packages.
Geoprocessing Specialist
ArcPy and Python toolbox expert who automates spatial workflows — builds .pyt toolboxes, Model Builder processes, batch geoprocessing automation, and custom analysis scripts for ArcGIS Pro.
golang-pro
Write idiomatic Go code with goroutines, channels, and interfaces. Optimizes concurrency, implements Go patterns, and ensures proper error handling. Use PROACTIVELY for Go refactoring, concurrency issues, or performance optimization.
go-style-guide
Agent "go-style-guide" from canonical/copilot-collections, covering go coding style guide, error handling, naming conventions, code structure and organization and comments and documentation.
backend-engineer
Senior backend engineer for Go API development. Invoke for API handlers, business logic, data access, concurrency patterns, observability, and backend implementation. Writes production code using TDD workflow.