resource-template-engine

Generate kube-state-metrics configurations and Prometheus alert rules for Crossplane resource types.

4|1|Updated Jan 17, 2026
One-click install
npx skills add https://github.com/kingdon/skills --skill resource-template-engine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resource-template-engine
Source: https://github.com/kingdon/skills/tree/main/.github/skills/resource-template-engine
Command: npx skills add https://github.com/kingdon/skills --skill resource-template-engine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Crossplane resource onboarding often requires manual templating for kube-state-metrics configurations and Prometheus alert rules. This skill automates template generation, enabling rapid, consistent monitoring for new resource types.

Core Features & Use Cases

  • Automated generation of kube-state-metrics configurations for Crossplane resources.
  • Creation of PrometheusRule-based alerts to monitor resource health and drift.
  • Scalable onboarding workflow that detects new Crossplane resources and applies templates with minimal manual steps.
  • Use Case: When a new Crossplane resource (e.g., a database or network type) is introduced, the skill generates the appropriate metric templates and alert rules and deploys them to the monitoring namespace.

Quick Start

Use the /template-generate slash command to onboard a new Crossplane resource type and generate its monitoring templates.

Frequently Asked Questions about resource-template-engine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Prometheus alert rules for new Crossplane resources?

To generate Prometheus alert rules for Crossplane resources, you can use a template-generation skill that categorizes resources into database, network, compute, or storage patterns and outputs PrometheusRule configurations automatically.

What is the best way to automate kube-state-metrics configuration for Crossplane?

Automating kube-state-metrics configuration for Crossplane involves discovering new resource types via the Kubernetes API and generating matching monitoring templates, ensuring consistent metric coverage without manual YAML templating.

Do I need Prometheus installed before applying Crossplane monitoring templates?

Yes, you need Prometheus installed and ready. The template validation workflow checks Kubernetes connectivity, Crossplane installation, the template directory structure, and Prometheus readiness before applying any generated monitoring templates.

Can I onboard multiple Crossplane resource types for monitoring at scale?

Yes, you can onboard Crossplane resources for monitoring at scale. The skill detects new resource types and applies generated metric templates and alert rules to the monitoring namespace with minimal manual steps.

Why are my Crossplane resource metrics not showing up in Prometheus?

Crossplane resource metrics may not show up if the validation workflow fails, which checks Kubernetes connectivity, Crossplane installation, template directory structure, and Prometheus readiness before deploying the required kube-state-metrics templates.

How do I start generating monitoring templates for a new Crossplane database resource?

To start generating monitoring templates for a Crossplane database resource, run the template-generate slash command to onboard the new type and deploy the appropriate metrics and alert rules.