RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/CLAUDE.md/hiromaily/go-crypto-wallet

CLAUDE.md

CLAUDE.md
CLAUDE.mdroot

Quality

79/100

Scores the file, not the repository.

Length

679 words

17 headings · 0 code blocks

Repository

126

— · pushed 103 days ago

Last changed

3 days ago

First indexed 3 days ago.
hiromaily/go-crypto-wallet/CLAUDE.mdRawGitHub
1<!--
2⚠️ AUTO-GENERATED FILE — DO NOT EDIT
3Source: template/pages/CLAUDE.tpl.md · Run `make docs` to regenerate.
4-->
5 
6# Agent Guidelines for go-crypto-wallet
7 
8This 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).
10 
11## Project Identity
12 
13- **Type**: Multi-signature cryptocurrency wallet (BTC, BCH, ETH, XRP, ERC-20)
14- **Security Model**: Offline cold wallets (keygen, sign) + Online watch wallet
15- **Architecture**: Clean Architecture with strict layer separation
16- **Status**: Under refactoring based on Clean Code principles
17 
18## Core Values (Priority Order)
19 
201. **Security First** - Private key protection is non-negotiable
212. **Clean Architecture** - Domain layer has ZERO infrastructure dependencies
223. **Single Source of Truth (SSOT)** - One authoritative location for each piece of information
234. **Incremental Changes** - No breaking changes without rollback plan
245. **Code Quality** - Follow language-specific linting and testing standards
25 
26## Expected Behavior
27 
28### Always Do
29 
30- **Check current branch before starting any task** (see `git-workflow` skill)
31- Read relevant documentation before making changes
32- Run verification commands after code changes
33- Wrap errors with context using `fmt.Errorf("context: %w", err)`
34- Consider impact on offline wallet operations
35 
36### Never Do
37 
38- ❌ Log private keys or sensitive information
39- ❌ Edit files marked `DO NOT EDIT` (auto-generated)
40- ❌ Push directly to `main` branch
41- ❌ Run `git merge` or `gh pr merge`
42- ❌ Run `protoc` or `buf` commands directly (always use Makefile targets like `make proto`, `make proto-ts`)
43 
44### Ask Before
45 
46- Making security-related changes
47- Breaking changes to public APIs
48- Changes affecting multiple layers
49 
50## SSOT Structure
51 
52**When modifying rules, skills, or documentation, always edit the SSOT location.**
53 
54### AI Agent Configuration
55 
56| 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) |
61 
62**Sync Process:**
63 
64- `.cursor/rules/` → Auto-generated via `make sync-cursor-rules`
65- `.cursor/skills/` → Symlink to `.claude/skills/`
66 
67### Project Documentation
68 
69| 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 |
74 
75### Key Principle
76 
77> **Don't Repeat Yourself (DRY)**: Define once, reference everywhere.
78> When information exists in multiple places, update the SSOT and reference it from others.
79 
80## Documentation Map
81 
82| 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) |
97 
98## Quick Reference
99 
100### Identifying BTC Address Types
101 
102| 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 | ✅ |
108 
109### Identifying BCH Address Types
110 
111| Prefix | Type | Multisig |
112|--------|------|----------|
113| `bitcoincash:q...` | P2PKH | ❌ |
114| `bitcoincash:p...` | P2SH | ✅ |
115 
116### Transaction Size Comparison
117 
118| 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 |
125 
126---
127 
128## See Also
129 
130- [llms.txt](./llms.txt) - AI-friendly project sitemap
131- [ARCHITECTURE.md](./ARCHITECTURE.md) - System architecture
132- [docs/guidelines/](./docs/guidelines) - Project guidelines and standards
133 

Commands it names

  • make docs
  • git-workflow
  • git merge
  • gh pr merge
  • make proto
  • make proto-ts
  • make sync-cursor-rules

Sections

  • Agent Guidelines for go-crypto-wallet
  • Project Identity
  • Core Values (Priority Order)
  • Expected Behavior
  • Always Do
  • Never Do
  • Ask Before
  • SSOT Structure
  • AI Agent Configuration
  • Project Documentation
  • Key Principle
  • Documentation Map
  • Quick Reference
  • Identifying BTC Address Types
  • Identifying BCH Address Types
  • Transaction Size Comparison
  • See Also

What it covers

architecturetypesdo-notagent-behaviourdocs

Stack — with the evidence

go

(1.00)

biome

(0.70)

typescript

(0.60)

javascript

(0.60)

bun

(0.60)

github-actions

(0.60)

Format

CLAUDE.md

Claude Code's memory file. Shaped like AGENTS.md but with two things it lacks: @path imports, so shared rules live in one place, and a user-scope layer that follows the developer across repos rather than shipping with the code.

What the corpus says about it

Repository

Owner
hiromaily
Language
—
License
—
Archived
no

All configs in this repo

Also in hiromaily/go-crypto-wallet

Diff this repo’s formats

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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
hiromaily/go-crypto-wallet.cursor/rules/agent-files.mdc · 126Cursor rulesgobiome+4lint-formatarchdo-notagent-behaviour77/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/documentation-language.mdc · 126Cursor rulesgobiome+4archdo-notdocs36/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/general.mdc · 126Cursor rulesgobiome+4buildtestarchgit+283/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/task-context-loading.mdc · 126Cursor rulesgobiome+4archtypesdatabasedo-not+193/1003 days ago
hiromaily/go-crypto-walletpkg/AGENTS.md · 126AGENTS.mdgobiome+4stylearchdo-not80/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/github-actions.mdc · 126Cursor rulesgobiome+4stylearchgitperformance+477/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/proto.mdc · 126Cursor rulesgobiome+4buildlint-formatstylearch+396/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/security.mdc · 126Cursor rulesgobiome+4archsecuritydo-notagent-behaviour76/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/shell-script.mdc · 126Cursor rulesgobiome+4setupteststylearch+173/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/ssot.mdc · 126Cursor rulesgobiome+4stylearchtypesdo-not+284/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
hiromaily/go-crypto-wallet.cursor/rules/yaml.mdc · 126Cursor rulesgobiome+4lint-formatstylearchtypes+384/1003 days ago
hiromaily/go-crypto-wallet.github/copilot-instructions.md · 126Copilot instructionsgobiome+4teststylearchsecurity+156/1003 days ago
hiromaily/go-crypto-walletAGENTS.md · 126AGENTS.mdgobiome+4archtypesdo-notagent-behaviour+179/1003 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 AGENTS.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
microsoft/playwrightCLAUDE.md · 94kCLAUDE.mdtypescriptjavascript+10buildtestlint-formatstyle+7100/1003 days ago
Adit-Jain-srm/NightmareNetCLAUDE.md · 45CLAUDE.mdtypescriptpython+18buildtestlint-formatstyle+6100/1003 days ago
stacklok/toolhiveCLAUDE.md · 2.0kCLAUDE.mdgogithub-actionsbuildteststylearch+4100/1003 days ago
dotCMS/corecore-web/CLAUDE.md · 949CLAUDE.mdjavanode+13teststylearchtesting-strategy+3100/1003 days ago
nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4kCLAUDE.mdtypescriptnode+16setupbuildstylearch+2100/1003 days ago
dotCMS/coreCLAUDE.md · 949CLAUDE.mdjavanode+9setupbuildteststyle+799/100today
lollipopkit/flutter_server_boxCLAUDE.md · 8.3kCLAUDE.mddartflutter+8buildteststylearch+298/1003 days ago
modelcontextprotocol/serversCLAUDE.md · 89kCLAUDE.mdtypescriptnode+8setupbuildtestlint-format+697/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack