go-port
Port code from C, C++, Python, Java, JavaScript, TypeScript, Rust, or legacy Go into idiomatic Go that keeps the original behavior: error values instead of error codes and exceptions, nil instead of NULL, slices instead of pointer arithmetic, context.Context instead of sleeps and torn-down threads, and table-driven tests that prove the port matches. Use this whenever the user asks to port, translate, convert, migrate, or rewrite code in Go ("rewrite this in Go", "what would this look like in Go", "move this module to Go"), or to modernize old Go — even if they don't say "port" — for .go files, go.mod, gofmt, go vet, and golangci-lint. Pairs with the go-best-practices skill, which covers the target code's style.
Pinned to revision 37fdf40bf942, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/go-port/SKILL.md
- skills/go-port/evals/port-c-config-parser/case.yaml
- skills/go-port/evals/port-c-config-parser/files/config.c
- skills/go-port/evals/port-c-config-parser/files/config.h
- skills/go-port/evals/port-c-config-parser/files/test_config.c
- skills/go-port/evals/port-c-config-parser/graders/01-original-tests-passing.md
- skills/go-port/evals/port-c-config-parser/graders/02-error-codes-not-panics.md
- skills/go-port/evals/port-c-config-parser/graders/03-no-cgo.md
- skills/go-port/evals/port-c-config-parser/graders/04-porting-notes.md
- skills/go-port/evals/port-c-config-parser/graders/05-proportionate-size.md
- skills/go-port/evals/port-c-config-parser/graders/06-stdlib-parsing.md
- skills/go-port/evals/port-c-config-parser/graders/07-tests-map-one-to-one.md
- skills/go-port/evals/port-c-config-parser/graders/08-golangci-clean.md
- skills/go-port/evals/port-c-config-parser/place-files.sh
- skills/go-port/evals/port-c-config-parser/prompt.md
- skills/go-port/evals/port-python-task-graph/case.yaml
- skills/go-port/evals/port-python-task-graph/files/scheduler.py
- skills/go-port/evals/port-python-task-graph/files/test_scheduler.py
- skills/go-port/evals/port-python-task-graph/graders/01-original-tests-passing.md
- skills/go-port/evals/port-python-task-graph/graders/02-exceptions-to-error-values.md
- skills/go-port/evals/port-python-task-graph/graders/03-deterministic-iteration.md
- skills/go-port/evals/port-python-task-graph/graders/04-porting-notes.md
- skills/go-port/evals/port-python-task-graph/graders/05-proportionate-size.md
- skills/go-port/evals/port-python-task-graph/graders/06-context-aware-concurrency.md
- skills/go-port/evals/port-python-task-graph/graders/07-tests-map-one-to-one.md
- skills/go-port/evals/port-python-task-graph/graders/08-golangci-clean.md
- skills/go-port/evals/port-python-task-graph/place-files.sh
- skills/go-port/evals/port-python-task-graph/prompt.md
Every link opens the file at its source, pinned to the revision this page describes.