lightspeed-agentic-operator: Skill for Cursor

.cursor/skills/go-code-review/SKILL.md

go-code-review is a skill for Cursor from openshift/lightspeed-agentic-operator. It costs 41 tokens per session (856 once invoked), scanned A, original, Apache-2.0.

A Go code-review guide covering common mistakes, error handling, concurrency, resource cleanup, and interface design. Go is a programming language commonly used for services and tools.

In plain words
What is it for?
Use it when reviewing Go files, including Kubernetes operator code, to inspect errors, goroutines, channels, context use, resource closing, interfaces, and resource ownership.
Why use it?
It provides checks for bugs and maintainability problems that can be easy to miss during a normal review.

Skill for Cursor

Written for Cursor: installed under .cursor/.

This is openshift/lightspeed-agentic-operator's own configuration. It tells Cursor how to work on lightspeed-agentic-operator itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything lightspeed-agentic-operator configures →

Reuse

Borrowing it

Nothing to install: this file belongs to openshift/lightspeed-agentic-operator. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/openshift/lightspeed-agentic-operator/main/.cursor/skills/go-code-review/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/openshift/lightspeed-agentic-operator

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for go-code-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/openshift/lightspeed-agentic-operator/go-code-review/github.svg)](https://agentmods.dev/skills/openshift/lightspeed-agentic-operator/go-code-review)
Your own site
<a href="https://agentmods.dev/skills/openshift/lightspeed-agentic-operator/go-code-review"><img src="https://agentmods.dev/badge/skills/openshift/lightspeed-agentic-operator/go-code-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for go-code-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/openshift/lightspeed-agentic-operator/go-code-review"><img src="https://agentmods.dev/badge/skills/openshift/lightspeed-agentic-operator/go-code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 856 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00856
Opus 5.5 $0.00016 $0.00342
Sonnet 5.5 $0.00008 $0.00171
Haiku 4.5 $0.00004 $0.00086

Measured 1mo ago against content hash b9dce362394c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go-code-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/skills/go-code-review/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Go Code Review

Quick Reference

Issue Type Reference
Missing error checks, wrapped errors references/error-handling.md
Race conditions, channel misuse references/concurrency.md
Interface pollution, naming references/interfaces.md
Resource leaks, defer misuse references/common-mistakes.md

Review Checklist

  • All errors are checked (no _ = err)
  • Errors wrapped with context (fmt.Errorf("...: %w", err))
  • Resources closed with defer immediately after creation
  • No goroutine leaks (channels closed, contexts canceled)
  • Interfaces defined by consumers, not producers
  • Interface names end in -er (Reader, Writer, Handler)
  • Exported names have doc comments
  • No naked returns in functions > 5 lines
  • Context passed as first parameter
  • Mutexes protect shared state, not methods

Kubernetes Operator Specific

  • Owner references set with controllerutil.SetControllerReference()
  • Finalizers added/removed safely (check for DeletionTimestamp)
  • Context propagated through reconcile loops
  • Client errors handled (distinguish NotFound vs other errors)
  • Status updates separate from spec changes
  • Resource watching pattern: Owned resources tracked via ResourceVersion; external dependencies use explicit watches or indexing as appropriate for the controller
  • Reconcile functions are idempotent (safe to call multiple times)
  • Resource updates check semantic equality first (apiequality.Semantic.DeepEqual)
  • Return ctrl.Result{Requeue: true} for transient issues, errors for permanent failures
  • RBAC markers (//+kubebuilder:rbac) present for all resource access in controllers

When to Load References

  • Reviewing error return patterns → error-handling.md
  • Reviewing goroutines/channels → concurrency.md
  • Reviewing type definitions → interfaces.md
  • General Go review → common-mistakes.md

Read the full file on GitHub · 85 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 85 lines · 41 tokens per session scan A b9dce362394c

Subscribe to this mod's changes

go-code-review is a skill published in the GitHub repository openshift/lightspeed-agentic-operator (15 stars, last pushed today), licensed Apache-2.0. It adds 41 tokens to every session and 856 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pr-to-go-linter

Generate a new pkg/linters analyzer from a merged or open PR pattern.

github/gh-aw · 22 tokens

golang-refactoring

Golang refactoring — safe, at-scale restructuring of existing Go code: a coverage-adaptive safety net, behavior-preserving transforms (gopls Rename/Extract, gofmt -r, gopatch), the Fowler catalog mapped to Go, breaking import cycles, and small stacked PRs. Apply when a function or type has grown too large, a code…

samber/cc-skills-golang · 220 tokens

go-spec-reviewer

Review design specification documents for Go programs before implementation begins. Use this skill when a user has a Go spec, design doc, RFC, or PRD to review, wants feedback on a planned feature in a Go codebase, is about to start implementing from a spec, or asks "is this spec ready?" or "review this before I build…

spf13/go-skills · 99 tokens

design-review

Deep design review of Go codebase — naming, structure, consistency, interfaces, error handling. Scores each dimension and provides actionable fixes.

dimetron/pi-go · 30 tokens

agents-md

Generate AGENTS.md files for Go, Rust, TypeScript, and Java projects. Use this skill whenever the user asks to create, scaffold, bootstrap, update, or review an AGENTS.md (or agent-instructions, CLAUDE.md, repo guide for agents) file in a codebase. Also trigger when the user says "add AGENTS.md", "make this repo…

dimetron/pi-go · 138 tokens

ring:verifying-code

Verifying a Go project: runs every quality check (lint, vet, imports, format, docs, unit, integration, E2E) and returns a single MERGEREADY or NEEDSFIX verdict. Report-only: never fixes anything. Use for a quick pre-merge or pre-PR check outside a full dev-cycle. Skip when not a Go project, when you want a single…

LerianStudio/ring · 101 tokens