Ioc Patrol Report
/install ioc-patrol-report-cn
๐ข IOC ๆบ่ฝๅทกๆฃๆฅๅ
ไธบๆบ่ฝๅปบ็ญ/ๅญๅบ่ชๅจ็ๆไธไธๅทกๆฃๆฅๅ
โจ ๆ ธๅฟๅ่ฝ
| ๅ่ฝๆจกๅ | ๆ่ฟฐ |
|---|---|
| ๐ ่ฎพๅค็ถๆๅทกๆฃ | ๅๆ่ฎพๅคๅจ็บฟ็ใๆ ้ๅๅธใ่ฟ่ก็ถๆ |
| ๐จ ๆฅ่ญฆๅค็ๅๆ | ็ป่ฎกๆฅ่ญฆๆฐ้ใๅๅบๆถ้ฟใๅค็็ใ้ๅคๆฅ่ญฆ |
| โก ่ฝ่ๆฐๆฎๅๆ | ๅฏนๆฏๆจๆฅ/ไธๅจ่ฝ่๏ผ่ฏๅซๅผๅธธ็จ่ฝ็น |
| ๐ ๅทฅๅ่ฟๅบฆ่ฟฝ่ธช | ็ป่ฎกๅทฅๅๅฎๆ็ใSLA่พพๆๆ ๅตใ็งฏๅๆ ๅต |
| ๐ก ๆบ่ฝๅปบ่ฎฎ็ๆ | ๅบไบๆฐๆฎ่ชๅจ็ๆ่ฟ็ปดไผๅๅปบ่ฎฎ |
๐ ๅฟซ้ๅผๅง
ๅฎ่ฃ
clawhub install ioc-patrol-report
้ ็ฝฎๆฐๆฎๆบ
็ผ่พ ~/.openclaw/skills/ioc-patrol-report/config.yaml๏ผ
database:
host: localhost
port: 5432
name: ioc_db
user: admin
password: ${DB_PASSWORD} # ๅปบ่ฎฎไฝฟ็จ็ฏๅขๅ้
tables:
devices: devices # ่ฎพๅค่กจ
alarms: alarms # ๆฅ่ญฆ่กจ
work_orders: work_orders # ๅทฅๅ่กจ
energy: energy_records # ่ฝ่่กจ
report:
company_name: "XX็ฉไธ็ฎก็ๆ้ๅ
ฌๅธ"
project_name: "XXๅไธ็ปผๅไฝ"
output_dir: "./reports"
็ๆๆฅๅ
# ็ๆไปๆฅๅทกๆฃๆฅๅ
cd skills/ioc-patrol-report
uv run scripts/generate_report.py --type daily
# ็ๆๆๅฎๆฅๆๆฅๅ
uv run scripts/generate_report.py --type daily --date 2026-03-20
# ็ๆๆฌๅจๅทกๆฃๆฅๅ
uv run scripts/generate_report.py --type weekly --week 2026-W12
๐ ๆฅๅ็คบไพ
ๆฅๆฅ่พๅบๆ ผๅผ
# ๐ IOCๆบ่ฝๅทกๆฃๆฅๆฅ - 2026-03-20
## ไธใ่ฎพๅค็ถๆๆป่ง
| ็ฑปๅ | ๆปๆฐ | ๅจ็บฟ | ็ฆป็บฟ | ๆ
้ | ๅจ็บฟ็ |
|------|------|------|------|------|--------|
| ็ฉบ่ฐ | 128 | 125 | 2 | 1 | 97.7% |
| ็
งๆ | 356 | 354 | 2 | 0 | 99.4% |
| ็ตๆขฏ | 24 | 24 | 0 | 0 | 100% |
| ๆถ้ฒ | 89 | 89 | 0 | 0 | 100% |
## ไบใๆฅ่ญฆๅค็ๆ
ๅต
- ไปๆฅๆฅ่ญฆๆปๆฐ๏ผ23 ๆก
- ๅทฒๅค็๏ผ21 ๆก
- ๅค็ไธญ๏ผ2 ๆก
- ๅนณๅๅๅบๆถ้ด๏ผ8.5 ๅ้
- ๅค็็๏ผ91.3%
### ้็นๅ
ณๆณจๆฅ่ญฆ
1. ๐ด 3F-็ฉบ่ฐๆบ็ปAๅผๅธธ๏ผๅค็ไธญ๏ผ
2. ๐ก ๅฐไธๅฎค็
งๆๅ่ทฏๆ
้๏ผๅทฒๅค็๏ผ
## ไธใ่ฝ่ๅๆ
| ่ฝๆบ็ฑปๅ | ไปๆฅ็จ้ | ๆจๆฅ็จ้ | ็ฏๆฏ |
|----------|----------|----------|------|
| ็ต(kWh) | 12,345 | 12,100 | +2.0% |
| ๆฐด(mยณ) | 456 | 480 | -5.0% |
| ๅคฉ็ถๆฐ(mยณ) | 123 | 130 | -5.4% |
## ๅใๅทฅๅ่ฟๅบฆ
- ๆฐๅขๅทฅๅ๏ผ5 ไธช
- ๅทฒๅฎๆ๏ผ4 ไธช
- ่ฟ่กไธญ๏ผ3 ไธช
- SLA่พพๆ็๏ผ92%
## ไบใ่ฟ็ปดๅปบ่ฎฎ
1. โ ๏ธ 3F็ฉบ่ฐๆบ็ป้้็นๅ
ณๆณจ๏ผๅปบ่ฎฎๅฎๆๆฃไฟฎ
2. โ
่ฝ่ๆดไฝๅนณ็จณ๏ผ็จๆฐด้ๆ็ปญไธ้๏ผ่ๆฐดๆชๆฝ่งๆ
3. ๐ ๅปบ่ฎฎๅขๅ ๅฐไธๅฎค็
งๆๅทกๆฃ้ขๆฌก
---
*ๆฅๅ็ๆๆถ้ด๏ผ2026-03-20 08:00*
*IOCๆบ่ฝ่ฟ็ปด็ณป็ป*
๐ ไฝฟ็จๆกไพ
ๆกไพ1๏ผๅไธ็ปผๅไฝๆฅๅธธๅทกๆฃ
ๅบๆฏ๏ผๆๅไธ็ปผๅไฝ็ฉไธๆฏๅคฉ้่ฆ็ๆๅทกๆฃๆฅๅ
้ ็ฝฎ๏ผ
report:
company_name: "XX็ฉไธ็ฎก็ๅ
ฌๅธ"
project_name: "XX่ดญ็ฉไธญๅฟ"
ๅฎๆถไปปๅก๏ผ
# crontab -e
0 8 * * * cd /root/clawd/skills/ioc-patrol-report && uv run scripts/generate_report.py --type daily
ๆกไพ2๏ผๅทฅไธๅญๅบๅจๆฅๆฑๆป
ๅบๆฏ๏ผๅทฅไธๅญๅบๆฏๅจๆฑๆป่ฟ็ปดๆฐๆฎ
้ ็ฝฎ๏ผ
report:
company_name: "XXๅทฅไธๅญๅบ"
project_name: "Aๅบๅๆฟ"
weekly_summary: true
ๆง่ก๏ผ
# ๆฏๅจไธๆฉ8็น็ๆ
0 8 * * 1 uv run scripts/generate_report.py --type weekly
ๆกไพ3๏ผๅป้ขๆบ่ฝ่ฟ็ปด
ๅบๆฏ๏ผๅป้ขๅๅค้จ้จ้่ฆ้็นๅ ณๆณจ่ฎพๅค่ฟ่ก
่ชๅฎไน้ ็ฝฎ๏ผ
priority_devices:
- type: "ๅป็จๆฐไฝ"
alert_threshold: 99.9% # ๅฏ็จๆง่ฆๆฑ
- type: "ๅๅ็ฉบ่ฐ"
alert_threshold: 99%
- type: "็ตๆขฏ"
alert_threshold: 99.5%
ๆกไพ4๏ผๆฐๆฎไธญๅฟๅทกๆฃ
ๅบๆฏ๏ผๆฐๆฎไธญๅฟ้่ฆไธฅๆ ผ็ๆงๆธฉๆนฟๅบฆๅ็ตๅ
่ชๅฎไนๆๆ ๏ผ
custom_metrics:
temperature:
range: [18, 27] # ๅ่ง่ๅด
alert_deviation: 2 # ๅๅทฎๅ่ญฆ้ๅผ
humidity:
range: [40, 60]
ups_load:
max: 80% # ่ด่ฝฝไธ้
โ๏ธ ้ซ็บง้ ็ฝฎ
่ชๅฎไนๆฅๅๆจกๆฟ
็ผ่พ assets/report-template.md๏ผ
# {{company_name}} ๅทกๆฃๆฅๅ
## {{project_name}} - {{date}}
{% for section in sections %}
{{ section.content }}
{% endfor %}
่ชๅฎไนๅๆ่งๅ
็ผ่พ scripts/analyze.py๏ผ
def custom_kpi(df):
"""่ชๅฎไนKPI่ฎก็ฎ"""
return {
'availability': df['online'] / df['total'],
'efficiency': df['output'] / df['input']
}
def anomaly_detection(df):
"""่ฝ่ๅผๅธธๆฃๆต"""
threshold = df['value'].mean() * 1.5
return df[df['value'] > threshold]
๐ ็ฎๅฝ็ปๆ
ioc-patrol-report/
โโโ SKILL.md # ๆฌๆๆกฃ
โโโ package.json # ๆ่ฝ้
็ฝฎ
โโโ config.yaml # ๆฐๆฎๆบ้
็ฝฎ
โโโ scripts/
โ โโโ generate_report.py # ไธป็จๅบ
โ โโโ analyze.py # ๅๆๆจกๅ
โ โโโ db_connector.py # ๆฐๆฎๅบ่ฟๆฅ
โโโ assets/
โ โโโ report-template.md # ๆฅๅๆจกๆฟ
โโโ references/
โ โโโ ioc-knowledge.md # IOC็ฅ่ฏๅบ
โ โโโ db-schema.md # ๆฐๆฎๅบ็ปๆ่ฏดๆ
โโโ tests/
โโโ test_report.py # ๅๅ
ๆต่ฏ
๐ง ๆๆฏ่ฆๆฑ
- Python >= 3.10
- PostgreSQL >= 12
- ๅฟ ้ไพ่ต๏ผpsycopg2-binary, pyyaml, pandas, jinja2
๐ ้็จๅบๆฏ
| ๅบๆฏ | ๆฅๅๅจๆ | ้็นๅ ณๆณจ |
|---|---|---|
| ๅไธ็ปผๅไฝ | ๆฅๆฅ/ๅจๆฅ | ๅฎขๆตใ่ฝ่ใ่ฎพๅค |
| ๅทฅไธๅญๅบ | ๅจๆฅ/ๆๆฅ | ่ฎพๅค่ฟ่กใ่ฝ่ๆๆฌ |
| ๅป้ขๅญฆๆ ก | ๆฅๆฅ | ๅ ณ้ฎ่ฎพๅคใ็ฏๅขๅๆฐ |
| ๆฐๆฎไธญๅฟ | ๅฎๆถ/ๆฅๆฅ | ๆธฉๆนฟๅบฆใ็ตๅใ็ฝ็ป |
| ๆบๆ ง็คพๅบ | ๅจๆฅ | ๅฎ้ฒใ่ฝ่ใ่ฎพๅค |
่ฎฉ่ฟ็ปดๆฅๅ่ชๅจๅใๆบ่ฝๅ ๐
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install ioc-patrol-report-cn - After installation, invoke the skill by name or use
/ioc-patrol-report-cn - Provide required inputs per the skill's parameter spec and get structured output
What is Ioc Patrol Report?
๐ข IOCๆบ่ฝ่ฟ็ปดๆฅๅ็ๆๅจ - ไธบๆบ่ฝๅปบ็ญ/ๅญๅบ่ชๅจ็ๆไธไธๅทกๆฃๆฅๅใๅๆ่ฎพๅค็ถๆใๆฅ่ญฆ่ฎฐๅฝใ่ฝ่ๆฐๆฎใๅทฅๅ่ฟๅบฆ๏ผ็ๆๆฅๆฅ/ๅจๆฅใๆฏๆPostgreSQLๆฐๆฎๅบ่ฟๆฅ๏ผ่พๅบMarkdown/HTMLๆ ผๅผใ้็จไบ็ฉไธ็ฎก็ใๅไธ็ปผๅไฝใๅทฅไธๅญๅบใๅป้ขๅญฆๆ ก็ญๆบ่ฝๅปบ็ญ่ฟ็ปดๅบๆฏใ It is an AI Agent Skill for Claude Code / OpenClaw, with 116 downloads so far.
How do I install Ioc Patrol Report?
Run "/install ioc-patrol-report-cn" in the OpenClaw or Claude Code chat to install it in one step โ no extra setup required.
Is Ioc Patrol Report free?
Yes, Ioc Patrol Report is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Ioc Patrol Report support?
Ioc Patrol Report is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Ioc Patrol Report?
It is built and maintained by onlyloveher (@onlyloveher); the current version is v1.0.1.