/nonoise:ops-skill-builderfrom nonoise
Meta-skill that coaches the AI + user pair through any operational task (deploy, pipeline, provision, migrate, rollback, diagnose, debug-wiring) in any stack, then crystallizes the successful workflow into a project-local reusable skill. Asks WHAT the user wants to achieve, proposes an access menu (CLI > API > Web), gathers context from `docs/architecture/` + optional `codebase-memory` graph, proposes a dry-run plan with risk annotations, executes in paired or delegated mode, and — on success — invokes `skill-creator` to save the command sequence as a project-local skill under `.claude/skills/<slug>/SKILL.md`. Triggers — "deploy this service", "create a CI/CD pipeline for X", "set up rollback", "provision dev env", "run this migration", "automate this ops thing I do manually", "ops on Azure / AWS / GCP / kubernetes", or turning a manual op into a repeatable team skill. Also triggers without explicit mention when the user describes a repeated manual ops workflow with no fitting deploy skill available.
Ships in nonoise. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This is a meta-skill. It does not ship a canned deploy or pipeline recipe. Instead, it coaches the AI + user pair through a five-phase flow:
The philosophy is the inverse of "ship a generic deploy skill". A generic deploy skill works 60% of the time because every organization is different. This skill builds your deploy skill, which works 100% of the time because it was grown from your environment, your access model, your constraints.
This skill sits on the operations axis, orthogonal to the architectural axis (arch-brainstorm → arch-decision → sprint-manifest → spec-to-workitem). It is called any time the team needs to perform or automate an ops task.
┌───────────────────────────────────────────────────────────────┐
│ operations axis │
│ │
│ user describes an ops task │
│ │ │
│ ▼ │
│ ┌────────────────────────────┐ │
│ │ ops-skill-builder │ │
│ │ │ │
│ │ Phase 0 Intent │ │
│ │ Phase 1 Access (menu) │ │
│ │ Phase 2 Context │──┐ │
│ │ Phase 3 Operation plan │ │ (may query code graph) │
│ │ Phase 4 Execute │ │ (may call arch docs) │
│ │ Phase 5 Crystallize │──┼──▶ skill-creator │
│ │ │ │ │
│ └────────────────────────────┘ │ │
│ ▼ │
│ .claude/skills/<slug>/SKILL.md │
│ (project-local, shareable via git) │
└───────────────────────────────────────────────────────────────┘
Related skills:
../skill-creator/SKILL.md — invoked in Phase 5 to crystallize the successful flow.../codebase-memory/SKILL.md — used in Phase 2 when the operation needs code-level awareness (rollback mapped to the right module, a migration driven by schema references, etc.).../observability-debug/SKILL.md — paired skill for production debugging: this skill handles Phase 0 "wire correlation-ID tracking on the code side" (an ops concern: configure App Insights / Datadog / OpenTelemetry), then observability-debug takes over Phase 1+ (read traces, find the bug, propose a fix).../spec-to-workitem/SKILL.md — sibling in spirit (adapter pattern, env-var auth, dry-run default).references/access-patterns.md with concrete examples for Azure / AWS / GCP / GitHub / Azure DevOps / Jira / Kubernetes / Terraform.docs/architecture/ (project constraints), nonoise.config.json (project metadata + working language), optionally queries the code graph (codebase-memory skill — index_repository the first time, then get_architecture / search_graph / trace_path), and probes the target environment (az account show, kubectl config current-context, gh auth status, etc.).non-destructive / reversible / destructive.skill-creator. The generated skill becomes the team's source of truth for "how we do this op in THIS project".references/access-patterns.md.docs/architecture/ — read-only on the source of truth. If the operation uncovers an architecture drift, it is surfaced as a recommendation, not a silent edit.observability-debug for production debugging — it only sets up the correlation-ID wiring on the code side.$ARGUMENTS can be:
intent=<category> — skip Phase 0 category selection (e.g. intent=deploy, intent=pipeline, intent=rollback).access=cli|api|web — skip Phase 1 access negotiation (use only if the user is already sure).dry-run — force dry-run for Phase 4 (default anyway, but explicit).paired — force paired execution mode.delegated — force delegated execution mode (requires explicit plan confirmation regardless).skill-slug=<slug> — pre-declare the crystallization target (Phase 5).If arguments are missing, the skill asks interactively — one question at a time, multiple-choice when possible, in the style of arch-brainstorm.
Goal: understand what the user wants to achieve, in concrete terms.
Ask the opening question (verbatim or adapted):
"What do you want to achieve? In your own words — one sentence is fine. If you don't have a specific task yet, tell me the area (deploy / pipeline / provision / rollback / migrate / scale / cron / diagnose / debug-wiring / custom) and we'll narrow down."
Map to a category. Use this table as a guide — not as a strait-jacket. If the user's intent doesn't match, pick custom and work from their words.
| Category | Typical phrasing | Notes |
|---|---|---|
deploy | "deploy service X to env Y" | Push a built artifact to a runtime environment |
pipeline | "create a CI/CD pipeline for X" | Configure a build/release pipeline on the chosen CI vendor |
provision | "set up a dev environment", "create a new cluster" | Create infrastructure from scratch |
teardown | "delete the sandbox env", "clean up this experiment" | Remove infrastructure, explicit confirmation required |
rollback | "undo the last deploy", "roll back to version N" | Reverse a previous deploy |
migrate | "run this DB migration", "move data from A to B" | Schema or data migration |
scale | "scale X up/down", "adjust autoscaler" | Change resource sizing |
cron | "schedule a job that runs every night" | Create a scheduled task |
diagnose | "figure out why prod is slow" | Read-only investigation |
debug-wiring | "wire correlation-ID tracking so the AI can debug prod" | Code-side observability setup — Phase 0 of the prod-debug flow. After this skill finishes, hand off to observability-debug. |
custom | anything else | Use the user's own words |
Ask about existing infra — one sentence:
"Do you already have infrastructure for this, or is this a greenfield op? In one sentence — e.g. 'We have an AKS cluster on Azure with 3 services, deployed via Helm from a GitHub Actions pipeline', or 'Nothing yet, we're starting from scratch'."
Acknowledge and summarize. Before moving on, read back what you understood. Invite correction.
custom)Goal: agree on HOW the AI will reach the target environment.
The philosophy (CLI > API > Web, never-silent-login, fallback protocol, OIDC for CI, browser-MCP pins) lives in the shared reference ../_shared/access-model.md. The operational prompt the skill shows the user stays here.
Use this exact framing (adapt to the user's language from nonoise.config.json if it's not English):
"I need access to your target environment to help execute this. In order of simplicity:
- CLI access — you grant me permission to run
az/gcloud/aws/gh/kubectl/terraform/ project-specific binaries on your behalf. Simplest, fastest, most auditable (your shell history keeps a record). This is my recommendation.- API access — I call the cloud provider's REST API using a token you configure via env var (PAT, OIDC, service principal). Works when no CLI is installed or when the CLI is locked behind SSO.
- Web access — I navigate the vendor's web UI. This is more complex: it typically requires a browser MCP server (e.g. Playwright MCP) or pairing with you where you drive and I dictate.
Which works for you? If unsure, go with #1."
../_shared/access-model.md — tier definitions, probe pattern, fallback protocol, OIDC federation for CI, browser-MCP pins per AI tool. Read this for the generic philosophy.references/access-patterns.md — concrete per-tool probes for Azure / AWS / GCP / GitHub / Azure DevOps / Kubernetes / Terraform / Pulumi / Helm / Jira / Linear, plus Windows-bash quirks. Read this for the exact commands.At a glance:
| Access tier | Typical commands to check it's live |
|---|---|
| CLI | az account show, gcloud auth list, aws sts get-caller-identity, gh auth status, kubectl config current-context, terraform version, pulumi whoami |
| API | probe the provider's "whoami" endpoint with the user-supplied token — e.g. Azure DevOps GET /_apis/connectionData, GitHub GET /user, Jira GET /rest/api/3/myself |
| Web | probe that a browser MCP server is configured (mcp__playwright__navigate or equivalent; see _shared/access-model.md § 7 for the pinned package per AI tool). If not, explain this will be pair-driven. |
Follow the fallback protocol documented in ../_shared/access-model.md § 3: when the preferred tier fails, explain → propose → ask → record. Never silently downgrade.
If none of the three tiers is feasible, stop and ask the user whether to install the missing CLI, generate the missing token, configure the missing browser MCP, or defer. Per global rule, LSP/runtime installs are advisor-only — print the install command, do not run it.
Goal: know enough about the project AND the target environment to produce a safe, realistic plan.
Read nonoise.config.json — extract working_language, framework_version, installed_skills. Working language governs the operation's output language; the generated skill in Phase 5 inherits it.
Read docs/architecture/ — in this order:
01-constraints.md — hard constraints (cloud provider, vendor restrictions, compliance)Read the repo root — CLAUDE.md, AGENTS.md, .github/copilot-instructions.md if present (they may declare ops rules specific to this project).
Optionally query the code graph (codebase-memory skill, codebase-memory-mcp MCP tools) — only if the operation needs code-level awareness:
search_graph, then trace_pathsearch_graph / search_codeget_architecturesearch_graph, then get_code_snippetIf list_projects does not show this repository, ask the user: "This op needs code-level context. Would you like me to index the codebase with index_repository? It runs once; the graph then stays in sync while a session is open." On decline, proceed without it. When the MCP tools are not connected, the same tools run as codebase-memory-mcp cli <tool>.
Using the access granted in Phase 1, probe the target to learn its state:
| Access tier | Probe examples |
|---|---|
| CLI | az aks list, kubectl get ns, gh pipeline list, gcloud run services list, aws s3 ls, terraform state list |
| API | curl whatever's the equivalent "list" endpoint |
| Web | navigate to the provider's dashboard and read back what's visible |
Before Phase 3, summarize to the user in ~100 words what you learned. Example:
"I read your
docs/architecture/01-constraints.md: you're Azure-only, multi-region (italynorth + westeurope), compliance requires encryption-at-rest on all data stores. I probed your AKS: clusteraks-fooinrg-bar, 3 namespaces (dev,test,prod), 5 services already deployed.kubectlworks withviewrole on all namespaces.az acr show --name acrxxxworks. You're good to go for a dev-side deploy — I'd need an additional approver for prod."
Invite correction. Move to Phase 3 only on explicit user "ok".
nonoise.config.json + docs/architecture/ readGoal: turn natural-language intent into a concrete ordered plan, with risk annotations.
Ask the specific operation. In the user's words:
"Now, specifically: what do you want to do? Describe it like you'd tell a colleague. e.g. 'Deploy service
payments-apiversion 1.4.2 to the dev namespace'."
Translate into an ordered plan. Each step gets:
non-destructive, reversible, destructivePresent the plan as a table. Example:
| # | Step | Command | Risk | Precondition |
|---|---|---|---|---|
| 1 | Verify image tag exists in ACR | az acr repository show-tags --name acrxxx --repository payments-api --orderby time_desc --top 5 | non-destructive | — |
| 2 | Update Chart.yaml appVersion to 1.4.2 | yq -i '.appVersion = "1.4.2"' infra/helm/payments-api/Chart.yaml | reversible (git revert) | step 1 passed |
| 3 | Commit + push to develop | git commit -am "deploy payments-api 1.4.2 to dev" && git push | reversible (git revert + force-push) | step 2 succeeded |
| 4 | Trigger CD pipeline | gh workflow run cd-dev.yml -f service=payments-api | destructive (live deploy) | push succeeded |
| 5 | Monitor rollout | kubectl rollout status deploy/payments-api -n dev --timeout=5m | non-destructive | pipeline triggered |
| 6 | Smoke-test endpoint | curl -sf https://payments-api-dev.example.com/health | non-destructive | rollout succeeded |
Offer execution modes:
"Three modes:
- Dry-run (default): I print what I'd do, I don't touch anything. Best for the first iteration.
- Paired: I execute one step at a time, show you the output, ask 'proceed?' before the next. You learn by watching.
- Delegated: I execute the whole plan autonomously. You confirm the plan once, then I run it and report at the end.
Which?"
For destructive steps, require a second, explicit confirmation even in delegated mode.
Goal: run the plan safely, capture what worked.
For each step, print:
[DRY-RUN] Step <N>: <description>
Would run: <exact command>
Risk: <label>
Would check: <precondition>
No side effects. At the end, summarize and offer: "Dry-run complete. Run paired or delegated now?"
For each step:
fix: discuss, adjust the command, re-run (loop)abort: stop, run rollback if anyy: proceed to next steptmp/ops-skill-builder/<timestamp>-<slug>.logkubectl get all -n <ns> (or equivalent), last 20 lines of any log the user consented to read, exit codes of each step.reversible or destructive that ran, and propose a reverse operation. Ask the user to confirm rollback before running.Goal: turn the successful flow into a reusable project-local skill.
After Phase 4 succeeds (or after a successful paired run of a dry-run followed by a real run), ask:
"That worked. Do you want to save this as a reusable skill for your team? It'll live at
.claude/skills/<slug>/SKILL.md— project-local, shareable via git. Anyone on the team who triggers it will re-run the exact same sequence, with the same access model, without re-negotiating."
If the user declines, thank them and close gracefully. Do not nag.
Gather everything skill-creator needs. The template for the generated skill is documented in references/ops-skill-template.md — hand it to skill-creator as the structural target.
The package:
target_location: .claude/skills/<slug>/SKILL.md # project-local, not global
suggested_name: <slug> # kebab-case, e.g. "deploy-payments-api", "rollback-auth-service"
suggested_description: > # one-paragraph, triggering-focused
<what the skill does> + <when to trigger> (include the category from Phase 0, the stack from Phase 2, the access tier from Phase 1)
working_language: <from nonoise.config.json> # the generated skill inherits the project's language
# ==== the meat ====
access_model:
tier: cli | api | web
auth_sources: # list of env vars and/or CLI sessions
- type: cli_session
check: "az account show"
- type: env_var
name: "GH_TOKEN"
scope: "repo"
fallback: "If `az` CLI isn't authenticated, run `az login` and retry."
preconditions: # runs first in the generated skill
- name: "Verify Azure auth"
command: "az account show --query id -o tsv"
expect: "non-empty string"
- name: "Verify kubectl context"
command: "kubectl config current-context"
expect: "aks-prod-xyz"
command_sequence: # verbatim from Phase 4
- step: 1
description: "Verify image tag exists in ACR"
command: "az acr repository show-tags --name acrxxx --repository payments-api --orderby time_desc --top 5"
risk: non-destructive
- step: 2
...
verification: # post-op checks
- "kubectl rollout status deploy/payments-api -n dev --timeout=5m"
- "curl -sf https://payments-api-dev.example.com/health"
rollback_hints: # reverse ops for reversible/destructive steps
- applies_to_step: 2
command: "git revert <commit> && git push"
- applies_to_step: 4
command: "gh workflow run cd-dev-rollback.yml -f version=<previous>"
context_refs: # where the generated skill should read from
- "docs/architecture/01-constraints.md"
- "nonoise.config.json"
Call the sibling skill:
Skill: skill-creator
args: crystallize from ops-skill-builder
target=.claude/skills/<slug>/SKILL.md
package=<path-to-the-yaml-above-written-to-tmp>
skill-creator takes the package, generates a SKILL.md that follows the template in references/ops-skill-template.md, and writes it to the target location.
.env (which is gitignored).<slug> and get the same result. If the environment changes, re-run me (ops-skill-builder) and I'll regenerate the skill."skill-creator invoked with the package.claude/skills/<slug>/, not ~/.claude/skills/. The team's skill is versioned with the repo.docs/architecture/. Drifts are surfaced as recommendations.nonoise.config.json..claude/skills/<slug>/, not ~/.claude/skills/.docs/architecture/ silently — if the op reveals a drift, surface it; do not rewrite the architecture doc.tmp/ops-skill-builder/<timestamp>-<slug>.log so the user has a local audit trail.superpowers:systematic-debugging.observability-debug (this skill handles only the Phase 0 "wire correlation-ID tracking on the code side"; everything downstream — reading traces, correlating logs, finding the bug — is observability-debug).arch-brainstorm → arch-decision.If the user starts a new session mid-crystallization (e.g. Phase 4 ran, crystallization didn't):
tmp/ops-skill-builder/ for the latest execution log<op> successfully on <date>. Do you want to crystallize it now?"If Phase 4 failed and left the environment in a broken state:
rollback_hints gathered in Phase 3../_shared/access-model.md — shared access-first reference (CLI > API > Web tiers, probe pattern, fallback protocol, never-silent-login rule, env-var convention, OIDC federation for GitHub Actions → Azure / AWS / GCP, browser-MCP pins per AI tool, anti-patterns). Consumed by this skill and by observability-debug.references/access-patterns.md — per-tool concrete probes: CLI / API / Web examples across Azure / AWS / GCP / GitHub / Azure DevOps / Jira / Linear / Kubernetes / Terraform / Pulumi / Helm. Covers auth setup, verification commands, and failure modes specific to each tool.references/ops-skill-template.md — the canonical structure for a generated ops skill: frontmatter template, pre-check auth section, read-state section, validate-args section, execute section, verify section, report section, rollback section. This is the template skill-creator receives in Phase 5.references/examples.md — three end-to-end worked examples in different clouds (Azure AKS deploy, AWS EKS rollout, GCP Cloud Run deploy), each showing the full five-phase flow.../skill-creator/SKILL.md — invoked in Phase 5 to crystallize.../codebase-memory/SKILL.md — used in Phase 2 when code-level context is needed.../observability-debug/SKILL.md — takes over after Phase 0 debug-wiring for the actual production-debug flow.../spec-to-workitem/SKILL.md — sibling adapter-pattern skill (auth via env vars, dry-run default, tracker-agnostic).../arch-brainstorm/SKILL.md — the architectural-axis counterpart (one question at a time, multiple-choice, dialog-driven).When this skill (or skill-creator invoked from Phase 5) emits a new SKILL.md, the YAML frontmatter MUST satisfy these rules or the skill will fail to load in GitHub Copilot:
description ≤ 1024 characters. Copilot rejects longer descriptions outright. Claude Code does not enforce this, but a single source of truth is preferred.: (colon + space) inside an unquoted YAML scalar. A strict YAML parser reads that as a nested mapping. Rewrite to use an em-dash (—) or another separator, or wrap the whole value in double quotes.description field. They add bytes without improving triggering and can confuse strict parsers.Verify before committing:
pnpm --filter create-nonoise exec vitest run test/validation/skill-frontmatter-copilot.test.ts
The test fails the build if any native skill in packages/skills/*/SKILL.md violates these rules.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub russosalv/nonoise --plugin nonoise27 skills in this plugin
/arch-brainstormDialogic architectural brainstorming skill. Helps an architect study how to implement something starting from just an area name, exploring the existing codebase, reading the project's source of truth at `docs/architecture/` plus `docs/requirements/` and `docs/calls/`, and producing a narrative PRD (story of the decision, inline Mermaid diagrams, explicit anti-scope) under `docs/prd/<area>/`. USE AS STEP 1 of the end-to-end architectural workflow — brainstorm → arch-decision (Haft FPF validation via `quint-fpf`) → sprint-manifest (promotion to sprint). Triggers — "I want to study how to implement X", "how should we handle Y", "brainstorm on area Z", "open a PRD for W", "arch-brainstorm area <slug>". Also triggers without explicit mention when the user is defining a new architectural work area from scratch and wants to think it through together./arch-decisionValidate an existing draft PRD through Haft ProblemCard, solution variants and parity comparison, then route the operator's explicit Phase 5.5 choice through h-decide and project the result into PRD frontmatter. Use for architectural PRD validation when the FPF gate fires; otherwise records a lightweight decision in the PRD with no Haft run. Creates no duplicate FPF audit register.