| name | add-package |
| description | Scaffold a new ins* package in the go-pkg multi-module monorepo |
| disable-model-invocation | true |
Create a new package: $ARGUMENTS
Steps
-
Create package directory
- Name:
ins<name>/ (e.g., insmetrics/)
- All package names are prefixed with
ins
-
Initialize Go module
cd ins<name>
go mod init github.com/useinsider/go-pkg/ins<name>
- Set Go version to match other recent packages (check
insrequester/v2/go.mod for latest)
-
Create main package file (ins<name>/<name>.go)
-
Create test file (ins<name>/<name>_test.go)
- Use
testify for assertions
- Table-driven tests with
t.Run() subtests
-
Create README.md with:
- Package description
- Installation:
go get github.com/useinsider/go-pkg/ins<name>
- Usage example
- Configuration options
-
If this package depends on other ins packages*:
- Add to CLAUDE.md dependency chain
- Document release order in RELEASING.md
-
Update repository documentation
- Add entry to root
README.md package table
- Add entry to
CLAUDE.md repository structure
- Update
scripts/check-deps.sh if needed
-
Verify
cd ins<name>
go mod tidy
go test ./...
go vet ./...