AgentSkillsCN

mitm-status

检查 MITM 代理的状态、规则数量以及请求统计信息。适用于用户询问代理是否正在运行,或希望查看当前状态时使用。

SKILL.md
--- frontmatter
name: mitm-status
description: Check MITM proxy status, rule counts, and request statistics. Use when the user asks if the proxy is running or wants to see current state.
allowed-tools: Bash(bash *) Bash(curl *)

Proxy Status

Quick check on the MITM proxy state.

bash
curl -s http://localhost:8889/api/status | cat

Response shape:

json
{
  "proxyRunning": true,
  "proxyPort": 8888,
  "ruleCount": {
    "file": 2,
    "api": 3,
    "breakpoints": 0,
    "blocks": 1,
    "redirects": 0
  },
  "requestCount": 42
}

Fields:

FieldDescription
proxyRunningWhether the proxy is actively intercepting
proxyPortThe port the proxy listens on
ruleCount.fileRules loaded from rules/ directory
ruleCount.apiRules created via REST API
ruleCount.breakpointsActive request/response breakpoints
ruleCount.blocksActive block rules
ruleCount.redirectsActive redirect rules
requestCountTotal intercepted requests this session

If the proxy is not running, the curl command will fail with a connection error.

Bundled script

For a formatted health check with retry logic:

bash
bash skills/mitm-status/scripts/health-check.sh

Retries up to 3 times (configurable: bash health-check.sh 5) and outputs a formatted status table.