metaphor/marketplace

skill · built into metaphor

/go

Go idioms, table-driven tests, filesystem work

  • Built in
  • Slash command
try it

you ›/go

metaphor ›Loaded the go skill. What should I work on?

What the agent is told

This is the skill's SKILL.md, exactly what Metaphor reads before the task.

Prefer focused diffs that go test ./... can accept in the module root.

Idioms

  • Match existing package names, error wrapping (fmt.Errorf / %w), and context usage.
  • Keep interfaces small; accept interfaces, return concrete types as peers do.
  • Run gofmt-compatible formatting; do not fight module layout.
  • Prefer table-driven tests when the package already uses them.

Testing

  • Place _test.go beside the package under test.
  • Avoid network in unit tests; use t.TempDir() for filesystem work.

Safety

  • Never embed secrets or tokens in source.
  • Do not weaken permission checks or skip human gates.
  • Proposed paths must be repo-relative.

Questions

What is the go skill?

Go idioms, table-driven tests, filesystem work

How do I use go in Metaphor?

It is built into Metaphor. Type /go in the composer, or describe the task and the agent loads the skill when it fits.

What is a skill?

A skill is a set of written instructions the agent reads before it starts a kind of task. It changes how the agent works, not what it is allowed to do.

More built-in skills