ansible-generator
Generate, create, or scaffold Ansible playbooks, roles, tasks, handlers, inventory, vars.
Generate/create/write PromQL queries, metric expressions, alerting rules, recording rules, Prometheus dashboards.
$ npx -y skills add akin-ozer/cc-devops-skills --skill promql-generator --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/promql-generatorContext preview
The summary Claude sees to decide when to auto-load this skill.
Generate/create/write PromQL queries, metric expressions, alerting rules, recording rules, Prometheus dashboards.
name: promql-generator description: Generate/create/write PromQL queries, metric expressions, alerting rules, recording rules, Prometheus dashboards.
This skill provides a comprehensive, interactive workflow for generating production-ready PromQL queries with best practices built-in. Generate queries for monitoring dashboards, alerting rules, and ad-hoc analysis with an emphasis on user collaboration and planning before code generation.
Invoke this skill when:
**CRITICAL**: This skill emphasizes **interactive planning** before query generation. Always engage the user in a collaborative planning process to ensure the generated query matches their exact intentions.
Follow this workflow when generating PromQL queries:
Start by understanding what the user wants to monitor or measure. Ask clarifying questions to gather requirements:
1. **Primary Goal**: What are you trying to monitor or measure?
2. **Use Case**: What will this query be used for?
3. **Context**: Any additional context?
Use the **AskUserQuestion** tool to gather this information if not provided.
> **When to Ask vs. Infer**: If the user's initial request already clearly specifies the goal, use case, and context (e.g., "Create an alert for P95 latency > 500ms for payment-service"), you may acknowledge these details in your response instead of re-asking. Only ask clarifying questions for information that is missing or ambiguous.
Determine which metrics are available and relevant:
1. **Metric Discovery**: What metrics are available?
2. **Metric Type Identification**: Confirm the metric type(s)
3. **Label Discovery**: What labels are available on these metrics?
Use the **AskUserQuestion** tool to confirm metric names, types, and available labels.
Gather specific requirements for the query.
**IMPORTANT**: When the user has already specified parameters in their initial request (e.g., "5-minute window", "500ms threshold", "> 5% error rate"), you MUST:
1. **Acknowledge the provided values** explicitly in your response 2. **Present them as pre-filled defaults** in AskUserQuestion with the first option being "Use specified values" 3. **Allow quick confirmation** rather than re-asking for information already given
**Example**: If user says "alert when P95 latency exceeds 500ms", use:
AskUserQuestion: - Question: "Confirm the alert threshold?" - Options: 1. "500ms (as specified)" - Use the threshold from your request 2. "Different threshold" - Let me specify a different value
This respects the user's input and speeds up the workflow while still allowing modifications.
1. **Time Range**: What time window should the query cover?
2. **Label Filtering**: Which labels should filter the data?
3. **Aggregation**: Should the data be aggreg
A practical skill pack for DevOps work in Claude Code and Codex desktop. This repository ships 31 skills: 16 generators for scaffolding production-ready configs 14 validators for linting, security checks, and dry-run validation 1 debugger (k8s-debug) for
Repo: akin-ozer/cc-devops-skills
Generate, create, or scaffold Ansible playbooks, roles, tasks, handlers, inventory, vars.
Validate, lint, audit, or debug Ansible playbooks, roles, inventories, FQCN, tasks.
Generate/create/scaffold azure-pipelines.yml, stages, jobs, steps, or reusable templates.
Validate, lint, audit, or review azure-pipelines.yml — syntax, security, best practices.
Create, generate, write, or scaffold bash/shell scripts (.sh), automation, or CLI tools.
Validate, lint, audit, or fix bash/shell/.sh scripts via ShellCheck.