skills/local/cali-coding-standards/SKILL.md
[Cali] Universal coding standards and principles for all languages and frameworks. Use when writing, reviewing, or refactoring code. Covers KISS, DRY, LoB, SoC, Fail Fast, Convention over Configuration, and more. Automatically activates on Go projects alongside cali-coding-go-standards. Provides file/function size limits, CI enforcement patterns, and tie-breaker rules for conflicting principles.
npx skillsauth add renatocaliari/agent-sync-public-skills cali-coding-standardsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Tools: See
references/cli-tools/for tool-specific patterns.
This skill defines universal coding principles that apply to ALL projects regardless of language or framework. For Go-specific rules, see cali-coding-go-standards. For Go + Datastar stack patterns, see cali-coding-go-stack.
Prefer the boring solution. Clever code is a liability for both humans and LLMs.
Wait for the third repetition before abstracting. Premature DRY creates the wrong abstraction.
Follow established conventions of the language/framework before introducing custom config.
Simple by default, complexity behind toggles.
Interfaces for extensibility only when it adds real value.
For Datastar, HTMX, or Alpine.js frontend: behavior lives in the HTML that uses it.
data-*, @get, @post, data-on, data-bind, data-signal)For backend (Go handlers, services, repos) and non-Datastar frameworks (React, Vue, Svelte).
Validate at the boundary. Return errors immediately.
Prefer Server-Sent Events over WebSockets for one-directional updates.
Backend determines which actions the user can take.
Don't build for future needs. Implement only what's needed now.
When LoB and SoC conflict:
| Context | Principle |
|---|---|
| Datastar frontend (data-* attributes) | ✅ LoB — behavior in the HTML that uses it |
| Datastar project backend (Go handlers) | ✅ SoC — separation into layers |
| Non-Datastar project (React, Vue, etc.) | ✅ SoC — everything in separate layers |
| Mix Datastar + other framework | ⚠️ LoB on Datastar frontend, SoC on rest |
| Unsure | SoC is the safe default |
When working on Go + Datastar projects, cali-coding-go-stack extends these principles with stack-specific rules:
| Rule | Universal | Go Override |
|---|---|---|
| Lines per function | 50 | 100 |
| Lines per file | 400 | 500 |
| HTML in code | Allowed | fmt.Sprintf with HTML tags: BLOCKED by CI |
Why Go relaxes limits: Typed language, explicit error handling adds lines, Go convention favors longer but linear functions.
Why HTML in Go is blocked: Go's html/template handles XSS escaping automatically. fmt.Sprintf bypasses this safety. CI enforces: grep -r 'fmt\.Sprintf.*<' . must return empty.
See references/file-function-sizes.md for detailed limits by language and enforcement patterns.
| Metric | Universal | Go Override | |---|---|---| | Lines per function | 50 | 100 | | Lines per file | 400 | 500 | | Cyclomatic complexity | 10 | 10 | | Indentation depth | 3 levels | 3 levels |
See references/ci-enforcement.md for CI patterns to enforce these standards.
When applying these principles, produce code that:
fmt.Sprintf with HTML tags in Goif err != nil { return nil })| Skill | Relationship |
|---|---|
| cali-coding-go-standards | Go-specific engineering rules (concurrency, linting, security) |
| cali-coding-go-stack | Go + Datastar stack patterns (extends these principles) |
| cali-product-tech-planning | Uses these principles for tech plan generation |
This skill is part of the global skills collection at ~/.agents/skills/. No installation needed — it's automatically discovered by any CLI that supports Agent Skills.
tools
Extrai métricas estruturadas, cálculos e estimativas de transcripts de entrevistas com clientes do Sommelier de IA. Produz um JSON com dores, frequências, tempo gasto, pessoas envolvidas, economia potencial, ROI e recomendações financeiras. Projetado para alimentar o cali-degustia-diagnostico ou integrar com dashboards/planilhas.
tools
Guia a coleta de depoimentos de clientes do Sommelier de IA no momento certo do processo, usando a abordagem de Hormozi: pedir depois da primeira evidência de resultado, nunca na entrega. Gera depoimentos mais autênticos e reduz a sensação de que o cliente está sendo "solicitado".
development
[stelow] Full UX critique for visual interfaces. Accepts a live URL, source code directory, or screenshot image. Evaluates accessibility (WCAG AA), Nielsen's 10 heuristics, visual hierarchy, cognitive load, consistency, mobile responsiveness, AI slop, emotional journey, and design personas — then generates a classified gap report. Standalone or integrated into stelow and stelow-product-testing-execution.
development
Building trust through perception and guarantee mechanisms. Covers ten pillars to materialize trust, guarantee types from unconditional to anti-guarantees, and strategic approaches for different contexts.