

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1# `pkg/` Directory Guidelines23Guidelines for AI agents working on packages in the `pkg/` directory.45## Overview67The `pkg/` directory contains **public packages** that can be imported by external code.8These packages provide shared utilities, configuration management, logging, and common functionality.910## Directory Structure1112```13pkg/14├── config/ # Configuration management (account, wallet, loader)15├── cryptocurrency/ # Crypto utilities (btc, bch, eth, xrp)16├── db/ # Database connections (mysql, sqlite)17├── debug/ # Debug utilities18├── decimal/ # Decimal number utilities19├── di/ # Legacy DI container (panic allowed)20├── grpc/ # gRPC client utilities21├── logger/ # Logging (global, slog, noop)22├── null/ # Null value converters23├── retry/ # Retry with exponential backoff24├── serializer/ # Serialization utilities25├── uuid/ # UUID generation26└── websocket/ # WebSocket client27```2829## Critical Rule3031**Packages in `pkg/` MUST NOT import from `internal/` directory.**3233This is non-negotiable:3435- `pkg/` = public APIs for external code36- `internal/` = internal implementation details37- Mixing breaks encapsulation and creates circular dependencies3839## Common Commands4041```bash42make go-lint # Lint and auto-fix43make check-build # Build verification44make go-test # Run unit tests45make tidy # go mod tidy46```4748## Patterns4950### Avoid5152- Importing from `internal/`53- Using `panic` (except `pkg/di` legacy)54- Commented-out code55- Ignoring errors56- Logging sensitive information5758### Recommended5960- Self-contained utility functions61- Proper error wrapping with context62- Use `context.Context` for cancellation63- Unit tests for exported functions6465## Important Notes6667- Financial project - make changes carefully68- Public APIs - consider backward compatibility69- **DO NOT** edit files with `DO NOT EDIT` comments7071## References7273### Rules7475- `.claude/rules/go/conventions.md` - Go conventions7677### Guidelines7879- [Coding Conventions](../docs/guidelines/coding-conventions.md)80- [Security](../docs/guidelines/security.md)81- [Testing](../docs/guidelines/testing.md)8283### Other8485- [AGENTS.md](../AGENTS.md) - Root agent guidelines86- [internal/AGENTS.md](../internal/AGENTS.md) - Internal packages87
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/agent-files.mdc · 126 | Cursor rules | lint-formatarchdo-notagent-behaviour | 77/100 | 14 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/documentation-language.mdc · 126 | Cursor rules | archdo-notdocs | 36/100 | 14 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/general.mdc · 126 | Cursor rules | buildtestarchgit+2 | 83/100 | 14 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/github-actions.mdc · 126 | Cursor rules | stylearchgitperformance+4 | 77/100 | 14 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/proto.mdc · 126 | Cursor rules | buildlint-formatstylearch+3 | 96/100 | 14 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/security.mdc · 126 | Cursor rules | archsecuritydo-notagent-behaviour | 76/100 | 14 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/shell-script.mdc · 126 | Cursor rules | setupteststylearch+1 | 73/100 | 14 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/task-context-loading.mdc · 126 | Cursor rules | archtypesdatabasedo-not+1 | 93/100 | 14 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 14 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/yaml.mdc · 126 | Cursor rules | lint-formatstylearchtypes+3 | 84/100 | 14 days ago | |
| hiromaily/go-crypto-wallet.github/copilot-instructions.md · 126 | Copilot instructions | teststylearchsecurity+1 | 56/100 | 14 days ago | |
| hiromaily/go-crypto-walletAGENTS.md · 126 | AGENTS.md | archtypesdo-notagent-behaviour+1 | 79/100 | 14 days ago | |
| hiromaily/go-crypto-walletCLAUDE.md · 126 | CLAUDE.md | archtypesdo-notagent-behaviour+1 | 79/100 | 14 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/ssot.mdc · 126 | Cursor rules | stylearchtypesdo-not+2 | 84/100 | 14 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| deepseek-ai/deepseek-harnessnative/landlock-run/AGENTS.md · 104k | AGENTS.md | setupteststylearch+3 | 100/100 | today | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 14 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 14 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 201k | AGENTS.md | buildteststylearch+3 | 100/100 | 14 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | today | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 68k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 13 days ago | |
| aaif-goose/gooseAGENTS.md · 53k | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 8 days ago | |
| ethereum/go-ethereumAGENTS.md · 51k | AGENTS.md | buildtestlint-formatgit+1 | 100/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/hiromaily-go-crypto-wallet-pkg-agents)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.