pexels

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Pexels Skill

Pexels Skill

Overview

概述

Enables Claude to use Pexels for finding and downloading high-quality, royalty-free photos and videos for creative projects without attribution requirements.
让Claude能够使用Pexels查找并下载高质量、免版税的图片和视频,用于创意项目且无需署名。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/pexels/install.sh | bash
Or manually:
bash
cp -r skills/pexels ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/pexels/install.sh | bash
或手动安装:
bash
cp -r skills/pexels ~/.canifi/skills/

Setup

设置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set PEXELS_EMAIL "your-email@example.com" canifi-env set PEXELS_PASSWORD "your-password"
undefined
canifi-env set PEXELS_EMAIL "your-email@example.com" canifi-env set PEXELS_PASSWORD "your-password"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭据,由你掌控。 Canifi LifeOS尊重你的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭据:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. Claude将使用你的已认证会话,全程不会获取你的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
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.
如果你愿意共享凭据,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭据仅能在你的本地设备访问,绝不会被传输。

Capabilities

功能

  • Search photos and videos by keyword
  • Download in multiple resolutions
  • Create and manage collections
  • Filter by color, orientation, and size
  • Access curated collections
  • Download videos for projects
  • 按关键词搜索图片和视频
  • 下载多分辨率素材
  • 创建并管理素材集
  • 按颜色、方向和尺寸筛选
  • 访问精选素材集
  • 为项目下载视频

Usage Examples

使用示例

Example 1: Find Video Background

示例1:查找视频背景

User: "Find a looping video background of city lights"
Claude: I'll search for city lights videos.
1. Opening Pexels via Playwright MCP
2. Switching to video search
3. Searching "city lights night loop"
4. Previewing top video results
5. Downloading selected video in HD
用户:"找一个城市灯光的循环视频背景"
Claude:我将搜索城市灯光相关视频。
1. 通过Playwright MCP打开Pexels
2. 切换到视频搜索模式
3. 搜索"city lights night loop"
4. 预览热门视频结果
5. 下载选中的高清视频

Example 2: Download Product Photos

示例2:下载产品图片

User: "Get minimalist product photography backgrounds"
Claude: I'll find minimalist backgrounds.
1. Searching "minimalist product background"
2. Filtering by white/neutral colors
3. Selecting high-resolution options
4. Downloading to your project folder
用户:"获取极简风格的产品摄影背景"
Claude:我将查找极简风格背景素材。
1. 搜索"minimalist product background"
2. 按白色/中性色筛选
3. 选择高分辨率选项
4. 下载到你的项目文件夹

Example 3: Color-Matched Search

示例3:配色匹配搜索

User: "Find photos with our brand color #FF6B35"
Claude: I'll search for matching color photos.
1. Navigating to Pexels color search
2. Entering hex color #FF6B35
3. Browsing color-matched results
4. Saving relevant images to collection
用户:"找与我们品牌色#FF6B35匹配的图片"
Claude:我将搜索配色匹配的图片。
1. 进入Pexels配色搜索页面
2. 输入十六进制颜色码#FF6B35
3. 浏览配色匹配的结果
4. 将相关图片保存到素材集

Authentication Flow

认证流程

  1. Navigate to pexels.com via Playwright MCP
  2. Click "Join" or "Login"
  3. Enter email and password
  4. Handle social login if configured
  5. Maintain session for collections
  1. 通过Playwright MCP导航至pexels.com
  2. 点击“Join”或“Login”
  3. 输入邮箱和密码
  4. 若配置则处理社交登录
  5. 维持会话以管理素材集

Error Handling

错误处理

  • Login Failed: Retry up to 3 times, notify via iMessage
  • Session Expired: Re-authenticate automatically
  • Rate Limited: Implement exponential backoff
  • Download Failed: Retry or try alternate resolution
  • Video Processing: Wait for video to be ready
  • Search Empty: Suggest related keywords
  • 登录失败:最多重试3次,通过iMessage通知
  • 会话过期:自动重新认证
  • 请求受限:实现指数退避机制
  • 下载失败:重试或尝试其他分辨率
  • 视频处理:等待视频准备完成
  • 无搜索结果:推荐相关关键词

Self-Improvement Instructions

自我更新说明

When Pexels updates its platform:
  1. Document new search capabilities
  2. Update video download workflows
  3. Track collection feature changes
  4. Log any new filter options
当Pexels更新平台时:
  1. 记录新的搜索功能
  2. 更新视频下载工作流
  3. 追踪素材集功能变更
  4. 记录所有新增筛选选项

Notes

注意事项

  • Pexels photos are free without attribution
  • Video files can be large - allow download time
  • Some content from partner photographers
  • API access available with key
  • Collections sync across devices
  • Pexels图片可免费使用,无需署名
  • 视频文件可能较大,请预留下载时间
  • 部分内容来自合作摄影师
  • 提供带密钥的API访问
  • 素材集可跨设备同步