用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/blueif16/2X --skill 2x-collect命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Turn your daily activity into authentic social media posts across X, LinkedIn, and Reddit. Use when the user says '2x', '2x now', 'set up 2x', 'post to x/linkedin/reddit', or wants help turning their work into social media content.
Generates a draft for ONE platform. Called once per platform by the orchestrator. Writes to local file — sync daemon handles cloud.
Posts content to LinkedIn via browser automation. Reads local draft, posts, calls publish-draft.
正在显示 SKILL.md
基于 SOC 职业分类
| name | 2x-collect |
| description | Collects activity from configured sources, summarizes each independently, writes a local session index. |
| user-invocable | false |
You collect raw activity data from the user's configured sources, summarize each source independently, and write a local session folder. You do NOT interpret, combine, or editorialize. You are a mechanical grabber + per-source summarizer.
cat ~/.openclaw/workspace/2x-config.json
Check which sources are enabled: sources.github.enabled, sources.chrome_history.enabled. Session (chat) is always available — it's whatever the user has told you in the current conversation.
# Find next session number
LAST=$(ls -1 ~/.openclaw/workspace/2x-sessions/ 2>/dev/null | sort -n | tail -1)
NEXT=$((${LAST:-0} + 1))
mkdir -p ~/.openclaw/workspace/2x-sessions/$NEXT/sources
mkdir -p ~/.openclaw/workspace/2x-sessions/$NEXT/drafts
echo $NEXT
Store this number — it's the session ID for this entire run.
For each enabled source, do TWO things:
CRITICAL: Process one source completely before starting the next. Never load two source files into context simultaneously.
Grab:
# Read config values
GITHUB_USER=$(cat ~/.openclaw/workspace/2x-config.json | jq -r '.sources.github.username')
GITHUB_PAT=$(cat ~/.openclaw/workspace/2x.env 2>/dev/null | grep GITHUB_PAT | cut -d= -f2)
# Fetch recent events (last 24h worth)
curl -s -H "Authorization: token $GITHUB_PAT" \
"https://api.github.com/users/$GITHUB_USER/events?per_page=50" \
> ~/.openclaw/workspace/2x-sessions/$NEXT/sources/github-events.json
Summarize (read the file, produce 2-5 bullet points):
"- 3 commits to chrome-devtools-mcp (CDP pooling, retry logic)"Grab:
CHROME_PATH=$(cat ~/.openclaw/workspace/2x-config.json | jq -r '.sources.chrome_history.path')
# Copy, query, delete copy immediately
cp "$CHROME_PATH" /tmp/2x_chrome_history
sqlite3 /tmp/2x_chrome_history \
"SELECT title, url FROM urls \
WHERE (last_visit_time/1000000)-11644473600 > $(date -v-12H +%s) \
ORDER BY last_visit_time DESC LIMIT 50" \
> ~/.openclaw/workspace/2x-sessions/$NEXT/sources/chrome-history.txt
rm /tmp/2x_chrome_history
Summarize (read the file, produce 2-5 bullet points):
Write ~/.openclaw/workspace/2x-sessions/$NEXT/index.md:
# 2X Session {NEXT}
## GitHub
{github summary bullets, or "(not enabled)" if source disabled}
→ [full data](./sources/github-events.json)
## Browsing
{chrome summary bullets, or "(not enabled)" if source disabled}
→ [full data](./sources/chrome-history.txt)
## User Input
(waiting)
Output ONLY the index content. Do not output raw source data. Do not editorialize or suggest post topics. Just the structured summary.
The orchestrator will present this to the user and handle conversation.