CO

community-feed

Provides database query patterns for building high-performance social media feeds with infinite scroll.

Install

mkdir -p .claude/skills/community-feed && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5635" && unzip -o skill.zip -d .claude/skills/community-feed && rm skill.zip

Installs to .claude/skills/community-feed

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Social feed with batch queries, cursor pagination, trending algorithms, and engagement tracking. Efficient database queries for infinite scroll feeds.
150 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Implement cursor-based pagination for large datasets
  • Calculate trending scores using engagement metrics and time decay
  • Batch-load related data to prevent N+1 query issues
  • Perform atomic counter updates for likes and engagement
  • Filter feed content by tags and user follow relationships

How it works

The service uses cursor-based pagination to fetch records and computes trending scores via a stored column that factors in engagement and age. It batches related user and asset data to optimize database performance.

Inputs & outputs

You give it
feed_type, viewer_id, cursor, limit, tags
You get back
PaginatedPosts object containing posts, total_count, has_more, and next_cursor

When to use community-feed

  • Implement cursor pagination
  • Build trending content logic
  • Optimize feed database queries

About community-feed

Implements efficient database strategies for social feeds including cursor-based pagination and engagement metrics. Offers logic for managing trending content algorithms.

Social feed with batch queries, cursor pagination, trending algorithms, and engagement tracking. Efficient database queries for infinite scroll feeds.

When not to use it

  • Using offset-based pagination for large datasets
  • Computing trending scores during every query execution
  • Performing non-atomic counter updates

Prerequisites

Database supporting SQL functions and triggers

Limitations

  • Requires manual maintenance of computed trending score columns
  • Total count computation can be expensive for large datasets

How it compares

Unlike standard offset pagination which slows down as the dataset grows, this approach uses stable cursors for consistent performance on large feeds.

Compared to similar skills

community-feed side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
community-feed (this skill)16moNo flagsIntermediate
prisma-database06moReviewIntermediate
ck:databases03moReviewIntermediate
database-design66moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

Search skills

Search the agent skills registry