server-inspect

Comprehensive inspection of server-running programs: check process status, port usage, and log information, and classify and analyze each project's running condition by deployment path.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "server-inspect" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-4853c9975c7884f9f25f3fab0f21d309cd193826e40453738d66b95f574c4cba. Verify the upstream source and version against https://skillhub.cn/skills/user_555dda85/server-inspect before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Comprehensive inspection of server-running programs: check process status, port usage, and log information, and classify and analyze each project's running condition by deployment path.

0 Downloads

Introduction source: third_party · user_555dda85 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: server-inspect
description: 服务器运行程序综合巡检;检测进程状态、端口占用、日志信息;按部署路径分类分析各项目运行情况
dependency:
  python:
    - psutil==5.9.5
  system:
    - ps
    - ss

服务器巡检技能

任务目标

  • 本 Skill 用于:服务器运行程序情况综合巡检
  • 能力包含:进程识别、端口监听检测、日志读取、多路径分类分析、路径筛选
  • 触发条件:用户需要了解服务器上各项目的运行状态时

前置准备

  • 依赖说明:psutil==5.9.5(跨平台进程与网络管理库)
  • 非标准文件/文件夹准备:无需额外准备

操作步骤

标准流程

  1. 确定巡检路径

    • 使用 --paths 指定具体路径(逗号分隔)
    • 或使用 --default-paths 启用默认路径列表:/home, /opt, /app, /var/www, /srv
  2. 执行巡检

    • 脚本调用示例:
      python scripts/inspect.py --paths /opt/myapp,/home/app --processes --ports --logs
    • 参数说明:
      • --paths: 指定巡检路径(优先级高于 --default-paths)
      • --default-paths: 使用系统预设的常用部署路径
      • --processes: 巡检进程信息
      • --ports: 巡检端口监听
      • --logs: 巡检日志(需配合 --log-pattern 或 --log-paths)
      • --log-pattern: 日志文件匹配模式(默认 *.log)
      • --log-paths: 日志目录路径(逗号分隔)
      • --log-lines: 单个日志文件读取行数(默认100)
  3. 解析输出结果

    • 脚本输出 JSON 格式报告
    • 按路径分类组织数据
    • 每个路径包含:进程列表、端口占用、日志摘要

可选分支

  • 当只关心特定项目时,使用 --paths 精确指定
  • 当需要完整系统概览时,使用 --default-paths
  • 当日志路径非标准时,使用 --log-paths 指定

使用示例

示例1:巡检指定项目

  • 场景/输入:--paths /opt/webapp,/home/api --processes --ports --logs
  • 预期产出:JSON报告,包含 /opt/webapp 和 /home/api 两个项目的进程、端口、日志详情
  • 关键要点:路径需使用绝对路径,多路径用逗号分隔

示例2:系统级快速扫描

  • 场景/输入:--default-paths --processes --ports
  • 预期产出:所有默认部署路径下运行程序的进程和端口信息
  • 关键要点:不包含日志信息,适用于快速状态检查

示例3:仅查看端口占用

  • 场景/输入:--default-paths --ports
  • 预期产出:所有路径下程序的端口监听情况汇总
  • 关键要点:可用于排查端口冲突

资源索引

注意事项

  • 脚本需要读取 /proc 目录和执行系统命令,确保有足够权限
  • 日志巡检会读取文件末尾,请确认 log-lines 参数避免输出过大
  • 进程与路径的关联通过进程的 exe 路径和工作目录判断

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供服务器运行程序综合巡检能力,涵盖进程状态、端口占用、日志信息检测
  • 按部署路径分类分析,满足运维刚需场景
Trigger Precision90/100

Highlights

  • 触发词精准完整,覆盖多种变体(指定路径、默认路径、日志巡检等)
  • 边界清晰,不易误触或漏触
Structure and Standards90/100

Highlights

  • 文档结构完整,包含任务目标、前置准备、操作步骤、使用示例、资源索引、注意事项
  • Phase/步骤清晰,有出口条件,含端到端示例
Execution Reliability85/100

Highlights

  • 依赖明确(psutil==5.9.5),参数说明清晰
  • 覆盖主要异常(权限、日志行数控制),工具来源可靠
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.