AGENT SKILL

source-of-truth-change

Turn intended state in the engineer's source of truth (NetBox or Nautobot) into a validated change, then hand it to the automation they already run — an Ansible Automation Platform job in check mode, a pyATS/Genie before-and-after diff, or a Terraform plan. Use when the user asks to make a change "from NetBox" or "from Nautobot", to push what the source of truth says, to bring devices in line with intended state, or to run a validated playbook through AAP or pyATS. Damira never applies the change; the engineer does. For a playbook with no source of truth use generate-playbook, for Terraform alone use generate-terraform, and for an active outage use troubleshoot.

License 许可
MIT
最近更新
2026-11-02
Stars
★ 0
Forks
0

01 前言 Front Matter

name
source-of-truth-change
description
Turn intended state in the engineer's source of truth (NetBox or Nautobot) into a validated change, then hand it to the automation they already run — an Ansible Automation Platform job in check mode, a pyATS/Genie before-and-after diff, or a Terraform plan. Use when the user asks to make a change "from NetBox" or "from Nautobot", to push what the source of truth says, to bring devices in line with intended state, or to run a validated playbook through AAP or pyATS. Damira never applies the change; the engineer does. For a playbook with no source of truth use generate-playbook, for Terraform alone use generate-terraform, and for an active outage use troubleshoot.
when_to_use
Trigger phrases: "make this change from NetBox", "push what Nautobot says", "bring devices in line with intended state", "run it through AAP in check mode", "pyATS diff after a NetBox change", "Terraform plan from the source of truth".

02 资源文件 4

03 SKILL.md 正文

Source-of-truth change

Damira orchestrates and hosts nothing. The engineer's own MCP servers read and run:

  • ~~source-of-truth: NetBox or Nautobot, the intended state
  • ~~automation: Ansible Automation Platform, runs a job template (check mode from here)
  • ~~testing: pyATS/Genie, pre and post snapshots and their diff
  • ~~iac: Terraform, provider and module documentation

Find their tools with tool search. The Automation capabilities section that damira init wrote to CLAUDE.md names the servers it found. If there is no ~~source-of-truth, ask the engineer to paste the intended state (devices, VLANs, prefixes) and start at Step 2.

Advisor mode holds throughout. The plugin's device gate asks the engineer before every AAP launch (check mode included) and before any pyATS call that reaches a device, and blocks pyATS config pushes and Terraform runs. A blocked call is an answer, not an obstacle: do not retry it through another tool or the terminal.

Step 1: Read the intent

Read references/netbox-intent.md (beside this file). Query ~~source-of-truth for only the objects in scope, filtered by site or location, role, tag and status: devices with platform and primary IP, the interfaces, VLANs and prefixes the change touches, and rendered config context. Never pull the whole inventory.

Show the engineer a short table of the intent (device, object, intended value) with the object IDs, and get a yes before generating. If the objects contradict each other (a VLAN assigned to an interface but missing from the site), stop and say which records disagree. Do not fill gaps from memory.

Step 2: Generate the change

Use the generator that matches the hand-off, following its steps for vendor lookups, layout and secrets:

Hand-off Generator skill
~~automation (AAP) or plain Ansible generate-playbook
~~iac / Terraform generate-terraform
Python (Nornir, Netmiko) generate-automation
~~testing checks only generate-tests

Build variables from the Step 1 objects, not from assumptions. If AAP already syncs its inventory from NetBox, target hosts with a limit instead of writing a static inventory. Secrets stay as environment or vault lookups; never copy them out of the source of truth.

Step 3: Validate

Delegate this loop to the damira:damira-fixer agent (it runs on Haiku). Give it the path, --skill source-of-truth-change, and <plugin root>. It fixes only what the findings name and stops after 3 rounds. If the agent isn't available, run it yourself:

python3 "<plugin root>/scripts/damira.py" validate <path> --skill source-of-truth-change --host claude-code

Fix every FAIL and re-run, at most 3 rounds. A skipped check is not a pass. Nothing that fails validate goes to a hand-off.

Step 4: Hand off

Pick every hand-off that was detected, and read its reference first:

  • ~~automation: references/handoff-aap.md. Launch the job template with job_type=check and diff mode on, limited to one host first. Check first that the template prompts for job type on launch; if it does not, AAP ignores the check request, so do not launch.
  • ~~testing: references/handoff-pyats.md. Take the pre-change snapshot of the features the change touches; the post snapshot and diff come after the engineer applies.
  • ~~iac: references/handoff-terraform.md. The plan runs locally or in the engineer's pipeline; the Terraform server is for documentation lookups only.
  • None detected: give the engineer the commands instead, e.g. ansible-playbook -i <inventory> <playbook> --check --diff --limit <one-host>.

Step 5: Report

Present, in this order:

  1. Intent: the source-of-truth filter used and the object IDs.
  2. Files written and what validate reported (pass, warnings, skipped tools).
  3. Hand-off result: the check-mode diff summary, the pyATS pre snapshot, or the plan summary.
  4. The exact command or job the engineer runs to apply, and the rollback.

Offer to draft the ~~itsm change request from the plugin's CONNECTORS.md, with the validate output as validate_report. Write it with the engineer's connector only after they confirm.

04 同仓库更多 Skills

ciscoittech
ciscoittech/damira-plugins

upgrade-plan

Ask Damira to assess a version-to-version upgrade of a network platform and produce the MOP and change control. Use when the user names a product and a target release — "IOS-XE 17.6.5 to 17.9.5", "CUCM 12.5 SU7 to 15", "PAN-OS 10.2 to 11.1" — or asks what breaks, what the risk is, or how long a maintenance window needs to be. Covers CUCM, IOS-XE, IOS-XR, NX-OS, PAN-OS, FortiOS, Junos, ISE, ASA, WLC/Catalyst 9800. Not for platform-to-platform migration (CUCM to Webex Calling, on-prem to cloud) and not for diagnosing a fault after an upgrade — use troubleshoot for that.

★ 0
ciscoittech
ciscoittech/damira-plugins

troubleshoot

Ask Damira to diagnose an active, in-progress network fault. Use when the user reports something broken right now — an outage, a flapping interface, a BGP or OSPF adjacency down, dropped or blackholed traffic, failed calls, users unable to connect — or pastes show/log output for analysis. Also fires on direct questions like "why is BGP down" or "why is OSPF stuck in EXSTART". Returns vendor-specific diagnosis with exact CLI commands. Do NOT use for "how does X work" protocol questions, for reviewing a config that is not currently broken (use config-audit), or for planning an upgrade (use upgrade-plan).

★ 0
ciscoittech
ciscoittech/damira-plugins

source-of-truth-change

Turn intended state in the engineer's source of truth (NetBox or Nautobot) into a validated change, then hand it to the automation they already run — an Ansible Automation Platform job in check mode, a pyATS/Genie before-and-after diff, or a Terraform plan. Use when the user asks to make a change "from NetBox" or "from Nautobot", to push what the source of truth says, to bring devices in line with intended state, or to run a validated playbook through AAP or pyATS. Damira never applies the change; the engineer does. For a playbook with no source of truth use generate-playbook, for Terraform alone use generate-terraform, and for an active outage use troubleshoot.

★ 0
ciscoittech
ciscoittech/damira-plugins

lab-test-change

Test a network change in a throwaway ContainerLab lab before it goes near production — deploy the lab, apply the playbook or script, run show-command or pyATS/Genie checks, report pass/fail, and always destroy the lab. Use when the user says "test this in a lab first", "prove this change before the window", "dry-run this playbook against a lab", or wants evidence a change works before a CAB. Needs docker and containerlab on the engineer's machine; without them it validates only and says so. To only build a lab, use generate-lab; to write the change, use generate-playbook, generate-automation or generate-terraform.

★ 0
ciscoittech
ciscoittech/damira-plugins

generate-workbook

Build an Excel workbook (.xlsx) for a network procedure — a migration, platform migration, security audit, change control, or incident-response workbook — grounded in Damira evidence, with an HTML preview. Use when the user asks for a spreadsheet, workbook, tracker, or Excel version of a migration plan, cutover, audit findings, change record, or incident timeline. For a version-to-version upgrade, use upgrade-plan (it offers the workbook itself). Not for diagnosing an active fault — use troubleshoot.

★ 0
ciscoittech
ciscoittech/damira-plugins

generate-tests

Write network tests — pyATS/Genie learn, change, learn, diff jobs that prove a change did what it should and nothing else, and pytest tests for automation scripts — then validate them locally. Use when the user asks for pyATS, Genie, AEtest, a testbed file, pre/post change verification, state snapshots, or unit tests for a Nornir/Netmiko script. For the change itself use generate-playbook, generate-automation or generate-terraform.

★ 0