Automated summary
Builds reusable carousel and paginated data-display UI components for React dashboards and Telegram bots.
Strengths
- Provides reusable, typed components.
- Supports autoplay and pagination.
- Works for both web and Telegram.
- Clean separation of concerns.
Limitations
- Requires manual integration with data sources.
- Telegram bot implementation is basic and may need extension.
- Not a complete carousel library; focuses on basic functionality.
When you need a lightweight, reusable carousel component for a React dashboard or a paginated menu for a Telegram bot.
When you need advanced animations, touch swipe support, or a fully-featured carousel library like Slick.
Security analysis
SafeThe skill provides static code examples for UI components without any executable commands, network calls, or destructive actions. There is no risk of harm.
No concerns found
How this analysis is madeExamples
Create a reusable carousel component in React that displays dashboard cards with autoplay and navigation dots.Build a paginated inline keyboard menu for a Telegram bot in Python with next/prev buttons.Implement a paginated data view component in React with previous and next buttons for navigating through items.Carousel / UI Component Skill
Builds reusable carousel and data-display UI components.
When to Use
- Building dashboard cards that display lists (balita, ibu hamil, reports)
- Creating Telegram bot carousel menus with inline keyboard
- Implementing paginated data views
Dashboard — React Carousel
Basic Carousel Component
// components/ui/Carousel.tsx
import { useState } from "react"
interface CarouselProps<T> {
items: T[]
renderItem: (item: T, index: number) => React.ReactNode
keyExtractor: (item: T) => string
autoPlay?: boolean
interval?: number
}
export function Carousel<T>({ items, renderItem, keyExtractor, autoPlay, interval = 3000 }: CarouselProps<T>) {
const [current, setCurrent] = useState(0)
useEffect(() => {
if (!autoPlay) return
const timer = setInterval(() => {
setCurrent(c => (c + 1) % items.length)
}, interval)
return () => clearInterval(timer)
}, [autoPlay, interval, items.length])
return (
<div className="relative overflow-hidden">
<div
className="flex transition-transform duration-300"
style={{ transform: `translateX(-${current * 100}%)` }}
>
{items.map((item, i) => (
<div key={keyExtractor(item)} className="w-full flex-shrink-0">
{renderItem(item, i)}
</div>
))}
</div>
<div className="absolute bottom-2 left-1/2 flex gap-1">
{items.map((_, i) => (
<button
key={i}
onClick={() => setCurrent(i)}
className={`w-2 h-2 rounded-full ${i === current ? "bg-blue-600" : "bg-gray-300"}`}
/>
))}
</div>
</div>
)
}
Usage with Data Cards
<Carousel
items={recentBalita}
keyExtractor={(b) => b.id.toString()}
renderItem={(balita) => <BalitaCard balita={balita} />}
/>
Telegram Bot — Inline Keyboard Carousel
Paginated Inline Keyboard
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
ITEMS_PER_PAGE = 5
def build_pagination_keyboard(items: list, page: int, callback_prefix: str) -> InlineKeyboardMarkup:
start = page * ITEMS_PER_PAGE
end = start + ITEMS_PER_PAGE
page_items = items[start:end]
keyboard = []
for item in page_items:
keyboard.append([
InlineKeyboardButton(
f"📋 {item.name}",
callback_data=f"{callback_prefix}:view:{item.id}"
)
])
nav = []
if page > 0:
nav.append(InlineKeyboardButton("◀️ Prev", callback_data=f"{callback_prefix}:page:{page-1}"))
if end < len(items):
nav.append(InlineKeyboardButton("Next ▶️", callback_data=f"{callback_prefix}:page:{page+1}"))
if nav:
keyboard.append(nav)
return InlineKeyboardMarkup(keyboard)
Usage in Handler
async def list_items(update: Update, context: ContextTypes.DEFAULT_TYPE):
items = await db.get_all()
keyboard = build_pagination_keyboard(items, page=0, callback_prefix="item")
await update.message.reply_text(f"Daftar ({len(items)} total):", reply_markup=keyboard)
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/carousel-ui-components-mrwakej3/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/carousel-ui-components-mrwakej3' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/carousel-ui-components-mrwakej3/download' --output '.skill-downloads/carousel-ui-components-mrwakej3/SKILL.md.part' && mv '.skill-downloads/carousel-ui-components-mrwakej3/SKILL.md.part' '.skill-downloads/carousel-ui-components-mrwakej3/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.
Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/carousel-ui-components-mrwakej3/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.