功能(commands): 添加 IP 通知 skill
添加 arno-change-ip skill 用于发送当前公网IP到监控服务端 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,55 @@
|
|||||||
|
---
|
||||||
|
name: IP通知
|
||||||
|
description: 发送当前公网IP到监控服务端
|
||||||
|
---
|
||||||
|
|
||||||
|
## 用户输入
|
||||||
|
|
||||||
|
```text
|
||||||
|
$ARGUMENTS
|
||||||
|
```
|
||||||
|
|
||||||
|
执行前**必须**处理用户输入(非空时)
|
||||||
|
|
||||||
|
## 参数说明
|
||||||
|
|
||||||
|
支持以下参数:
|
||||||
|
|
||||||
|
- `[IP地址]` - 可选,要通知的IP地址。不提供则自动获取当前公网IP
|
||||||
|
|
||||||
|
## 输出
|
||||||
|
|
||||||
|
### 格式要求
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
## IP 通知结果
|
||||||
|
|
||||||
|
**IP 地址**: {IP}
|
||||||
|
**状态**: {成功/失败}
|
||||||
|
**HTTP 状态码**: {状态码}
|
||||||
|
|
||||||
|
{响应内容(如果有)}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 执行规则
|
||||||
|
|
||||||
|
1. **默认行为** - 无参数时,自动获取当前公网IP并发送通知
|
||||||
|
2. **指定IP** - 用户提供IP地址时,直接使用该IP
|
||||||
|
3. **脚本位置** - `/home/arno/.local/bin/change-ip-notify.sh`
|
||||||
|
4. **执行方式** - 调用 bash 脚本并返回结果
|
||||||
|
|
||||||
|
### 执行命令
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 获取IP并发送通知
|
||||||
|
/home/arno/.local/bin/change-ip-notify.sh
|
||||||
|
|
||||||
|
# 通知指定IP
|
||||||
|
/home/arno/.local/bin/change-ip-notify.sh 1.2.3.4
|
||||||
|
```
|
||||||
|
|
||||||
|
### 注意事项
|
||||||
|
|
||||||
|
- 确保网络连接正常
|
||||||
|
- 服务端必须可访问
|
||||||
|
- 密钥已硬编码在脚本中,无需额外配置
|
||||||
Reference in New Issue
Block a user