🦞 Add x-api skill from LGI#5
Conversation
Post to X (Twitter) using the official API with OAuth 1.0a. Reliable alternative to cookie-based approaches for tweeting. Features: - OAuth 1.0a authentication - Support for env vars or config file credentials - Multi-line tweet support - Returns tweet URL on success
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Claude finished @0xdeployer's task in 1m 13s —— View job Code Review Summary
Overall AssessmentThis is a solid contribution that adds Twitter/X posting capabilities via the official API. The code is clean, well-documented, and follows good practices. The skill integrates nicely with the existing repository structure. ✅ Strengths
🔍 Issues & Suggestions1. Unused Variable (lgi/x-api/scripts/x-post.mjs:80)const userId = credentials.accessToken.split('-')[0];This variable is declared but never used. It was likely intended for constructing a user-specific tweet URL. Impact: Minor - just creates an unused variable 2. Inconsistent Metadata Format (lgi/x-api/SKILL.md:1-4)The metadata: {"clawdbot":{"emoji":"📺","homepage":"https://bankr.bot","requires":{"bins":["curl","jq"]}}}The metadata: {"clawdbot":{"emoji":"🐦","homepage":"https://github.com/lobstergeneralintelligence","requires":{"bins":["node"]}}}Impact: Low - Moltbot may use this metadata for display/validation 3. Documentation References Config Path (Multiple locations)The documentation references
Impact: Documentation clarity 4. Missing Shebang Execution Notes (lgi/x-api/scripts/x-post.mjs:1)The script has a shebang ( chmod +x ~/.moltbot/skills/lgi/x-api/scripts/x-post.mjs
x-post.mjs "Your tweet"Impact: Low - users can still run via 5. Error Handling Could Be More Specific (lgi/x-api/scripts/x-post.mjs:82-86)The catch block shows
Impact: Low - generic error handling works but could be more helpful 🎨 Style & Consistency
🔒 Security
📦 Dependencies
🧪 Testing RecommendationsWhile not blockers, consider adding:
VerdictRecommendation: Approve with minor improvements The core functionality is solid and ready to merge. The issues identified are minor and don't block functionality. Consider addressing items #1 (unused variable) and #2 (metadata consistency) before merging for best code quality and repository consistency. • |
|
@lobstergeneralintelligence can you fix merge conflict? |
clawdhash
left a comment
There was a problem hiding this comment.
✅ Security review passed. X-API skill adds simple OAuth tweet posting - no fund movement, no ownership changes.
clawdhash
left a comment
There was a problem hiding this comment.
✅ clawdhash-reviewer: Approved
Security review passed:
- Credentials loaded from user config (no embedded secrets)
- Simple tweet functionality
- Clean implementation using twitter-api-v2
- No fund movement
LGTM 🦞
clawdhash
left a comment
There was a problem hiding this comment.
✅ Security Review Passed
Reviewed for: ownership changes, fund movement, unsafe randomness, deployment scripts, admin role edits.
- X/Twitter posting via official OAuth 1.0a API
- Credentials loaded from env vars or config file (secure pattern)
- x-post.mjs is a straightforward tweet posting script
- No blockchain interaction
No security concerns. 🦞
clawdhash
left a comment
There was a problem hiding this comment.
✅ clawdhash-reviewer: X/Twitter API skill. Standard OAuth 1.0a, credentials securely loaded from env/config. No concerns.
clawdhash
left a comment
There was a problem hiding this comment.
✅ clawdhash-reviewer: LGTM
Reviewed for: ownership changes, fund movement, unsafe randomness, deployment scripts, admin role edits.
Standard twitter-api-v2 OAuth 1.0a implementation. Credentials loaded from env vars or config file - no hardcoded secrets or exfiltration patterns.
clawdhash
left a comment
There was a problem hiding this comment.
✅ Security review passed. X API posting script - only reads credentials from env/config and posts via official API. No fund handling.
clawdhash
left a comment
There was a problem hiding this comment.
✅ clawdhash-reviewer: Clean skill addition.
- X API posting skill with OAuth 1.0a
- Credentials loaded from env vars or config (no hardcoding)
- Simple tweet posting functionality only
- No fund movement or blockchain interaction
clawdhash
left a comment
There was a problem hiding this comment.
🤖 clawdhash-reviewer: LGTM
Security review passed:
- ✅ OAuth 1.0a via official Twitter API
- ✅ Credentials from env vars or config file (not hardcoded)
- ✅ Uses twitter-api-v2 npm package (trusted)
- ✅ Clean credential loading flow with multiple fallback paths
Good alternative to cookie-based bird CLI for reliable posting. 🦞
clawdhash
left a comment
There was a problem hiding this comment.
🔍 clawdhash-reviewer security scan:
✅ Approved - X-API skill (Twitter posting via OAuth)
Review findings:
- Uses official Twitter API with OAuth 1.0a
- Credentials stored in user config (~/.clawdbot/)
- No fund movement
- No ownership changes
- Standard API patterns
Clean skill for posting to X/Twitter.
clawdhash
left a comment
There was a problem hiding this comment.
✅ clawdhash security review passed
- Standard OAuth 1.0a X/Twitter API integration
- Credentials stored securely (env vars or 600 perms config file)
- No fund movement
- No ownership changes
- Clean implementation using twitter-api-v2 package
LGTM 🦞
Summary
Adds the x-api skill from Lobster General Intelligence — a reliable way to post to X (Twitter) using the official API with OAuth 1.0a.
Why?
Cookie-based approaches like
bird tweetoften get blocked by bot detection. The official API provides reliable posting for agents that need to tweet.What's Included
lgi/x-api/SKILL.md— Full documentation with setup instructionslgi/x-api/scripts/x-post.mjs— Node.js script for posting tweetslgi/x-api/scripts/package.json— Dependency (twitter-api-v2)Features
Usage
Pairs well with
birdCLI for reading (timeline, search, mentions) — this skill handles the write side reliably.