What problem does it solve?
Editing production Go code in a large daemon codebase without consistent rules leads to leaked goroutines, untracked subprocesses, inconsistent error handling, and configuration drift. This Skill enforces Compozy's canonical engineering rules before any change to non-test Go files under cmd or internal.
Core Features & Use Cases
- Rule Routing and Loading: Routes each change to the correct canonical references (coding style, concurrency patterns) and companion skills for tests, cleanup paths, schema migrations, API contracts, or network work.
- Ownership Auditing: Verifies every changed error, resource, goroutine, process, and shared state has exactly one explicit owner, with cleanup-failure-path audits for multi-step teardown.
- Verification Gates: Runs make lint, scoped go test -race, cross-build checks for subprocess work, and make gate before PR CI.
- Use Case: When adding a new background job to the session manager, the Skill ensures the goroutine is tracked by a Manager-owned WaitGroup, detached via context.WithoutCancel, logged with slog correlation keys, and verified with race-enabled tests.
Quick Start
Ask the AI to review or modify a production Go file under cmd or internal using the Compozy code guidelines before making the change.