lightspeed-agentic-operator: Skill for Claude Code

.cursor/skills/validate-and-fix/SKILL.md

validate-and-fix is a skill for Claude Code, Cursor from openshift/lightspeed-agentic-operator. It costs 57 tokens per session (810 once invoked), scanned A, original, Apache-2.0.

A repository validation workflow that runs Go tests, Go's code checks, and an API configuration linter, while fixing only simple formatting, import, and test-maintenance problems.

In plain words
What is it for?
Use it after making changes to verify the project, catch formatting or import mistakes, and identify failures in tests or API configuration.
Why use it?
It separates small fixable issues from real logic failures and repeats the checks until they pass or a genuine problem needs attention.

Skill for Claude CodeCursor

Written for Claude Code and Cursor: disable-model-invocation in frontmatter, but also installed under .cursor/. Also seen: mentions CLAUDE.md.

This is openshift/lightspeed-agentic-operator's own configuration. It tells Claude Code and 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 →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd api && GOWORK=off ../bin/golangci-lint-kube-api-linter run --config ../.golangci-kal.yml ./....

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/validate-and-fix/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/openshift/lightspeed-agentic-operator

Made for: Claude Code, 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 validate-and-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/openshift/lightspeed-agentic-operator/validate-and-fix/github.svg)](https://agentmods.dev/skills/openshift/lightspeed-agentic-operator/validate-and-fix)
Your own site
<a href="https://agentmods.dev/skills/openshift/lightspeed-agentic-operator/validate-and-fix"><img src="https://agentmods.dev/badge/skills/openshift/lightspeed-agentic-operator/validate-and-fix/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 validate-and-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/openshift/lightspeed-agentic-operator/validate-and-fix"><img src="https://agentmods.dev/badge/skills/openshift/lightspeed-agentic-operator/validate-and-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 810 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.00057 $0.00810
Opus 5.5 $0.00023 $0.00324
Sonnet 5.5 $0.00011 $0.00162
Haiku 4.5 $0.00006 $0.00081

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

Security

Grade A, and why

validate-and-fix 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/validate-and-fix/SKILL.md · 105 lines

How it starts

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

Validate & Auto-Fix

Run the project validation pipeline, auto-fix trivial issues, and re-run until green or a real failure is found.

Rules

  • This repository has no root Makefile for tests; use go test ./... from the repo root (not operator Makefile conventions from other repos).
  • Never modify production logic to fix a test. Only fix test expectations, imports, formatting.
  • Never skip or delete a failing test.
  • Stop after 3 auto-fix cycles to avoid loops.
  • Report real failures clearly; do not attempt speculative fixes.

Step 1: Run Unit Tests

go test ./... -count=1 2>&1 | tail -80

If all pass, proceed to Step 3 (vet / fmt). If failures occur, classify each failure (see Step 2).

Step 2: Classify and Fix Failures

For each failure, determine its type:

Auto-fixable (fix immediately, then re-run Step 1):

Type Fix
Test expects old constant value Update assertion to match new value
Test uses renamed function Update function name in test
Import error from refactor Update import path
Missing cleanup in test Add cleanup or use existing cleanup helpers

Real failures (do not auto-fix):

  • Logic errors in production code
  • Assertion failures reflecting actual behavior regressions
  • Reconciliation loop failures
  • Context cancellation issues
  • Failures in code you did not modify

For real failures: report the test name, file, error message, and stop.

Step 3: go vet and formatting

go vet ./... 2>&1 | tail -40
go fmt ./...

Fix straightforward vet issues (unused vars in tests, etc.) and re-run.

Step 4: API module — kube API linter (when API types changed)

If files under api/v1alpha1/ (or other api/ packages) were touched, run the custom kube API linter from the repo root:

golangci-lint custom
cd api && GOWORK=off ../bin/golangci-lint-kube-api-linter run --config ../.golangci-kal.yml ./...

See CLAUDE.md in the repo for details. Fix reported issues or stop if they need design discussion.

Read the full file on GitHub · 105 lines

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 · 105 lines · 57 tokens per session scan A 27acb20112f7

Subscribe to this mod's changes

validate-and-fix is a skill published in the GitHub repository openshift/lightspeed-agentic-operator (15 stars, last pushed today), licensed Apache-2.0. It adds 57 tokens to every session and 810 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

systematic-debugging

4-phase root cause debugging: understand bugs before fixing.

NousResearch/hermes-agent · 16 tokens

observability-langsmith

LLM observability platform for tracing, evaluation, and monitoring. Use when debugging LLM applications, evaluating model outputs against datasets, monitoring production systems, or building systematic testing pipelines for AI applications.

davila7/claude-code-templates · 44 tokens

reenable-test

Guide for investigating, fixing, verifying via TDD, and re-enabling disabled or flaky Chromium tests (C++, Android Java, or WebUI). Use this skill when asked to deflake, fix, or re-enable a disabled or flaky test case, or to verify post-submit stability of a re-enabled test. Don't use for disabling a failing test…

chromium/chromium · 85 tokens

experimental-code-coverage-local-debugger

Runs code coverage locally via Universal Test Runner (UTR) or helper scripts, mimicking LUCI trybots. Activate when CQ tryjobs fail or underreport coverage, to test local GN/recipe repairs before uploading, or to debug hermetic crashes.

chromium/chromium · 59 tokens

verify-omnigent

Drive Omnigent the way a user does and prove a behavior with recorded evidence, using an isolated server, runner, and mock model plus a feature map of every user entry point. Load before reproducing a user-facing bug, before claiming a fix works, or when reviewing whether a change covered every surface (session vs.…

omnigent-ai/omnigent · 100 tokens

cli-e2e

Write, modify, or debug Docker-based Composio CLI end-to-end tests under ts/e2e-tests/cli, including binary invocation, fixture isolation, output assertions, and package manifests. Use for CLI E2E test suites only; use cli-command for CLI source implementation.

ComposioHQ/composio · 62 tokens