원클릭으로
2x-collect
Collects activity from configured sources, summarizes each independently, writes a local session index.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Collects activity from configured sources, summarizes each independently, writes a local session index.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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.
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.
Posts or replies on Reddit via browser automation. Reads local draft, posts, calls publish-draft.
Posts content to X/Twitter via browser automation. Reads local draft, posts, calls publish-draft.
Onboarding wizard for the 2X skill. Configures platforms, data sources, browser logins, and cron schedule.