Commit 94a9ed3
chore: add conv and o11y guidance to golang skill (Vibe Kanban) (#1589)
## Summary
- Added a **Conversion utilities** section to the golang skill
documenting the `server/internal/conv` package (`Ptr`, `PtrEmpty`,
`PtrValOr`, `Default`, pgtype converters, `Ternary`) with an emphasis on
using these existing helpers instead of reimplementing them inline.
- Added an **Observability** section documenting `o11y.LogDefer` and
`o11y.NoLogDefer` with exact function signatures, usage guidance, and
real-world examples (file closes, transaction rollbacks, HTTP response
body closes).
- Includes a rule that bare `defer resource.Close()` calls should be
avoided in favour of these wrappers for proper error traceability.
## Why
Agents frequently reimplement pointer helpers, pgtype conversions, and
deferred cleanup patterns inline instead of using the existing `conv`
and `o11y` packages. Adding explicit guidance to the golang skill
ensures these packages are discovered and used consistently across the
codebase.
## Test plan
- [x] Verify the skill file renders correctly and examples are accurate
- [x] Confirm function signatures match the actual `conv` and `o11y`
package implementations
This PR was written using [Vibe Kanban](https://vibekanban.com)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent b28db7d commit 94a9ed3
1 file changed
+75
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
220 | 295 | | |
221 | 296 | | |
222 | 297 | | |
| |||
0 commit comments