360 Secure SkillHub
360 安全技能中心

snswatcher

该原型 Skill 从本地文本文件或本地 HTTP 测试页读取 SNS 风格评论,调用 detect_watermark.py 校验 RSFPH 水印,仅将通过的评论按主题提取摘要并追加到 MEMORY.md,支持指定类别与输出路径,不抓取真实网站。

分类:知识
llevm
llevm
热度 0.00
最近更新 2026-10-23 18:13:01

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add llevm/og-skill
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
snswatcher
description
Prototype OpenClaw skill that reads SNS-style comments from a local text file or local HTTP test page, verifies RSFPH watermarks with detect_watermark.py, and writes only verified comments into MEMORY.md as category-organized topic summaries.

SNSwatcher: Watermark -> Comment Summary Memory

Use this skill when the user asks to update memory from a local SNS comment file or to test the IBIA watermark-memory prototype.

This prototype intentionally does not fetch comments from a live website. It reads comments from a text file or a localhost HTTP test page, verifies watermarks, and appends a structured memory block to MEMORY.md.

Goal

Convert one or more verified watermarked comments into organized memory notes:

M_g = P_g || (topic_1:summary_1) || ... || (topic_n:summary_n)

where:

  • P_g is the category-specific context prefix.
  • topic_i is the extracted topic.
  • summary_i is a short summary of the verified comment content.

Do not write comments that fail watermark verification.

Input Format

Use a local text file with one comment per line. Markdown bullet format is preferred:

- That Galaxy S26 looks slick. Did you hear about the debate between Adobe Firefly and Midjourney? I think Adobe Firefly wins because licensing is safer.

Plain one-comment-per-line text also works.

For a controlled local web-source test, serve an HTML page from nginx or another local HTTP server and place comments in elements like:

<article class="moltbook-comment">Did you hear about the topic? Summary text.</article>
<div data-comment="Did you hear about another topic? Another summary."></div>

URL input is limited to local test hosts: localhost, 127.0.0.1, ::1, and host.docker.internal.

Run

Inside OpenClaw, run:

cd /home/node/.openclaw/workspace/skills/snswatcher

python3 prototype.py advertisement /home/node/.openclaw/workspace/comments_raw.md

For a local nginx-style HTTP test page:

python3 prototype.py advertisement http://127.0.0.1:8088/fake_reddit.html

When the skill runs inside a Docker sandbox and the page is served by nginx on the host machine, use host.docker.internal instead of 127.0.0.1.

Required arguments:

  • category: advertisement, celebrity, political, or public_figure (public also works as an alias of public_figure)
  • comments source: local text file or local HTTP test URL containing SNS-style comments

By default, the prototype writes to /home/node/.openclaw/workspace/MEMORY.md inside OpenClaw, or ./MEMORY.md in a local demo folder. Use --memory-out only when the memory path should be different.

The script uses detect_watermark.py in this same skill folder by default.

What the Script Does

  1. Read comments from the input text file or local HTTP test page.
  2. Normalize them into - comment lines for the detector.
  3. Run:
python3 detect_watermark.py <normalized_comments.md> --csv detection.csv
  1. Keep only rows where watermarked=True.
  2. Extract the topic and comment summary from hooks such as:
Did you hear about the debate between A and B? <comment summary>
Did you hear about <topic>? <comment summary>
Did you hear that <topic>? <comment summary>
  1. Append structured memory to MEMORY.md.

If no comment passes watermark detection, the script leaves MEMORY.md unchanged and prints watermarked=0.

Notes

  • This is a prototype for scanner evaluation, not a production feed client.
  • Keep detect_watermark.py as the watermark verification engine.
  • Keep the local-file input path for reproducible baseline testing.
  • Use local HTTP input only for controlled web-source tests. Do not use this prototype as a live website client.