Code Design banner
kurniacf kurniacf

Code Design

Design community

Description

# Skill — Code Design (SOLID + project idioms) ## Go (backend) ### Clean Architecture layering (enforced) ``` handler → usecase → repository / gateway → entity ``` - **Never** import between layers except downward. Handler never instantiates a repo. - Repositories return **domain entities**, not DTOs. Usecase maps entity ↔ DTO. - Entities hold **behaviour** (methods like `IsBanned()`, `RecordLogin()`) — not just data. ### Go idioms we keep - `context.Context` is **always** the first parame

Installation

Installs to ~/.claude/skills/kurniacf-lontar-method-ai-agent-code-design/SKILL.md

Terminal
mkdir -p ~/.claude/skills/kurniacf-lontar-method-ai-agent-code-design && curl -fsSL https://raw.githubusercontent.com/kurniacf/lontar-method-ai-agent/HEAD/skills/code-design.md -o ~/.claude/skills/kurniacf-lontar-method-ai-agent-code-design/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository