跳到正文
Skillpedia
通用编程43k · #6398

system-info

它能做什么

这个技能让 AI 检查运行 AgentOS 进程的机器,并列出目录内容。适合需要了解主机环境详细信息的人。

适用场景

  • ✓当你想知道主机运行的是哪种操作系统或 Python 版本的时候。
  • ✓当你需要列出主机某个目录中的文件和文件夹的时候。
  • ✓当你需要主机当前的 UTC 时间的时候。

技能链接

https://github.com/agno-agi/agno/blob/main/cookbook/05_agent_os/23_skills/sample_skills/system-info/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/agno-agi/agno/blob/main/cookbook/05_agent_os/23_skills/sample_skills/system-info/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“这台服务器运行的是哪种操作系统和 Python 版本?”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会运行两个附带脚本之一,并读取结构化的结果。它只报告成功运行得到的数据。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

System Info Skill

Use this skill when the user asks about the host running the AgentOS process or needs a directory inventory from that host.

Available scripts

  • get_system_info.py returns the hostname, operating system, architecture, Python version and executable, processor, and current UTC time.
  • list_directory.py lists the direct children of a directory. It accepts one optional path argument and defaults to the skill directory.

Execution

Load these instructions before choosing a script. Execute a script through the skill tool and inspect its structured result:

get_skill_script(
    skill_name="system-info",
    script_path="get_system_info.py",
    execute=True,
)

To list a directory:

get_skill_script(
    skill_name="system-info",
    script_path="list_directory.py",
    execute=True,
    args=["."],
)

Only use data parsed from stdout when returncode is 0. If execution returns a nonzero code, report stderr or the JSON error instead of inferring the result.

常见问题

系统信息脚本返回什么?

返回主机名、操作系统、架构、Python 版本和路径、处理器以及当前的 UTC 时间。

目录脚本做什么?

列出某个文件夹中的直接条目;如果没有提供路径,则默认为技能自身所在的文件夹。

脚本失败会怎样?

技能要求报告错误,而不是猜测结果。

详情

作者的原始描述

Inspect the host operating system, Python runtime, and local files

repo: agno-agi/agno

热度

GitHub 星标
43k
排名
#6398
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能