AI Skill and Agent Workflows
rauto ships with the rauto-usage Skill so an AI coding agent can work with the current CLI, Web console, JSON models, and safety rules instead of guessing commands from generic network knowledge.
The Skill is useful when you want an agent to:
- inspect saved devices, credentials, groups, labels, profiles, and show objects
- run safe read-only checks with
rauto show - discover SSH devices and save selected results
- author complete transaction, workflow, or orchestration JSON
- validate generated plans against the installed
rautobinary - start the local Web console or a managed Agent when explicitly requested
- summarize results and point to session records for replay
Install the Skill
Install from the rauto repository with the Skills CLI:
Use --global for a user-level installation:
The CLI detects supported AI agents and manages their Skill directories. Use --agent <agent> when you need to target one supported agent explicitly.
The Skill source is available at skills/rauto-usage/. It includes operator runbooks, current JSON templates, discovery guidance, troubleshooting notes, and a CLI-backed plan validator.
Skill versus Agent mode
These two uses of "agent" solve different problems:
Installing the Skill does not expose an API or start a service. Starting rauto agent does not automatically give an AI assistant the Skill instructions.
Prepare rauto for AI-assisted work
Keep authentication and target identity in rauto instead of placing secrets in prompts.
An AI agent can then refer to core-01 and network-admin by name. Credential list/show output contains metadata, not plaintext secrets.
For group operations, create saved-device groups or labels first. This lets the AI express scope with --group, --label, target_groups, or target_tags without inventing inline credentials.
Ask the AI to inspect before acting
In Codex, name the Skill explicitly when you want the workflow applied:
The Skill directs the agent to prefer stable show objects over raw commands:
Use rauto exec only when no built-in or custom show object fits the read operation.
Generate a safe configuration change
For configuration changes, ask the AI to stop before execution:
The expected workflow is:
- Inspect saved devices, groups, profiles, and available modes.
- Generate a complete
tx-workflowororchestrateJSON document. - Validate it with the Skill's
validate_json_plans.pyscript. - Run
rauto tx-workflow ... --dry-runorrauto orchestrate ... --dry-run. - Present target scope, concurrency, failure policy, commands, and rollback behavior.
- Wait for explicit approval before executing the real change.
- Summarize results and preserve the session record for review or replay.
When working from a rauto source checkout, plan validation can be run directly:
The validator delegates to the current rauto CLI, so generated JSON is checked against the installed runtime model instead of a copied schema.
Useful prompt patterns
Discover devices without importing everything
Diagnose configuration drift
Start the local Web console
Safety rules worth keeping
- Keep passwords, private keys, and Enable secrets out of prompts; use saved credential names.
- Prefer
showandconfig fetchfor reads, and rollback-aware transaction commands for changes. - Require explicit approval for ambiguous or destructive changes and restore operations using
--replace. - Review target groups, labels,
max_parallel,fail_fast, and rollback behavior before execution. - Do not enable session retries for non-idempotent configuration changes; retries have at-least-once semantics.
- Keep
rauto webon127.0.0.1unless network exposure is explicitly required. - Treat AI-generated output as a plan until current-runtime validation and dry-run both pass.