use-reddit-api — community use-reddit-api, decept, community, ide skills

v1.0.0

关于此技能

非常适合需要利用Reddit API交互以提高社区参与度的社交媒体代理。 Interact with the Reddit API from server-side code. Use when reading user info, submitting posts/comments, setting flair, or accessing subreddit data.

vigneshksaithal vigneshksaithal
[0]
[0]
更新于: 3/5/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 6/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution
Review Score
6/11
Quality Score
33
Canonical Locale
en
Detected Body Locale
en

非常适合需要利用Reddit API交互以提高社区参与度的社交媒体代理。 Interact with the Reddit API from server-side code. Use when reading user info, submitting posts/comments, setting flair, or accessing subreddit data.

核心价值

赋予代理与Reddit API交互的能力,利用像userId、postId和subredditId这样的上下文变量,通过像@devvit/web/server这样的库实现与Reddit集成应用的无缝集成。

适用 Agent 类型

非常适合需要利用Reddit API交互以提高社区参与度的社交媒体代理。

赋予的主要能力 · use-reddit-api

使用context.subredditId自动监控subreddit帖子
根据context.userId生成用户特定内容推荐
使用context.postId调试帖子参与度指标

! 使用限制与门槛

  • 需要用户登录以访问context.userId
  • 依赖@devvit/web/server库
  • 在某些场景中上下文变量可能未定义

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.
  • - The underlying skill quality score is below the review floor.

Source Boundary

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

评审后的下一步

先决定动作,再继续看上游仓库材料

Killer-Skills 的主价值不应该停在“帮你打开仓库说明”,而是先帮你判断这项技能是否值得安装、是否应该回到可信集合复核,以及是否已经进入工作流落地阶段。

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

use-reddit-api 是什么?

非常适合需要利用Reddit API交互以提高社区参与度的社交媒体代理。 Interact with the Reddit API from server-side code. Use when reading user info, submitting posts/comments, setting flair, or accessing subreddit data.

如何安装 use-reddit-api?

运行命令:npx killer-skills add vigneshksaithal/decept/use-reddit-api。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

use-reddit-api 适用于哪些场景?

典型场景包括:使用context.subredditId自动监控subreddit帖子、根据context.userId生成用户特定内容推荐、使用context.postId调试帖子参与度指标。

use-reddit-api 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

use-reddit-api 有哪些限制?

需要用户登录以访问context.userId;依赖@devvit/web/server库;在某些场景中上下文变量可能未定义。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add vigneshksaithal/decept/use-reddit-api。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    use-reddit-api 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Upstream Repository Material

The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.

Upstream Source

use-reddit-api

安装 use-reddit-api,这是一款面向AI agent workflows and automation的 AI Agent Skill。查看评审结论、使用场景与安装路径。

SKILL.md
Readonly
Upstream Repository Material
The section below is imported from the upstream repository and should be treated as secondary evidence. Use the Killer-Skills review above as the primary layer for fit, risk, and installation decisions.
Supporting Evidence

Use Reddit API

All code must follow the Coding Principles in AGENTS.md (functional, minimal, readable, modular).

Available imports

typescript
1import { reddit, context } from '@devvit/web/server'

Context variables

VariableTypeAvailable when
context.userIdstring | undefinedUser is logged in
context.postIdstring | undefinedInside a post
context.subredditIdstringAlways
context.subredditNamestringAlways

Always guard optional context before use (see api-route skill for guard helpers).

Common operations

Get current user

typescript
1const user = await reddit.getCurrentUser() 2if (!user) { 3 return c.json({ status: 'error', message: 'Not logged in' }, 400) 4} 5const username = user.username

Get current subreddit

typescript
1const subreddit = await reddit.getCurrentSubreddit()

Submit a custom post

typescript
1const post = await reddit.submitCustomPost({ 2 subredditName: context.subredditName!, 3 title: 'My Post Title', 4 entry: 'default', // matches entrypoint key in devvit.json 5}) 6// post.id is the new post ID (e.g. "t3_abc")

Submit a comment

typescript
1await reddit.submitComment({ 2 postId: context.postId!, 3 text: 'Great job! 🎉', 4})

Set user flair

typescript
1await reddit.setUserFlair({ 2 subredditName: context.subredditName!, 3 username: user.username, 4 text: 'Champion 🏆', 5})

When a menu item handler needs to redirect the user to a post:

typescript
1app.post('/internal/menu/create-game', async (c) => { 2 const post = await reddit.submitCustomPost({ 3 subredditName: context.subredditName!, 4 title: 'New Game', 5 entry: 'default', 6 }) 7 return c.json({ 8 navigateTo: `https://reddit.com/r/${context.subredditName}/comments/${post.id}`, 9 }) 10})

Constraints

  • Reddit API calls are server-side only — never from client Svelte code
  • 30-second request timeout applies to all operations
  • Error handling follows the api-route skill pattern (try/catch, instanceof Error)

Checklist before finishing

  • Tests written FIRST in src/server/__tests__/ using bun:test and devvit-mocks
  • All Reddit API calls are in server code (src/server/)
  • context.userId and context.postId guarded before use
  • Response uses standard shape from api-route skill
  • Menu item handlers return { navigateTo: url } when redirecting
  • bun run test passes with zero failures

相关技能

寻找 use-reddit-api 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具