Download for MacApple silicon, macOS 14+
Skill

reconciler-logic

@grafana Updated 2026-10-17

Implement reconcilers and watchers for grafana-app-sdk apps — write `TypedReconciler[*MyKind]` reconcile functions, apply generation-based skip patterns, do conflict-safe status updates via `resource.UpdateObject`, configure `BasicReconcileOptions` (namespace, label/field filters, finalizer management), use `Watcher` for event-style handling, reconcile `UnmanagedKinds` (resources your app doesn't own), and register the whole thing in `app.go`. Use when writing a reconciler, implementing the reconcile loop, adding async business logic, handling create/update/delete events, processing resource state changes, scheduling periodic resyncs with `RequeueAfter`, picking between Watcher and Reconciler, or wiring a controller into `app.go` — even when the user says "process this resource", "handle X events", or "write a controller" without saying "reconciler".

Install

With your agent

Install OMGSkills skill "grafana/skills:reconciler-logic" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/grafana/skills /tmp/skills && ln -s /tmp/skills/skills/grafana-app-sdk/reconciler-logic ~/.claude/skills/reconciler-logic

From README

Reconciler Logic Reconcilers are the async business-logic layer of a grafana-app-sdk app. The SDK enqueues a reconcile event when a resource is created, updated, or deleted; the reconciler observes the current state and drives the system toward the desired state. Common Workflows Implementing a new reconciler end-to-end If the operator starts but no reconcile events fire when you create a resource: Check BasicReconcileOptions.Namespace matches the resource's namespace Check BasicReconcileOptions.LabelFilters / FieldSelectors — most "no events" issues are filter mismatches (kubectl get -o yaml to see labels) Confirm the reconciler was attached to the right (latest) version of the kind TypedReconciler — preferred pattern operator.TypedReconciler handles type assertion and provides a strongly-typed ReconcileFunc: ReconcileAction values: ReconcileActionCreated, ReconcileActionUpdated, ReconcileActionDeleted, ReconcileActionResynced. To requeue after a delay (e.g.