Agent skill
devvit-logs
Stream Devvit logs for an installed app (trigger phrases: "devvit logs", "stream logs", "check logs", "show logs"). Requires the user to provide the target subreddit.
Install this agent skill to your Project
npx add-skill https://github.com/reddit/devvit-skills/tree/main/skills/devvit-logs
SKILL.md
Devvit Logs
Stream log events from an installed Devvit app for quick debugging. This skill wraps devvit logs and auto-exits after a short window (5 seconds) to avoid hanging on a streaming command.
How It Works
- Ask the user for the target subreddit (required).
- Optionally accept an app name and
--since=...flag. - Run
devvit logsand capture output. - Exit automatically after the first burst of output or 5 seconds, whichever comes first.
Usage
node ./scripts/devvit-logs.cjs <subreddit> [app-name] [--since=1h]
Script path is relative to this skill's directory.
Arguments:
subreddit- Required. Subreddit to stream logs from.app-name- Optional. App name if streaming from another folder.--since=Xd- Optional. Historical logs window (e.g.,--since=30m,--since=1d).
Examples:
node ./scripts/devvit-logs.cjs my-subreddit
node ./scripts/devvit-logs.cjs my-subreddit my-app --since=1h
Output
{
"ok": true,
"reason": "timeout",
"exitCode": null,
"signal": null,
"stdout": "=============================== streaming logs for my-app on my-subreddit ================================\n[DEBUG] Dec 8 15:55:23 Action called!",
"stderr": ""
}
Present Results to User
- If the user did not provide a subreddit, ask for it explicitly.
- Summarize the captured logs (if any) and mention the 5-second capture window.
- If no logs were captured, say so and suggest retrying with activity or
--since=....
Troubleshooting
- Devvit CLI not found: Install or ensure
devvitis in PATH. - Not logged in: Run
devvit loginand try again. - No logs: Trigger an action in the app or use
--since=.... - Permission errors: Confirm the app is installed in the subreddit and you have access.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
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").
devvit-skill-setup
Configure a repo's agent instruction files (AGENTS.md, CLAUDE.md, etc.) to auto-apply Devvit skill guidance. Trigger phrases: "configure skills", "setup skills", "add devvit docs rule".
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
setup-pre-commit
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
scaffold-exercises
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
Didn't find tool you were looking for?