Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

admission-control

Skill by grafana

Guides developers writing validation and mutation admission handlers for grafana-app-sdk apps. It covers Validator and Mutator interfaces, registration in pkg/app/app.go, and common checks run before resources are persisted.

  • Score 79
  • 326 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install admission-control

Built from the published package, never by AI.

git clone --depth 1 https://github.com/grafana/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/grafana-app-sdk/admission-control ~/.claude/skills/admission-control

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install admission-control in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill explains how to write admission control for grafana-app-sdk apps. Admission handlers intercept create and update requests before they are persisted. Validators accept or reject a request but cannot modify the resource. Mutators can modify the resource, for example to set defaults or normalize fields.

The skill shows the Validator and Mutator interfaces, example handler code, and how to register handlers in pkg/app/app.go using simple.AppConfig. It also lists the AdmissionRequest fields and common patterns such as immutability and cross-field checks. The handler code is the same for standalone operators and grafana/apps, which differ only in runtime. It is aimed at developers building grafana-app-sdk apps in Go.

Written from the project's SKILL.md and checked against it.

What it can do

  • Validator interfaceShows how to accept or reject create and update requests for a kind.
  • Mutator interfaceShows how to modify a resource before it is persisted, such as setting defaults.
  • Handler registrationExplains how to register validators and mutators in pkg/app/app.go.
  • AdmissionRequest fieldsLists fields such as Object, OldObject, Action and UserInfo.
  • Validation patternsCovers immutability checks, cross-field validation and referential checks.
  • Deployment modesExplains the runtime difference between standalone operators and grafana/apps.

What you need

  • A grafana-app-sdk app
  • Go
  • grafana-app-sdk CLI to generate a stub App for standalone apps

Try asking

  • Write a validator for my grafana-app-sdk kind that checks spec.title
  • Add a mutating handler that sets default fields on create
  • Show me how to register admission handlers in pkg/app/app.go

Good to know

  • Validators cannot modify the resource; only mutators can.
  • Best practice is to reject requests from validators, not mutators.
  • Mutation and validation must also be enabled in the kind's CUE definition.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/grafana-app-sdk/admission-control/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • references/admission-patterns.md8 KB

Alternatives to admission-control

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

admission-control: common questions

What is the difference between validation and mutation in grafana-app-sdk?

Validation accepts or rejects a request and cannot modify the resource. Mutation modifies the resource before it is persisted.

Does admission code change between standalone operators and grafana/apps?

No. The handler code is identical. Standalone apps run their own webhook server, while grafana/apps registers handlers as an in-process Kubernetes plugin.

What must be enabled in the kind definition for admission to run?

Mutation and validation must be enabled in the CUE kind definition through the mutation.operations and validation.operations fields.

How do I install admission-control?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is admission-control free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is admission-control safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to admission-control?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

admission-control Install

Add to stack

Loading.