Compozy Code Guidelines
SkillFiles & storageGuides your agent to follow project coding rules when writing or editing production Go files, including lint and test verification.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Compozy Code Guidelines skill
About this capability
Go production discipline for Compozy. Use when writing or editing non-test Go files under cmd or internal, including config, logging, CLI, concurrency, and process-lifecycle paths. Do not use for Go tests; pair it with the narrower schema, contract, cleanup, or network skill when those domains apply
What this skill tells your AI
The instructions your AI receives, as published by compozy/compozy in .agents/skills/eng/eng-code-guidelines/SKILL.md and read by ahel’s review.
Apply the canonical Compozy rules before changing production Go. This file owns the application order; its references own the rules.
Procedures
Step 1: Route the Change
- Confirm the target is a production Go file (
cmd/**orinternal/**, not*_test.go). - Activate
golang-master. Also activate the matching narrow skill for tests, cleanup paths, schema migrations, API contracts, orinternal/networkwork. - Read
.agents/skills/eng/eng-code-guidelines/references/coding-style.mdin full. Also read.agents/skills/eng/eng-code-guidelines/references/concurrency-patterns.mdin full when the change touches goroutines, shared state, detached lifetime, subprocesses, shutdown, timers, mutexes, or channels.
Done when: the edit surface and every matching companion domain are named, and every applicable canonical reference is loaded.
Step 2: Apply the Canonical Rules
- Apply every matching rule from the loaded references; do not copy a subset into task notes or local conventions.
- Trace the change through error identity, cleanup, context, logging, types, configuration lifecycle, CLI boundaries, comments, package boundaries, goroutine ownership, detached execution, and subprocess supervision.
- Repair violations in the touched behavior. Record unrelated pre-existing violations without expanding the change silently.
Done when: every reference heading that intersects the change has been checked and no touched path violates a matching rule.
Step 3: Audit Ownership
- Enumerate each changed error, resource, goroutine, process, and mutable shared state owner.
- If setup or teardown has more than one fallible step, complete
eng-cleanup-failure-pathsbefore continuing. - Verify that public behavior remains manageable through the required CLI, HTTP, UDS, native-tool, extension, config, docs, and official-skill surfaces.
Done when: every changed lifetime has one explicit owner and every public contract has a complete Compozy Impact Audit.
Step 4: Verify Once
- Run
make lintand scopedgo test -race ./<owning-package>/...for the changed package. - Run cross-build or Linux-race parity checks only when the concurrency reference routes the change there.
- Run
make gateafter source freeze; exact-head PR CI owns full completion verification.
Done when: scoped lanes and the local gate are green; exact-head PR CI is scheduled or green for the enclosing workstream.
Error Handling
- Existing file already violates the rules: fix what the current behavior touches; record unrelated debt without silently expanding scope.
errors.Is/errors.Asis impossible because the dependency returns a string: wrap once at the boundary in a typed error of yours; downstream code matches on your typed error.- Reflection genuinely required (codegen, decoder): keep a written justification adjacent to the reflection call. Lint exception requires a
//nolint:directive with a reason. panicshows up in seemingly-production code: confirm whether the path is reachable post-main. If it is, replace with explicit error return; if it is genuinely unreachable, mark with// unreachable: ...and preferpanic("invariant: ...")overlog.Fatal.- CLI command silently ignores a flag: verify with
cmd.Flags().Changed(name); if the flag is meaningfully optional, document the resolution chain and emit an explicitslogdebug line when the default is taken.
Signals
- GitHub stars
- 3k
- Forks
- 177
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
eng-code-guidelines- Source
- github.com/compozy/compozy