npx skills add https://github.com/andrejones92/canifi-life-os --skill ahrefsSKILL.md
Ahrefs Skill
Research backlinks and SEO with Ahrefs' comprehensive SEO toolkit.
Quick Install
curl -sSL https://canifi.com/skills/ahrefs/install.sh | bash
Or manually:
cp -r skills/ahrefs ~/.canifi/skills/
Setup
Configure via canifi-env:
# First, ensure canifi-env is installed:
# curl -sSL https://canifi.com/install.sh | bash
canifi-env set AHREFS_API_TOKEN "your_api_token"
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
- Backlink Analysis: Analyze backlink profiles and referring domains
- Keyword Explorer: Research keywords with metrics
- Site Explorer: Analyze organic traffic and top pages
- Content Explorer: Find popular content by topic
- Rank Tracker: Monitor keyword rankings
Usage Examples
Analyze Backlinks
User: "Show me backlinks for example.com"
Assistant: Returns backlink profile with metrics
Keyword Research
User: "Research keywords for 'content marketing'"
Assistant: Returns keyword ideas with difficulty and volume
Top Pages
User: "What are the top performing pages on competitor.com?"
Assistant: Returns top pages by organic traffic
Find Content
User: "Find popular content about SEO"
Assistant: Returns top-shared content on the topic
Authentication Flow
- Get API token from Ahrefs account
- Use Bearer token authentication
- Credits consumed per request
- Rate limits apply
Error Handling
| Error | Cause | Solution |
|---|---|---|
| 401 Unauthorized | Invalid token | Verify API token |
| 403 Forbidden | No credits | Add more credits |
| 404 Not Found | No data | Check domain/keyword |
| 429 Rate Limited | Too many requests | Wait and retry |
Notes
- Industry-leading backlink database
- Trillion-link index
- Hourly updated rankings
- Content explorer for research
- Site audit tool
- Subscription-based pricing
Repository Stats
Stars1
Forks0