devto
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDEV.to Skill
DEV.to Skill
Overview
概述
Automates DEV.to operations including publishing articles, engaging with content, managing profile, and participating in the developer community through browser automation.
通过浏览器自动化,实现DEV.to操作自动化,包括发布文章、参与内容互动、管理个人资料以及参与开发者社区。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/devto/install.sh | bashOr manually:
bash
cp -r skills/devto ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/devto/install.sh | bash或者手动安装:
bash
cp -r skills/devto ~/.canifi/skills/Setup
配置
Configure via canifi-env:
bash
undefined通过canifi-env进行配置:
bash
undefinedFirst, ensure canifi-env is installed:
首先,确保已安装canifi-env:
curl -sSL https://canifi.com/install.sh | bash
curl -sSL https://canifi.com/install.sh | bash
canifi-env set DEVTO_EMAIL "your-email@example.com"
canifi-env set DEVTO_PASSWORD "your-password"
undefinedcanifi-env set DEVTO_EMAIL "your-email@example.com"
canifi-env set DEVTO_PASSWORD "your-password"
undefinedPrivacy & 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:
- 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
如果你不想与Claude Code共享凭证:
- 使用CDP模式完成浏览器自动化设置
- 在Playwright控制的Chrome窗口中手动登录该服务
- 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
功能
- Write and publish articles
- React to posts (likes, unicorns, etc.)
- Comment on articles
- Follow users and tags
- Search content
- Manage drafts
- Access reading list
- View analytics
- 撰写并发布文章
- 对帖子做出反应(点赞、独角兽等)
- 对文章发表评论
- 关注用户和标签
- 搜索内容
- 管理草稿
- 访问阅读列表
- 查看分析数据
Usage Examples
使用示例
Example 1: Publish Article
示例1:发布文章
User: "Publish this article to DEV.to"
Claude: I'll publish that article.
- Navigate to dev.to/new
- Enter title and content
- Add tags and cover image
- Publish article
- Confirm live用户:"把这篇文章发布到DEV.to"
Claude:我会发布这篇文章。
- 导航至dev.to/new
- 输入标题和内容
- 添加标签和封面图片
- 发布文章
- 确认已上线Example 2: React to Post
示例2:对帖子做出反应
User: "Give that helpful article a heart and unicorn"
Claude: I'll add those reactions.
- Navigate to article
- Click heart reaction
- Click unicorn reaction
- Confirm reactions added用户:"给那篇有用的文章点个赞和独角兽"
Claude:我会添加这些反应。
- 导航至文章页面
- 点击点赞按钮
- 点击独角兽按钮
- 确认已添加反应Example 3: Follow Tag
示例3:关注标签
User: "Follow the #javascript tag on DEV"
Claude: I'll follow that tag.
- Navigate to tag page
- Click Follow button
- Confirm following
- Tag added to feed用户:"在DEV上关注#javascript标签"
Claude:我会关注该标签。
- 导航至标签页面
- 点击关注按钮
- 确认已关注
- 标签已添加至订阅源Example 4: Save to Reading List
示例4:保存至阅读列表
User: "Save this article to my DEV reading list"
Claude: I'll save that article.
- Navigate to article
- Click save/bookmark button
- Confirm added to reading list用户:"把这篇文章保存到我的DEV阅读列表"
Claude:我会保存这篇文章。
- 导航至文章页面
- 点击保存/书签按钮
- 确认已添加至阅读列表Authentication Flow
认证流程
- Navigate to dev.to via Playwright MCP
- Click login and enter email
- Enter password from canifi-env
- Handle OAuth if using GitHub/Twitter
- Verify feed access
- Maintain session cookies
- 通过Playwright MCP导航至dev.to
- 点击登录并输入邮箱
- 从canifi-env中获取密码并输入
- 若使用GitHub/Twitter登录则处理OAuth流程
- 验证订阅源访问权限
- 维护会话Cookie
Error Handling
错误处理
- Login Failed: Try OAuth options, verify credentials
- Session Expired: Re-authenticate automatically
- Article Failed: Check markdown format
- Rate Limited: Wait before posting
- Tag Not Found: Check tag spelling
- Draft Lost: Check autosave status
- Image Upload Failed: Check format and size
- Comment Failed: Check community guidelines
- 登录失败:尝试OAuth选项,验证凭证
- 会话过期:自动重新认证
- 文章发布失败:检查Markdown格式
- 请求受限:等待后再发布
- 标签未找到:检查标签拼写
- 草稿丢失:检查自动保存状态
- 图片上传失败:检查格式和大小
- 评论失败:检查社区准则
Self-Improvement Instructions
自我改进说明
When encountering new DEV.to features:
- Document new editor elements
- Add support for new content features
- Log successful publishing patterns
- Update for platform changes
遇到DEV.to的新功能时:
- 记录新的编辑器元素
- 添加对新内容功能的支持
- 记录成功的发布模式
- 根据平台更新进行适配
Notes
注意事项
- DEV.to uses Markdown for articles
- Cover images improve visibility
- Tags help discoverability
- Series group related articles
- Community guidelines are friendly
- Reading time calculated automatically
- Forem platform powers DEV
- DEV.to使用Markdown撰写文章
- 封面图片可提升曝光度
- 标签有助于内容发现
- 系列文章可关联相关内容
- 社区准则友好
- 阅读时长会自动计算
- DEV由Forem平台提供支持