agentleFS
hiromailyhiromaily/go-crypto-wallet/.github/copilot-instructions.md

go-crypto-wallet

Copilot instructions128 starsChanged 6 months agoMITView on GitHub

This is a cryptocurrency wallet implementation supporting BTC, BCH, ETH, XRP, and ERC-20 tokens. Security is paramount - this project handles private keys and cryptocurrency transactions. See docs/guidelines/security.md for full details. See docs/guidelines/testing.md for testing strategy. See docs/guidelines/coding-conventions.md for standards. See docs/guidelines/workflow.md for Git operations and PR guidelines. DO NOT EDIT files containing DO NOT EDIT comments:

We split this copilot-instructions.md into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow Clean Architecture principles (see ARCHITECTURE.md)

    line 16
  2. Distinctive:

    Follow AGENTS.md for behavior guidelines

    line 18
  3. Distinctive:

    Use Go 1.25+ features where appropriate

    line 22
  4. Very specific:

    Follow error wrapping pattern: fmt.Errorf("context: %w", err)

    line 23
  5. Distinctive:

    Prefer interfaces for dependencies (Dependency Inversion)

    line 24
  6. Distinctive:

    Always validate inputs at boundaries

    line 34
  7. Distinctive:

    Consider offline wallet implications (keygen, sign)

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 3,669 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

GitHub Copilot Instructions for go-crypto-wallet

Project Overview

This is a cryptocurrency wallet implementation supporting BTC, BCH, ETH, XRP, and ERC-20 tokens. Security is paramount - this project handles private keys and cryptocurrency transactions.

Quick Reference

  • Architecture: Clean Architecture with clear layer separation
  • Primary Language: Go (backend, wallet operations)
  • Additional Languages: TypeScript/JavaScript (apps/), Solidity, SQL, HCL, Protobuf

General Guidelines

  • Follow Clean Architecture principles (see ARCHITECTURE.md)
  • Refer to docs/guidelines/ for detailed coding conventions
  • Follow AGENTS.md for behavior guidelines

Code Suggestions

  • Use Go 1.25+ features where appropriate
  • Follow error wrapping pattern: fmt.Errorf("context: %w", err)
  • Prefer interfaces for dependencies (Dependency Inversion)
  • Domain layer has ZERO infrastructure dependencies

Security Requirements

See docs/guidelines/security.md for full details.

Key rules:

  • NEVER log private keys or sensitive information
  • Always validate inputs at boundaries
  • Consider offline wallet implications (keygen, sign)
  • Security-related changes must be reviewed

Testing

See docs/guidelines/testing.md for testing strategy.

Coding Conventions

See docs/guidelines/coding-conventions.md for standards.

Workflow

See docs/guidelines/workflow.md for Git operations and PR guidelines.

Auto-Generated Files

DO NOT EDIT files containing DO NOT EDIT comments:

  • internal/infrastructure/database/sqlc/*.go
  • internal/infrastructure/api/xrp/xrp/*.pb.go
  • internal/infrastructure/contract/token-abi.go

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.