home / skills / agno-agi / agno / system-info

This skill helps you gather basic system information and directory listings using simple Python scripts.

npx playbooks add skill agno-agi/agno --skill system-info

Review the files below or copy the command above to add this skill to your agents.

Files (3)
SKILL.md
597 B
---
name: system-info
description: Get system information using executable scripts
license: MIT
metadata:
  version: "1.0.0"
  author: agno
---
# System Info Skill

This skill provides scripts to gather system information.

## Available Scripts

- `get_system_info.py` - Returns basic system information (OS, Python version, current time)
- `list_directory.py` - Lists files in a specified directory

## Usage

1. Use `run_skill_script("system-info", "get_system_info.py")` to get system information
2. Use `run_skill_script("system-info", "list_directory.py", args=["path"])` to list a directory

Overview

This skill provides small executable Python scripts to collect basic system information and inspect file system contents. It is designed for developers who need quick diagnostics or want to integrate lightweight environment checks into multi-agent workflows. The outputs are simple, parseable, and suitable for automation.

How this skill works

The skill exposes two scripts: one returns OS details, Python version, and the current time; the other lists files in a provided directory path. Each script can be invoked via run_skill_script with the skill name and script filename, and optional args for path input. Scripts run locally in the agent environment and return plain-text or simple structured output appropriate for programmatic consumption.

When to use it

  • Verify runtime environment (OS and Python version) before starting agents
  • Collect quick diagnostics for debugging multi-agent deployments
  • Audit or enumerate files in a working directory during tests
  • Confirm system time and timezone consistency across nodes
  • Integrate small health checks into CI or orchestration scripts

Best practices

  • Run the system info check at startup to log environment details for reproducibility
  • Validate and sanitize any directory path before calling the list_directory script
  • Use the Python version output to gate feature flags or dependency checks
  • Capture and store script outputs in logs for postmortem analysis
  • Limit file listings to expected directories to avoid exposing sensitive paths

Example use cases

  • Startup check: call get_system_info.py to record OS, Python version, and timestamp when an agent boots
  • Pre-deploy validation: ensure target machines match required Python runtime before deploying agents
  • Directory inspection: run list_directory.py with a project path to verify required files exist
  • CI pipeline: include get_system_info.py to record build environment metadata for reproducible builds

FAQ

How do I run these scripts from an agent?

Use run_skill_script("system-info", "get_system_info.py") or run_skill_script("system-info", "list_directory.py", args=["/path"]) from the agent runtime to execute them.

What output format should I expect?

Outputs are simple, human-readable text or minimal structured text intended for easy parsing; treat them as diagnostics rather than full telemetry streams.

Is there any risk listing arbitrary directories?

Yes. Avoid listing sensitive system paths and always validate user-supplied paths to prevent accidental exposure of secrets.