devvit-skill-setup
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDevvit Skill Setup
Devvit Skill 配置
Does basic setup to make a code repository ready to use devvit skills.
-
Ensure the devvit-docs skill is added. If not, skip. If it is, callwith "how does redis work" to make sure things are configured correctly. If there is an error, present it to the user.
devvit-docs -
Ensure the rules file adds a block about working with Devvit
Please do the following:
- Check the repo root for common instruction files (,
AGENTS.md, etc.).CLAUDE.md - Insert the following skill a close to the top of the rules file
md
Always use the devvit-docs skill when I need library/API documentation about anything related to devvit including: documentation, code generation, setup or configuration steps without me having to explicitly ask. This includes capabilities that devvit offers like Redis, Reddit API, Media, and more as Devvit has special rules and documentation.- If no instruction file exists, create with the block above.
AGENTS.md - Add success or failure to summary of skill call result
- Present Results to User
Tell the user the changes you made.
为代码仓库完成基础配置,使其能够使用Devvit Skill。
-
确保已添加devvit-docs Skill。如果未添加,则跳过此步骤;如果已添加,请调用并传入"how does redis work"以确认配置是否正确。若出现错误,请将错误信息告知用户。
devvit-docs -
确保规则文件中添加了关于Devvit使用的相关内容
请执行以下操作:
- 检查仓库根目录下的常见指令文件(、
AGENTS.md等)。CLAUDE.md - 将以下Skill规则块插入到规则文件的顶部附近
md
当我需要任何与Devvit相关的库/API文档时,包括文档查阅、代码生成、安装或配置步骤等场景,无需我明确要求,请始终使用devvit-docs Skill。这涵盖Devvit提供的诸如Redis、Reddit API、媒体功能等能力,因为Devvit有专门的规则和文档。- 若不存在指令文件,请创建并写入上述规则块。
AGENTS.md - 在Skill调用结果的摘要中记录操作成功或失败的状态
- 向用户展示结果
告知用户你所做的修改。
Troubleshooting
故障排查
- Permission errors: Verify the repo is writable.
- Wrong location: Ensure the repo root is being edited.
- No changes: The rule block already exists; no update needed.
- Missing skill: Ask the user to run to add the missing skill if they want to utilize that feature.
npx add-skill reddit/devvit-skills
- 权限错误:验证仓库是否可写入。
- 位置错误:确保编辑的是仓库根目录。
- 无变更:规则块已存在,无需更新。
- 缺少Skill: 如果用户希望使用该功能,请告知用户运行来添加缺失的Skill。
npx add-skill reddit/devvit-skills