53
总安装量
53
周安装量
#4074
全站排名
安装命令
npx skills add https://github.com/andrejones92/canifi-life-os --skill instagram
Agent 安装分布
claude-code
42
opencode
38
gemini-cli
35
codex
32
antigravity
27
cursor
27
Skill 文档
Instagram Skill
Overview
Automates Instagram operations including posting content, managing stories, engaging with followers, and analyzing insights through the web interface.
Quick Install
curl -sSL https://canifi.com/skills/instagram/install.sh | bash
Or manually:
cp -r skills/instagram ~/.canifi/skills/
Setup
Configure via canifi-env:
# First, ensure canifi-env is installed:
# curl -sSL https://canifi.com/install.sh | bash
canifi-env set INSTAGRAM_USERNAME "your-username"
canifi-env set INSTAGRAM_PASSWORD "your-password"
Privacy & Authentication
Your credentials, your choice. Canifi LifeOS respects your privacy.
Option 1: Manual Browser Login (Recommended)
If you prefer not to share credentials with Claude Code:
- Complete the Browser Automation Setup using CDP mode
- Login to the service manually in the Playwright-controlled Chrome window
- Claude will use your authenticated session without ever seeing your password
Option 2: Environment Variables
If you’re comfortable sharing credentials, you can store them locally:
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
Capabilities
- Create and publish posts
- Upload and manage stories
- Like and comment on posts
- Follow/unfollow accounts
- Search users and hashtags
- View and respond to DMs (see instagram-dms)
- Access insights and analytics
- Save posts to collections
Usage Examples
Example 1: Create a Post
User: "Post this photo to Instagram with a caption about the sunset"
Claude: I'll create that Instagram post.
- Navigate to instagram.com
- Click create post
- Upload photo
- Write sunset caption with hashtags
- Publish post
- Confirm posted successfully
Example 2: Engage with Content
User: "Like the last 5 posts from @naturephotography"
Claude: I'll engage with those posts.
- Navigate to @naturephotography profile
- View recent posts
- Like last 5 posts
- Confirm engagement complete
Example 3: Check Insights
User: "Show me my Instagram insights for this week"
Claude: I'll pull your insights.
- Navigate to Insights section
- Gather this week's metrics
- Compile reach, engagement, followers
- Present analytics summary
Example 4: Search Hashtag
User: "Find top posts for #travelgram"
Claude: I'll search that hashtag.
- Navigate to hashtag search
- Search #travelgram
- Display top and recent posts
- Summarize engagement levels
Authentication Flow
- Navigate to instagram.com via Playwright MCP
- Enter username and password from canifi-env
- Handle suspicious login verification (notify user)
- Complete 2FA if enabled (notify user via iMessage)
- Handle “Save Login Info” prompt
- Verify feed access
- Maintain session cookies
Error Handling
- Login Failed: Clear cookies, verify credentials
- Session Expired: Re-authenticate automatically
- 2FA Required: iMessage for verification code
- Suspicious Login: Notify user to verify via app
- Rate Limited: Wait and implement backoff
- Content Blocked: Check community guidelines
- Account Restricted: Notify user of temporary block
- Upload Failed: Check file format and size
Self-Improvement Instructions
When encountering new Instagram features:
- Document new UI elements and flows
- Add support for new content types
- Log successful posting patterns
- Update for reels and stories changes
Notes
- Instagram frequently updates UI
- Creator/Business accounts have more features
- Insights require Professional account
- Some features only available in mobile app
- Posting times affect engagement
- Hashtag limits: 30 per post
- Story content expires in 24 hours