/rh-sre:fleet-inventoryfrom rh-sre
Query and display Red Hat Lightspeed managed system inventory. This skill focuses on discovery and listing only - for remediation actions, transition to the `/remediation` skill. Use when: - "Show the managed fleet" - "List all systems registered in Lightspeed" - "What systems are affected by CVE-X?" - "How many RHEL 8 systems do we have?" - "Show me production systems" **When NOT to use this skill** (use `/remediation` skill instead): - "Remediate CVE-X on these systems" - "Create a playbook for..." - "Patch system Y" This skill orchestrates MCP tools from lightspeed-mcp for fleet visibility and system inventory management.
Ships in rh-sre. 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 skill queries Red Hat Lightspeed to retrieve and display information about managed systems, registered hosts, and fleet inventory.
Required MCP Servers: lightspeed-mcp (setup guide)
Required MCP Tools:
inventory__list_hosts (from lightspeed-mcp) - List and discover registered hostsinventory__find_host_by_name (from lightspeed-mcp) - Resolve hostname to host UUIDinventory__get_host_details (from lightspeed-mcp) - Retrieve inventory metadata for known host UUIDsinventory__get_host_system_profile (from lightspeed-mcp) - Retrieve OS version and system profile when neededvulnerability__get_cve_systems (from lightspeed-mcp) - Find CVE-affected systemsinventory__load_inventory_dashboard (from lightspeed-mcp) - Open the interactive inventory dashboard with query parameters. If the client does not support UI, the tool instructs the model to present the data as text.Required Environment Variables:
LIGHTSPEED_CLIENT_ID - Red Hat Lightspeed service account client IDLIGHTSPEED_CLIENT_SECRET - Red Hat Lightspeed service account secretCRITICAL: Before executing any operations, execute the /mcp-lightspeed-validator skill to verify MCP server availability.
See Step 0 in the Workflow section below for implementation details.
Validation freshness: Can skip if already validated in this session..
Use this skill directly when you need:
Use the /remediation skill when you need:
How they work together: Use this skill for discovery ("What systems are affected?"), then transition to the /remediation skill for action ("Remediate those systems").
Action: Execute the /mcp-lightspeed-validator skill
Note: Can skip if validation was performed earlier in this session and succeeded..
How to invoke: Execute the /mcp-lightspeed-validator skill
Handle validation result:
Example:
Before retrieving fleet inventory, I'll validate the Lightspeed MCP server configuration.
[Invoke mcp-lightspeed-validator skill]
✓ Lightspeed MCP validation successful.
Proceeding with fleet inventory query...
Document Consultation (REQUIRED - Execute FIRST):
inventory__list_hosts response format and pagination handlinginventory__list_hosts response format and pagination handling."MCP Tools: inventory__load_inventory_dashboard and inventory__list_hosts (from lightspeed-mcp)
Purpose: Query Lightspeed for registered hosts. Use for fleet discovery, tag filters, and environment scoping.
Parameters: per_page=10 on first call, then page for pagination. Optional filters: display_name, tags, staleness, hostname_or_id. See references/01-parameter-reference.md.
Before continuing further, call inventory__load_inventory_dashboard(...) with the same query parameters used in the list_hosts call, and examine the instruction returning from the tool.
Optional enrichment: After host UUIDs are known:
inventory__get_host_details(host_ids="uuid-1,uuid-2") — inventory metadata (similar fields to list_hosts)inventory__get_host_system_profile(host_ids="uuid-1") — OS version and system profile when RHEL version is required (one or two UUIDs at a time; large response)inventory__find_host_by_name(hostname="...") — resolve a hostname to a UUIDVerification Checklist:
total, count, page, per_page, and resultspage while count equals per_page)Key Fields to Extract (from results[] on list_hosts / get_host_details):
id: Unique system identifier (use for remediation workflows)display_name / fqdn: Human-readable hostnameupdated: Last inventory record updatelast_check_in: Last reporter check-in (prefer for active/stale display)stale_timestamp, stale_warning_timestamp, culled_timestamp: Staleness thresholdsper_reporter_staleness: Per-reporter check-in detailgroups: Inventory groups (when present)When RHEL version or environment tags are required (not on every list_hosts record):
system_profile.operating_system.version or equivalent — from inventory__get_host_system_profile; equivalents include operating_system.major/minor, os_release, operating_system.nametags: Environment labels (when present on the host)Document Consultation (REQUIRED - Execute FIRST):
Apply user-requested filters and grouping. See references/01-parameter-reference.md for filtering and sorting patterns.
MCP Tool: vulnerability__get_cve_systems (from lightspeed-mcp)
Purpose: Find systems affected by specific CVEs
Parameters: cve (CVE-YYYY-NNNNN, uppercase). Paginate with limit and offset. See references/01-parameter-reference.md.
Verification Checklist:
remediation_available flag is presentStatus Interpretation:
Status: "Vulnerable"
→ CVE affects this system, patch not applied
→ Action: Suggest remediation via `/remediation` skill
Status: "Patched"
→ CVE previously affected, now remediated
→ Action: No action needed, informational only
Status: "Not Affected"
→ System not vulnerable to this CVE
→ Action: Exclude from affected count
If the dashboard was successful, DO NOT PRINT the inventory table, as it's covered in the dashboard. SKIP to the follow-ups. ONLY If the dashboard was NOT successful: Create organized output. Read references/03-output-templates.md for report format (Overview, RHEL/Environment breakdown, System Details, Stale Systems).
When appropriate, suggest transitioning to the /remediation skill:
## Next Steps
**For CVE Remediation**:
If you need to remediate vulnerabilities on any of these systems, I can help using the `/remediation` skill:
Examples:
- "Remediate CVE-2024-1234 on web-server-01"
- "Create playbook for all RHEL 8 production systems affected by CVE-2024-5678"
- "Batch remediate critical CVEs on staging environment"
**For System Investigation**:
- "Show CVEs affecting web-server-01" (use cve-impact skill)
- "Analyze risk for production systems" (use cve-impact skill)
- "List critical vulnerabilities across the fleet" (use cve-impact skill)
lightspeed-mcp - Red Hat Lightspeed platform access for system inventory and CVE datainventory__list_hosts (from lightspeed-mcp) - List and discover registered hosts
per_page, page, display_name, tags, staleness, etc.{ total, count, page, per_page, results[] } with id, display_name, fqdn, updated, last_check_in, staleness timestampsinventory__find_host_by_name (from lightspeed-mcp) - Resolve hostname to host record
hostname (required)inventory__get_host_details (from lightspeed-mcp) - Retrieve inventory metadata for known host UUIDs
host_ids (required, comma-separated UUID string)list_hosts (not guaranteed to include system_profile)inventory__get_host_system_profile (from lightspeed-mcp) - Retrieve OS version and system profile
host_ids (comma-separated; one or two UUIDs at a time)system_profile with operating_system (name, major, minor), os_release, packages, servicesvulnerability__get_cve_systems (from lightspeed-mcp) - Find systems affected by specific CVEs
cve (string, format: CVE-YYYY-NNNNN), limit, offsetinventory__load_inventory_dashboard (from lightspeed-mcp) - Open the interactive inventory dashboard
list_hosts call (hostname_or_id, display_name, per_page, etc.)mcp-lightspeed-validator - PREREQUISITE - Validates Lightspeed MCP server configuration and connectivity
cve-impact - Analyze CVE severity and risk after identifying affected systems
cve-validation - Validate CVE IDs before querying affected systems
system-context - Get detailed system configuration for specific hosts
/remediation (skill) - Transition to remediation workflows after discovery
Information-First Workflow:
User Query: "Show the managed fleet"
↓
fleet-inventory skill (discovery)
↓
Systems identified: 42 total, 15 affected by CVE-2024-1234
↓
User: "What's the risk of CVE-2024-1234?"
↓
cve-impact skill (analysis)
↓
CVSS 8.1, Critical severity, affects httpd package
↓
User: "Remediate CVE-2024-1234 on all production systems"
↓
`/remediation` skill (action)
↓
Playbook generated and executed
Key Principle: Always start with discovery before taking remediation actions. This ensures informed decisions based on actual fleet state.
Read references/03-output-templates.md for report format. Read references/04-examples.md for fleet, CVE-affected, and environment-filter examples. Read references/05-error-handling.md for no-results, API errors, and stale system handling.
Start broad then filter; group by environment/RHEL/tier; highlight stale systems; offer /remediation transitions; use tables and percentages; declare document consultations; verify prerequisites first.
references/01-parameter-reference.md (opens in a new tab)references/03-output-templates.md (opens in a new tab)references/04-examples.md (opens in a new tab)references/05-error-handling.md (opens in a new tab)references/insights/fleet-management.md (opens in a new tab)references/insights/insights-api.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
inheritnpx claudepluginhub rhecosystemappeng/agentic-catalog --plugin rh-sreOther plugins' skills for the same job
13 skills in this plugin
/cve-impact**CRITICAL**: Use for ALL CVE discovery and listing. DO NOT call get_cves directly.
Use when: "show critical CVEs", "CVEs on hostname X", "remediatable vulnerabilities", "impact of CVE-X", risk assessment.
NOT for remediation (use `/remediation`).
System-level: FIRST reply = pagination prompt (Step -1). Parsing: scripts/01-cve-response-parser.py.
/cve-validation**CRITICAL**: This skill must be used for CVE validation queries. DO NOT use raw MCP tools like get_cve directly.
Validate CVE identifiers and check remediation availability in Red Hat Lightspeed.
Use when:
- "Is CVE-2024-1234 valid and remediable?"
- "Check if CVE-X has automated remediation available"
- "Verify these CVEs before creating a playbook"
- "Validate CVE list for batch remediation"
**DO NOT use this skill when** user requests full remediation - use `/remediation` skill instead:
- "Create a remediation playbook for CVE-X" → `/remediation` skill
- "Create playbook and execute it" → `/remediation` skill
- "Remediate CVE-X" / "Patch CVE-X" → `/remediation` skill
This skill orchestrates MCP tools (get_cve) for CVE validation. The `/remediation` skill invokes this skill as Step 2 of its workflow.
/execution-summaryGenerates a concise report of agents, skills, tools, and documentation accessed during a workflow for audit and learning purposes.
Use when:
- "Generate execution summary"
- "Create execution report"
- "Summarize what was used"
- "Show execution summary"
- "What agents/skills/tools were used?"
/job-template-creatorCreate AAP (Ansible Automation Platform) job templates for executing playbooks. Use when users request:
- "Create a job template for this playbook"
- "Set up a template to run remediation playbooks"
- "Configure AAP to execute this playbook"
- "Add a new job template for CVE remediation"
This skill guides through adding playbooks to Git projects and creating job templates via AAP Web UI.
/job-template-remediation-validatorVerify an AAP job template meets requirements for executing CVE remediation playbooks.
Use when:
- "Does this job template support remediation playbooks?"
- "Validate job template X for CVE remediation"
- "Check if template is ready for playbook-executor"
- Before playbook-executor selects a template
NOT for: AAP MCP connectivity (use `/mcp-aap-validator`), creating templates (use `/job-template-creator`).
/mcp-aap-validatorValidate AAP (Ansible Automation Platform) MCP server connectivity. Use when the user asks to "validate AAP MCP", "check AAP connection", or when other skills need to verify AAP MCP availability before job management or inventory operations.