AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
79/100
Scores the file, not the repository.Length
679 words
17 headings · 0 code blocksRepository
126
— · pushed 103 days agoLast changed
3 days ago
First indexed 3 days ago.1<!--2⚠️ AUTO-GENERATED FILE — DO NOT EDIT3Source: template/pages/AGENTS.tpl.md · Run `make docs` to regenerate.4-->56# Agent Guidelines for go-crypto-wallet78This document defines the **behavior and values** for AI agents working on this project.9For detailed documentation, see [llms.txt](./llms.txt) and [ARCHITECTURE.md](./ARCHITECTURE.md).1011## Project Identity1213- **Type**: Multi-signature cryptocurrency wallet (BTC, BCH, ETH, XRP, ERC-20)14- **Security Model**: Offline cold wallets (keygen, sign) + Online watch wallet15- **Architecture**: Clean Architecture with strict layer separation16- **Status**: Under refactoring based on Clean Code principles1718## Core Values (Priority Order)19201. **Security First** - Private key protection is non-negotiable212. **Clean Architecture** - Domain layer has ZERO infrastructure dependencies223. **Single Source of Truth (SSOT)** - One authoritative location for each piece of information234. **Incremental Changes** - No breaking changes without rollback plan245. **Code Quality** - Follow language-specific linting and testing standards2526## Expected Behavior2728### Always Do2930- **Check current branch before starting any task** (see `git-workflow` skill)31- Read relevant documentation before making changes32- Run verification commands after code changes33- Wrap errors with context using `fmt.Errorf("context: %w", err)`34- Consider impact on offline wallet operations3536### Never Do3738- ❌ Log private keys or sensitive information39- ❌ Edit files marked `DO NOT EDIT` (auto-generated)40- ❌ Push directly to `main` branch41- ❌ Run `git merge` or `gh pr merge`42- ❌ Run `protoc` or `buf` commands directly (always use Makefile targets like `make proto`, `make proto-ts`)4344### Ask Before4546- Making security-related changes47- Breaking changes to public APIs48- Changes affecting multiple layers4950## SSOT Structure5152**When modifying rules, skills, or documentation, always edit the SSOT location.**5354### AI Agent Configuration5556| Category | SSOT Location | Other Locations |57|----------|---------------|-----------------|58| Rules | `.claude/rules/*.md` | `.cursor/rules/*.mdc` (auto-generated) |59| Skills | `.claude/skills/*/SKILL.md` | `.cursor/skills/` (symlink) |60| Commands | `.claude/commands/` | `.cursor/commands/` (reference only) |6162**Sync Process:**6364- `.cursor/rules/` → Auto-generated via `make sync-cursor-rules`65- `.cursor/skills/` → Symlink to `.claude/skills/`6667### Project Documentation6869| Category | SSOT Location | Notes |70|----------|---------------|-------|71| Guidelines | `docs/guidelines/` | Coding, testing, security, workflow, database, code-generation |72| Architecture | `ARCHITECTURE.md` | System design |73| Agent behavior | `AGENTS.md` (this file) | Entry point for all agents |7475### Key Principle7677> **Don't Repeat Yourself (DRY)**: Define once, reference everywhere.78> When information exists in multiple places, update the SSOT and reference it from others.7980## Documentation Map8182| Need | Document |83|------|----------|84| Project overview | [llms.txt](./llms.txt) |85| Architecture design | [ARCHITECTURE.md](./ARCHITECTURE.md) |86| **AI Agent instruction design** | [docs/ai/design.md](./docs/ai/design.md) |87| **Guidelines** | [docs/guidelines/](./docs/guidelines) |88| Coding conventions | [docs/guidelines/coding-conventions.md](./docs/guidelines/coding-conventions.md) |89| Security | [docs/guidelines/security.md](./docs/guidelines/security.md) |90| Testing | [docs/guidelines/testing.md](./docs/guidelines/testing.md) |91| Workflow | [docs/guidelines/workflow.md](./docs/guidelines/workflow.md) |92| Database changes | [docs/database/db-management.md](./docs/database/db-management.md) |93| Auto-generated files | [docs/guidelines/code-generation.md](./docs/guidelines/code-generation.md) |94| CLI commands | [internal/interface-adapters/cli/README.md](./internal/interface-adapters/cli/README.md) | Command × Chain × UseCase matrix (SSOT) |95| Internal packages | [internal/AGENTS.md](./internal/AGENTS.md) |96| Public packages | [pkg/AGENTS.md](./pkg/AGENTS.md) |9798## Quick Reference99100### Identifying BTC Address Types101102| Prefix | Type | BIP | SegWit |103|--------|------|-----|--------|104| `1...` | P2PKH | BIP44 | ❌ |105| `3...` | P2SH or P2SH-P2WPKH | BIP16/BIP49 | △ |106| `bc1q...` | P2WPKH or P2WSH | BIP84 | ✅ |107| `bc1p...` | P2TR (Taproot) | BIP86 | ✅ |108109### Identifying BCH Address Types110111| Prefix | Type | Multisig |112|--------|------|----------|113| `bitcoincash:q...` | P2PKH | ❌ |114| `bitcoincash:p...` | P2SH | ✅ |115116### Transaction Size Comparison117118| Pattern | Weight | vBytes | Notes |119|---------|--------|--------|-------|120| P2PKH Single-sig (1-in, 2-out) | ~680 | ~170 | Legacy |121| P2WPKH Single-sig (1-in, 2-out) | ~440 | ~110 | Native SegWit |122| P2TR Single-sig (1-in, 2-out) | ~396 | ~99 | Taproot |123| 2-of-3 P2WSH Multisig | ~1,100 | ~275 | Traditional Multisig |124| 2-of-3 MuSig2 (P2TR) | ~560 | ~140 | Signature Aggregation |125126---127128## See Also129130- [llms.txt](./llms.txt) - AI-friendly project sitemap131- [ARCHITECTURE.md](./ARCHITECTURE.md) - System architecture132- [docs/guidelines/](./docs/guidelines) - Project guidelines and standards133
Also in hiromaily/go-crypto-wallet
Diff this repo’s formatsOne 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 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/documentation-language.mdc · 126 | Cursor rules | archdo-notdocs | 36/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/general.mdc · 126 | Cursor rules | buildtestarchgit+2 | 83/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/task-context-loading.mdc · 126 | Cursor rules | archtypesdatabasedo-not+1 | 93/100 | 3 days ago | |
| hiromaily/go-crypto-walletpkg/AGENTS.md · 126 | AGENTS.md | stylearchdo-not | 80/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/github-actions.mdc · 126 | Cursor rules | stylearchgitperformance+4 | 77/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/proto.mdc · 126 | Cursor rules | buildlint-formatstylearch+3 | 96/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/security.mdc · 126 | Cursor rules | archsecuritydo-notagent-behaviour | 76/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/shell-script.mdc · 126 | Cursor rules | setupteststylearch+1 | 73/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/ssot.mdc · 126 | Cursor rules | stylearchtypesdo-not+2 | 84/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/yaml.mdc · 126 | Cursor rules | lint-formatstylearchtypes+3 | 84/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.github/copilot-instructions.md · 126 | Copilot instructions | teststylearchsecurity+1 | 56/100 | 3 days ago | |
| hiromaily/go-crypto-walletCLAUDE.md · 126 | CLAUDE.md | archtypesdo-notagent-behaviour+1 | 79/100 | 3 days ago |
Diff against .cursor/rules/agent-files.mdc Diff against .cursor/rules/documentation-language.mdc Diff against .cursor/rules/general.mdc Diff against .cursor/rules/task-context-loading.mdc Diff against pkg/AGENTS.md Diff against .cursor/rules/github-actions.mdc Diff against .cursor/rules/proto.mdc Diff against .cursor/rules/security.mdc Diff against .cursor/rules/shell-script.mdc Diff against .cursor/rules/ssot.mdc Diff against .cursor/rules/typescript.mdc Diff against .cursor/rules/yaml.mdc Diff against .github/copilot-instructions.md Diff against CLAUDE.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago | |
| ethereum/go-ethereumAGENTS.md · 51k | AGENTS.md | buildtestlint-formatgit+1 | 100/100 | 3 days ago |
