AI SummaryXMTP node implementation.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "xmtpd — Cursor Rules" prompt rules to my project. Repository: https://github.com/xmtp/xmtpd Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
XMTP node implementation.
Code Style and Tools
• Keep imports grouped and ordered: stdlib, external, internal. • Avoid magic numbers — use named constants. • Prefer explicit over implicit — especially in exported APIs.
General Best Practices
• Avoid variable shadowing. • Do not over-nest control flow (e.g., nested if or for blocks). • Avoid init() functions unless absolutely necessary. • Keep functions small and focused. • Prefer composition over inheritance (via embedding). • Use the functional options pattern for constructors where flexibility is needed.
Interfaces
• Avoid defining interfaces until you need them. • Do not return interfaces from constructors or public APIs. • Define interfaces on the consumer side, not the producer side. • Keep interfaces small and focused (generally 1–2 methods).
Structs and Methods
• Avoid embedding pointer types unless necessary. • Don’t overuse getters/setters — prefer public fields when it makes sense. • Use value receivers when the method doesn't mutate state or require pointer semantics.
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts