@xquik/tweetclaw 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xquik/tweetclaw",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "Post tweets, reply, like, retweet, follow, DM & more from OpenClaw - full X/Twitter automation via Xquik",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,6 +22,7 @@
22
22
  },
23
23
  "files": [
24
24
  "src/",
25
+ "skills/",
25
26
  "openclaw.plugin.json"
26
27
  ],
27
28
  "keywords": [
@@ -0,0 +1,144 @@
1
+ ---
2
+ name: tweetclaw
3
+ description: "OpenClaw plugin for X/Twitter automation. Post tweets, reply, like, retweet, follow, DM, search, extract data, run giveaways, monitor accounts via Xquik. 40+ endpoints, 2 tools (explore + tweetclaw), 2 commands (/xstatus, /xtrends), background event poller."
4
+ homepage: https://xquik.com
5
+ read_when:
6
+ - Posting, replying, liking, retweeting, or following on X/Twitter
7
+ - Searching tweets or looking up X/Twitter users
8
+ - Running giveaway draws from tweet replies
9
+ - Monitoring X/Twitter accounts for new activity
10
+ - Composing algorithm-optimized tweets
11
+ - Extracting bulk data from X/Twitter (followers, replies, communities)
12
+ - Downloading tweet media or uploading images
13
+ - Sending DMs or updating X/Twitter profile
14
+ metadata: {"openclaw":{"emoji":"🐦","primaryEnv":"XQUIK_API_KEY","requires":{"env":["XQUIK_API_KEY"]}}}
15
+ ---
16
+
17
+ # TweetClaw
18
+
19
+ OpenClaw plugin for X/Twitter automation powered by Xquik. Install via:
20
+
21
+ ```bash
22
+ openclaw plugins install @xquik/tweetclaw
23
+ ```
24
+
25
+ ## Configuration
26
+
27
+ Set your Xquik API key (get one at [xquik.com/account-manager](https://xquik.com/account-manager)):
28
+
29
+ ```bash
30
+ openclaw config set plugins.entries.tweetclaw.config.apiKey 'xq_YOUR_KEY'
31
+ ```
32
+
33
+ ## Tools
34
+
35
+ TweetClaw registers 2 tools that cover the entire Xquik API (40+ endpoints):
36
+
37
+ ### `explore` (free, no network)
38
+
39
+ Search the API spec to find endpoints. No API calls are made.
40
+
41
+ Example: "What endpoints are available for tweet composition?"
42
+
43
+ The agent writes an async arrow function that filters the in-memory endpoint catalog:
44
+
45
+ ```javascript
46
+ async () => spec.endpoints.filter(e => e.category === 'composition')
47
+ ```
48
+
49
+ ### `tweetclaw` (execute API calls)
50
+
51
+ Execute authenticated API calls. Auth is injected automatically.
52
+
53
+ Example: "Search tweets about AI agents"
54
+
55
+ ```javascript
56
+ async () => {
57
+ const results = await xquik.request('/api/v1/x/tweets/search', { query: { q: 'AI agents' } });
58
+ return results;
59
+ }
60
+ ```
61
+
62
+ ## Commands
63
+
64
+ | Command | Description |
65
+ |---------|-------------|
66
+ | `/xstatus` | Account info, subscription status, usage |
67
+ | `/xtrends` | Trending topics from curated sources |
68
+ | `/xtrends tech` | Trending topics filtered by category |
69
+
70
+ ## Event Notifications
71
+
72
+ When polling is enabled (default), TweetClaw checks for new events every 60 seconds:
73
+
74
+ - Monitor alerts: new tweets, replies, quotes, retweets from monitored accounts
75
+ - Follower changes: gained or lost followers on monitored accounts
76
+
77
+ ## Common Workflows
78
+
79
+ ### Post a tweet
80
+
81
+ ```
82
+ You: "Post a tweet saying 'Hello from TweetClaw!'"
83
+ Agent uses explore -> finds POST /api/v1/x/tweets
84
+ Agent uses tweetclaw -> posts the tweet with auth
85
+ ```
86
+
87
+ ### Search tweets
88
+
89
+ ```
90
+ You: "Search tweets about AI agents"
91
+ Agent uses explore -> finds GET /api/v1/x/tweets/search
92
+ Agent uses tweetclaw -> calls the endpoint
93
+ ```
94
+
95
+ ### Run a giveaway draw
96
+
97
+ ```
98
+ You: "Pick 3 random winners from replies to this tweet: https://x.com/..."
99
+ Agent uses tweetclaw -> creates draw with filters
100
+ ```
101
+
102
+ ### Monitor an account
103
+
104
+ ```
105
+ You: "Monitor @elonmusk for new tweets and follower changes"
106
+ Agent uses tweetclaw -> creates monitor with event types
107
+ ```
108
+
109
+ ### Compose an optimized tweet
110
+
111
+ ```
112
+ You: "Compose a tweet about our product launch"
113
+ Agent uses tweetclaw -> 3-step compose/refine/score workflow (free)
114
+ ```
115
+
116
+ ## API Categories
117
+
118
+ | Category | Examples | Free |
119
+ |----------|---------|------|
120
+ | Write Actions | Post tweets, reply, like, retweet, follow, DM, update profile | No |
121
+ | Media | Upload media, download tweet media | No |
122
+ | Twitter | Search tweets, look up users, check follows | No |
123
+ | Composition | Compose, refine, score tweets; manage drafts | Yes |
124
+ | Styles | Analyze tweet styles, compare, performance | Mixed |
125
+ | Extraction | Reply/follower/community extraction (20 tools) | No |
126
+ | Draws | Giveaway draws, export results | No |
127
+ | Monitoring | Create monitors, view events, webhooks | No |
128
+ | Account | API keys, subscription, connected X accounts | Yes |
129
+ | Trends | X trending topics, curated radar from 7 sources | Mixed |
130
+
131
+ ## Pricing
132
+
133
+ Free tier (no subscription): tweet composition, style analysis, drafts, curated radar, account management, integrations.
134
+
135
+ Subscription ($20/month): write actions, search, media, extractions, draws, monitors, X trending.
136
+
137
+ When a paid endpoint returns 402, TweetClaw provides a checkout URL.
138
+
139
+ ## When NOT to Use
140
+
141
+ - Reading tweets in a browser or basic browsing (use a browser skill instead)
142
+ - X/Twitter analytics dashboards (TweetClaw returns raw data, not visualizations)
143
+ - Scheduling tweets for future posting (Xquik posts immediately)
144
+ - Managing X/Twitter ads or promoted content (not supported)