rhecosystemappeng/agentic-collections/fleet-inventory
Claude Code and agent skill by rhecosystemappeng/agentic-collections
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install rhecosystemappeng/agentic-collections/fleet-inventorySKILL.md
The same SKILL.md was published earlier as rhecosystemappeng/agentic-collections/fleet-inventory.
Fleet Inventory Skill
This skill queries Red Hat Lightspeed to retrieve and display information about managed systems, registered hosts, and fleet inventory.
Prerequisites
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 secret
Prerequisite Validation
CRITICAL: 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..
When to Use This Skill
Use this skill directly when you need:
- List all systems registered in Red Hat Lightspeed
- Show systems affected by specific CVEs
- Display system details (OS version, tags, last check-in)
- Filter systems by environment, RHEL version, or tags
- Count systems matching criteria
- Verify system registration status
Use the `/remediation` skill when you need:
- Remediate vulnerabilities on systems
- Generate or execute playbooks
- Perform infrastructure changes
- End-to-end CVE remediation workflows
How they work together: Use this skill for discovery ("What systems are affected?"), then transition to the /remediation skill for action ("Remediate those systems").
Workflow
Step 0: Validate Lightspeed MCP Prerequisites
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:
- If validation PASSED: Continue to Step 1
- If validation PARTIAL (connectivity test unavailable):
- Warn user: "Configuration appears correct but connectivity could not be tested"
- Ask: "Do you want to proceed? (yes/no)"
- If yes: Continue to Step 1
- If no: Stop execution
- If validation FAILED:
- The validator provides error details and setup instructions
- Wait for user decision (setup/skip/abort)
- If user chooses "skip": Attempt Step 1 anyway (may fail)
- If user chooses "setup" or "abort": Stop execution
Example:
Step 1: Retrieve System Inventory
Document Consultation (REQUIRED - Execute FIRST):
- Action: Read insights-api.md using the Read tool to understand
inventory__list_hostsresponse format and pagination handling - Output to user: "I consulted insights-api.md to understand the
inventory__list_hostsresponse 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 tolist_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 UUID
Verification Checklist:
- ✓ Response includes
total,count,page,per_page, andresults - ✓ Hosts list returned with metadata
- ✓ Total count matches expectation (paginate with
pagewhilecountequalsper_page) - ✓ No authentication errors (401/403)
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.versionor equivalent — frominventory__get_host_system_profile; equivalents includeoperating_system.major/minor,os_release,operating_system.nametags: Environment labels (when present on the host)
Step 2: Filter and Organize Systems
Document Consultation (REQUIRED - Execute FIRST):
- Action: Read fleet-management.md using the Read tool to understand fleet inventory reporting structure and best practices
- Output to user: "I consulted fleet-management.md to structure this inventory report."
Apply user-requested filters and grouping. See references/01-parameter-reference.md for filtering and sorting patterns.
Step 3: Query CVE-Affected Systems
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:
- ✓ CVE ID matches request exactly
- ✓ System list includes remediation status for each
- ✓ Counts are accurate (affected, remediated, still vulnerable)
- ✓
remediation_availableflag is present
Status Interpretation:
Step 4: Present Results
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](references/03-output-templates.md) for report format (Overview, RHEL/Environment breakdown, System Details, Stale Systems).
Step 5: Follow-up
When appropriate, suggest transitioning to the /remediation skill:
Dependencies
Required MCP Servers
lightspeed-mcp- Red Hat Lightspeed platform access for system inventory and CVE data
Required MCP Tools
inventory__list_hosts(from lightspeed-mcp) - List and discover registered hosts- Parameters:
per_page,page,display_name,tags,staleness, etc. - Returns:
{ total, count, page, per_page, results[] }with id, display_name, fqdn, updated, last_check_in, staleness timestamps
inventory__find_host_by_name(from lightspeed-mcp) - Resolve hostname to host record- Parameters:
hostname(required) - Returns: Host record with UUID
inventory__get_host_details(from lightspeed-mcp) - Retrieve inventory metadata for known host UUIDs- Parameters:
host_ids(required, comma-separated UUID string) - Returns: Same pagination wrapper; host records similar to
list_hosts(not guaranteed to includesystem_profile)
inventory__get_host_system_profile(from lightspeed-mcp) - Retrieve OS version and system profile- Parameters:
host_ids(comma-separated; one or two UUIDs at a time) - Returns:
system_profilewithoperating_system(name, major, minor),os_release, packages, services
vulnerability__get_cve_systems(from lightspeed-mcp) - Find systems affected by specific CVEs- Parameters:
cve(string, format: CVE-YYYY-NNNNN),limit,offset - Returns: Paginated list of affected systems with vulnerability and remediation status
inventory__load_inventory_dashboard(from lightspeed-mcp) - Open the interactive inventory dashboard- Parameters: Query parameters matching the
list_hostscall (hostname_or_id, display_name, per_page, etc.) - Returns: Interactive dashboard with host browsing, staleness filters, and system profiles
- Falls back to text if unavailable or client does not support UI
Related Skills
mcp-lightspeed-validator- PREREQUISITE - Validates Lightspeed MCP server configuration and connectivity- Use before: ALL fleet-inventory operations (Step 0 in workflow)
- Purpose: Ensures MCP server is available before attempting tool calls
- Prevents errors from missing configuration or credentials
cve-impact- Analyze CVE severity and risk after identifying affected systems- Use after: "What systems are affected by CVE-X?" → "What's the risk of CVE-X?"
cve-validation- Validate CVE IDs before querying affected systems- Use before: If CVE ID format is unclear, validate first
system-context- Get detailed system configuration for specific hosts- Use after: Fleet discovery identifies systems needing deeper investigation
/remediation(skill) - Transition to remediation workflows after discovery- Use after: "Show affected systems" → "Remediate those systems"
Reference Documentation
- insights-api.md - Red Hat Lightspeed API patterns and response formats
- fleet-management.md - System inventory best practices and filtering strategies
Skill Orchestration Pattern
Information-First Workflow:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingrh-sre/skills/fleet-inventory/SKILL.md
Popularity
- Repository stars
- 48
- Repository forks
- 32
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rhecosystemappeng/agentic-collections/fleet-inventory)