# Reddit > Busca y recupera contenido de Reddit: posts, comentarios, info de subreddits y perfiles de usuario vía la API JSON pública. Úsalo cuando se mencione Reddit, un subreddit o enlaces r/. Fuente: https://skillsagentes.com/skills/resciencelab/opc-skills/reddit Markdown: https://skillsagentes.com/skills/resciencelab/opc-skills/reddit.md Repositorio: https://github.com/ReScienceLab/opc-skills Autor: ReScienceLab Licencia: Apache-2.0 Actualizado: hace 7 meses Coste de contexto: 44 tok instalada, 516 tok al activarse, 3.8k tok con todos los archivos del bundle Bundle: 9 archivos, 15 KB Permisos que pide: ninguno declarado ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add ReScienceLab/opc-skills --skill reddit --agent claude-code # Cursor npx -y skills add ReScienceLab/opc-skills --skill reddit --agent cursor # Codex npx -y skills add ReScienceLab/opc-skills --skill reddit --agent codex # Gemini CLI npx -y skills add ReScienceLab/opc-skills --skill reddit --agent gemini # Windsurf npx -y skills add ReScienceLab/opc-skills --skill reddit --agent windsurf # Cline npx -y skills add ReScienceLab/opc-skills --skill reddit --agent cline ``` ## Qué hace - Obtiene posts, comentarios, info de subreddits y perfiles de usuario de Reddit vía la API JSON pública - Busca posts por palabra clave, opcionalmente filtrando por subreddit - Ordena resultados por hot, new, top, rising o controversial con filtros de tiempo ## Cuándo usarla - El usuario menciona Reddit, un subreddit o enlaces r/ ## Qué la activa - "Busca posts sobre 'MCP server' en r/ClaudeAI" - "Dame los posts top de la semana en r/python" - "Muéstrame el perfil del usuario spez en Reddit" ## Antes de instalar - No requiere API key: usa la API JSON pública de Reddit sin autenticación. - Necesita en el PATH: python3 - makes network requests ## Archivos - .claude-plugin/plugin.json — 532 B - SKILL.md — 2 KB - scripts/credential.py — 303 B - scripts/get_post.py — 1 KB - scripts/get_posts.py — 1 KB - scripts/get_subreddit.py — 694 B - scripts/get_user.py — 1 KB - scripts/reddit_api.py — 6 KB - scripts/search_posts.py — 2 KB ## SKILL.md Reproducido tal cual desde ReScienceLab/opc-skills bajo Apache-2.0. Esta sección es el documento original y está en inglés. # Reddit Skill Get posts, comments, subreddit info, and user profiles from Reddit via the public JSON API. ## Prerequisites **No API key required!** Reddit's public JSON API works without authentication. **Quick Check**: ```bash cd python3 scripts/get_posts.py python --limit 3 ``` ## Commands All commands run from the skill directory. ### Subreddit Posts ```bash python3 scripts/get_posts.py python --limit 20 # Hot posts (default) python3 scripts/get_posts.py python --sort new --limit 20 python3 scripts/get_posts.py python --sort top --time week python3 scripts/get_posts.py python --sort top --time all --limit 10 ``` ### Search Posts ```bash python3 scripts/search_posts.py "AI agent" --limit 20 python3 scripts/search_posts.py "MCP server" --subreddit ClaudeAI --limit 10 python3 scripts/search_posts.py "async python" --sort top --time year ``` ### Subreddit Info ```bash python3 scripts/get_subreddit.py python python3 scripts/get_subreddit.py ClaudeAI ``` ### Post & Comments ```bash python3 scripts/get_post.py abc123 # Get post by ID python3 scripts/get_post.py abc123 --comments 50 # With more comments ``` ### User Profile ```bash python3 scripts/get_user.py spez python3 scripts/get_user.py spez --posts 10 # Include recent posts ``` ## Sort Options | Sort | Description | Time Options | |------|-------------|--------------| | `hot` | Trending posts (default) | - | | `new` | Latest posts | - | | `top` | Highest voted | hour, day, week, month, year, all | | `rising` | Gaining traction | - | | `controversial` | Mixed votes | hour, day, week, month, year, all | ## API Info - **Method**: Public JSON API (no auth needed) - **Trick**: Append `.json` to any Reddit URL - **Rate Limit**: 100 requests/minute - **Docs**: https://www.reddit.com/dev/api ## Dónde encaja - Categoría: [Investigación](https://skillsagentes.com/categorias/investigacion.md) — Investigación estructurada, búsqueda de fuentes y síntesis. - Creador: [ReScienceLab](https://skillsagentes.com/creators/resciencelab.md) — 12 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) ## Otras skills del mismo repositorio - [Requesthunt](https://skillsagentes.com/skills/resciencelab/opc-skills/requesthunt.md): Genera informes de investigación de demanda de usuarios a partir de feedback real: scrapea y analiza solicitudes, quejas y preguntas en Reddit, X, GitHub, YouTube, LinkedIn y Amazon. - [Archive](https://skillsagentes.com/skills/resciencelab/opc-skills/archive.md): Archiva aprendizajes de sesión, soluciones de debugging y logs de despliegue en `.archive/yyyy-mm-dd/` como markdown indexado con tags buscables; mantiene `.archive/MEMORY.md` como índice. - [Add New Opc Skill](https://skillsagentes.com/skills/resciencelab/opc-skills/add-new-opc-skill.md): Checklist y guía de automatización para añadir un nuevo skill al proyecto OPC Skills, asegurando que todos los archivos, metadatos, logos y listados requeridos estén listos antes del release. - [Seo Geo](https://skillsagentes.com/skills/resciencelab/opc-skills/seo-geo.md): SEO y GEO (Generative Engine Optimization) para sitios web: analiza keywords, genera schema markup y optimiza para buscadores de IA (ChatGPT, Perplexity, Gemini, Copilot, Claude) y tradicionales (Google, Bing). - [Nanobanana](https://skillsagentes.com/skills/resciencelab/opc-skills/nanobanana.md): Genera y edita imágenes con Google Gemini 3 Pro Image (Nano Banana Pro): texto a imagen, edición, distintas proporciones y salida en alta resolución (2K/4K). --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)