win4r/museai-skills/facebook-cli
Claude Code and agent skill by win4r/museai-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when the user provides a Facebook URL or asks to read personal posts, comments, reactions, friends, timelines, profiles, stories, feeds, groups, events, or saved items, or to discover public events happening near a place, nearby, or in a local area on a date, or to create, edit, publish, or delete their own Marketplace listings. To find, browse, or buy Marketplace listings, use shopping instead.
Install
npx vskill@latest install win4r/museai-skills/facebook-cliSKILL.md
Facebook CLI
Pasted links first
If the user pasted a Facebook Marketplace item link or a share link, never open it with the browser: the browser cannot pass the Facebook login wall. For an item link, run facebook-cli marketplace listing details --url '<pasted link>'. For a share link, decode it first with facebook-cli link-sharing decode-url --url '<pasted link>', then follow references/marketplace.md Step 0 for the decoded URL.
Quick Reference
Account Linking
Before running any facebook-cli command, verify the user's Facebook account is connected by running facebook-cli me, except for facebook-cli marketplace search, facebook-cli marketplace listing details, and facebook-cli marketplace seller-info. If the command returns account info (name and profile ID), the account is connected — proceed normally. Cache this result for the rest of the conversation; do not re-run the check before every command. If any subsequent command fails with an auth or account error, re-run facebook-cli me to recheck account linking status.
If the command fails or returns an error indicating no account is linked, the account is not connected. Get the connect URL by running facebook-cli connect-url (it outputs JSON with a connect_url field), then tell the user, substituting that URL:
Your Facebook account is not connected. To connect it, visit Meta Accounts Center and link your Facebook account.
If the user asks to disconnect their Facebook account, run facebook-cli disconnect-url (it outputs JSON with a disconnect_url field) and direct them to that URL:
To disconnect your Facebook account, visit Meta Accounts Center and remove the linked account.
Always read these URLs from the command output rather than hardcoding them.
Post IDs and URLs
When using post read, post comments read, or post reactions read, these formats are accepted for --post-id:
123456789012345— raw numeric post IDpfbid02...— PFBID format
Canonical post, photo, video, and reel URLs go directly to post read --url. For share links, call link-sharing decode-url --url <url> first, then pass the nonblank canonical original_url intact to the reader. Supply exactly one of --url or --post-id. Stop on a null, missing, or blank decoded URL or a failed read; do not guess IDs or retry a media ID as a post ID. See posts.md for supported URL patterns and other entities.
Composability
When the user asks "what can I do on Facebook?" or at the start of a session, generate 3-5 contextual suggestions that combine multiple commands into useful read-only workflows.
How outputs chain across commands
Most chains are mechanical: an ID in one command's output is the --id flag of the next. me and me friends produce profile_id for profile info and timeline fetch. Timelines, feeds, and searches produce post_id for post read, post comments read, and post reactions read. marketplace search produces listing_id for listing details and seller-info. groups search produces group_id for groups details and groups posts. events search produces id (also embedded in permalink_url) for events details. story feed returns story buckets with story URLs and owner info.
The chains that are not mechanical:
- My listings -> manage:
marketplace my-listingsproduces your ownlisting_id->marketplace listing edit(update),marketplace listing delete(remove), ormarketplace listing publish(take a draft live). Use--statusto scope to active/pending/sold/draft and--afterto page. - Create draft -> complete -> publish:
marketplace listing createmissing any of photos/condition/category/location saves a draft ->marketplace listing editto add the missing field(s) ->marketplace listing publishto take it live. If publish fails with missing fields, the error names exactly which to add via edit, then retry. - Groups posts + friends cross-reference: When the user asks about friends' activity in a group, call
me friendsto get the friend list, then compare against post authors fromgroups posts— do not ask the user to provide their friend list manually. - Saved -> content:
saved listproducessavable_idplustype. Chain by category: post->post read,post comments read,post reactions readpage->profile info --profile-id <savable_id>product->marketplace listing details --listing-id <savable_id>event->events details --event-id <savable_id>- Saved -> unsave:
saved listproducessavable_id(the content ID) ->saved remove --savable-id <savable_id> [--type <type>] - Collections -> create flow:
saved collections createproducescollection_idfor future use
Suggestion guidelines
- Phrase as user-centric actions — "See which of your Marketplace listings still have no photos", not "Run marketplace my-listings then listing edit".
- Vary suggestions across sessions — rotate across skill categories.
- Adapt to context:
- Profile-aware: If the user's profile mentions hobbies or interests, suggest related workflows (e.g., cyclist -> "Catch up on what your cycling friends have posted").
- Time-aware: Near holidays or weekends, suggest checking timeline for what friends are up to, or tidying up your own Marketplace drafts.
- Session-aware: After publishing a listing -> "Check whether it went live or stayed a draft"; after viewing a post -> "See the reaction counts and what people are saying in the comments".
- Only suggest what's real — every suggestion must be achievable using the commands documented here. Most tools are read-only — do not suggest creating posts, adding reactions, or writing comments. The only write actions available are creating, editing, deleting, and publishing Marketplace listings.
- Keep it conversational — short bulleted list with one-line descriptions. Offer to walk through any of them.
References
One file per feature area, each named for the area it covers: references/friends.md, references/posts.md, references/comments.md, references/reactions.md, references/marketplace.md, references/timeline.md, references/profile.md, references/story.md, references/feed.md, references/groups.md, references/events.md, references/saved.md.
Operating Rules
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingopt/hatch/skills/facebook-cli/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/win4r/museai-skills/facebook-cli)