soulmd-newsletter

#!/usr/bin/env python3 import sys, json, urllib.request, xml.etree.ElementTree as ET, re from datetime import datetime from pathlib import Path

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "soulmd-newsletter" with this command: npx skills add meastt/soulmd-newsletter

#!/usr/bin/env python3 import sys, json, urllib.request, xml.etree.ElementTree as ET, re from datetime import datetime from pathlib import Path

RSS_URL = "https://buttondown.com/soulmd/rss" SUBSCRIBE_URL = "https://buttondown.com/soulmd" STATE_FILE = Path.home() / ".openclaw" / "soul-md-state.json"

def fetch_rss(): req = urllib.request.Request(RSS_URL, headers={"User-Agent": "soul-md-skill/1.0"}) with urllib.request.urlopen(req, timeout=10) as resp: return resp.read()

def parse_latest(xml_bytes): root = ET.fromstring(xml_bytes) item = root.find("channel/item") if item is None: return None plain = re.sub(r"<[^>]+>", "", item.findtext("description", ""))[:600].strip() return {"title": item.findtext("title","").strip(), "link": item.findtext("link","").strip(), "date": item.findtext("pubDate","").strip(), "excerpt": plain}

def load_state(): return json.loads(STATE_FILE.read_text()) if STATE_FILE.exists() else {}

def save_state(state): STATE_FILE.parent.mkdir(parents=True, exist_ok=True) STATE_FILE.write_text(json.dumps(state))

def main(): check_new = "--check-new" in sys.argv try: latest = parse_latest(fetch_rss()) except Exception as e: print(f"Error: {e}", file=sys.stderr); sys.exit(1) if not latest: print("No editions found."); sys.exit(0) if check_new: state = load_state() if latest["link"] == state.get("last_seen_link",""): print("NO_NEW_EDITION"); sys.exit(0) save_state({"last_seen_link": latest["link"], "last_checked": datetime.utcnow().isoformat()}) print(f"TITLE: {latest['title']}\nDATE: {latest['date']}\nLINK: {latest['link']}\nSUBSCRIBE: {SUBSCRIBE_URL}\n\nEXCERPT:\n{latest['excerpt']}")

if name == "main": main()

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

ClawSeal

Cryptographic memory for AI agents with QSEAL tamper-evidence. Zero-config demo mode, scroll-native YAML storage.

Registry SourceRecently Updated
810Profile unavailable
Coding

Daily Tech

每日科技/AI/大模型热榜推送。当用户说"今日科技"、"每日AI"、"科技日报"、"大模型动态"、"AI资讯"、"开启科技推送"时触发。主打AI、大模型、OpenClaw、机器人、GitHubTrending等硬科技,附国际市场动态,来源覆盖中英文。

Registry SourceRecently Updated
1770Profile unavailable
General

AI Tech Intelligence Briefing

Automatically curates and summarizes daily top AI and tech news worldwide, delivering concise, time-zone aware briefings for quick updates.

Registry SourceRecently Updated
3422Profile unavailable
Research

ClawBeat: OpenClaw News, Research & Events

Query live OpenClaw ecosystem intelligence from ClawBeat.co — news, research papers, events, repos, and daily briefings for the OpenClaw agentic framework an...

Registry SourceRecently Updated
2721Profile unavailable