/sccfm:sccfm-ansiblefrom Cisco Security Cloud Control Firewall Manager
Generates and runs Ansible playbooks using the cisco.sccfm collection for SCC Firewall Manager. Discovers modules, inventory, and lookup plugins dynamically with ansible-doc. Validates parameters, auth, and safety before execution.
Ships in Cisco Security Cloud Control Firewall Manager. 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.
None: SKILL.md is the whole skill.
Generate or run cisco.sccfm Ansible automation by dynamically discovering the
installed collection with ansible-doc. Treat ansible-doc JSON output as the
schema for modules, inventory plugins, options, examples, return values, and
secret handling. Do not hardcode module names, parameters, examples, choices, or
behavior.
This skill operates against customer SCC Firewall Manager environments and managed devices. Optimize for customer safety first and convenience second.
This skill covers only the cisco.sccfm Ansible collection (modules, inventory
plugins, and lookup plugins). For sccfm-cli command-line invocations, use the
sccfm-cli skill. For requests spanning both surfaces, apply each skill only to
its respective operations.
ansible-doc before writing, running, or answering detailed questions
about any cisco.sccfm module, inventory plugin, or lookup plugin.ansible-doc, examples, and source context
prove it is read-only.cisco.sccfm.<module>, in
playbooks.Select one execution mode for each user request.
Use this mode when the user asks you to perform the Ansible operation.
Use this mode when the user says anything like "show me the playbook", "generate the playbook", "show me the command", "do not run it", "don't run it", "I will run it myself", or "command only".
In Generate-Only mode:
ansible-doc because discovery depends on it.ansible-doc schema
is available, stop and explain that safe generation requires module
discovery.not validated against live state when live
preflight was not allowed or credentials were unavailable.Classify the playbook or command before execution. Ansible does not expose the
same explicit readonly schema field as sccfm-cli, so classify from
ansible-doc descriptions, examples, options, return docs, and source only when
needed. If classification is unclear, use Class C.
Use Class A only when the matched module or inventory action is clearly read-only and the invocation does not write local files.
Signals include:
ansible-doc describes list, get, show, inspect, validate, or health-check
behavior.These commands are safe to execute after discovery and credential validation.
Use Class B when the operation is read-only against SCCFM but writes local data.
Examples include saving inventory output, writing reports, creating local playbook artifacts, or exporting customer data to a path. Require explicit user opt-in and an explicit destination path before executing. Never rely on a default path for customer data.
Use Class C when the operation may modify SCCFM, a managed device, local credential state, or any deployment/upgrade workflow.
Signals include:
ansible-doc describes creating, updating, deleting, adding, removing,
onboarding, deploying, triggering, clearing, applying, editing, executing CLI
commands, changing passwords, changing boot images, or changing defaults.Class C requires a plan, preflight when possible, and explicit confirmation before execution.
Follow these checks in order:
Run command -v ansible-doc.
If you are inside this repository, ansible-doc is missing, and
cisco_sccfm_scripts/activate.sh exists, run source cisco_sccfm_scripts/activate.sh once for the
shell session, then resolve again. Do not use poetry run.
Run collection discovery:
ansible-doc -j -l -t module cisco.sccfm
ansible-doc -j -l -t inventory cisco.sccfm
ansible-doc -j -l -t lookup cisco.sccfm
If discovery fails and you are inside this repository, run both commands, then rerun discovery:
build-ansible-collection
ansible-galaxy collection install \
"dist/cisco-sccfm-$(poetry version --short).tar.gz" --force
If discovery succeeds and you are inside this repository, compare discovered
FQCNs with the corresponding files under sccfm-ansible/plugins/modules/,
sccfm-ansible/plugins/inventory/, or sccfm-ansible/plugins/lookup/ only to
detect a stale installed collection. If source plugins are missing from
ansible-doc, build and install the generated tarball as above, then rerun
discovery. Do not use source filenames as the runtime schema.
If you are outside this repository, install or modify local Ansible state only
when the user explicitly asks for setup. Otherwise, stop and explain that the
cisco.sccfm collection is not installed.
Re-discover if the virtualenv, collection install, or branch changes.
Export the module list once per session:
ansible-doc -j -l -t module cisco.sccfm
For a matched module, fetch full JSON docs:
ansible-doc -j cisco.sccfm.<module_name>
For dynamic inventory work, list inventory plugins, then fetch the matched plugin docs:
ansible-doc -j -l -t inventory cisco.sccfm
ansible-doc -j -t inventory <inventory_plugin_fqcn>
For lookup work, list lookup plugins, then fetch the matched plugin docs:
ansible-doc -j -l -t lookup cisco.sccfm
ansible-doc -j -t lookup <lookup_plugin_fqcn>
Parse the JSON output. Use these fields as the schema:
doc.options: parameter names, types, required flags, defaults, choices,
elements, env, and no_logCache the discovered JSON in memory for the session. Do not use stale docs after building or reinstalling the collection.
If discovery fails, stop and report the error. Do not guess what the collection supports.
The discovery commands above are the only hardcoded bootstrap commands. They are
the Ansible equivalent of schema export: all module, inventory plugin, lookup
plugin, parameter, example, and return-value knowledge must come from the
discovered ansible-doc JSON.
Use the matched docs to identify profile options. SCCFM modules and inventory
use the canonical named profile store shared with sccfm-cli.
Rules:
module_defaults: group/cisco.sccfm.all: when selecting a non-default profile.sccfm-cli --profile <name> configure.field is omitted (it defaults to
api_token) or explicitly set to field=api_token. Use the result only
inside a task with no_log: true; never print, export, log, or return it in
chat. Only an explicitly non-secret field such as field=region may be
presented.Use sccfm-cli configure or the configure-profile option in
sccfm-cli-interactive for local SCCFM credential setup only when the user
explicitly asks for it.
Derive the user's request into this structured shape before matching modules:
Then match modules using this algorithm:
Never choose between ambiguous modules by vibe. Ask or stop.
Construct automation strictly from the matched ansible-doc entry.
required is true.choices, type, and elements exactly as documented.If the user describes a filter in natural language, such as "online ASAs", "devices named branch-*", or "FTDs not on the recommended version", translate it only through documented Ansible options and discovered inventory variables.
ansible-doc entry.query exists, read its current description before using
it. Do not assume it accepts Lucene, field:value filters, or the same syntax
as sccfm-cli.For SCCFM modules, prefer this shape when selecting a non-default profile:
module_defaults:
group/cisco.sccfm.all:
profile: production
Omit profile when using the configured default profile. Do not place a region
or SCCFM API token in a task, variable file, environment lookup, or vault.
Use hosts: localhost and gather_facts: false for SCCFM API operations unless
the user specifically wants to target hosts from the dynamic inventory.
Build commands in this shape:
ansible-playbook [ansible CLI options] <playbook.yml>
ansible-inventory -i <inventory.yml> [ansible inventory options]
Module parameters belong in YAML under cisco.sccfm.<module_name>. Inventory
plugin options belong in the inventory YAML file. Never turn module or inventory
plugin parameters into ansible-playbook CLI flags unless Ansible itself
documents that flag.
For inventory-driven tasks:
ansible-inventory before running playbooks when
credentials are available.For every option where no_log: true is documented, or whose name or description indicates a token, password, key, or secret:
Run validation appropriate to the selected mode and safety class.
These do not contact SCCFM:
ansible-doc -j -l -t module cisco.sccfm
ansible-doc -j cisco.sccfm.<module_name>
ansible-playbook --syntax-check <playbook.yml>
Use --syntax-check on generated playbooks whenever a playbook file exists and
the user did not forbid local validation.
When credentials are available and the user requested inventory behavior:
ansible-inventory -i <inventory.yml> --graph --playbook-dir <playbook_dir>
ansible-inventory -i <inventory.yml> --list --playbook-dir <playbook_dir>
If credentials are missing, validate only the file shape and mark it as not validated against live SCCFM.
For Class C playbooks, run check mode before execution whenever the matched module supports it and credentials are available:
ansible-playbook -i <inventory> <playbook.yml> --check
If ansible-doc does not expose check-mode support, inspect the module source
only when you are in this repository. Look for supports_check_mode=True and a
real module.check_mode path. If support is missing or unclear, say so and do
not execute without explicit approval.
Apply these rules after selecting execution mode.
In Execute mode, run the playbook or inventory command after validation if:
In Generate-Only mode, return the exact playbook and command, and state whether it was syntax-checked or live-validated.
In Execute mode, before executing:
In Generate-Only mode, require an explicit destination path before generating the write/export command or playbook.
In Execute mode, never execute immediately. Use this workflow:
ansible-playbook --syntax-check.ansible-playbook --check when supported and credentials are available.In Generate-Only mode, validate as far as allowed, mark whether syntax check and live preflight were performed, return the exact playbook/command, and do not execute the mutating playbook.
These confirmation rules apply only in Execute mode.
For any Class C playbook, require the user to send the exact ansible-playbook
shell command from the reviewed plan, prefixed with EXECUTE :
EXECUTE <exact ansible-playbook shell command>
When requesting this confirmation, also emit exactly one machine-readable plan marker as a standalone line outside any code fence:
SCCFM_APPROVAL_COMMAND: <exact ansible-playbook shell command>
Replace the placeholder with the same command shown in the plan, without the
EXECUTE prefix. Emit this marker only when the plan is complete and ready for
confirmation. Do not emit it in Generate-Only mode, for a check-mode-only plan,
or after the playbook has run. The plugin's Stop hook records only its digest so
that a later user confirmation cannot authorize a different command.
The text after EXECUTE must exactly match the command the agent will submit
to the shell, including inventory, playbook, limit, check-mode, and other CLI
options. Require it as a standalone user message without a code fence or
explanation. Never accept an edited, abbreviated, or compound command. The
plugin command guard compares it with the previously recorded plan marker,
creates a ten-minute receipt only for an exact match, and consumes that receipt
after one matching execution attempt or clears it when the turn ends. Keep the
module FQCN and target summary in the reviewed plan even though the approval
binds the shell command itself.
For production, deployment, upgrade, credential, or bulk mutations, require two confirmations:
EXECUTE followed by the exact shell command.Never execute Class C automation when any of these is true:
Parse JSON output when available, using Ansible's JSON callback when useful, and summarize only what answers the request.
Result rules:
When modifying or adding Ansible modules in this repository:
Read the matched module source and its tests.
Keep all module functions typed.
Use base_argument_spec() for shared profile and config_path options.
Set supports_check_mode=True on every module.
Implement a meaningful module.check_mode path for mutating modules.
Keep secrets marked no_log=True.
Run build-ansible-collection after changes that affect docs or installed
module behavior.
Verify with ansible-doc -j cisco.sccfm.<module_name>.
Run targeted module tests, then broader tests based on risk:
pytest sccfm-ansible/plugins/modules/tests/ -v
Run live e2e tests only when credentials and a suitable sandbox are available.
ansible-doc.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub ciscodevnet/skills --plugin sccfm2 skills in this plugin