بنقرة واحدة
Interact with LinkedIn -- fetch saved posts, draft articles and updates, publish content, and view profile info.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Interact with LinkedIn -- fetch saved posts, draft articles and updates, publish content, and view profile info.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | |
| description | Interact with LinkedIn -- fetch saved posts, draft articles and updates, publish content, and view profile info. |
| version | 1.0.0 |
| variables | ["action","topic"] |
| allowed-tools | ["Bash","Read","Write","Glob"] |
| user-invocable | true |
| argument-hint | <action> [options] (e.g., draft "topic", post, profile) |
You interact with the LinkedIn API v2 through clawft's OAuth2 plugin. All
authenticated requests use weft tool rest_request --provider linkedin which
auto-injects the Bearer token from ~/.clawft/tokens/linkedin.json.
The user must have authorized LinkedIn via /social-auth linkedin authorize
before using any action. If a request returns 401, call
weft tool oauth2_refresh --provider linkedin and retry once.
Fetch the authenticated user's saved/bookmarked posts.
weft tool rest_request --provider linkedin --method GET \
--url "https://api.linkedin.com/v2/savedPosts?q=member&count=50"
Store results to:
~/.clawft/workspace/social/linkedin/saved/YYYY-MM-DD.json
Note: LinkedIn's saved posts API may have limited availability. If the endpoint returns 403, inform the user that this feature requires specific API permissions and suggest checking their LinkedIn app's authorized scopes.
Draft a LinkedIn post or article on a given topic.
Short update (default): Up to 3000 characters. Professional tone.
Article (use --article flag or when topic requires long-form):
Save drafts to:
~/.clawft/workspace/social/linkedin/drafts/<slug>.json
Draft format:
{
"topic": "original topic",
"type": "update|article",
"title": "Article title (articles only)",
"body": "Full post content",
"hashtags": ["#hashtag1", "#hashtag2"],
"visibility": "PUBLIC",
"created_at": "ISO timestamp",
"status": "draft"
}
Present the draft to the user for review. LinkedIn content should be more professional and detailed than Twitter content.
Post a draft or compose and send immediately.
First, get the user's LinkedIn URN:
weft tool rest_request --provider linkedin --method GET \
--url "https://api.linkedin.com/v2/me"
Then post an update:
weft tool rest_request --provider linkedin --method POST \
--url "https://api.linkedin.com/v2/ugcPosts" \
--body '{
"author": "urn:li:person:<person_id>",
"lifecycleState": "PUBLISHED",
"specificContent": {
"com.linkedin.ugc.ShareContent": {
"shareCommentary": { "text": "Post content here" },
"shareMediaCategory": "NONE"
}
},
"visibility": { "com.linkedin.ugc.MemberNetworkVisibility": "PUBLIC" }
}'
After posting, update the draft status to "posted" with the post URN.
Fetch the authenticated user's basic profile information.
weft tool rest_request --provider linkedin --method GET \
--url "https://api.linkedin.com/v2/me?projection=(id,localizedFirstName,localizedLastName,localizedHeadline,vanityName)"
Display the profile info in a readable format.
Example LinkedIn provider config for ~/.clawft/config.json:
{
"oauth2": {
"providers": {
"linkedin": {
"preset": "custom",
"client_id": "YOUR_CLIENT_ID",
"client_secret_ref": { "env_var": "LINKEDIN_CLIENT_SECRET" },
"auth_url": "https://www.linkedin.com/oauth/v2/authorization",
"token_url": "https://www.linkedin.com/oauth/v2/accessToken",
"scopes": ["openid", "profile", "w_member_social", "r_liteprofile"],
"redirect_uri": "http://localhost:8085/callback"
}
}
}
}
If any API call returns HTTP 401:
weft tool oauth2_refresh --provider linkedin./social-auth linkedin authorize.Note: LinkedIn access tokens typically expire after 60 days. Refresh tokens last 365 days. Plan accordingly.
Authoritative design discipline for WeftOS surfaces — tokens, composer-primitive usage, surface archetypes, empty/loading/offline contract, a11y floor, and OOB stock-desktop manifest. Use whenever creating, reviewing, or modifying a TOML surface fixture, the egui theming layer, or any user-visible WeftOS pane. Codifies docs/DESIGN.md and provides scaffold + audit scripts.
Authoritative Plane work-tracker discipline for WeftOS / clawft. Use whenever you create, claim, finish, or defer a meaningful unit of work, or when triaging audits / TODOs / FIXMEs / orphans into Plane work items. Codifies the lifecycle (Backlog → Todo → In Progress → Done | Cancelled), the cycle taxonomy (0.7.x must-ship, 0.8.x / 0.9.x / 1.0.x deferred), and the HTTP API workaround for the partially-broken MCP server.
Deploy Fumadocs site to Vercel at weftos.weavelogic.ai (always run after docs/src changes)
Generate rustdoc API reference and deploy to weftos.weavelogic.ai/api
Build, test, publish, and deploy WeftOS across all channels (GitHub Releases, crates.io, npm, Docker, Homebrew)
Route tasks to external agents via MCP (preferred) or CLI fallback. LightLLM translation layer with intelligent routing based on task complexity, cost, and agent capabilities.