ansible-generator
Generate, create, or scaffold Ansible playbooks, roles, tasks, handlers, inventory, vars.
Generate LogQL queries, log stream selectors, metric queries, and alerting rules for Grafana Loki.
$ npx -y skills add akin-ozer/cc-devops-skills --skill logql-generator --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/logql-generatorContext preview
The summary Claude sees to decide when to auto-load this skill.
Generate LogQL queries, log stream selectors, metric queries, and alerting rules for Grafana Loki.
name: logql-generator description: Generate LogQL queries, log stream selectors, metric queries, and alerting rules for Grafana Loki.
Interactive workflow for generating production-ready LogQL queries. LogQL is Grafana Loki's query language with indexed label selection, line filtering, parsing, and metric aggregation.
Use this skill for query generation, dashboard queries, alerting expressions, and troubleshooting with Loki logs.
Always run stages in order. Do not skip required stages.
Use `AskUserQuestion` to collect goal and use case.
Template:
Fallback if `AskUserQuestion` is unavailable:
Collect: 1. Labels for stream selectors (`job`, `namespace`, `app`, `service_name`, `cluster`) 2. Log format (JSON, logfmt, plain text, mixed) 3. Known fields to filter/aggregate (`status`, `level`, `duration`, `path`, `trace_id`)
Ambiguity and partial-answer handling: 1. If a required field is missing, ask one focused follow-up question. 2. If still missing, proceed with explicit assumptions. 3. Prefix assumptions with `Assumptions:` in the output so the user can correct them quickly.
Collect or infer:
Version compatibility policy: 1. If versions are known, use the newest compatible syntax only. 2. If versions are unknown, use compatibility-first syntax and avoid 3.x-only features by default. 3. For unknown versions, provide an optional "3.x optimized variant" separately.
Avoid by default when version is unknown:
Present a plain-English plan, then ask the user to choose output mode.
Plan template:
LogQL Query Plan Goal: <goal> Query type: <log or metric> Streams: <selector> Filters/parsing: <filters + parser> Aggregation window: <function and [range]> Compatibility mode: <version-aware or compatibility-first>
Mode selection template:
If user does not choose, default to `final query only`.
Complex query triggers:
Blocking checkpoint rule: 1. Read relevant files before generation using explicit file-open/read actions. 2. Minimum file set:
3. Do not generate the final query until this checkpoint is complete.
Fallback when file-read tools are unavailable: 1. State that reference files could not be read in this environment. 2. Generate a conservative query (compatibility-first, simpler operators). 3. Mark result as `Unverified against local references`.
Use external lookup only for version-specific behavior, unclear syntax, or advanced features not covered in local references.
Decision order: 1. Context7 first:
2. WebSearch second (fallback only) when:
WebSearch fallback constraints:
Return one production-ready query plus short explanation.
Use this when requested or when debugging complex pipelines.
Step-by-step template: 1. Stream selector 2. Line filter 3. Parser 4. Parsed-field filter 5. Aggregation/window
Always include: 1. Final query or incremental sequence 2. How to run it (Grafana Explore/panel or `logcli`) 3. Tunables (labels, thresholds, range) 4. Any assumptions and compatibility notes
``
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.