devvit-docs
31
总安装量
23
周安装量
#11986
全站排名
安装命令
npx skills add https://github.com/reddit/devvit-skills --skill devvit-docs
Agent 安装分布
opencode
20
gemini-cli
19
codex
17
antigravity
15
github-copilot
14
claude-code
13
Skill 文档
Devvit Docs
Look up Devvit documentation from reddit/devvit-docs.
Constraints:
- Use only
reddit/devvit-docsas the source of truth. - Do not use other repos, forks, blog posts, or web search results.
- If the answer isn’t found, say so and cite the closest relevant file.
How It Works
- Run the
ensure-docs.jsscript to clone or refresh the local docs cache. - Read the JSON output to get the docs directory path.
- Search that directory to answer the user’s question.
- Cite specific files/sections in your answer.
Usage
node ./scripts/ensure-docs.cjs [--force] [--ttl <hours>] [--project-dir <path>]
Script path is relative to this skill’s directory.
--forceâ Pull regardless of cache age--ttl <hours>â Cache TTL in hours (default: 24)--project-dir <path>â User’s project root for version detection (default: cwd)
Examples:
node ./scripts/ensure-docs.cjs
node ./scripts/ensure-docs.cjs --force
Output
{
"docsRoot": "node_modules/.cache/devvit-docs/versioned_docs/version-0.11",
"repoDir": "node_modules/.cache/devvit-docs",
"appDevvitVersion": "0.11"
}
docsRootâ The directory to search. Versioned if a matching version was found, otherwisedocs/.repoDirâ Root of the cloned repo (use as fallback if versioned docs are incomplete).appDevvitVersionâ Devvit version from the user’spackage.json, ornull.
Present Results to User
- Quote the specific doc file and section supporting each claim.
- Provide a minimal code example if the docs include one.
- If the docs don’t cover it, say so and suggest the closest material found.
Troubleshooting
gitnot found â Requiresgiton PATH.- Network errors â Script uses existing cache if pull fails.
- Stale docs â Use
--forceto bypass the TTL cache.