sima-likes

Community

Enable likes and favorites across ad sections.

AuthorRosenGray
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a reusable likes/favorites infrastructure for ad sections across the app, including LikeButton on cards and detail views, a LikesProvider, AdLike model, server actions, storage, and guest-merge logic. It enables adding favorites to new sections or wiring LikeButton into cards and detail pages.

Core Features & Use Cases

  • Unified likes infrastructure shared by all ad sections (cards and detail)
  • LikeButton on listing cards and detail pages
  • Guest merge support for likes across login
  • Define and reuse entity type constants to drive storage and server actions

Quick Start

  • Define a new entity type constant in LikesProvider for your section (e.g. ENTITY_TYPE_CARS = "vehicles-cars").
  • Add LikeButton to listing cards with stopPropagation and entityType/publicId props.
  • Add LikeButton to detail header with the same props and stopPropagation behavior.
  • Ensure LikesProvider is wired in the app with initialLikedIds and guest merge extension if needed.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: sima-likes
Download link: https://github.com/RosenGray/sima/archive/main.zip#sima-likes

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.