pi-go-review

Review Go code changes against the '100 Go Mistakes and How to Avoid Them' checklist (https://100go.co/). Registers a go_review tool that analyzes git diffs against all 101 common Go mistakes.

Package details

extension

Install pi-go-review from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-go-review
Package
pi-go-review
Version
1.1.0
Published
Apr 17, 2026
Downloads
230/mo ยท 10/wk
Author
lucianojr
License
MIT
Types
extension
Size
20 KB
Dependencies
0 dependencies ยท 4 peers
Pi manifest JSON
{
  "extensions": [
    "./extensions"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-go-review

Review Go code changes against the 100 Go Mistakes checklist โ€” 100go.co

A Pi extension that registers a go_review tool. It reads git diffs, filters to .go files, and provides the complete 101-mistake rubric for the LLM to analyze your code.

Install

pi install npm:pi-go-review

Usage

Just ask Pi: "review my Go changes"

The tool supports 5 diff modes:

Mode Description Requires ref
working Unstaged changes No
staged Staged (cached) changes No
all All changes vs HEAD No
commit Specific commit Yes (SHA)
range Commit range Yes (e.g. main..HEAD)

You can also narrow the scope with the path parameter to focus on a specific file or directory.

What it does

  1. Reads the git diff filtered to *.go files
  2. Attaches the full 100 Go Mistakes checklist (101 entries across 11 categories)
  3. The LLM produces a structured review with categorized findings:
    • ๐Ÿ”ด Bug / Critical โ€” Must fix
    • ๐ŸŸก Suggestion โ€” Should consider
    • ๐Ÿ”ต Nit โ€” Minor improvement
    • โœ… Good pattern โ€” Well done
  4. Each finding cites the mistake number (e.g. #39) and the specific file + code fragment
  5. Ends with a Verdict: Approve / Request Changes / Needs Discussion

Categories covered

  • Code & Project Organization (#1โ€“#16)
  • Data Types (#17โ€“#29)
  • Control Structures (#30โ€“#35)
  • Strings (#36โ€“#41)
  • Functions & Methods (#42โ€“#47)
  • Error Management (#48โ€“#54)
  • Concurrency: Foundations (#55โ€“#60)
  • Concurrency: Practice (#61โ€“#74)
  • Standard Library (#75โ€“#81)
  • Testing (#82โ€“#91)
  • Optimizations (#92โ€“#101)

Custom TUI rendering

The extension includes custom rendering for both the tool call and result in Pi's TUI โ€” showing mode, file count, insertions/deletions, and truncation status at a glance.

Credits

Based on 100 Go Mistakes and How to Avoid Them by Teivah.

License

MIT