skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
reddit/devvit-skills128 installs

devvit-docs

Look up Devvit documentation from the reddit/devvit-docs repository. Use when the user asks about Devvit APIs, patterns, configuration, or examples (trigger phrases: "how do I", "devvit docs", "show me the docs", "API reference").

How do I install this agent skill?

npx skills add https://github.com/reddit/devvit-skills --skill devvit-docs
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill allows the agent to fetch and search Devvit documentation from Reddit's official GitHub repository. It uses Git to manage a local cache of documentation files and reads them to answer developer queries about APIs and configurations.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerpass

    2/2 files flagged

What does this agent skill do?

Devvit Docs

Look up Devvit documentation from reddit/devvit-docs.

Constraints:

  • Use only reddit/devvit-docs as 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

  1. Run the ensure-docs.cjs script to clone or refresh the project-local docs cache.
  2. Let the script maintain a sparse local clone containing the tracked Markdown and MDX documentation. The script verifies the checkout on every run.
  3. Read the JSON output to get the docs directory path.
  4. Search the Markdown and MDX files in each searchRoots directory, in order, using rg when available or another recursive text-search tool as a fallback. Search exact API names and relevant keywords, then open the strongest matches and read their surrounding sections.
  5. Do not search or cite files under any path in excludeRoots.
  6. If the first search finds nothing and cacheStatus is cached, rerun the script once with --force and search again.
  7. If the configured search roots are incomplete, search repoDir as a fallback while still excluding excludeRoots.
  8. Cite specific files/sections relative to repoDir.

Usage

node ./scripts/ensure-docs.cjs [--force] [--ttl <hours>] [--project-dir <path>] [--cache-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)
  • --cache-dir <path> — Cache base directory. Stores the clone in <path>/devvit-docs (default: <project-dir>/node_modules/.cache/devvit-skills)

Examples:

node ./scripts/ensure-docs.cjs
node ./scripts/ensure-docs.cjs --force
node ./scripts/ensure-docs.cjs --cache-dir ./tmp/devvit-cache

Output

{
  "cacheStatus": "cached",
  "docsRoot": "/path/to/project/node_modules/.cache/devvit-skills/devvit-docs/versioned_docs/version-0.11",
  "repoDir": "/path/to/project/node_modules/.cache/devvit-skills/devvit-docs",
  "searchRoots": [
    "/path/to/project/node_modules/.cache/devvit-skills/devvit-docs/versioned_docs/version-0.11",
    "/path/to/project/node_modules/.cache/devvit-skills/devvit-docs/docs/api/redditapi"
  ],
  "excludeRoots": [
    "/path/to/project/node_modules/.cache/devvit-skills/devvit-docs/docs/api/public-api"
  ],
  "matchedVersion": true,
  "appDevvitVersion": "0.11",
  "docsRepoCommit": "3f4f2d1c0b0e..."
}
  • cacheStatus — cloned if this run created or replaced the clone; otherwise cached.
  • docsRoot — Primary docs directory. Versioned if a matching version was found, otherwise docs/.
  • repoDir — Root of the cloned repo (use as fallback if versioned docs are incomplete).
  • searchRoots — Directories to search in order. Includes docsRoot and the latest docs/api/redditapi reference when present.
  • excludeRoots — Directories to exclude from searches and citations. Includes docs/api/public-api when present.
  • matchedVersion — Whether docsRoot matched the detected app version.
  • appDevvitVersion — Devvit version from the user's package.json, or null.
  • docsRepoCommit — Commit hash of the docs repo cache, or null if unavailable.

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

  • git not found — Requires git on PATH.
  • Sparse checkout errors — Requires a recent Git version with sparse-checkout and partial clone support.
  • Network errors — Script uses an existing cache if refresh fails.
  • Stale docs — Use --force to bypass the TTL cache.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/reddit/devvit-skills/devvit-docs">View devvit-docs on skillZs</a>