Imported from yandy-r/claude-infra-plugins (
yci/skills/mop/SKILL.md). Install upstream withnpx skills add yandy-r/claude-infra-plugins --skill mop. Copyright stays with the author.
mop
Produces a dual-branded, customer-deliverable Method of Procedure artifact for the active customer. The output is markdown-first and lives under the customer's deliverable path, never in the repository. The workflow is composition-first: resolve the active profile, preflight the input for cross-customer leaks, normalize the change into a bounded internal shape, derive rollback commands, run the blast-radius reasoner, build pre/post check catalogs, render the final artifact, sanitize it, and only then write it to disk.
Supported inputs
- Unified diff / patch files.
- Structured YAML with
forward:/reverse:blocks. - Terraform plan JSON (
terraform show -json-style payload). - Vendor CLI text files with header comments declaring the vendor and target:
# vendor: iosxe# vendor: panos- optional
# summary: ... - optional
# change_id: ... - optional repeated
# target: device=<id>/service=<id>/tenant=<id>
Unsupported or ambiguous shapes must fail fast with the catalogued mop-* errors.
Output
On success the workflow prints exactly one line to stdout: the absolute path to the rendered
mop.md artifact. Supporting files written alongside it:
change.jsonrollback.txtblast-radius-label.jsoncatalog.json
Instructions
Invoke:
bash "${CLAUDE_PLUGIN_ROOT}/skills/mop/scripts/generate-mop.sh" $ARGUMENTS
Propagate stderr verbatim. Do not reformat script errors.
