go-development

Best practices for Go development, covering domain-driven design, context usage, and structured logging.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "go-development" with this command: npx skills add imrenagi/skills/imrenagi-skills-go-development

Go Development

This skill provides best practices for building robust Go applications. It focuses on domain-driven design, proper context propagation, and structured logging.

When to Apply

Reference these guidelines when:

  • Implementing Business Logic: Developing domain models and domain enums.
  • Managing Context: Propagating context correctly through your application layers.
  • Implementing Logging: Using structured, contextual logging with zerolog.
  • Refactoring: Improving code structure and consistency across the codebase.

Quick Reference

RuleImpactDescription
Favor Rich Domain ModelsHIGHEncapsulate business logic in domain entities; includes enum patterns
Proper Context UsageHIGHPropagate deadlines, cancellation, and metadata correctly
Pass Context to LoggersHIGHUse zerolog with context for request-scoped logging

How to Use

  1. Read the Rules: Before starting a new feature or refactor, browse the relevant rule files in references/.
  2. Follow the Examples: Use the provided code patterns as templates for your implementation.
  3. Ensure Consistency: Apply the same patterns (e.g., context propagation, logging) across all layers of the application.

For any specific questions on implementation, refer to the individual rule files which contain detailed explanations and code snippets.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

protobuf-developer

No summary provided by upstream source.

Repository SourceNeeds Review
General

go-error-handling

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

Self Updater

⭐ OPEN SOURCE! GitHub: github.com/GhostDragon124/openclaw-self-updater ⭐ ONLY skill with Cron-aware + Idle detection! Auto-updates OpenClaw core & skills, an...

Registry SourceRecently Updated
1171Profile unavailable
Coding

ClawHub CLI Assistant

Use the ClawHub CLI to publish, inspect, version, update, sync, and troubleshoot OpenClaw skills from the terminal.

Registry SourceRecently Updated
1.9K2Profile unavailable