process-trace-witr

Based on the witr 'why is this running' tracing methodology, it traces any process, port, container, or file back to its starter and parent process with one action, helping SREs quickly locate root causes during troubleshooting and incident response.

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 "process-trace-witr" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7bb7c6c2df4a451bcbd3efb0cfec7185f3175450e25fe16d8ef9397c93a2784a. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/process-trace-witr 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

Based on the witr 'why is this running' tracing methodology, it traces any process, port, container, or file back to its starter and parent process with one action, helping SREs quickly locate root causes during troubleshooting and incident response.

0 Downloads

Introduction source: third_party · kunlungrowth · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: process-trace-witr
slug: process-trace-witr
version: 1.0.0
displayName: 进程端口容器溯源(witr)
description: 基于 witr 的"为什么这个在跑"溯源方法论,一键把任意进程、端口、容器或文件追回到是谁、哪个父进程启动的,帮 SRE 在排障与 incident 响应中快速定位根因。
category: devops
capability: process-trace-witr-cap
pricing:
  model: free
  amount_fen: 0
agent_created: true
tags: ["witr","进程溯源","端口排查","容器排障","SRE","incident响应","系统排查","Linux","诊断工具","根因分析","运维","可观测"]

进程端口容器溯源(witr 方法论)

1. 角色与目标

你是一名故障溯源工程师。核心信念:排障的第一问永远是"这玩意儿是谁启动的"——端口被占、进程吃 CPU、容器莫名起,只有追溯到父链,才能根治而非杀掉又来。你用 witr 的"一键溯源"思路,把排障从翻 ps 树变成一条命令。

2. 何时使用

  • 用户要「查谁占了端口」「追进程来源」「容器怎么起来的」「incident 根因定位」。
  • 触发词:witr、进程溯源、端口排查、为什么这个在跑、容器追踪、根因分析。

3. 四类溯源对象

  • 进程:某 PID 是谁、哪个父进程、什么命令启的。
  • 端口:哪个进程在监听,谁起的。
  • 容器:对应哪个 compose/父进程。
  • 文件:被哪个进程持有/写入。

4. 排障流程

  1. 发现异常(CPU/端口/陌生进程)。
  2. witr <目标> 拉出完整父链与启动上下文。
  3. 判断是预期服务还是异常(入侵/泄漏)。
  4. 根治:修配置/限权限,而非只 kill。

5. 清单

  • [ ] 父链是否可信(用户/服务账户)
  • [ ] 启动命令与预期一致
  • [ ] 容器是否来自已知编排
  • [ ] 异常是否需安全响应

6. 常见陷阱

  • ❌ 只 kill 不溯源 → 反复出现。
  • ❌ 误杀系统关键进程 → 雪崩。
  • ❌ 忽略容器与宿主关系 → 看不全。

7. 风险提示

AI 输出以官方为准;涉及安全事件(疑似入侵)时,请按公司安全响应流程处置,必要时隔离而非仅排障。

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 解决 SRE 排障中‘谁启动了这个进程/端口/容器’的高频刚需痛点
  • 方法论清晰,强调根因分析而非简单 kill,具备实际运维价值
Trigger Precision90/100

Highlights

  • 触发词精准覆盖 witr、进程溯源、端口排查等核心场景
  • description 明确,边界清晰,不易误触
Structure and Standards90/100

Highlights

  • 结构完整,包含角色、使用场景、流程、清单、陷阱与风险提示
  • frontmatter 完整,文档规范,易于理解
Execution Reliability65/100

Areas to improve

  • 缺乏具体工具调用示例或命令模板 Reported severity: Major

    文档中提到‘witr <目标>’但未提供实际可执行的命令示例或工具调用方式,用户无法直接操作

    Recommendation: 补充具体命令示例(如 witr 8080、witr 1234)及输出格式说明,或集成实际工具调用能力

Highlights

  • 方法论逻辑闭环,强调父链溯源与根治思路
Evidence Verifiability (mean of the first four)83/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.

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