Creative Agents Skill
Integration scripts for the creative agent swarm managed by overstory (Claude Code). Provides the automation layer that agent definitions in agents/ rely on.
Overview
These scripts power four creative agents:
- - Researcher — topic research via last30days skill
- Social Media Manager — posting, monitoring, engagement via Playwright + OAuth
- Blogger — content pipeline: research → outline → draft → humanize → publish
- Scribe — log analysis, pattern detection, memory curation
Scripts
| Script | Class | Purpose |
|---|
| INLINECODE1 | INLINECODE2 | Discovers and invokes the last30days skill, parses results into structured reports |
| INLINECODE3 |
OAuthHandler | Manages OAuth tokens for social platforms (Twitter, LinkedIn, etc.) |
|
social_playwright.py |
SocialPlaywright | Browser automation for social media actions via Playwright |
|
humanizer_integration.py |
HumanizerIntegration | Discovers and invokes the humanizer skill for natural-sounding content |
|
log_analyzer.py |
LogAnalyzer | Multi-source log scanning (Cursor, nanobot, Claude, shell) |
|
memory_curator.py |
MemoryCurator | Extracts insights from daily notes and commits to MEMORY.md |
|
scribe_integration.py |
ScribeIntegration | Orchestrates the full scribe pipeline with memory commits |
Usage
All scripts are importable as Python modules and executable as CLI tools:
CODEBLOCK0
Architecture
nanobot routes tasks → overstory spawns agents → agents invoke these scripts.
Agent definitions live in /Users/ghost/.openclaw/workspace/agents/. Scripts live here. Overstory handles all agent lifecycle (spawn, monitor, collect results).
Requirements
- - Python 3.9+
- Playwright (for social_playwright.py)
- Optional: system keyring (for encrypted OAuth token storage)
创意代理技能
为overstory(Claude Code)管理的创意代理集群提供集成脚本。为agents/目录中的代理定义提供自动化层支持。
概述
这些脚本为四个创意代理提供支持:
- - 研究员 — 通过last30days技能进行主题研究
- 社交媒体经理 — 通过Playwright + OAuth进行发布、监控和互动
- 博主 — 内容流水线:研究→大纲→草稿→人性化→发布
- 记录员 — 日志分析、模式检测、记忆整理
脚本
| 脚本 | 类 | 用途 |
|---|
| researcherintegration.py | ResearcherIntegration | 发现并调用last30days技能,将结果解析为结构化报告 |
| oauthhandler.py |
OAuthHandler | 管理社交平台(Twitter、LinkedIn等)的OAuth令牌 |
| social_playwright.py | SocialPlaywright | 通过Playwright实现社交媒体操作的浏览器自动化 |
| humanizer_integration.py | HumanizerIntegration | 发现并调用人性化技能,生成自然流畅的内容 |
| log_analyzer.py | LogAnalyzer | 多源日志扫描(Cursor、nanobot、Claude、shell) |
| memory_curator.py | MemoryCurator | 从日常笔记中提取洞察并提交至MEMORY.md |
| scribe_integration.py | ScribeIntegration | 编排完整的记录流水线,包含记忆提交 |
使用方法
所有脚本均可作为Python模块导入,也可作为CLI工具执行:
bash
研究
python3 scripts/researcher_integration.py --topic AI代理 --days 30 --json
OAuth状态
python3 scripts/oauth_handler.py status --platform twitter --json
社交发布
python3 scripts/social_playwright.py post --platform twitter --content 你好世界 --json
内容人性化
python3 scripts/humanizer_integration.py --content 技术文本 --style casual --json
日志分析
python3 scripts/log_analyzer.py --hours 24 --sources cursor,nanobot,claude --json
记忆整理
python3 scripts/memory_curator.py curate --days 7 --json
记录流水线
python3 scripts/scribe_integration.py --mode daily --commit-memory --json
架构
nanobot路由任务 → overstory生成代理 → 代理调用这些脚本。
代理定义位于/Users/ghost/.openclaw/workspace/agents/。脚本位于此处。Overstory处理所有代理生命周期(生成、监控、收集结果)。
要求
- - Python 3.9+
- Playwright(用于social_playwright.py)
- 可选:系统密钥环(用于加密OAuth令牌存储)